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.16.tar.gz
(134.6 kB
view hashes)
Built Distribution
Close
Hashes for sparkautomapper.fhir-0.2.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 257614e9fe4ddf010e766610397f39096ecf0eb6e6fc90ee1a7cd055323fa328 |
|
MD5 | 512604c86031c67a2b5e136452604b2e |
|
BLAKE2b-256 | 398a882b31d7b07aa9045fdaefce9fdf6205de1e9bb15645e837fb634582e47a |
Close
Hashes for sparkautomapper.fhir-0.2.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aee2c63b371e5b85f85c7b360ee27a433841856e34fb26901d51368781442398 |
|
MD5 | ebf94fa335132cc064a00c0dd3f9c940 |
|
BLAKE2b-256 | 082b4245e5127eb772a55991ede0170daa5a1a25547d66b1ca544bbf7cd84602 |