SCOOP
SCOOP is a Python library designed to generate synthetic oncology patient data conforming to the OMOP Common Data Model (CDM). It provides tools to create realistic patient profiles, including demographics, diagnoses, treatments, and outcomes, facilitating dataset alignment and software development for healthcare analytics without compromising patient privacy.
Key Features
- HemOnc integration — realistic longitudinal roll-out of systemic therapy regimens.
- Configurable attributes — define demographic, clinical, and molecular distributions via YAML or code.
- CDM compatibility — outputs data natively aligned to OMOP tables and concept identifiers.
- Composable design — easily extend distributions, conditional logic, and transformation rules for new disease domains.
Principles
The functionality of SCOOP should be considered in four broad phases:
- Sampling: Drawing samples from defined statistical distributions to create individual patient attributes.
- Simulation: Rules-based roll out of patient trajectories based on clinical logic and treatment regimens, aligned to generated attributes.
- Synthesis: Applying defined transformations to the sampled attributes to generate the final patient data
- Serialisation: Converting the generated patient data into a format compatible with the OMOP CDM for storage and analysis.
Flow
- a Person object is created with basic attributes (sampled from flat distributions - no dependencies)
- a Condition object is created for that person, with attributes sampled conditionally based on the Person attributes
- a Regimen object may optionally be created for that condition x person combination, sampled conditionally based on both Person and Condition attributes
- exposure events (procedures, drug administration events) are created based on the Regimen object
- treatment response and outcome events are created based on the Condition and Regimen objects
- all objects are serialised to OMOP CDM tables
Start here
Install the project dependencies with uv:
uv sync
Choose a guide
- Documentation home: find the guide for your task.
- Treatment schedules: understand dates, repeated cycles, optional treatment, and unresolved timing.
- How treatment matching works: understand how a treatment decision connects to HemOnc regimen candidates.
- Create a profile: add or adapt a disease profile.
- Validate profile YAML: check the canonical authoring files.
Profiles
Profiles are YAML files under scoop/profiles/. NSCLC is the most complete example of the current graph, treatment registry, intervention catalog, and routed-profile format. See Create a profile before copying or extending one.
Development
Install development dependencies and run the test suite:
uv sync --extra dev
uv run pytest -q
Metadata
Release files for onco-scoop 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onco_scoop-0.1.0.tar.gz | 183.2 kB | With provenance | Details for onco_scoop-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onco_scoop-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for onco_scoop-0.1.0-py3-none-any.whl |
Total release size: 359.2 kB
Release files / onco_scoop-0.1.0.tar.gz
| Download URL | onco_scoop-0.1.0.tar.gz |
|---|---|
| Size | 183.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f6af990e04e5a48b614b58b2560af76968a7d6422a696fd987bc9c1a0f93284
|
|
BLAKE2b-256 checksum How to use checksums |
5228455783cabfd666e5dfb731117155b84a2148f62849a4367f06901d292b8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logRelease files / onco_scoop-0.1.0-py3-none-any.whl
| Download URL | onco_scoop-0.1.0-py3-none-any.whl |
|---|---|
| Size | 176.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d97c1b767e06e10319fc37c6288eeb5e6595ddb3a4f699c257c3d035e1e56229
|
|
BLAKE2b-256 checksum How to use checksums |
fc89428c5013f9f1d0d064faed1e793d40cd71ebc3f396216b7f44da60548dee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logSecurity for onco-scoop 0.1.0
Provenance
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for onco_scoop-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.