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
sparkautomapper.fhir-0.2.20.tar.gz
(133.6 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.2.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0db55d5fd7c11127de4ee50cdc7e46d5a4d0a4242c1032e62cd2ca5a1b36262 |
|
MD5 | 43a0110ec20584d4f18390d5fbc2c187 |
|
BLAKE2b-256 | b489ca0e24a2af78ae6a2212b663e1acbec11cc5f0e0addb784a45615daad7b7 |
Close
Hashes for sparkautomapper.fhir-0.2.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 641953999cc78be08c3c680a7453f9fe7be6375b45eaeb45fc30f98d42683994 |
|
MD5 | 5a8453cb8d62fe1b04823a76b58b1fac |
|
BLAKE2b-256 | c1f70b2b767d516d88555c348c5c5c9bda51e45918b697037ac59030d0034a13 |