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-1.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ff5fb667a738e0a93bc29b3bd0d83791b5691dec7d69a521c3937c84bc7f6a |
|
MD5 | 67ded73d7f14894268495b36e8a9d323 |
|
BLAKE2b-256 | 0fc28a6fee28161fd52cda2c27ca776b4cec01f9c569607c10acaadb95ca8d2f |
Close
Hashes for sparkautomapper.fhir-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5045321bef50ff714e6ed2b247e2d51f2dc5a8778d09ca09d2e7b2a265f9b0ce |
|
MD5 | 897b5355847b9f4fbfaddc11754f317b |
|
BLAKE2b-256 | 022a39bbcdda38ea3bdda01acf7fccb2dd5006b191c4c08738976b4dfb7d0f79 |