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.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff92139b443bddc9dd8ca3a7e3e737ef00e8236143b7398ed2876f4b24bb2aad |
|
MD5 | 6e232d902daa462d475833fd2abde269 |
|
BLAKE2b-256 | 0dad274b289a3b180a2c5de31ce7c28308247817e6af713326734526e97f27fb |
Close
Hashes for sparkautomapper.fhir-0.1.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f9717d6348de277f8a5249923341c18c0d3648d02efc59ab5b5fb1af3d7e3c |
|
MD5 | 327c31206ba0e88a7526d45ca247d9cb |
|
BLAKE2b-256 | d31659ea85294ce18e785f4cb93b1696a2515996962dab4fd9d3a453c665e6e2 |