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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c517822806564f1c432100acb0714ab8dd67a731e16fc1fbf31aa094caa13f8 |
|
MD5 | 1476492a02d1788fc9c656253874e06b |
|
BLAKE2b-256 | a6f08e918cdd699f8a7324ac1cfb7ffc3d3bb2d61a076bfb3fb47fdd7f0015bd |
Close
Hashes for sparkautomapper.fhir-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a839a4c7c9201ee15bef16b92ab19b70e3e6dcfc31079030a8ea6f1ff5f37aa9 |
|
MD5 | 58b1e7a9f5fa8d125426ee31e0d1e313 |
|
BLAKE2b-256 | d4a1125188b06b6cd94be1ed6eb407013b657a73e6ef5fa42a72dddd79e4e15a |