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.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b702a15ce6aee1b061ba69bde86a8efcb3031b6526c4fb5411613f78fae432e |
|
MD5 | 8bfa03b0d9e032fab3067e34d48a02d9 |
|
BLAKE2b-256 | 7c1d617212aef43b1560c5895c5a89c5dfb61b21a39e3fb2e24e3d8fcef9f4dd |
Close
Hashes for sparkautomapper.fhir-0.1.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bedb8268ed37baade8da27fed18f4d4db7b010174600d76a13849ac54f754595 |
|
MD5 | 306ca85b4035f52f4f4a395bfe5f3923 |
|
BLAKE2b-256 | 4e5d170eeaf4514cc3657f9d8fc69c71a3d0a013d7481066dccc8174c568c106 |