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.12.tar.gz
(113.2 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.2.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fae8a76d697100d1021152790c3d6c482794dc5a50b09a0997d710a79861806e |
|
MD5 | 5754218332bed9cb8ee7ea1eebb149f7 |
|
BLAKE2b-256 | 6a2a98e054e819f1a0401bd722983c30e39073f40dc1a97c0c20fa44bd795096 |
Close
Hashes for sparkautomapper.fhir-0.2.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fcf793f5851157d6935cda6c4694d436629ad03ef631c268c52bdf2b8fcff01 |
|
MD5 | ad778a3bcc765693ba47ea7727c0fb45 |
|
BLAKE2b-256 | 61944dcd82323d9b757c1a4068afb8bff56e0349c7f1d9aa9811f9ea7d1041d3 |