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.2.5.tar.gz
(103.4 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.2.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca76a8a0d5798ba434df54cbd63f40a596b68ae78368f3be91133062ffba8e43 |
|
MD5 | c8e9483c85aff506bae2c1257f5b616b |
|
BLAKE2b-256 | 2ab624a354499cb725354c3480f3b9b650c7629a1cde2e3a7cbc781bfb2bdea6 |
Close
Hashes for sparkautomapper.fhir-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b16601e9c1e020874dcf74515fe3743c77bce385e1a988d23a6cf6d2c289f53 |
|
MD5 | 43be36778aa2703f635db0b4344c2c12 |
|
BLAKE2b-256 | 8a3a37e6fb7f9393a301f16265b942eb4776c5dfe5bf35305788d9dd6773803e |