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
- Edit VERSION to increment the version
- 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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a5ceeca679ada7f638c39e8713649cbedb6b31985972034b606588d32c4a2c |
|
MD5 | 3b7ab71499608c7efc20e3ba3f23abb1 |
|
BLAKE2b-256 | 40bf1f7bc07605cf539e700691625d61ca8fd0b368493b48e52c6b9f747f9533 |
Close
Hashes for sparkautomapper.fhir-0.1.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8296fd15fc96c06a4cea7e4275a7a07591180d3ce644212c377130248a7ab483 |
|
MD5 | ed3cf3a833d6181373cdd0e770d58fd0 |
|
BLAKE2b-256 | 3cec544b0e888354eaf49226a0b05a3b21b99520a3aedbd191de2637b02b9f38 |