FHIR extensions for SparkAutoMapper
Project description
SparkAutoMapper.FHIR
Add custom FHIR data types to SparkAutoMapper.
Usage
pip install sparkautomapper.fhir
Example
from spark_auto_mapper.automappers.automapper import AutoMapper
from spark_auto_mapper.helpers.automapper_helpers import AutoMapperHelpers as A
mapper = AutoMapperFhir(
view="members",
source_view="patients",
keys=["member_id"]
).withResource(
resource=F.patient(
id_=A.column("a.member_id"),
birthDate=A.date(
A.column("date_of_birth")
),
name=A.list(
F.human_name(
use="usual",
family=A.column("last_name")
)
),
gender="female"
)
)
Publishing a new package
- Create a new release
- The GitHub Action should automatically kick in and publish the package
- You can see the status in the Actions tab
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.37.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6159a9d51dee1acefc068b5aa4e2abbca17ea65fb1920ef104fe0c48e3410aa |
|
MD5 | 9755764a6f85a950e1095edd1ef3f177 |
|
BLAKE2b-256 | cbf665f7db02955da7f0fe5cdfa1a83a69f094eedf7658ab00cb0df558e91828 |
Close
Hashes for sparkautomapper.fhir-0.1.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8293be9d31f52db08570413089d2030f33235dfcf5d52b72fa612edd7b7f159a |
|
MD5 | f8c6507ffeeab290ed28dd616242c580 |
|
BLAKE2b-256 | ef1d908c1f49cad9c3e16a8dddaaa42fb82eedbca06945e3e6c13ba8edfcb615 |