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.85.tar.gz
(100.4 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.85.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e34bff7cf1116bc87873af81402204a05697ca26ae7a451f50a8fc70cd83d73 |
|
MD5 | b514a054d63783f944361fe656ad3ae5 |
|
BLAKE2b-256 | d03317c3bc493d0a973975c86a07c94bf9b7e6627d89575b21e302b992d9068a |
Close
Hashes for sparkautomapper.fhir-0.1.85-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1c6cd8c9649dfd23641ee01128d6671fcfbeb6e9d0792a1c745a0345f90180 |
|
MD5 | 1b043d5d007bb8c3a2023733dee77dd6 |
|
BLAKE2b-256 | 43b3e264568dc5276b84cc8020aafb1e6e8eaa3300ba19b0c77e8f2fc6d346b5 |