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.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef8ac79fa6196f046d70e351b64f1d6a20d89f4b52b234866f49256b695a2bb |
|
MD5 | a100a72821dfca713bae9ea5eaa861cb |
|
BLAKE2b-256 | 83b164ba524662dd005a630a8357d34bbd3d103400d28e4eb6751c541eddf360 |
Close
Hashes for sparkautomapper.fhir-0.1.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7683cc20ca643ebb6a7c429a7bf3c59a7fcd8dce8ab75617ebc4105c0a4e1096 |
|
MD5 | 8d1332d3bcbd116744ccf27c93148300 |
|
BLAKE2b-256 | 552cff6a6d43fd46b024eefdae7f0862c6033fe68a392e351a8a6eae4da4d6a9 |