Clinically Realistic Hospital Data Simulator — physiology-driven synthetic EHR / FHIR R4 generator
Developed at InterSystems · Not an official InterSystems product (details)
⚠️ Synthetic data only — fully synthetic output. Not for clinical use. clinosim does not ingest, reference, or reproduce any real patient data / PHI / PII.
clinosim generates synthetic EHR data through forward simulation from a population. Every patient carries a hidden 14-variable physiological state (clinosim/types/clinical.py::PhysiologicalState), and every observation (labs, vitals, medications, diagnoses) is derived from that state — so the data is clinically coherent by construction.
pip install clinosim Development install from a clone:
git clone https://github.com/TomoOkuyama/clinosim.git cd clinosim python -m venv .venv && source .venv/bin/activate pip install -e ".[dev]" Quick start Generate a small US cohort and inspect its FHIR output:
clinosim simulate --country US --population 100 --seed 42 \ --output ./out --format fhir-r4 ls ./out/fhir_r4/ # Patient.ndjson, Encounter.ndjson, ... For the JP cohort, named-preset datasets, hospital-config override, and the full CLI reference, see docs/getting-started/configuration.md.
For a JP warfarin-anticoagulated patient, clinosim's physiology engine places the patient in the therapeutic PT-INR band and emits a lab value (e.g. 2.7) inside that range — not by sampling a "PT-INR normal range", but because the hidden state chose it. Remove the warfarin and next run's INR drops back to ~1.0.
Full JSON walkthrough → docs/getting-started/first-cohort.md
Most synthetic-EHR tools produce records by sampling from disease distributions. clinosim runs the disease — the CKD patient's ED creatinine is elevated even when presenting for something unrelated; the sepsis patient shows the WBC / CRP / lactate cascade.
Prior-art comparison (Synthea): docs/synthea-comparison.md.
clinosim is developed by an engineer at InterSystems and released under the MIT License as an open-source contribution to the healthcare AI developer community.
It is not an official InterSystems product. It is not part of InterSystems IRIS for Health or any other commercial offering, and it carries no InterSystems support, warranty, or roadmap commitment. Issues and pull requests are handled here on GitHub, not through InterSystems support channels.
MIT — see LICENSE. Bundled code-system data follows each upstream registry's licence; details in clinosim/codes/README.md.
Note: the top-level clinosim/ Python package has no dedicated README by design. Module-level documentation lives under clinosim/modules/, and framework docs sit alongside each subsystem — audit/, eval/, codes/, benchmarks/.
clinical-data ehr emr fhir healthcare hl7 jp-core medical-ai simulation synthetic-data
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.




