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.1.87.tar.gz
(101.0 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.87.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8be4114ab166c3c973bc7657ffb0ee62b2dd651f1e22d8851af07211218143c7 |
|
MD5 | 81543d97d58df186dc31e78a03cf212a |
|
BLAKE2b-256 | 8d83a62c0350281e4f9578a9a414201ad3c23c41d47c7b768d9dd4b5408b17ec |
Close
Hashes for sparkautomapper.fhir-0.1.87-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 107af8317495e2b6f9e2a7408588bed269ec2a489cbcae3e3489929dc2a0c7cb |
|
MD5 | 0ad59a6b8d8b0fa3a0e9405dcd88b21e |
|
BLAKE2b-256 | e3494fdf4aea6d3021761f535b1d30168d8c2d7b53b65a90b4e945847129d593 |