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.95.tar.gz
(104.1 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.95.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e20e713fc2c2e517c2e2e9e497bf4f6a639dff8d2082b6df8346c60ea31fd57 |
|
MD5 | a06289eb42a1b38a38ab68901f4f505f |
|
BLAKE2b-256 | 843122eb0a79c773fae0da97da8cd7480d2a51e4894c7f2477ff83fb93229e53 |
Close
Hashes for sparkautomapper.fhir-0.1.95-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17a397d545ea260562d145fff8011bb35662f203bc327133fc03d65a82ac312 |
|
MD5 | 1b87306dbd0c848491a72d44c85b7905 |
|
BLAKE2b-256 | 34736f2b6e608ec94983b77dd90f5e052ce69d6a6cb413a994ebf5dfe153aed4 |