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.80.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5196829b4610a4987f66db3badf0d03e7a1bca731ceac3da20afc8cdbe8b7cca |
|
MD5 | f47e180b6044299f93c1c4a63362fc4f |
|
BLAKE2b-256 | acd896715f650716c16cf36f11a3d83886df6e2e42668bf13960180b26b50fe6 |
Close
Hashes for sparkautomapper.fhir-0.1.80-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49cee0e1845dd7d305195016c525f13e4fc10c9a43f2753dd7c52218a1ef6495 |
|
MD5 | 0ff51effdb99b63d060f7bcee95e7d2d |
|
BLAKE2b-256 | d4e00e637f3e5340c329eaa66b4d3176eec21de24359c380cc9170fc671ee181 |