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.84.tar.gz
(100.4 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.84.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a01c47a15174ca5ce8e174563491d1498f0225562a0f715a229af97e2c3747d5 |
|
MD5 | 36ab2a2c73cf0c176b4c3b1f80b0ff09 |
|
BLAKE2b-256 | 09d18903a999bd2c8ca31cb5c3653e446741b54020159290c44cac78cc301927 |
Close
Hashes for sparkautomapper.fhir-0.1.84-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d88e6609053225a01fd8daf151260ccb5eb6c93567aa43788c5e4473be904a |
|
MD5 | 82c550d8f6af198b3a476a9abc1dd0b1 |
|
BLAKE2b-256 | bcb1fcb3fc8a1e7043ed2729677eabf63d041cf885465205d99afd0e3aa41d55 |