Skip to main content

Semantic web representation for the Synthea.

Project description

🕸️ SYNTHEA RDF

KnAcc Lab License: GPL v3

Semantic web representation for the SyntheaTM and CSVs to Turtle (.ttl) conversion tool.

synthea_ontology

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 Allergy and ImagingStudy data in the test dataset. Testing required with a larger dataset.

    • Test Allergy
    • Test ImagingStudy

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

synthea_rdf-0.1.1.tar.gz (552.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

synthea_rdf-0.1.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file synthea_rdf-0.1.1.tar.gz.

File metadata

  • Download URL: synthea_rdf-0.1.1.tar.gz
  • Upload date:
  • Size: 552.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for synthea_rdf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5a6c706956f6f0010f3ca5885c609390f0a02ffc330f53c937a6af81d5d3862f
MD5 28348d3f2545608598a473070755b728
BLAKE2b-256 f9ce9c4cffea1c8ddc0ed702563b5b1e92427c5a77130dacc6703923f891d1b5

See more details on using hashes here.

File details

Details for the file synthea_rdf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: synthea_rdf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for synthea_rdf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6eacbe9b85e240b8f096c9ff5223eb580832508aad8a1361ae2815e49465a7dd
MD5 256defecf1017a7afed502448fb9ca19
BLAKE2b-256 6fae8057cb2e11377e81148a048eb78c250a3e272db2fc71a5afca75e3072023

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page