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.70.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f276553388d145011f1b51be8143b6add17a3ae848f4f24f712a5d9e3e0b8d8 |
|
MD5 | 644a5a9dba7fa375e8c9cb432b0d46ec |
|
BLAKE2b-256 | 2494967364bccc77f0cc1962f30f5701b69668ce3607e006d3be8feb8b0a13c9 |
Close
Hashes for sparkautomapper.fhir-0.1.70-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62f7849a0316c438b249d5823fe221693d979e6f58f3a026f52c8a385a4b7ef6 |
|
MD5 | e11f35b55391f3a98ed84d48619e4212 |
|
BLAKE2b-256 | 73357d173cf0470383f7d9b14f6814f51a33175d4381195dcba5c2ae27fc19b9 |