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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 558a6863d5777e8f87100943178877a0d94afa5f615379c15ffb4ce626db4ce3 |
|
MD5 | 8b17b25aa16c51dd19e2f9d7db1786cf |
|
BLAKE2b-256 | a56ba840c3c8dd380640a5192e9a54d6e37633446c1a3f92d0d5bd6c36652088 |
Close
Hashes for sparkautomapper.fhir-0.1.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f3a43712da3fc09d7697a0f8a0c9a560db0c73e5c4e2f4304b236dae35b6749 |
|
MD5 | f5574c5c1c09503a4346ec1fa35ac870 |
|
BLAKE2b-256 | 02702879ff96dec5a4e953a8d371b350c5921e71e8e5f105d4e3fa09efcf205e |