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.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2961084eca4664039846730b1da3f0072e39dcb89d453242ffc5c964ed3b166 |
|
MD5 | 647771539e16306825d82e251c517d0a |
|
BLAKE2b-256 | 4568603e79d5eea16850a9932311c711749b279b9738e3a4170ba4f1af4b94e2 |
Close
Hashes for sparkautomapper.fhir-0.1.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e838d30d5256efdcf4ebf2c63c301e84673c445e23b1302426eb4b4f7850f3 |
|
MD5 | b690357befbfbd45b62bf1e36be895e1 |
|
BLAKE2b-256 | 8cc543b8d2a4605a66ba751313050b75916537686e81e0702783c8287eaaa086 |