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.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 125f4db506a71bc6589a4d76dad6021a306c4b833767e08eaeb8fa2df9d34f3a |
|
MD5 | 2d4c1bc921dd228af8920418c6087e2b |
|
BLAKE2b-256 | f23d5c31ebcc402df9a89700d91d1b20291480476b6b9663cc639e7b6ea6ab65 |
Close
Hashes for sparkautomapper.fhir-0.1.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08405407347b64fa9da2e227c746f191c069ef2dc4c6832c594918fec0b95e54 |
|
MD5 | 69740eb7dc7e3196234a583d2c14f168 |
|
BLAKE2b-256 | 07fe94f56de11b5520f2b03974508882cf5103fe30a98d7f5c14340938f817e2 |