Skip to main content

🕸️ SYNTHEA RDF

KnAcc Lab License: GPL v3

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

synthea_ontology

:hammer: Usage

Installation

pip install synthea-rdf

Basic Usage

All conversion configurations should be specified in configuration.yaml.

Here is a sample configuration.yaml.

model_path: synthea_ontology/synthea_ontology.ttl
synthea_csv_path: ../synthea/output/1000k/csv
output_path: result/1000k
chunk_size: 300000
include_dua: True
include_trustscore: True
skip:
  - allergies.csv
  - careplans.csv
  - claims_transactions.csv
  - claims.csv
  - conditions.csv
  - devices.csv
  - encounters.csv
  - imaging_studies.csv
  - immunizations.csv
  - medications.csv
  - observations.csv
  - organizations.csv
  - patients.csv
  - patient_expenses.csv
  - payer_transitions.csv
do_shutdown: False

After specification, simply run:

python3 conversion.py

Running conversion process with TMUX

The bigger the data size, the more time that the data conversion needs. In this case, it would be better to use CLI in the background and check the progress time to time. The best way is to run the process in a TMUX session and detach it. It is possible to check the progress by attaching the TMUX session.

Example:

  1. $ tmux
  2. $ python3 conversion.py
  3. Press [CTRL]+[b], then [d] to detach the TMUX session.
  4. Now it is okay to log off.

    DO NOT SHUT DOWN THE MACHINE!!

  5. $ tmux a to attach the session and check the progress

Trust Score and DUA generator

Use Trust score and Data Usage Agreement (DUA) generator to generate optional Trust Score and DUA data.

python3 trustscore_dua_generator.py

trustscore_dua_generator

Metadata

Release files for synthea-rdf 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synthea-rdf 0.2
File Size Uploaded
synthea-rdf-0.2.tar.gz 656.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for synthea-rdf 0.2
File Interpreter ABI Platform
synthea_rdf-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 687.4 kB

Release files / synthea-rdf-0.2.tar.gz

Download URL synthea-rdf-0.2.tar.gz
Size 656.9 kB
Tags Source
SHA-256 checksum
How to use checksums
60de458d52e8b3ed1f22d1c741f5100ce5293515b06ffca395c4cf55b7a48b63
BLAKE2b-256 checksum
How to use checksums
69d060eb88073aaf188c19485d960154fc59fc95ae5d7192b513f89edd401265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / synthea_rdf-0.2-py3-none-any.whl

Download URL synthea_rdf-0.2-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ed3e1b6bfc96ee5c5f87fc84b5adc977317b194769941bb09b7750b74f85273
BLAKE2b-256 checksum
How to use checksums
b40a55c47903fa697b7296e3828206c034896acdb19994c67384344787e3a958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1.6

1 release file

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page