Semantic web representation for the Synthea.
Project description
🕸️ SYNTHEA RDF
Semantic web representation for the SyntheaTM and CSVs to Turtle (.ttl) conversion tool.
Synthea ontology and conversion method v1.0 are done. WIP minor fixes.
:hammer: Usage
Single CSV
from from pathlib import Path
from synthea_rdf.graph import GraphBuilder
MODEL_PATH = "./synthea_ontology/synthea_ontology.ttl"
CSV_DIR = "./csv"
DEST_PATH = "./result"
builder = GraphBuilder(CSV_DIR, MODEL_PATH)
builder.convertEncounter()
builder.serialize(destination=Path(DEST_PATH)/"encounter.ttl")
Convert method list:
- convertAllergy()
- convertCarePlan()
- convertClaim()
- convertClaimTransaction()
- convertCondition()
- convertDevice()
- convertEncounter()
- convertImagingStudy()
- convertImmunization()
- convertMedication()
- convertObservation()
- convertOrganization()
- convertPatient()
- convertPayer()
- convertPayerTransition()
- convertProcedure()
- convertProvider()
- convertSupply()
All CSV
from pathlib import Path
from synthea_rdf.graph import GraphBuilder
MODEL_PATH = "./synthea_ontology/synthea_ontology.ttl"
CSV_DIR = "./csv"
DEST_PATH = "./result"
builder = GraphBuilder(CSV_DIR, MODEL_PATH)
graph = builder.build()
graph.serialize(destination=Path(DEST_PATH) / "all.ttl")
:warning: Issues
-
Confusing naming convention for the following data properties:
- syn:start - syn:startDate - syn:startDateTime - syn:date - syn:dateTime -
There are no
AllergyandImagingStudydata in the test dataset. Testing required with a larger dataset.- Test
Allergy - Test
ImagingStudy
- Test
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file synthea_rdf-0.1.tar.gz.
File metadata
- Download URL: synthea_rdf-0.1.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b13ee84518ab0928c02ae7cd917d2dec114f788f4d843cab6f12a3b0176768e6
|
|
| MD5 |
50743c3eb9ae8a86e842d590bea8855d
|
|
| BLAKE2b-256 |
4f3d2e935ddbc0c94f50ebbfafbcc32c4d36769e0d2b39a48c1fb30d2c797795
|
File details
Details for the file synthea_rdf-0.1-py3-none-any.whl.
File metadata
- Download URL: synthea_rdf-0.1-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e83c4ee9ba54e6234bd67cb846fa8086e3bf6c19e671b72a238ec5fd9282b97
|
|
| MD5 |
a2a7199273aabdc7c59fd61f29b98ddc
|
|
| BLAKE2b-256 |
b9efa0e3fef012a3a57d490fe29b4dd56be92b18ae374b7b0ab62d7ff703445b
|