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
Built Distribution
Close
Hashes for sparkautomapper.fhir-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a8ca6c680b0498e8f7f4c831693e8930f5ceba746520dc5ec1efa020b725d6 |
|
MD5 | 0461106557b7639a6edfce5b26dcfcc4 |
|
BLAKE2b-256 | d2dba2125ebd65e7e5dc40ee69f78aeaa9ab278d8250b6f95e79eb3abc99a066 |
Close
Hashes for sparkautomapper.fhir-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1e2ebbdfb35fddae078ebab5040522058521c1f02515722ef04868f094ed76 |
|
MD5 | 6f260913a724dcdd11b9905346de499f |
|
BLAKE2b-256 | 8667dc4a08fef11342229b14082b23a3490b566e3a40faec431cb0c0f03f622b |