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.2.8.tar.gz
(106.6 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3483466c13e4a7daa94e989e97c180de294a8da0e4ef9ba55030e87f9af8095b |
|
MD5 | 3e53d79039f0674cae4a2a4bd5d54f19 |
|
BLAKE2b-256 | 53eb57b26ff7c7901905cb74c11a2d601ac5574e74b36b330791a2f265e19c75 |
Close
Hashes for sparkautomapper.fhir-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb09efdc5aae1a87fdb6464247a9cdc8456774f7892e97be7ab7d52a0d2675ef |
|
MD5 | 55d4d33a5a8e43760ffc1d644ca6053a |
|
BLAKE2b-256 | c78cb27e040aee872dc87348f80874c5cd0a875781c1f76aa022621999f13514 |