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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 954c7ceacec0cd8151d4de42269bc88287936c6a57b560d4b9a573a3a70a8f30 |
|
MD5 | 7fa2f954f71ac12c0a2d1c8e95c9f154 |
|
BLAKE2b-256 | f7a4c2f14ba61bf246482c9b68012ecec25d2f2118975a0f092eff1f72ed0d02 |
Close
Hashes for sparkautomapper.fhir-1.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4bd13a6bc3190c8396491fb111dd1a844e06a1cd6345dee0f494d24f96c0eb0 |
|
MD5 | 510e3e110898106c8fb3510b7684b904 |
|
BLAKE2b-256 | d5cba2211663a60e6383d01147c3f2bab1a01509fac55ba72d126371a74a4e83 |