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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f460bc27341b6a332be52e1a415dd890f18960aca1833ba4b18047f7964b0761 |
|
MD5 | fd0a3759c05a69f26a4fbe8b56e1fe9c |
|
BLAKE2b-256 | 217f2f27cf35753ccac692817b112e77f9e35d85c525aaa1443728c70ea9037f |
Close
Hashes for sparkautomapper.fhir-1.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 024577703472c0700128d7c488fce5251bedb4d49f10d8f607a6c115845fc94f |
|
MD5 | 5b5825f138a24777108ed23fb1fc430c |
|
BLAKE2b-256 | 92a788b90bb2e0592802be80263ec6283fe1b2aa5f8d92ed525d20da9c624773 |