Skip to main content
PK_OS // v0.5.2 // ● SYSTEM ONLINE
[ RETURN_TO_PROJECTS ]

PROJECT_05 // HEALTHCARE_DATA_SCIENCE

LONG-TERM OPIOID PATIENT RISK ANALYSIS

Professional work at OPOS: longitudinal prescription analysis, rule-based risk stratification and supervised patient-category classification.

DEMONSTRATION ONLY: All records and parameters below are fictional. Not a clinical decision tool. No original patient data or production model is included.

01 // ANALYTICAL_ARCHITECTURE

DATA PREPARATION
Patient and prescription integration
TEMPORAL ANALYSIS
Prescription gaps and accumulated supply
POPULATION ANALYTICS
MEDD distributions and medication exposure
SUPERVISED ML
Multiclass logistic regression

02 // SYNTHETIC_POPULATION

PATIENTS
MEAN MEDD
DEMO LTOT FLAGS

MEDD DISTRIBUTION (mg/day)

Generated locally using a fixed seed; counts are calculated from 1,000 fictional records.

03 // LONGITUDINAL_EXPOSURE_ENGINE

Compare accumulated prescription supply with unique covered days. The source algorithm tracks gaps against the latest end date and resets accumulated supply when a gap exceeds a configurable limit.

ACCUMULATED SUPPLY
UNIQUE DAYS IN CURRENT CHAIN
LATEST ROW DEMO FLAG

04 // MACHINE_LEARNING_ARCHITECTURE

The reviewed classifier uses seven input variables and a scikit-learn ColumnTransformer feeding balanced logistic regression.

NUMERIC
Age, consecutive days, MEDD → median imputation and scaling
CATEGORICAL
Gender, age group → missing token and one-hot encoding
TEXT
Medication ingredients → normalization and 1–2 gram counts
BOOLEAN
LTOT flag → normalization and integer encoding

The independent synthetic training experiment is available below. No original OPOS model performance is claimed.

05 // METHODOLOGY_AND_BOUNDARIES

The original repositories contain modular prescription processing, MEDD reporting, medication overlap analysis, practice and attendance analytics, and a separate supervised classifier. The demonstration is an independent reconstruction, not a reproduction of production risk rules or evidence of clinical validity.

Classification labels are not established as future adverse-event outcomes. Production integration and original model performance remain unverified.

06 // MACHINE_LEARNING_LABORATORY

Offline experiment: 2,000 independent fictional patients, 1,500 training and 500 held-out test records, stratified split, seed 42. Classes A/B/C are generated from synthetic exposure variables plus random noise; they are not clinical outcomes. This experiment measures recovery of fictional categories, not clinical validity.

TEST ACCURACY
MACRO F1

CONFUSION_MATRIX // rows actual, columns predicted

PER_CLASS_METRICS

HELD_OUT_PATIENT_EXPLORER

COEFFICIENT_EXPLORER

Coefficients describe model associations, not causal effects. This independent experiment uses normalized fictional ingredient tokens and pre-normalized Boolean values. No original model or records were used.

07 // ADVANCED_STATISTICAL_ANALYTICS

Independent synthetic cohort: 1,200 fictional patients across six fictional practices. Seed 1414. These records are separate from the population and ML experiments above. Associations are simulated, not clinical findings.

COHORT SIZE
MEAN MEDD
MEDIAN MEDD
OVERLAP RATE

DESCRIPTIVE_STATISTICS

Sample standard deviation (n−1); quartiles use linear interpolation. MEDD is expressed in morphine-equivalent mg/day.

EXPOSURE_AND_ENGAGEMENT

Horizontal: MEDD (mg/day). Vertical: attended appointments (0–12). Each point is a fictional patient; orange indicates simulated medication overlap.

PEARSON_CORRELATION_MATRIX

Pearson correlation measures linear association, not causation. Undefined correlations are shown as N/A.

PRACTICE_LEVEL_COMPARISON

Attendance rate is attended appointments divided by scheduled appointments. Comparisons reflect the active filters and are not practice quality ratings.

08 // PROFESSIONAL_METHODOLOGY

The professional project combines longitudinal prescription processing, exposure analysis, rule-based categorization and supervised multiclass classification. The public laboratory independently reconstructs selected analytical concepts with fictional data. It does not reproduce proprietary rules, original patient records, trained OPOS artifacts or verified clinical performance. No output is intended for clinical decision-making.

Type 'help' to list available commands.