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
sparkautomapper.fhir-0.1.94.tar.gz
(103.9 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.94.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd249fc79983975d227623af79d4c92df6fcc7c82a47dfb4bff9e86879ad12da |
|
MD5 | 198e421359ede888df063e0870e48987 |
|
BLAKE2b-256 | 1e7a04a52b84aa9f7221aa7f4a3ac9552ebc57b8f17e668b9463bcbcd5e6a4ac |
Close
Hashes for sparkautomapper.fhir-0.1.94-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04f11c739b2700ef680899df78cb5f6547e2d251c66daa9c0fcde776f073003a |
|
MD5 | 9fe993020a51c5c46c2e34acec1abdac |
|
BLAKE2b-256 | a86d9c9706fde9752dcbde5a6792cc0eae7ba2288899e7c2b5c529f6de14a85a |