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-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e51ecf7004e8c2c7e8b859aa9ddcf128282f648b7b2d141c3de753dfcc3e9cb1 |
|
MD5 | 364066c393be1cd09c4968b26ee0e8f1 |
|
BLAKE2b-256 | f49d7ee897dfca868ab16b8f69613cd2ee63aeadf3b5b485b2e84eaf4e49a2b0 |
Close
Hashes for sparkautomapper.fhir-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec88a3936f4bdcfd3da55fd25e0d978a4ef92a680b67dee4444bfd7a99bae33 |
|
MD5 | c2e27b4eacd7832908128fde5d195fd7 |
|
BLAKE2b-256 | f7cf9db758eed077dbdbed5d4f08a20d94537d7a6a458d7de5d33bbb54c48072 |