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
- Edit VERSION to increment the version
- 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.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 528934334df64ceadbfcb0af8ec7a8c1e5e0d869f000c733ce031290b5fee474 |
|
MD5 | f592ae519563c1dd6fca56e2e4ee5049 |
|
BLAKE2b-256 | 217907faf9a7f398f59342ebce698a707d025f65c1f65a5437958d1aed8cb4ac |
Close
Hashes for sparkautomapper.fhir-0.1.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f48c01b8096deab4528af5df1cc61e18524e906444b1fdd9035a42f45ea623f |
|
MD5 | ce1c2dbd805a3fdfac242f889632af81 |
|
BLAKE2b-256 | 7bb2fcfeb75e9a7a8c1d2f0e6d7bb17ef79c84c51fb9e75a10afa968113b8632 |