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
- Edit VERSION to increment the version
- 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
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.1.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1decb1ce0770dae115eaf4a077fb5b5aadb090aab8eb77161ebc34770ac4ee3b |
|
MD5 | 8fc14f3de016236e38957f86c506190c |
|
BLAKE2b-256 | 4064d91b8090385b3cd37b58e639084e161deda05677b16da6c0a3385ddc6580 |
Close
Hashes for sparkautomapper.fhir-0.1.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0bbddd7a127363fac7cfdc01a31df35829a827393102dac97a39f89cc133715 |
|
MD5 | 6401c0425eb4341c678be27849ca1ca8 |
|
BLAKE2b-256 | ff88b899ca13f48303179771499834b8ab76209d0a3cfd5e09f694eb26935238 |