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.90.tar.gz
(101.7 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.90.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8532f58ebccb01e0aa6705b3c987e17d7dfab8327d39708b2c53d017cdfd726 |
|
MD5 | c7867b958805ef4d43c8ff4e3f71a6b8 |
|
BLAKE2b-256 | 55b034d8716bd769bfcf4703ff844913d01093202a986bc0f5a41e1d9272ff8c |
Close
Hashes for sparkautomapper.fhir-0.1.90-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6c743d347245b3d4605b71a9126be688c932cfabbb173a725ac74af0f579be8 |
|
MD5 | 100a960c409cfccd81aca77dd064f6fd |
|
BLAKE2b-256 | 3eeaffc995a3e320ba75f49ba290a5e654f5e9a27e1990d887536c246fc836ea |