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 = AutoMapper(
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-1.0.25a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3cb60525ff4eeb5347eeca4ce2e1197fc1c3f1fdf37f592c6e72b0d70c412bf |
|
MD5 | efc4488efac8ab51ddc5df8bc11d875a |
|
BLAKE2b-256 | 190836f37ae6b69778fcfd0cf8d04dee2677e48f74244f0c6f4c1447a64aa4f8 |
Close
Hashes for sparkautomapper.fhir-1.0.25a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eddddda76ea61670cfad7f3b7f13c920d62f8bf98f056c1f7aa5998093a09f7 |
|
MD5 | 61a6e1ed36e2361d59ede0f508fd3fb6 |
|
BLAKE2b-256 | f23fe83fd495a743306167f1bb3129bf57b4ac550a8f812d4a44510fb6a13a86 |