Developers Models guide
Models guide
What each condition card predicts, when it does not score, every feature with its codes, windows, and weights, the calibration and risk bands, the validation recorded in the model file, the follow-up questions for the patient, the next steps shown to clinicians, and the test patients with their expected results.
Generated by analysis/build_models_guide.py from the model files, the test vectors, the card text of the CDS Hooks service, the patient questionnaire design, the validation results reported in the papers, and the Lyme county table (opendata/processed/lyme_county_incidence.csv). Do not edit by hand; rerun the script.
Long COVID (unm-longcovid 1.2.0)
Model file model/longcovid.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Future Long COVID diagnosis code. First ICD-10-CM U09.9 code 91-455 days after the first documented COVID-19 diagnosis.
- Population: Adults with documented COVID-19 and no Long COVID code by day 90.
- Timing: scored from day 90 to day 455 after the index event; the outcome window is days 91 to 455. Predictors are read through day 90, so a chart scored later gets the day-90 estimate.
- Day 0: the earliest Condition coded ICD-10-CM U07.1 dated on or after July 2, 2021 (
index_event.earliest_date, the training cohort's shifted-date era start) and on or before the scoring date; positive SARS-CoV-2 tests (LOINC 94500-6, 94309-2, 94534-5, 94558-4, 95209-3) are listed but not used, becauseuse_positive_testsis false.
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to adults later coded with Long COVID." The number is shown as "N times the average for adults 90 days after COVID-19" and as the "Estimated probability, as of day 90, of a Long COVID code 91 to 455 days after COVID-19". The model predicts a future Long COVID code, and codes miss most cases, so the card keeps the "not a diagnosis" line.
When it does not score
- No index event: "no documented COVID-19 index event" ("... on or after 2021-07-02" when the chart has only earlier COVID-19 diagnoses).
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 at the COVID-19 index (the model covers adults)".
- Fewer than 90 days between day 0 and the scoring date.
- More than 455 days between day 0 and the scoring date: "outside the model's time window".
- A Condition coded ICD-10-CM U09.9 or SNOMED CT 1119303003 or 1119304009 or 1325161000000102 is dated on or before the scoring date (before, on, or after the index date), or has no usable date: "a Long COVID diagnosis is already recorded".
- No encounters in days -365 to -1 (W0, W1): "no encounters in the year before COVID-19 (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
W0 | -365 to -91 |
W1 | -90 to -1 |
W2 | 0 to 30 |
W3 | 31 to 90 |
Features (69, of which 57 carry a weight)
Each feature is 0 or 1. Features with weight 0 are still evaluated, because a derived count feature counts every feature in its group, but they never appear as drivers. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | -0.247895 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | -0.068725 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | -0.038744 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | 0.270792 |
age_70p | Age 70+ | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | -0.21015 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | 0.207423 |
sym_dyspnea | New: shortness of breath | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R06.0 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0.776553 |
sym_cough | New: cough | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R05 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0.562928 |
sym_chest_pain | New: chest pain | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R07 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0.830356 |
sym_msk_pain | New: muscle or joint pain | New symptoms | Condition (new_onset) | ICD-10-CM prefix: M79.1, M25.5, M79.6, M79.7 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0.700514 |
sym_count_ge2 | Two or more new symptom types | New symptoms | derived (derived_count_ge) | at least 2 features of group "New symptoms" present | as its group | 0.683606 |
hx_asthma | History: asthma | Prior conditions | Condition (any) | ICD-10-CM prefix: J45 | days -365 to -1 (W0, W1) | 0.440153 |
hx_copd | History: COPD | Prior conditions | Condition (any) | ICD-10-CM prefix: J44 | days -365 to -1 (W0, W1) | 0.658129 |
hx_diabetes | History: diabetes | Prior conditions | Condition (any) | ICD-10-CM prefix: E10, E11 | days -365 to -1 (W0, W1) | 0.381039 |
hx_obesity | History: obesity | Prior conditions | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -365 to -1 (W0, W1) | 0.422637 |
hx_hypertension | History: hypertension | Prior conditions | Condition (any) | ICD-10-CM prefix: I10 | days -365 to -1 (W0, W1) | 0.239287 |
hx_depression | History: depression | Prior conditions | Condition (any) | ICD-10-CM prefix: F32, F33 | days -365 to -1 (W0, W1) | 0.668623 |
hx_anxiety | History: anxiety | Prior conditions | Condition (any) | ICD-10-CM prefix: F41 | days -365 to -1 (W0, W1) | 0.461967 |
hx_migraine | History: migraine | Prior conditions | Condition (any) | ICD-10-CM prefix: G43 | days -365 to -1 (W0, W1) | 0.267112 |
hx_chronic_pain | History: chronic pain | Prior conditions | Condition (any) | ICD-10-CM prefix: G89 | days -365 to -1 (W0, W1) | 0.462634 |
hx_sleep_apnea | History: sleep apnea | Prior conditions | Condition (any) | ICD-10-CM prefix: G47.33 | days -365 to -1 (W0, W1) | 0.754842 |
hx_autoimmune | History: autoimmune | Prior conditions | Condition (any) | ICD-10-CM prefix: M05, M06, M32, L40, K50, K51, M45 | days -365 to -1 (W0, W1) | 0.353891 |
hx_hypothyroid | History: hypothyroid | Prior conditions | Condition (any) | ICD-10-CM prefix: E03 | days -365 to -1 (W0, W1) | 0.239087 |
hx_heart_disease | History: heart disease | Prior conditions | Condition (any) | ICD-10-CM prefix: I25, I50 | days -365 to -1 (W0, W1) | 0.065752 |
acute_inpatient | Hospitalized around the COVID diagnosis | Acute illness | Encounter (encounter_any) | Encounter.class IMP (at least one Encounter) | days -3 to 30 | 0.566488 |
acute_ed | Emergency visit in the first month | Acute illness | Encounter (encounter_any) | Encounter.class EMER (at least one Encounter) | days 0 to 30 | 0.464286 |
out_w0_ge4 | 4+ outpatient visits in the baseline year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 4 Encounters) | days -365 to -91 (W0) | 0.268347 |
out_w3_ge2 | 2+ outpatient visits in days 31-90 | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 2 Encounters) | days 31 to 90 (W3) | 0.479927 |
out_w3_ge4 | 4+ outpatient visits in days 31-90 | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 4 Encounters) | days 31 to 90 (W3) | 0.623184 |
ed_w3_any | Emergency visit in days 31-90 | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days 31 to 90 (W3) | 0.544081 |
ip_w3_any | Hospital stay in days 31-90 | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days 31 to 90 (W3) | 0.627951 |
visit_rate_up | Visit rate after COVID at least double the baseline rate | Health care use | Encounter (encounter_rate_ratio_ge) | Encounter.class AMB, EMER (rate ratio at least 2.0) | visits per day in days 31 to 90 (W3) against days -365 to -91 (W0) | 0.083971 |
test_chest_ct | Chest CT | Tests after COVID | Procedure (any) | CPT: 71250, 71260, 71270, 71271, 71275 | days 0 to 90 (W2, W3) | 1.100903 |
test_chest_xray | Chest X-ray | Tests after COVID | Procedure (any) | CPT: 71045, 71046, 71047, 71048 | days 0 to 90 (W2, W3) | 0.588097 |
lab_d_dimer | D-dimer test | Tests after COVID | Observation (any) | LOINC: 15179-5, 29280-5, 38898-3, 42499-4, 42727-8, 48058-2, 48065-7, 48066-5, 48067-3, 55398-22 more71427-9, 91556-1 | days 0 to 90 (W2, W3) | 0.831808 |
lab_troponin | Troponin test | Tests after COVID | Observation (any) | LOINC: 101375-4, 101865-4, 101911-6, 101912-4, 101913-2, 101914-0, 101915-7, 101916-5, 101917-3, 101918-115 more10839-9, 33204-9, 42757-5, 48425-3, 48426-1, 49563-0, 6597-9, 6598-7, 67151-1, 76399-5, 89575-5, 89576-3, 89577-1, 89578-9, 89579-7 | days 0 to 90 (W2, W3) | 0.741017 |
lab_natriuretic | BNP or NT-proBNP test | Tests after COVID | Observation (any) | LOINC: 30934-4, 33762-6, 33763-4, 42637-9, 47092-2, 71425-3, 77621-1, 77622-9, 83107-3, 83108-1 | days 0 to 90 (W2, W3) | 0.544609 |
lab_tsh | Thyroid (TSH) test | Tests after COVID | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days 0 to 90 (W2, W3) | 0.447952 |
lab_ferritin | Ferritin test | Tests after COVID | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days 0 to 90 (W2, W3) | 0.529826 |
lab_crp | C-reactive protein test | Tests after COVID | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days 0 to 90 (W2, W3) | 0.753055 |
lab_vitamin_d | Vitamin D test | Tests after COVID | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days 0 to 90 (W2, W3) | 0.551808 |
lab_b12 | Vitamin B12 test | Tests after COVID | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days 0 to 90 (W2, W3) | 0.608043 |
rx_inhaler | New inhaler | New medications | MedicationRequest (new_onset) | RxNorm ingredients: albuterol, fluticasone, budesonide, mometasone, beclomethasone, tiotropium, formoterol, salmeterol (1174 RxCUIs listed in the model file) | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0.765785 |
rx_systemic_steroid | New oral or injected steroid | New medications | MedicationRequest (new_onset) | RxNorm ingredients: prednisone, methylprednisolone, dexamethasone, prednisolone (1254 RxCUIs listed in the model file) | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0.403106 |
sym_any_fatigue | Fatigue or malaise (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: R53, G93.3 | days 0 to 90 | 0.852829 |
sym_any_dyspnea | Shortness of breath (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: R06.0 | days 0 to 90 | 1.042229 |
sym_any_cough | Cough (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: R05 | days 0 to 90 | 0.520265 |
sym_any_chest_pain | Chest pain (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: R07 | days 0 to 90 | 0.656634 |
sym_any_autonomic | Palpitations, tachycardia, POTS, or orthostatic hypotension (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1 | days 0 to 90 | 0.673716 |
sym_any_mood | Anxiety or depression (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: F41, F32, F33, F43 | days 0 to 90 | 0.602672 |
sym_any_msk_pain | Muscle or joint pain (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6, M79.7 | days 0 to 90 | 0.740182 |
sym_any_gi | Gastrointestinal symptoms (coded by day 90) | Symptoms after COVID | Condition (any) | ICD-10-CM prefix: R10, R11, R14, R19, K58, K59 | days 0 to 90 | 0.439641 |
sym_any_w3_count_ge2 | 2+ symptom types coded in days 31-90 | Symptoms after COVID | Condition (cluster_count_ge) | at least 2 of these symptom clusters coded fatigue: R53, G93.3 dyspnea: R06.0 cough: R05 chest pain: R07 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1 cognitive: R41, G31.84 headache: R51, G44 dizzy syncope: R42, R55 smell taste: R43 sleep: G47.0, G47.1, G47.8, G47.9, F51 mood: F41, F32, F33, F43 msk pain: M79.1, M25.5, M79.6, M79.7 gi: R10, R11, R14, R19, K58, K59 paresthesia: R20, G62.9 hair loss: L65.9 fever: R50 | days 31 to 90 | 0.933329 |
sym_any_w3_count_ge3 | 3+ symptom types coded in days 31-90 | Symptoms after COVID | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53, G93.3 dyspnea: R06.0 cough: R05 chest pain: R07 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1 cognitive: R41, G31.84 headache: R51, G44 dizzy syncope: R42, R55 smell taste: R43 sleep: G47.0, G47.1, G47.8, G47.9, F51 mood: F41, F32, F33, F43 msk pain: M79.1, M25.5, M79.6, M79.7 gi: R10, R11, R14, R19, K58, K59 paresthesia: R20, G62.9 hair loss: L65.9 fever: R50 | days 31 to 90 | 0.954975 |
covid_code_w3 | COVID-19 still coded at a follow-up visit (days 31-90) | Coding after COVID | Condition (any) | ICD-10-CM prefix: U07.1 | days 31 to 90 | 1.210176 |
covid_history_code | Personal history of COVID-19 coded (days 31-90) | Coding after COVID | Condition (any) | ICD-10-CM prefix: Z86.16 | days 31 to 90 | 1.291872 |
late_visit_61_90 | Visit in days 61-90 | Health care use | Encounter (encounter_any) | Encounter.class AMB, EMER (at least one Encounter) | days 61 to 90 | 0.252437 |
sym_fatigue | New: fatigue or malaise | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R53, G93.3 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_autonomic | New: palpitations, tachycardia, pots, or orthostatic hypotension | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_cognitive | New: cognitive symptoms (brain fog, memory) | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R41, G31.84 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_headache | New: headache | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R51, G44 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_dizzy_syncope | New: dizziness or fainting | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R42, R55 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_smell_taste | New: loss or change of smell or taste | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R43 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_sleep | New: sleep disturbance | New symptoms | Condition (new_onset) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_mood | New: anxiety or depression | New symptoms | Condition (new_onset) | ICD-10-CM prefix: F41, F32, F33, F43 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_gi | New: gastrointestinal symptoms | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R10, R11, R14, R19, K58, K59 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_paresthesia | New: tingling, numbness, or neuropathy | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R20, G62.9 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_hair_loss | New: hair loss | New symptoms | Condition (new_onset) | ICD-10-CM prefix: L65.9 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
sym_fever | New: fever | New symptoms | Condition (new_onset) | ICD-10-CM prefix: R50 | days 0 to 90 (W2, W3); none in days -365 to -1 (W0, W1) | 0 |
Score, calibration, and risk bands
score = -8.961961 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.010316 (about 1.0%).
Calibration points come from a logistic on binned training-split counts (a = -3.940748, b = 0.189525).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 1.55% | 1.50 |
| Elevated | 3.09% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -9.9378 | 0.29% |
| -9.2528 | 0.34% |
| -8.5677 | 0.38% |
| -7.8827 | 0.43% |
| -7.1976 | 0.49% |
| -6.5126 | 0.56% |
| -5.8275 | 0.64% |
| -5.1425 | 0.73% |
| -4.4575 | 0.83% |
| -3.7724 | 0.94% |
| -3.0874 | 1.07% |
| -2.4023 | 1.22% |
| -1.7173 | 1.38% |
| -1.0323 | 1.57% |
| -0.3472 | 1.79% |
| 0.3378 | 2.03% |
| 1.0229 | 2.30% |
| 1.7079 | 2.62% |
| 2.393 | 2.97% |
| 3.078 | 3.37% |
| 3.763 | 3.81% |
| 4.4481 | 4.32% |
| 5.1331 | 4.89% |
| 5.8182 | 5.53% |
| 6.5032 | 6.25% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10); no participant-level data or participant-trained model left Workbench.
- Features note: Condition features use ICD-10-CM codes from both the condition and the observation tables, except 15 features that kept their condition-table-only training definitions: adding observation-table codes would have changed their counts by 1 to 20 patients relative to counts already released, which the disclosure rules do not allow.
- Paper: Paper 1 on the Research page describes how the model was built and validated.
- Open data: CDC/NCHS Household Pulse Survey, Post-COVID Conditions (gsea-w83j); CMS Medicare Physician & Other Practitioners by Geography and Service, CY2024; NLM RxNorm, LOINC, ICD-10-CM vocabularies.
| Validation split | Value |
|---|---|
| AUROC | 0.6736 |
| AUPRC | 0.0282 |
| Validation patients | 4,680 |
| Validation patients later coded | 50 |
| Comparator AUROC: elastic-net logistic regression fit to participant-level data | 0.6804 |
| Comparator AUROC: bagged positive-unlabeled learning fit to participant-level data | 0.6727 |
Values from the model file, measured in a random 20% validation split of the training cohort. Details are in Paper 1.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
- The label is a future Long COVID code. Codes miss most cases, so a Typical band does not mean the patient is well.
Follow-up questions for the patient
About 5 minutes. Everything scored uses a validated instrument; the app's item wording is in web/web/patient/instruments.js.
| Part | Instrument | What it measures | Scoring | Source |
|---|---|---|---|---|
| A | RECOVER-Adult Long COVID Research Index, 2024 update | Symptoms that best separate Long COVID from no Long COVID | Weighted points; 11 or more = "likely Long COVID" (point values from the Table of Geng et al. 2025; item wording from the RECOVER questionnaire, Thaweethai et al. JAMA 2023, Supplement 3) | Geng LN et al. JAMA 2025;333(8):694-700, doi:10.1001/jama.2024.24184 |
| B | DePaul Symptom Questionnaire, post-exertional malaise short form | Post-exertional malaise, the hallmark of ME/CFS and common in Long COVID, almost never coded | 5 items on frequency and severity; screen positive by the published rule | Cotler J et al. Diagnostics 2018;8(3):66, doi:10.3390/diagnostics8030066 |
| C | Post-COVID-19 Functional Status (PCFS) scale | How much symptoms limit daily life | One grade, 0 (no limitation) to 4 (severe) | Klok FA et al. Eur Respir J 2020, doi:10.1183/13993003.01494-2020 |
| D | Change since before COVID (unscored context) | The model's main signals in the patient's words | Shown to the clinician, not scored | Derived from the model; to be validated |
A. RECOVER 2024 symptom list
Yes or no for each symptom; points add up. 11 or more = "likely", 1 to 10 = "possible" (Geng et al., JAMA 2025;333:694–700). Each question asks whether the symptom is present now, in the RECOVER questionnaire wording (Thaweethai et al., JAMA 2023, Supplement 3, eTable 1; the wording per item is in web/web/patient/instruments.js). In the published index, fatigue, brain fog, and chest pain also need a severity score (PROMIS Global-10 fatigue item, Neuro-QoL Cognition short form, Seattle Angina Questionnaire-7); the app counts a Yes and says so on the result, so its total can exceed the research index by up to 5 points.
| Symptom | Points |
|---|---|
| loss of smell or taste | 7 |
| post-exertional malaise | 6 |
| chronic cough | 4 |
| brain fog | 3 |
| palpitations | 2 |
| dizziness | 2 |
| shortness of breath | 2 |
| thirst | 1 |
| chest pain | 1 |
| fatigue | 1 |
| snoring or sleep apnea | 1 |
B. DePaul Symptom Questionnaire, post-exertional malaise (DSQ-PEM)
"For each symptom below, please circle one number for frequency and one number for severity."
- Frequency: "Throughout the past 6 months, how often have you had this symptom?" 0 = none of the time, 1 = a little of the time, 2 = about half the time, 3 = most of the time, 4 = all of the time.
- Severity: "Throughout the past 6 months, how much has this symptom bothered you?" 0 = symptom not present, 1 = mild, 2 = moderate, 3 = severe, 4 = very severe.
- Dead, heavy feeling after starting to exercise
- Next day soreness or fatigue after non-strenuous, everyday activities
- Mentally tired after the slightest effort
- Minimum exercise makes you physically tired
- Physically drained or sick after mild activity
Screen rule: screen positive if, on at least one of items 1–5, frequency is 2 or higher and severity is 2 or higher.
Optional context item for the clinician, not part of the rule: "If you feel worse after activities, how long does this last?" < 1 h, 2–3 h, 4–10 h, 11–13 h, 14–23 h, ≥ 24 h.
Attribution: "DePaul Symptom Questionnaire PEM items (Cotler et al., Diagnostics 2018), CC BY 4.0." Do not reword, reorder, or rescale the items.
C. Post-COVID-19 Functional Status (PCFS) scale
"How much are you currently affected in your everyday life by COVID-19? Please indicate which one of the following statements applies to you most. Please tick only one box at a time."
| Statement | Grade |
|---|---|
| I have no limitations in my everyday life and no symptoms, pain, depression or anxiety. | 0 |
| I have negligible limitations in my everyday life as I can perform all usual duties/activities, although I still have persistent symptoms, pain, depression or anxiety. | 1 |
| I suffer from limitations in my everyday life as I occasionally need to avoid or reduce usual duties/activities or need to spread these over time due to symptoms, pain, depression or anxiety. I am, however, able to perform all activities without any assistance. | 2 |
| I suffer from limitations in my everyday life as I am not able to perform all usual duties/activities due to symptoms, pain, depression or anxiety. I am, however, able to take care of myself without any assistance. | 3 |
| I suffer from severe limitations in my everyday life: I am not able to take care of myself and therefore I am dependent on nursing care and/or assistance from another person due to symptoms, pain, depression or anxiety. | 4 |
Rules from the form: the answer concerns the average situation of the past week; if two grades seem to apply, choose the higher one. Show the grade with its label: 0 no functional limitations, 1 negligible, 2 slight, 3 moderate, 4 severe.
Attribution: "Post-COVID-19 Functional Status scale (Klok et al., Eur Respir J 2020), version 2."
D. Change since before COVID (unscored context)
Each item is answered "much more / somewhat more / about the same / less" compared with before your COVID infection.
- How tired you feel during a normal day.
- How short of breath you get with activities you used to do easily.
- How often your heart races or pounds, especially when you stand up.
- How often you have trouble thinking, concentrating, or remembering.
- How often you have seen a doctor or gone to urgent care or the emergency department.
Next steps shown to clinicians
- Review the dated chart findings behind the score (each driver links to the resources that triggered it).
- Ask the patient to complete the follow-up questions below (RECOVER symptom list, DePaul PEM screen, PCFS grade, change items); the answers come back as a FHIR QuestionnaireResponse labeled "patient report".
- Flag for clinician review if the chart band is High, or the RECOVER score is 11 or more, or the PEM screen is positive. The chart probability and the questionnaire scores are never added into one number.
- If the review supports post-COVID illness, the card names the next step: a post-COVID clinic referral or clinical trial screening.
Sources: the patient questionnaire design, which sets the triage rule in step 3.
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-longcovid-1.2.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | should score high | High, 6.25% (6.06 times the average) | 3+ symptom types coded in days 31-90; Personal history of COVID-19 coded (days 31-90); COVID-19 still coded at a follow-up visit (days 31-90) |
| James | should score low | Typical, 0.43% (0.42 times the average) | New: cough; Cough (coded by day 90); Age 40-49 |
| Rosa | already coded: not scored | not scored: a Long COVID diagnosis is already recorded | |
| Lee | no COVID: not scored | not scored: no documented COVID-19 index event | |
| Nora | no baseline encounters: not scored | not scored: no encounters in the year before COVID-19 (insufficient history) | |
| Dana | built for the Lyme card | not scored: no documented COVID-19 index event | |
| Elena | built for the Chronic fatigue and ME/CFS card | not scored: no documented COVID-19 index event | |
| Omar | built for the Chronic fatigue and ME/CFS card | not scored: no documented COVID-19 index event | |
| Grace | built for the Chronic fatigue and ME/CFS card | not scored: no documented COVID-19 index event | |
| Sofia | built for the Fibromyalgia card | not scored: no documented COVID-19 index event | |
| Priya | Long COVID code before the COVID-19 index: not scored | not scored: a Long COVID diagnosis is already recorded | |
| Sam | Long COVID code (SNOMED) on the index date: not scored | not scored: a Long COVID diagnosis is already recorded | |
| Theo | Long COVID code on day 90, the landmark day: not scored | not scored: a Long COVID diagnosis is already recorded | |
| Yara | undated Long COVID code: not scored | not scored: a Long COVID diagnosis is already recorded | |
| Vera | COVID-19 508 days before, past day 455: not scored | not scored: more than 455 days since the COVID-19 index (outside the model's time window) | |
| Will | partial dates, a pre-era infection, and refuted or future Long COVID codes: should score (index 2023-12-05) | Typical, 0.49% (0.48 times the average) | Shortness of breath (coded by day 90); New: shortness of breath; Age 40-49 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 at the COVID-19 index (the model covers adults) |
Chronic fatigue and ME/CFS (unm-chronicfatigue 1.0.0)
Model file model/chronicfatigue.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported chronic fatigue diagnosis. Participant reports having been told by a clinician that they have chronic fatigue (All of Us Personal and Family Health History survey).
- Population: Adults with an EHR visit in the past year and no chronic fatigue or ME/CFS code (ICD-10-CM G93.3, R53.82).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to patients who report a chronic fatigue or ME/CFS diagnosis that was never coded." The number is shown as "N times the average for adults with a visit in the past year" and as the "Probability that the patient reports a chronic fatigue diagnosis". It is a prompt to ask the patient, not a diagnosis.
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM G93.3 or R53.82 is dated on or before day 0, or has no usable date: "a chronic fatigue or ME/CFS diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (73, of which 73 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | 0.489792 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | 0.583748 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | 0.320034 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | -0.423285 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | -1.013379 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | 0.910153 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | 0.670716 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | 0.774788 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | 0.727156 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | 0.536925 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | 0.887045 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | 0.585676 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | 0.561932 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | 0.773621 |
cx_migraine | Migraine | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G43 | days -1825 to -1 (H) | 1.097934 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | 0.177264 |
cx_fibromyalgia | Fibromyalgia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.7 | days -1825 to -1 (H) | 2.431874 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | 0.638573 |
cx_depression | Depression | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F32, F33 | days -1825 to -1 (H) | 0.921373 |
cx_anxiety | Anxiety | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F41 | days -1825 to -1 (H) | 0.790211 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 1.237668 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | 0.493963 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | 0.211643 |
cx_fever | Fever | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R50 | days -1825 to -1 (H) | 0.391684 |
cx_ebv_mono | Infectious mononucleosis (EBV) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: B27 | days -1825 to -1 (H) | 0.887581 |
cx_lyme | Lyme disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: A69.2 | days -1825 to -1 (H) | -0.271162 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | 0.08205 |
cx_long_covid | Long COVID | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U09.9 | days -1825 to -1 (H) | 1.206585 |
cx_eds_hypermobility | Ehlers-Danlos syndrome or hypermobility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: Q79.6, M35.7 | days -1825 to -1 (H) | 2.403742 |
cx_mast_cell | Mast cell disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D89.4 | days -1825 to -1 (H) | 2.449947 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | 0.342808 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | 0.39724 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | 0.292694 |
cx_autoimmune | Autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M32, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | 0.975025 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | 0.3161 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | 0.191133 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | -0.103328 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | 0.019584 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | -0.340299 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83 sleep: G47.0, G47.1, G47.8, G47.9, F51 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | 0.713187 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83 sleep: G47.0, G47.1, G47.8, G47.9, F51 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | 1.115405 |
px_tilt | Tilt-table test | Tests and evaluations | Procedure (any) | CPT: 93660 | days -1825 to -1 (H) | 1.700041 |
px_sleep_study | Sleep study | Tests and evaluations | Procedure (any) | CPT: 95806, 95807, 95808, 95809, 95810, 95811, G0398, G0399, G0400 | days -1825 to -1 (H) | 0.556376 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | 0.584632 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | 0.116374 |
px_cardiac_monitor | Holter or event monitor | Tests and evaluations | Procedure (any) | CPT: 93224, 93225, 93226, 93227, 93228, 93229, 93241, 93242, 93243, 93244, 93245, 93246, 93247, 93248, 93268, 93269, 93270, 93271, 93272 | days -1825 to -1 (H) | 0.26169 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | 0.027442 |
px_neuropsych | Neuropsychological testing | Tests and evaluations | Procedure (any) | CPT: 96132, 96133, 96136, 96137, 96138, 96139 | days -1825 to -1 (H) | 0.826992 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | 0.123131 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | 0.397745 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.662508 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.694428 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | 0.373015 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 0.945915 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 0.96582 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 1.010238 |
lab_ebv | Epstein-Barr virus test | Lab tests ordered | Observation (any) | LOINC: 100677-4, 100678-2, 101817-5, 11009-8, 11010-6, 12212-7, 13236-5, 13237-3, 13238-1, 14083-0135 more16823-7, 16824-5, 16825-2, 16826-0, 16827-8, 18427-5, 18428-3, 20432-1, 20490-9, 20491-7, 21260-5, 22290-1, 22291-9, 22292-7, 22293-5, 22294-3, 22295-0, 22296-8, 22297-6, 22298-4, 23858-4, 23970-7, 23971-5, 23972-3, 23994-7, 23995-4, 23996-2, 24007-7, 24114-1, 24115-8, 24316-2, 26705-4, 30083-0, 30136-6, 30137-4, 30138-2, 30339-6, 30340-4, 31369-2, 31370-0, 31371-8, 31372-6, 31373-4, 31374-2, 31375-9, 32585-2, 32828-6, 32829-4, 32830-2, 32843-5, 32844-3, 32845-0, 33395-5, 33479-7, 34593-4, 34639-5, 35397-9, 35398-7, 36923-1, 40750-2, 40751-0, 40752-8, 40753-6, 42497-8, 42498-6, 43730-1, 47064-1, 47066-6, 47068-2, 47072-4, 47432-0, 47433-8, 47434-6, 47435-3, 47436-1, 47437-9, 47982-4, 48723-1, 49069-8, 49178-7, 49352-8, 49353-6, 49354-4, 49355-1, 49356-9, 49564-8, 5002-1, 5003-9, 5004-7, 5005-4, 50969-5, 51454-7, 5153-2, 5154-0, 5155-7, 5156-5, 5157-3, 5158-1, 5159-9, 5160-7, 53774-6, 56598-6, 56599-4, 58760-0, 59183-4, 59805-2, 66493-8, 6814-8, 6815-5, 69949-6, 72206-6, 7882-4, 7883-2, 7884-0, 7885-7, 7886-5, 81119-0, 83095-0, 84871-3, 84872-1, 87554-2, 93711-0, 93712-8, 93713-6, 93714-4, 93840-7, 93841-5, 94102-1, 94827-3, 94828-1, 94829-9, 94830-7, 95138-4, 9633-9, 97993-0 | days -1825 to -1 (H) | 0.613875 |
lab_lyme | Lyme disease test | Lab tests ordered | Observation (any) | LOINC: 100711-1, 101149-3, 101352-3, 101353-1, 101357-2, 101358-0, 101403-4, 103961-9, 10846-4, 10847-2265 more11006-4, 11007-2, 11550-1, 11551-9, 12781-1, 12860-3, 12861-1, 12862-9, 12863-7, 12864-5, 12865-2, 12866-0, 12867-8, 12868-6, 12869-4, 12873-6, 12874-4, 12877-7, 12878-5, 12879-3, 12880-1, 12881-9, 12882-7, 12883-5, 12884-3, 12885-0, 12886-8, 12887-6, 12888-4, 12889-2, 12890-0, 12891-8, 12892-6, 12896-7, 13202-7, 13203-5, 13204-3, 13205-0, 13206-8, 13207-6, 13502-0, 13503-8, 14077-2, 14078-0, 16475-6, 16476-4, 16477-2, 16478-0, 16479-8, 16480-6, 16481-4, 16482-2, 18201-4, 18202-2, 18203-0, 19052-0, 20449-5, 21116-9, 21117-7, 21118-5, 21119-3, 21120-1, 22118-4, 22119-2, 22120-0, 22121-8, 22122-6, 22123-4, 22124-2, 22125-9, 22126-7, 22127-5, 22128-3, 22129-1, 22130-9, 22131-7, 22132-5, 22133-3, 22134-1, 22135-8, 22136-6, 22137-4, 23676-0, 23833-7, 23966-5, 23977-2, 23978-0, 23979-8, 23980-6, 23981-4, 23982-2, 23983-0, 23984-8, 23985-5, 26006-7, 27982-8, 27985-1, 27986-9, 27992-7, 28002-4, 28036-2, 28037-0, 28039-6, 28040-4, 28043-8, 28048-7, 28053-7, 28054-5, 28055-2, 28056-0, 28057-8, 28058-6, 28062-8, 29898-4, 29952-9, 30010-3, 30011-1, 30012-9, 30013-7, 30014-5, 30015-2, 30016-0, 30017-8, 30018-6, 30019-4, 30020-2, 30021-0, 30128-3, 30526-8, 31155-5, 31268-6, 31269-4, 31738-8, 32666-0, 32667-8, 32668-6, 32669-4, 33931-7, 33932-5, 34148-7, 34942-3, 34943-1, 35638-6, 38173-1, 38174-9, 40612-4, 41279-1, 42236-0, 42237-8, 42238-6, 42239-4, 42589-2, 42767-4, 43074-4, 43075-1, 43076-9, 43077-7, 43573-5, 43842-4, 44020-6, 44452-1, 44453-9, 44454-7, 44455-4, 44456-2, 44946-2, 44947-0, 44948-8, 44949-6, 45165-8, 45189-8, 46174-9, 46248-1, 47304-1, 48500-3, 48651-4, 4991-6, 49973-1, 49974-9, 49975-6, 49976-4, 49977-2, 49978-0, 49979-8, 49980-6, 49981-4, 49982-2, 49983-0, 49984-8, 49991-3, 49992-1, 49993-9, 49994-7, 49995-4, 49996-2, 49997-0, 49998-8, 5060-9, 5061-7, 5062-5, 5063-3, 5064-1, 5065-8, 51742-5, 51743-3, 51744-1, 51745-8, 51746-6, 51747-4, 53362-0, 53363-8, 53364-6, 53730-8, 55726-4, 57916-9, 60342-3, 60343-1, 62341-3, 62342-1, 6318-0, 6319-8, 6320-6, 6321-4, 6322-2, 67823-5, 67825-0, 7817-0, 7818-8, 79708-4, 79709-2, 83080-2, 83081-0, 87423-0, 87547-6, 90893-9, 94247-4, 94250-8, 94475-1, 94476-9, 94477-7, 9586-9, 9587-7, 9588-5, 9589-3, 9590-1, 9591-9, 9592-7, 9593-5, 9594-3, 9595-0, 9596-8, 9597-6, 9598-4, 9599-2, 96427-0, 96428-8, 96429-6, 96430-4, 96431-2, 96432-0, 98204-1, 98205-8, 98206-6, 98207-4, 98208-2 | days -1825 to -1 (H) | 0.575929 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 1.168388 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.874456 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.626329 |
rx_naltrexone | Naltrexone | Medications | MedicationRequest (any) | RxNorm ingredients: naltrexone (114 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.171087 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.26461 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.094156 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.149882 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.925638 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.636441 |
rx_pots | POTS medication | Medications | MedicationRequest (any) | RxNorm ingredients: ivabradine, midodrine, fludrocortisone, pyridostigmine (122 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.766644 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.714435 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | 0.365597 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | 0.46548 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | 0.71396 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | 0.349585 |
Score, calibration, and risk bands
score = -9.410605 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.05148 (about 5.1%).
Calibration points come from a logistic on binned training-split counts (a = -2.743357, b = 0.164731).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 7.72% | 1.50 |
| Elevated | 15.4% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -12.8676 | 0.77% |
| -11.0688 | 1.03% |
| -9.27 | 1.38% |
| -7.4712 | 1.85% |
| -5.6724 | 2.47% |
| -3.8736 | 3.29% |
| -2.0747 | 4.37% |
| -0.2759 | 5.79% |
| 1.5229 | 7.64% |
| 3.3217 | 10.0% |
| 5.1205 | 13.0% |
| 6.9193 | 16.7% |
| 8.7181 | 21.3% |
| 10.5169 | 26.7% |
| 12.3157 | 32.9% |
| 14.1145 | 39.7% |
| 15.9133 | 47.0% |
| 17.7121 | 54.3% |
| 19.5109 | 61.6% |
| 21.3098 | 68.3% |
| 23.1086 | 74.3% |
| 24.9074 | 79.6% |
| 26.7062 | 84.0% |
| 28.505 | 87.6% |
| 30.3038 | 90.5% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Label: Trained on self-reported diagnoses: adults who answered in the All of Us Personal and Family Health History survey that a clinician had told them they have chronic fatigue. Everyone in the training cohort had no chronic fatigue or ME/CFS code by the survey date, and most of these self-reported diagnoses were never coded afterward: 95% of the self-reporters had no code observed after the survey (Paper 3).
- Paper: Paper 3 on the Research page describes how the model was built and validated.
- Shrinkage variance (tau²): 0.838643.
- Features eligible: 73.
| Validation split | Value |
|---|---|
| AUROC: Self-reported diagnosis | 0.74 (95% CI, 0.73 to 0.76) |
| AUROC: Self-reported diagnosis with no code observed after the survey | 0.74 (95% CI, 0.72 to 0.75) |
Measured inside the All of Us Researcher Workbench in a random 20% validation split of the training cohort, for the summary-count score built from the same released counts as this file. 95% confidence intervals are from 200 bootstrap resamples of the validation split. Validation was on one cohort; the model has not been validated at other health systems. Details are in Paper 3.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
- The label is a survey self-report of a diagnosis, given by adults who had no code for it at the time; most of these diagnoses were never coded afterward. A self-report does not establish the condition, and the model inherits the limits of self-report.
Follow-up questions for the patient
DePaul Symptom Questionnaire, post-exertional malaise (DSQ-PEM)
"For each symptom below, please circle one number for frequency and one number for severity."
- Frequency: "Throughout the past 6 months, how often have you had this symptom?" 0 = none of the time, 1 = a little of the time, 2 = about half the time, 3 = most of the time, 4 = all of the time.
- Severity: "Throughout the past 6 months, how much has this symptom bothered you?" 0 = symptom not present, 1 = mild, 2 = moderate, 3 = severe, 4 = very severe.
- Dead, heavy feeling after starting to exercise
- Next day soreness or fatigue after non-strenuous, everyday activities
- Mentally tired after the slightest effort
- Minimum exercise makes you physically tired
- Physically drained or sick after mild activity
Screen rule: screen positive if, on at least one of items 1–5, frequency is 2 or higher and severity is 2 or higher.
Optional context item for the clinician, not part of the rule: "If you feel worse after activities, how long does this last?" < 1 h, 2–3 h, 4–10 h, 11–13 h, 14–23 h, ≥ 24 h.
Attribution: "DePaul Symptom Questionnaire PEM items (Cotler et al., Diagnostics 2018), CC BY 4.0." Do not reword, reorder, or rescale the items.
Clinician checklist: IOM 2015 ME/CFS criteria
Diagnosis requires all of the following (Institute of Medicine, Beyond Myalgic Encephalomyelitis/Chronic Fatigue Syndrome, 2015):
- Substantial reduction in pre-illness activity, lasting more than 6 months, with fatigue
- Post-exertional malaise
- Unrefreshing sleep
- At least one of: cognitive impairment, or orthostatic intolerance
The checklist is shown to the clinician and is not scored by the app.
Next steps shown to clinicians
- Review the dated chart findings behind the score.
- Ask the patient to complete the DePaul post-exertional malaise screen above.
- Walk through the IOM 2015 criteria checklist above with the patient; the checklist records the clinician's judgment and is not scored by the app.
Sources: the IOM 2015 report and the DePaul screen (citations above).
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-chronicfatigue-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 5.42% (1.05 times the average) | C-reactive protein test; Female; Cognitive symptoms (brain fog, memory) |
| James | built for the Long COVID card | Typical, 1.51% (0.29 times the average) | Age 40-49; COVID-19 |
| Rosa | built for the Long COVID card | Typical, 2.04% (0.40 times the average) | Long COVID; Female; Age 50-59 |
| Lee | built for the Long COVID card | Typical, 1.47% (0.29 times the average) | Age 18-39 |
| Nora | built for the Long COVID card | Typical, 1.73% (0.34 times the average) | Female; Age 18-39; COVID-19 |
| Dana | built for the Lyme card | Typical, 1.71% (0.33 times the average) | Female; Age 50-59; Muscle or joint pain |
| Elena | long fatigue work-up, never coded: should score high | High, 16.9% (3.29 times the average) | Five or more symptom types; POTS medication; Tilt-table test |
| Omar | routine care: should score typical | Typical, 1.47% (0.28 times the average) | Age 40-49; Hypertension |
| Grace | already coded: not scored | not scored: a chronic fatigue or ME/CFS diagnosis is already recorded | |
| Sofia | built for the Fibromyalgia card | High, 16.7% (3.24 times the average) | Five or more symptom types; SSRI or SNRI antidepressant; Gabapentin or pregabalin |
| Priya | built for the Long COVID card | Typical, 2.69% (0.52 times the average) | Long COVID; Female; Fatigue or malaise coded in the past year |
| Sam | built for the Long COVID card | Typical, 1.82% (0.35 times the average) | Fatigue or malaise coded in the past year; Fatigue or malaise coded; Age 50-59 |
| Theo | built for the Long COVID card | Typical, 2.29% (0.44 times the average) | Long COVID; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Yara | built for the Long COVID card | Typical, 2.19% (0.42 times the average) | Female; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Vera | built for the Long COVID card | Typical, 1.87% (0.36 times the average) | Female; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Will | built for the Long COVID card | Typical, 1.51% (0.29 times the average) | Age 40-49; COVID-19 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |
Fibromyalgia (unm-fibromyalgia 1.0.0)
Model file model/fibromyalgia.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported fibromyalgia diagnosis. Participant reports having been told by a clinician that they have fibromyalgia (All of Us Personal and Family Health History survey).
- Population: Adults with an EHR visit in the past year and no fibromyalgia code (ICD-10-CM M79.7).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to patients who report a fibromyalgia diagnosis that was never coded." The number is shown as "N times the average for adults with a visit in the past year" and as the "Probability that the patient reports a fibromyalgia diagnosis". It is a prompt to ask the patient, not a diagnosis.
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM M79.7 is dated on or before day 0, or has no usable date: "a fibromyalgia diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (80, of which 80 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | -0.252785 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | 0.442721 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | 0.404008 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | -0.022255 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | -0.532782 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | 1.418259 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | 0.060234 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | 0.224383 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | 0.171624 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | 0.081631 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | 0.326286 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | 0.142701 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | 0.063471 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | 0.331228 |
cx_migraine | Migraine | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G43 | days -1825 to -1 (H) | 0.500329 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | -0.13902 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | 0.314535 |
cx_depression | Depression | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F32, F33 | days -1825 to -1 (H) | 0.27067 |
cx_anxiety | Anxiety | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F41 | days -1825 to -1 (H) | 0.175487 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 0.603062 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | 0.057334 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | -0.205929 |
cx_fever | Fever | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R50 | days -1825 to -1 (H) | 0.045511 |
cx_lyme | Lyme disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: A69.2 | days -1825 to -1 (H) | 0.144907 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | -0.148889 |
cx_long_covid | Long COVID | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U09.9 | days -1825 to -1 (H) | 0.829315 |
cx_eds_hypermobility | Ehlers-Danlos syndrome or hypermobility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: Q79.6, M35.7 | days -1825 to -1 (H) | 1.518964 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | 0.123162 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | -0.148498 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | -0.144336 |
cx_autoimmune | Autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M32, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | 0.666699 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | -0.004027 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | -0.06933 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | -0.29179 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | -0.177444 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | -0.519467 |
cx_cfs | Chronic fatigue or ME/CFS | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G93.3, R53.82 | days -1825 to -1 (H) | 0.615446 |
cx_tmj | Temporomandibular joint disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M26.6 | days -1825 to -1 (H) | 0.591086 |
cx_rls | Restless legs syndrome | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G25.81 | days -1825 to -1 (H) | 0.551027 |
cx_interstitial_cystitis | Interstitial cystitis or bladder pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N30.1 | days -1825 to -1 (H) | 0.887849 |
cx_osteoarthritis | Osteoarthritis | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M15, M16, M17, M18, M19 | days -1825 to -1 (H) | -0.01737 |
cx_neck_back_pain | Neck or low back pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.2, M54.5 | days -1825 to -1 (H) | 0.223033 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | 0.120593 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | 0.44464 |
px_sleep_study | Sleep study | Tests and evaluations | Procedure (any) | CPT: 95806, 95807, 95808, 95809, 95810, 95811, G0398, G0399, G0400 | days -1825 to -1 (H) | 0.209498 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | 0.158937 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | -0.10988 |
px_cardiac_monitor | Holter or event monitor | Tests and evaluations | Procedure (any) | CPT: 93224, 93225, 93226, 93227, 93228, 93229, 93241, 93242, 93243, 93244, 93245, 93246, 93247, 93248, 93268, 93269, 93270, 93271, 93272 | days -1825 to -1 (H) | 0.006251 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | -0.049903 |
px_neuropsych | Neuropsychological testing | Tests and evaluations | Procedure (any) | CPT: 96132, 96133, 96136, 96137, 96138, 96139 | days -1825 to -1 (H) | 0.602407 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | 0.014746 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | 0.097727 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.394368 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.463123 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | 0.17151 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 0.763016 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 0.872717 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 0.856091 |
lab_ebv | Epstein-Barr virus test | Lab tests ordered | Observation (any) | LOINC: 100677-4, 100678-2, 101817-5, 11009-8, 11010-6, 12212-7, 13236-5, 13237-3, 13238-1, 14083-0135 more16823-7, 16824-5, 16825-2, 16826-0, 16827-8, 18427-5, 18428-3, 20432-1, 20490-9, 20491-7, 21260-5, 22290-1, 22291-9, 22292-7, 22293-5, 22294-3, 22295-0, 22296-8, 22297-6, 22298-4, 23858-4, 23970-7, 23971-5, 23972-3, 23994-7, 23995-4, 23996-2, 24007-7, 24114-1, 24115-8, 24316-2, 26705-4, 30083-0, 30136-6, 30137-4, 30138-2, 30339-6, 30340-4, 31369-2, 31370-0, 31371-8, 31372-6, 31373-4, 31374-2, 31375-9, 32585-2, 32828-6, 32829-4, 32830-2, 32843-5, 32844-3, 32845-0, 33395-5, 33479-7, 34593-4, 34639-5, 35397-9, 35398-7, 36923-1, 40750-2, 40751-0, 40752-8, 40753-6, 42497-8, 42498-6, 43730-1, 47064-1, 47066-6, 47068-2, 47072-4, 47432-0, 47433-8, 47434-6, 47435-3, 47436-1, 47437-9, 47982-4, 48723-1, 49069-8, 49178-7, 49352-8, 49353-6, 49354-4, 49355-1, 49356-9, 49564-8, 5002-1, 5003-9, 5004-7, 5005-4, 50969-5, 51454-7, 5153-2, 5154-0, 5155-7, 5156-5, 5157-3, 5158-1, 5159-9, 5160-7, 53774-6, 56598-6, 56599-4, 58760-0, 59183-4, 59805-2, 66493-8, 6814-8, 6815-5, 69949-6, 72206-6, 7882-4, 7883-2, 7884-0, 7885-7, 7886-5, 81119-0, 83095-0, 84871-3, 84872-1, 87554-2, 93711-0, 93712-8, 93713-6, 93714-4, 93840-7, 93841-5, 94102-1, 94827-3, 94828-1, 94829-9, 94830-7, 95138-4, 9633-9, 97993-0 | days -1825 to -1 (H) | 0.12271 |
lab_lyme | Lyme disease test | Lab tests ordered | Observation (any) | LOINC: 100711-1, 101149-3, 101352-3, 101353-1, 101357-2, 101358-0, 101403-4, 103961-9, 10846-4, 10847-2265 more11006-4, 11007-2, 11550-1, 11551-9, 12781-1, 12860-3, 12861-1, 12862-9, 12863-7, 12864-5, 12865-2, 12866-0, 12867-8, 12868-6, 12869-4, 12873-6, 12874-4, 12877-7, 12878-5, 12879-3, 12880-1, 12881-9, 12882-7, 12883-5, 12884-3, 12885-0, 12886-8, 12887-6, 12888-4, 12889-2, 12890-0, 12891-8, 12892-6, 12896-7, 13202-7, 13203-5, 13204-3, 13205-0, 13206-8, 13207-6, 13502-0, 13503-8, 14077-2, 14078-0, 16475-6, 16476-4, 16477-2, 16478-0, 16479-8, 16480-6, 16481-4, 16482-2, 18201-4, 18202-2, 18203-0, 19052-0, 20449-5, 21116-9, 21117-7, 21118-5, 21119-3, 21120-1, 22118-4, 22119-2, 22120-0, 22121-8, 22122-6, 22123-4, 22124-2, 22125-9, 22126-7, 22127-5, 22128-3, 22129-1, 22130-9, 22131-7, 22132-5, 22133-3, 22134-1, 22135-8, 22136-6, 22137-4, 23676-0, 23833-7, 23966-5, 23977-2, 23978-0, 23979-8, 23980-6, 23981-4, 23982-2, 23983-0, 23984-8, 23985-5, 26006-7, 27982-8, 27985-1, 27986-9, 27992-7, 28002-4, 28036-2, 28037-0, 28039-6, 28040-4, 28043-8, 28048-7, 28053-7, 28054-5, 28055-2, 28056-0, 28057-8, 28058-6, 28062-8, 29898-4, 29952-9, 30010-3, 30011-1, 30012-9, 30013-7, 30014-5, 30015-2, 30016-0, 30017-8, 30018-6, 30019-4, 30020-2, 30021-0, 30128-3, 30526-8, 31155-5, 31268-6, 31269-4, 31738-8, 32666-0, 32667-8, 32668-6, 32669-4, 33931-7, 33932-5, 34148-7, 34942-3, 34943-1, 35638-6, 38173-1, 38174-9, 40612-4, 41279-1, 42236-0, 42237-8, 42238-6, 42239-4, 42589-2, 42767-4, 43074-4, 43075-1, 43076-9, 43077-7, 43573-5, 43842-4, 44020-6, 44452-1, 44453-9, 44454-7, 44455-4, 44456-2, 44946-2, 44947-0, 44948-8, 44949-6, 45165-8, 45189-8, 46174-9, 46248-1, 47304-1, 48500-3, 48651-4, 4991-6, 49973-1, 49974-9, 49975-6, 49976-4, 49977-2, 49978-0, 49979-8, 49980-6, 49981-4, 49982-2, 49983-0, 49984-8, 49991-3, 49992-1, 49993-9, 49994-7, 49995-4, 49996-2, 49997-0, 49998-8, 5060-9, 5061-7, 5062-5, 5063-3, 5064-1, 5065-8, 51742-5, 51743-3, 51744-1, 51745-8, 51746-6, 51747-4, 53362-0, 53363-8, 53364-6, 53730-8, 55726-4, 57916-9, 60342-3, 60343-1, 62341-3, 62342-1, 6318-0, 6319-8, 6320-6, 6321-4, 6322-2, 67823-5, 67825-0, 7817-0, 7818-8, 79708-4, 79709-2, 83080-2, 83081-0, 87423-0, 87547-6, 90893-9, 94247-4, 94250-8, 94475-1, 94476-9, 94477-7, 9586-9, 9587-7, 9588-5, 9589-3, 9590-1, 9591-9, 9592-7, 9593-5, 9594-3, 9595-0, 9596-8, 9597-6, 9598-4, 9599-2, 96427-0, 96428-8, 96429-6, 96430-4, 96431-2, 96432-0, 98204-1, 98205-8, 98206-6, 98207-4, 98208-2 | days -1825 to -1 (H) | 0.351245 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 0.802328 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.68409 |
lab_rf | Rheumatoid factor test | Lab tests ordered | Observation (any) | LOINC: 11572-5, 11573-3, 13634-1, 13929-5, 13930-3, 14034-3, 15203-3, 15204-1, 15205-8, 15206-628 more17534-9, 17857-4, 25745-1, 25746-9, 29351-4, 30231-5, 31046-6, 33313-8, 33314-6, 33577-8, 33648-7, 33910-1, 43932-3, 45156-7, 46435-4, 46437-0, 5297-7, 5298-5, 5299-3, 5300-9, 53562-5, 53924-7, 63313-1, 63314-9, 63315-6, 6823-9, 6928-6, 9338-5 | days -1825 to -1 (H) | 1.0372 |
lab_ccp | Anti-CCP antibody test | Lab tests ordered | Observation (any) | LOINC: 32218-0, 33935-8, 42898-7, 46435-4, 46437-0, 53027-9, 53028-7, 57093-7, 63217-4, 63375-02 more82576-0, 94874-5 | days -1825 to -1 (H) | 1.112898 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.151201 |
rx_naltrexone | Naltrexone | Medications | MedicationRequest (any) | RxNorm ingredients: naltrexone (114 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.986071 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.067999 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.02849 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.189872 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.798984 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.523748 |
rx_pots | POTS medication | Medications | MedicationRequest (any) | RxNorm ingredients: ivabradine, midodrine, fludrocortisone, pyridostigmine (122 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.230711 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.672035 |
rx_milnacipran | Milnacipran | Medications | MedicationRequest (any) | RxNorm ingredients: milnacipran (28 RxCUIs listed in the model file) | days -1825 to -1 (H) | 3.803082 |
rx_nsaid | NSAID pain reliever | Medications | MedicationRequest (any) | RxNorm ingredients: naproxen, ibuprofen, meloxicam, diclofenac, ketorolac (1712 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.578664 |
rx_muscle_relaxant | Muscle relaxant | Medications | MedicationRequest (any) | RxNorm ingredients: tizanidine, methocarbamol, baclofen (237 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.220985 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | 0.182756 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | 0.273678 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | 0.47388 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | -0.006032 |
Score, calibration, and risk bands
score = -7.555595 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.032152 (about 3.2%).
Calibration points come from a logistic on binned training-split counts (a = -2.842966, b = 0.253208).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 4.82% | 1.50 |
| Elevated | 9.65% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -11.5493 | 0.31% |
| -10.2719 | 0.43% |
| -8.9946 | 0.59% |
| -7.7172 | 0.82% |
| -6.4398 | 1.13% |
| -5.1624 | 1.55% |
| -3.885 | 2.13% |
| -2.6077 | 2.92% |
| -1.3303 | 3.99% |
| -0.0529 | 5.44% |
| 1.2245 | 7.36% |
| 2.5018 | 9.89% |
| 3.7792 | 13.2% |
| 5.0566 | 17.3% |
| 6.334 | 22.5% |
| 7.6113 | 28.6% |
| 8.8887 | 35.6% |
| 10.1661 | 43.3% |
| 11.4435 | 51.4% |
| 12.7208 | 59.3% |
| 13.9982 | 66.9% |
| 15.2756 | 73.6% |
| 16.553 | 79.4% |
| 17.8303 | 84.2% |
| 19.1077 | 88.0% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Label: Trained on self-reported diagnoses: adults who answered in the All of Us Personal and Family Health History survey that a clinician had told them they have fibromyalgia. Everyone in the training cohort had no fibromyalgia code by the survey date, and most of these self-reported diagnoses were never coded afterward: 89% of the self-reporters had no code observed after the survey (Paper 3).
- Paper: Paper 3 on the Research page describes how the model was built and validated.
- Shrinkage variance (tau²): 0.564462.
- Features eligible: 80.
| Validation split | Value |
|---|---|
| AUROC: Self-reported diagnosis | 0.72 (95% CI, 0.71 to 0.74) |
| AUROC: Self-reported diagnosis with no code observed after the survey | 0.73 (95% CI, 0.71 to 0.74) |
Measured inside the All of Us Researcher Workbench in a random 20% validation split of the training cohort, for the summary-count score built from the same released counts as this file. 95% confidence intervals are from 200 bootstrap resamples of the validation split. Validation was on one cohort; the model has not been validated at other health systems. Details are in Paper 3.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
- The label is a survey self-report of a diagnosis, given by adults who had no code for it at the time; most of these diagnoses were never coded afterward. A self-report does not establish the condition, and the model inherits the limits of self-report.
Follow-up questions for the patient
Clinician checklist: 2016 revised fibromyalgia diagnostic criteria
A patient meets the criteria when all of the following hold (Wolfe F et al. 2016 revisions to the 2010/2011 fibromyalgia diagnostic criteria. Semin Arthritis Rheum 2016;46(3):319-329, doi:10.1016/j.semarthrit.2016.08.012):
- Widespread Pain Index (WPI) of 7 or more and Symptom Severity Scale (SSS) score of 5 or more, or WPI of 4 to 6 and SSS of 9 or more
- Generalized pain: pain in at least 4 of 5 body regions (jaw, chest, and abdominal pain do not count toward it)
- Symptoms present at a similar level for at least 3 months
- The diagnosis is valid irrespective of other diagnoses and does not exclude other clinically important illnesses
The checklist is shown to the clinician and is not scored by the app.
Next steps shown to clinicians
- Review the dated chart findings behind the score.
- Assess the patient with the 2016 revised fibromyalgia diagnostic criteria above, using the Widespread Pain Index and the Symptom Severity Scale.
- The checklist records the clinician's judgment and is not scored by the app.
Sources: Wolfe et al. 2016 (citation above).
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-fibromyalgia-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 2.73% (0.85 times the average) | Female; C-reactive protein test; Beta blocker |
| James | built for the Long COVID card | Typical, 0.93% (0.29 times the average) | Age 40-49; COVID-19 |
| Rosa | built for the Long COVID card | Typical, 1.60% (0.50 times the average) | Female; Long COVID; Age 50-59 |
| Lee | built for the Long COVID card | Typical, 0.80% (0.25 times the average) | Age 18-39 |
| Nora | built for the Long COVID card | Typical, 1.10% (0.34 times the average) | Female; COVID-19; Age 18-39 |
| Dana | built for the Lyme card | Typical, 1.32% (0.41 times the average) | Female; Age 50-59; Muscle or joint pain |
| Elena | built for the Chronic fatigue and ME/CFS card | Typical, 3.96% (1.23 times the average) | Female; POTS medication; Stimulant or wakefulness drug |
| Omar | built for the Chronic fatigue and ME/CFS card | Typical, 0.89% (0.28 times the average) | Age 40-49; Hypertension |
| Grace | built for the Chronic fatigue and ME/CFS card | Typical, 1.59% (0.49 times the average) | Female; Chronic fatigue or ME/CFS; Age 40-49 |
| Sofia | years of widespread pain, negative rheumatology work-up, never coded | High, 30.9% (9.60 times the average) | Female; Muscle relaxant; Gabapentin or pregabalin |
| Priya | built for the Long COVID card | Typical, 1.75% (0.54 times the average) | Female; Long COVID; Age 40-49 |
| Sam | built for the Long COVID card | Typical, 0.99% (0.31 times the average) | Age 50-59; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Theo | built for the Long COVID card | Typical, 1.03% (0.32 times the average) | Long COVID; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Yara | built for the Long COVID card | Typical, 1.19% (0.37 times the average) | Female; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Vera | built for the Long COVID card | Typical, 1.27% (0.39 times the average) | Female; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Will | built for the Long COVID card | Typical, 0.93% (0.29 times the average) | Age 40-49; COVID-19 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |
Endometriosis (unm-endometriosis 1.0.0)
Model file model/endometriosis.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported endometriosis diagnosis. Participant reports having been told by a clinician that they have endometriosis (All of Us Personal and Family Health History survey).
- Population: Women with an EHR visit in the past year and no endometriosis code (ICD-10-CM N80).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to women who report an endometriosis diagnosis that was never coded." The number is shown as "N times the average for women with a visit in the past year" and as the "Probability that the patient reports an endometriosis diagnosis".
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM N80 is dated on or before day 0, or has no usable date: "an endometriosis diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (90, of which 90 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | -0.809 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | 0.040091 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | 0.203706 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | 0.239167 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | 0.142928 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | 0.213696 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | 0.213768 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | 0.19364 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | 0.374368 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | 0.28477 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | 0.172511 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | 0.186338 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | 0.195611 |
cx_migraine | Migraine | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G43 | days -1825 to -1 (H) | 0.354064 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | 0.114614 |
cx_fibromyalgia | Fibromyalgia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.7 | days -1825 to -1 (H) | 0.750387 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | 0.246491 |
cx_depression | Depression | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F32, F33 | days -1825 to -1 (H) | 0.144486 |
cx_anxiety | Anxiety | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F41 | days -1825 to -1 (H) | 0.122778 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 0.388218 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | 0.235731 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | -0.003898 |
cx_fever | Fever | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R50 | days -1825 to -1 (H) | 0.183784 |
cx_lyme | Lyme disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: A69.2 | days -1825 to -1 (H) | -0.067427 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | 0.042982 |
cx_long_covid | Long COVID | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U09.9 | days -1825 to -1 (H) | 0.200547 |
cx_eds_hypermobility | Ehlers-Danlos syndrome or hypermobility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: Q79.6, M35.7 | days -1825 to -1 (H) | 0.553945 |
cx_mast_cell | Mast cell disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D89.4 | days -1825 to -1 (H) | 0.66439 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | 0.239703 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | 0.069039 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | 0.08571 |
cx_autoimmune | Autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M32, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | 0.308856 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | 0.036298 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | 0.120036 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | 0.256913 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | 0.309201 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | 0.10188 |
cx_pelvic_pain | Pelvic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R10.2 | days -1825 to -1 (H) | 0.186635 |
cx_dysmenorrhea | Painful periods (dysmenorrhea) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N94.4, N94.5, N94.6 | days -1825 to -1 (H) | 0.256662 |
cx_dyspareunia | Pain with intercourse | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N94.1 | days -1825 to -1 (H) | 0.259699 |
cx_menstrual | Heavy or irregular menstrual bleeding | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N92 | days -1825 to -1 (H) | -0.611174 |
cx_infertility | Female infertility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N97 | days -1825 to -1 (H) | -0.361386 |
cx_ovarian_cyst | Ovarian cyst | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N83.2 | days -1825 to -1 (H) | 0.037743 |
cx_fibroids | Uterine fibroids | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D25 | days -1825 to -1 (H) | -0.013628 |
cx_pcos | Polycystic ovary syndrome | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E28.2 | days -1825 to -1 (H) | -0.165205 |
cx_interstitial_cystitis | Interstitial cystitis or bladder pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N30.1 | days -1825 to -1 (H) | 0.748166 |
cx_back_pain | Low back pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.5 | days -1825 to -1 (H) | 0.220645 |
cx_constipation | Constipation | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K59.0 | days -1825 to -1 (H) | 0.204372 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83 sleep: G47.0, G47.1, G47.8, G47.9, F51 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, R10.2, N94.1, M54.5 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19, K59.0 immune: J02, R59, R50 menstrual: N94.4, N94.5, N94.6, N92 urinary: N30.1 | days -1825 to -1 | 0.188333 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83 sleep: G47.0, G47.1, G47.8, G47.9, F51 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, R10.2, N94.1, M54.5 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19, K59.0 immune: J02, R59, R50 menstrual: N94.4, N94.5, N94.6, N92 urinary: N30.1 | days -1825 to -1 | 0.301708 |
px_tilt | Tilt-table test | Tests and evaluations | Procedure (any) | CPT: 93660 | days -1825 to -1 (H) | 0.448017 |
px_sleep_study | Sleep study | Tests and evaluations | Procedure (any) | CPT: 95806, 95807, 95808, 95809, 95810, 95811, G0398, G0399, G0400 | days -1825 to -1 (H) | 0.270888 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | 0.175115 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | 0.218244 |
px_cardiac_monitor | Holter or event monitor | Tests and evaluations | Procedure (any) | CPT: 93224, 93225, 93226, 93227, 93228, 93229, 93241, 93242, 93243, 93244, 93245, 93246, 93247, 93248, 93268, 93269, 93270, 93271, 93272 | days -1825 to -1 (H) | 0.281183 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | 0.310112 |
px_neuropsych | Neuropsychological testing | Tests and evaluations | Procedure (any) | CPT: 96132, 96133, 96136, 96137, 96138, 96139 | days -1825 to -1 (H) | 0.436608 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | 0.17809 |
px_pelvic_us | Pelvic or transvaginal ultrasound | Tests and evaluations | Procedure (any) | CPT: 76830, 76856, 76857 | days -1825 to -1 (H) | -0.138356 |
px_hysterectomy | Hysterectomy | Tests and evaluations | Procedure (any) | CPT: 58150, 58570, 58571, 58572, 58573 | days -1825 to -1 (H) | 0.35961 |
px_pelvic_mri | Pelvic MRI | Tests and evaluations | Procedure (any) | CPT: 72195, 72196, 72197 | days -1825 to -1 (H) | 0.39973 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | 0.012551 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.131807 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.230225 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | 0.049632 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 0.310794 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 0.389346 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 0.353959 |
lab_ebv | Epstein-Barr virus test | Lab tests ordered | Observation (any) | LOINC: 100677-4, 100678-2, 101817-5, 11009-8, 11010-6, 12212-7, 13236-5, 13237-3, 13238-1, 14083-0135 more16823-7, 16824-5, 16825-2, 16826-0, 16827-8, 18427-5, 18428-3, 20432-1, 20490-9, 20491-7, 21260-5, 22290-1, 22291-9, 22292-7, 22293-5, 22294-3, 22295-0, 22296-8, 22297-6, 22298-4, 23858-4, 23970-7, 23971-5, 23972-3, 23994-7, 23995-4, 23996-2, 24007-7, 24114-1, 24115-8, 24316-2, 26705-4, 30083-0, 30136-6, 30137-4, 30138-2, 30339-6, 30340-4, 31369-2, 31370-0, 31371-8, 31372-6, 31373-4, 31374-2, 31375-9, 32585-2, 32828-6, 32829-4, 32830-2, 32843-5, 32844-3, 32845-0, 33395-5, 33479-7, 34593-4, 34639-5, 35397-9, 35398-7, 36923-1, 40750-2, 40751-0, 40752-8, 40753-6, 42497-8, 42498-6, 43730-1, 47064-1, 47066-6, 47068-2, 47072-4, 47432-0, 47433-8, 47434-6, 47435-3, 47436-1, 47437-9, 47982-4, 48723-1, 49069-8, 49178-7, 49352-8, 49353-6, 49354-4, 49355-1, 49356-9, 49564-8, 5002-1, 5003-9, 5004-7, 5005-4, 50969-5, 51454-7, 5153-2, 5154-0, 5155-7, 5156-5, 5157-3, 5158-1, 5159-9, 5160-7, 53774-6, 56598-6, 56599-4, 58760-0, 59183-4, 59805-2, 66493-8, 6814-8, 6815-5, 69949-6, 72206-6, 7882-4, 7883-2, 7884-0, 7885-7, 7886-5, 81119-0, 83095-0, 84871-3, 84872-1, 87554-2, 93711-0, 93712-8, 93713-6, 93714-4, 93840-7, 93841-5, 94102-1, 94827-3, 94828-1, 94829-9, 94830-7, 95138-4, 9633-9, 97993-0 | days -1825 to -1 (H) | 0.167721 |
lab_lyme | Lyme disease test | Lab tests ordered | Observation (any) | LOINC: 100711-1, 101149-3, 101352-3, 101353-1, 101357-2, 101358-0, 101403-4, 103961-9, 10846-4, 10847-2265 more11006-4, 11007-2, 11550-1, 11551-9, 12781-1, 12860-3, 12861-1, 12862-9, 12863-7, 12864-5, 12865-2, 12866-0, 12867-8, 12868-6, 12869-4, 12873-6, 12874-4, 12877-7, 12878-5, 12879-3, 12880-1, 12881-9, 12882-7, 12883-5, 12884-3, 12885-0, 12886-8, 12887-6, 12888-4, 12889-2, 12890-0, 12891-8, 12892-6, 12896-7, 13202-7, 13203-5, 13204-3, 13205-0, 13206-8, 13207-6, 13502-0, 13503-8, 14077-2, 14078-0, 16475-6, 16476-4, 16477-2, 16478-0, 16479-8, 16480-6, 16481-4, 16482-2, 18201-4, 18202-2, 18203-0, 19052-0, 20449-5, 21116-9, 21117-7, 21118-5, 21119-3, 21120-1, 22118-4, 22119-2, 22120-0, 22121-8, 22122-6, 22123-4, 22124-2, 22125-9, 22126-7, 22127-5, 22128-3, 22129-1, 22130-9, 22131-7, 22132-5, 22133-3, 22134-1, 22135-8, 22136-6, 22137-4, 23676-0, 23833-7, 23966-5, 23977-2, 23978-0, 23979-8, 23980-6, 23981-4, 23982-2, 23983-0, 23984-8, 23985-5, 26006-7, 27982-8, 27985-1, 27986-9, 27992-7, 28002-4, 28036-2, 28037-0, 28039-6, 28040-4, 28043-8, 28048-7, 28053-7, 28054-5, 28055-2, 28056-0, 28057-8, 28058-6, 28062-8, 29898-4, 29952-9, 30010-3, 30011-1, 30012-9, 30013-7, 30014-5, 30015-2, 30016-0, 30017-8, 30018-6, 30019-4, 30020-2, 30021-0, 30128-3, 30526-8, 31155-5, 31268-6, 31269-4, 31738-8, 32666-0, 32667-8, 32668-6, 32669-4, 33931-7, 33932-5, 34148-7, 34942-3, 34943-1, 35638-6, 38173-1, 38174-9, 40612-4, 41279-1, 42236-0, 42237-8, 42238-6, 42239-4, 42589-2, 42767-4, 43074-4, 43075-1, 43076-9, 43077-7, 43573-5, 43842-4, 44020-6, 44452-1, 44453-9, 44454-7, 44455-4, 44456-2, 44946-2, 44947-0, 44948-8, 44949-6, 45165-8, 45189-8, 46174-9, 46248-1, 47304-1, 48500-3, 48651-4, 4991-6, 49973-1, 49974-9, 49975-6, 49976-4, 49977-2, 49978-0, 49979-8, 49980-6, 49981-4, 49982-2, 49983-0, 49984-8, 49991-3, 49992-1, 49993-9, 49994-7, 49995-4, 49996-2, 49997-0, 49998-8, 5060-9, 5061-7, 5062-5, 5063-3, 5064-1, 5065-8, 51742-5, 51743-3, 51744-1, 51745-8, 51746-6, 51747-4, 53362-0, 53363-8, 53364-6, 53730-8, 55726-4, 57916-9, 60342-3, 60343-1, 62341-3, 62342-1, 6318-0, 6319-8, 6320-6, 6321-4, 6322-2, 67823-5, 67825-0, 7817-0, 7818-8, 79708-4, 79709-2, 83080-2, 83081-0, 87423-0, 87547-6, 90893-9, 94247-4, 94250-8, 94475-1, 94476-9, 94477-7, 9586-9, 9587-7, 9588-5, 9589-3, 9590-1, 9591-9, 9592-7, 9593-5, 9594-3, 9595-0, 9596-8, 9597-6, 9598-4, 9599-2, 96427-0, 96428-8, 96429-6, 96430-4, 96431-2, 96432-0, 98204-1, 98205-8, 98206-6, 98207-4, 98208-2 | days -1825 to -1 (H) | 0.208717 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 0.328189 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.364595 |
lab_ca125 | CA-125 test | Lab tests ordered | Observation (any) | LOINC: 10334-1, 11210-2, 15156-3, 15157-1, 19165-0, 2006-5, 40618-1, 48677-9, 50775-6, 59040-63 more68923-2, 83082-8, 97743-9 | days -1825 to -1 (H) | 0.255224 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.366591 |
rx_naltrexone | Naltrexone | Medications | MedicationRequest (any) | RxNorm ingredients: naltrexone (114 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.235089 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.286227 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.396435 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.472002 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.299121 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.38409 |
rx_pots | POTS medication | Medications | MedicationRequest (any) | RxNorm ingredients: ivabradine, midodrine, fludrocortisone, pyridostigmine (122 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.500891 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.351719 |
rx_hormonal | Hormonal contraceptive or progestin | Medications | MedicationRequest (any) | RxNorm ingredients: norethindrone, levonorgestrel, drospirenone, medroxyprogesterone, etonogestrel, desogestrel, norgestimate (1192 RxCUIs listed in the model file) | days -1825 to -1 (H) | -0.504473 |
rx_gnrh | GnRH agonist or antagonist | Medications | MedicationRequest (any) | RxNorm ingredients: leuprolide, elagolix, relugolix (172 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.621038 |
rx_nsaid | NSAID pain reliever | Medications | MedicationRequest (any) | RxNorm ingredients: naproxen, ibuprofen, meloxicam, diclofenac, ketorolac (1712 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.225447 |
rx_aromatase | Aromatase inhibitor | Medications | MedicationRequest (any) | RxNorm ingredients: letrozole, anastrozole (32 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.063787 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | 0.166486 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | 0.176564 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | 0.197593 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | 0.101132 |
Score, calibration, and risk bands
score = -4.729346 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.085038 (about 8.5%).
Calibration points come from a logistic on binned training-split counts (a = -2.036885, b = 0.16132).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 12.8% | 1.50 |
| Elevated | 25.5% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -8.7923 | 3.06% |
| -7.9802 | 3.47% |
| -7.168 | 3.94% |
| -6.3559 | 4.47% |
| -5.5437 | 5.06% |
| -4.7316 | 5.73% |
| -3.9194 | 6.48% |
| -3.1073 | 7.32% |
| -2.2951 | 8.26% |
| -1.483 | 9.31% |
| -0.6708 | 10.5% |
| 0.1413 | 11.8% |
| 0.9535 | 13.2% |
| 1.7656 | 14.8% |
| 2.5778 | 16.5% |
| 3.3899 | 18.4% |
| 4.2021 | 20.4% |
| 5.0142 | 22.7% |
| 5.8264 | 25.0% |
| 6.6385 | 27.6% |
| 7.4507 | 30.3% |
| 8.2628 | 33.1% |
| 9.075 | 36.1% |
| 9.8871 | 39.1% |
| 10.6993 | 42.3% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Shrinkage variance (tau²): 0.111112.
- Features eligible: 90.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-endometriosis-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 8.74% (1.03 times the average) | C-reactive protein test; Beta blocker; Cognitive symptoms (brain fog, memory) |
| James | built for the Long COVID card | not scored: the model covers women (FHIR gender female) | |
| Rosa | built for the Long COVID card | Typical, 6.15% (0.72 times the average) | Age 50-59; Long COVID; COVID-19 |
| Lee | built for the Long COVID card | not scored: the model covers women (FHIR gender female) | |
| Nora | built for the Long COVID card | Typical, 5.10% (0.60 times the average) | COVID-19; Age 18-39 |
| Dana | built for the Lyme card | Typical, 6.03% (0.71 times the average) | Age 50-59; Muscle or joint pain |
| Elena | built for the Chronic fatigue and ME/CFS card | Typical, 9.33% (1.10 times the average) | POTS medication; Five or more symptom types; Tilt-table test |
| Omar | built for the Chronic fatigue and ME/CFS card | not scored: the model covers women (FHIR gender female) | |
| Grace | built for the Chronic fatigue and ME/CFS card | Typical, 5.77% (0.68 times the average) | Age 40-49 |
| Sofia | built for the Fibromyalgia card | Typical, 12.4% (1.46 times the average) | Five or more symptom types; Gabapentin or pregabalin; Amitriptyline, nortriptyline, or cyclobenzaprine |
| Priya | built for the Long COVID card | Typical, 6.39% (0.75 times the average) | Fatigue or malaise coded in the past year; Fatigue or malaise coded; Long COVID |
| Sam | built for the Long COVID card | not scored: the model covers women (FHIR gender female) | |
| Theo | built for the Long COVID card | not scored: the model covers women (FHIR gender female) | |
| Yara | built for the Long COVID card | Typical, 5.45% (0.64 times the average) | Fatigue or malaise coded in the past year; Fatigue or malaise coded; COVID-19 |
| Vera | built for the Long COVID card | Typical, 6.39% (0.75 times the average) | Age 60-69; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Will | built for the Long COVID card | not scored: the model covers women (FHIR gender female) | |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |
Lyme (unm-lyme 1.0.0)
Model file model/lyme.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported Lyme disease diagnosis. Participant reports having been told by a clinician that they have Lyme disease (All of Us Personal and Family Health History survey).
- Population: Adults with an EHR visit in the past year and no Lyme disease code (ICD-10-CM A69.2).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to patients who report a Lyme disease diagnosis that was never coded." The number is shown as "N times the average for adults with a visit in the past year" and as the "Probability that the patient reports a Lyme disease diagnosis".
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM A69.2 is dated on or before day 0, or has no usable date: "a Lyme disease diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (86, of which 86 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | -0.348005 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | -0.324699 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | -0.211528 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | 0.191844 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | 0.355548 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | -0.197277 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | 0.288474 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | 0.188096 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | -0.060141 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | -0.174849 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | 0.065405 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | 0.0226 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | 0.034014 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | -0.029797 |
cx_migraine | Migraine | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G43 | days -1825 to -1 (H) | 0.04114 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | -0.039507 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | 0.032722 |
cx_depression | Depression | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F32, F33 | days -1825 to -1 (H) | -0.17947 |
cx_anxiety | Anxiety | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F41 | days -1825 to -1 (H) | -0.247614 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 0.096939 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | -0.107598 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | -0.152447 |
cx_fever | Fever | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R50 | days -1825 to -1 (H) | 0.243165 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | -0.134513 |
cx_eds_hypermobility | Ehlers-Danlos syndrome or hypermobility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: Q79.6, M35.7 | days -1825 to -1 (H) | 0.354145 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | 0.000977 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | -0.207664 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | -0.182119 |
cx_autoimmune | Autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M32, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | 0.152498 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | -0.40707 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | -0.367321 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | -0.131332 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | 0.047011 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | 0.189714 |
cx_cfs | Chronic fatigue or ME/CFS | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G93.3, R53.82 | days -1825 to -1 (H) | 0.198272 |
cx_tmj | Temporomandibular joint disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M26.6 | days -1825 to -1 (H) | -0.085549 |
cx_rls | Restless legs syndrome | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G25.81 | days -1825 to -1 (H) | 0.282786 |
cx_osteoarthritis | Osteoarthritis | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M15, M16, M17, M18, M19 | days -1825 to -1 (H) | 0.064715 |
cx_neck_back_pain | Neck or low back pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.2, M54.5 | days -1825 to -1 (H) | -0.114621 |
cx_fibromyalgia | Fibromyalgia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.7 | days -1825 to -1 (H) | 0.340771 |
cx_rash | Rash or skin redness | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R21, L53 | days -1825 to -1 (H) | 0.233767 |
cx_joint_swelling | Joint swelling or arthritis | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M25.4, M13 | days -1825 to -1 (H) | 0.016058 |
cx_paresthesia_neuropathy | Numbness, tingling, or neuropathy | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R20.0, R20.2, G62 | days -1825 to -1 (H) | 0.039722 |
cx_radiculopathy | Radiculopathy | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.1 | days -1825 to -1 (H) | 0.050367 |
cx_heart_block | Heart block | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I44 | days -1825 to -1 (H) | 0.12311 |
cx_insect_bite | Insect or tick bite | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: W57 | days -1825 to -1 (H) | 1.042833 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5, M25.4, M13 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 neuro: G51.0, R20.0, R20.2, G62, M54.1 skin: R21, L53 | days -1825 to -1 | 0.00856 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5, M25.4, M13 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 neuro: G51.0, R20.0, R20.2, G62, M54.1 skin: R21, L53 | days -1825 to -1 | 0.069784 |
px_sleep_study | Sleep study | Tests and evaluations | Procedure (any) | CPT: 95806, 95807, 95808, 95809, 95810, 95811, G0398, G0399, G0400 | days -1825 to -1 (H) | 0.009834 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | 0.124091 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | 0.167417 |
px_cardiac_monitor | Holter or event monitor | Tests and evaluations | Procedure (any) | CPT: 93224, 93225, 93226, 93227, 93228, 93229, 93241, 93242, 93243, 93244, 93245, 93246, 93247, 93248, 93268, 93269, 93270, 93271, 93272 | days -1825 to -1 (H) | 0.226211 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | 0.213743 |
px_neuropsych | Neuropsychological testing | Tests and evaluations | Procedure (any) | CPT: 96132, 96133, 96136, 96137, 96138, 96139 | days -1825 to -1 (H) | 0.177882 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | 0.122209 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | 0.08167 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.031481 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.149955 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | 0.128229 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 0.217279 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 0.338144 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 0.398775 |
lab_ebv | Epstein-Barr virus test | Lab tests ordered | Observation (any) | LOINC: 100677-4, 100678-2, 101817-5, 11009-8, 11010-6, 12212-7, 13236-5, 13237-3, 13238-1, 14083-0135 more16823-7, 16824-5, 16825-2, 16826-0, 16827-8, 18427-5, 18428-3, 20432-1, 20490-9, 20491-7, 21260-5, 22290-1, 22291-9, 22292-7, 22293-5, 22294-3, 22295-0, 22296-8, 22297-6, 22298-4, 23858-4, 23970-7, 23971-5, 23972-3, 23994-7, 23995-4, 23996-2, 24007-7, 24114-1, 24115-8, 24316-2, 26705-4, 30083-0, 30136-6, 30137-4, 30138-2, 30339-6, 30340-4, 31369-2, 31370-0, 31371-8, 31372-6, 31373-4, 31374-2, 31375-9, 32585-2, 32828-6, 32829-4, 32830-2, 32843-5, 32844-3, 32845-0, 33395-5, 33479-7, 34593-4, 34639-5, 35397-9, 35398-7, 36923-1, 40750-2, 40751-0, 40752-8, 40753-6, 42497-8, 42498-6, 43730-1, 47064-1, 47066-6, 47068-2, 47072-4, 47432-0, 47433-8, 47434-6, 47435-3, 47436-1, 47437-9, 47982-4, 48723-1, 49069-8, 49178-7, 49352-8, 49353-6, 49354-4, 49355-1, 49356-9, 49564-8, 5002-1, 5003-9, 5004-7, 5005-4, 50969-5, 51454-7, 5153-2, 5154-0, 5155-7, 5156-5, 5157-3, 5158-1, 5159-9, 5160-7, 53774-6, 56598-6, 56599-4, 58760-0, 59183-4, 59805-2, 66493-8, 6814-8, 6815-5, 69949-6, 72206-6, 7882-4, 7883-2, 7884-0, 7885-7, 7886-5, 81119-0, 83095-0, 84871-3, 84872-1, 87554-2, 93711-0, 93712-8, 93713-6, 93714-4, 93840-7, 93841-5, 94102-1, 94827-3, 94828-1, 94829-9, 94830-7, 95138-4, 9633-9, 97993-0 | days -1825 to -1 (H) | 0.375106 |
lab_lyme | Lyme disease test | Lab tests ordered | Observation (any) | LOINC: 100711-1, 101149-3, 101352-3, 101353-1, 101357-2, 101358-0, 101403-4, 103961-9, 10846-4, 10847-2265 more11006-4, 11007-2, 11550-1, 11551-9, 12781-1, 12860-3, 12861-1, 12862-9, 12863-7, 12864-5, 12865-2, 12866-0, 12867-8, 12868-6, 12869-4, 12873-6, 12874-4, 12877-7, 12878-5, 12879-3, 12880-1, 12881-9, 12882-7, 12883-5, 12884-3, 12885-0, 12886-8, 12887-6, 12888-4, 12889-2, 12890-0, 12891-8, 12892-6, 12896-7, 13202-7, 13203-5, 13204-3, 13205-0, 13206-8, 13207-6, 13502-0, 13503-8, 14077-2, 14078-0, 16475-6, 16476-4, 16477-2, 16478-0, 16479-8, 16480-6, 16481-4, 16482-2, 18201-4, 18202-2, 18203-0, 19052-0, 20449-5, 21116-9, 21117-7, 21118-5, 21119-3, 21120-1, 22118-4, 22119-2, 22120-0, 22121-8, 22122-6, 22123-4, 22124-2, 22125-9, 22126-7, 22127-5, 22128-3, 22129-1, 22130-9, 22131-7, 22132-5, 22133-3, 22134-1, 22135-8, 22136-6, 22137-4, 23676-0, 23833-7, 23966-5, 23977-2, 23978-0, 23979-8, 23980-6, 23981-4, 23982-2, 23983-0, 23984-8, 23985-5, 26006-7, 27982-8, 27985-1, 27986-9, 27992-7, 28002-4, 28036-2, 28037-0, 28039-6, 28040-4, 28043-8, 28048-7, 28053-7, 28054-5, 28055-2, 28056-0, 28057-8, 28058-6, 28062-8, 29898-4, 29952-9, 30010-3, 30011-1, 30012-9, 30013-7, 30014-5, 30015-2, 30016-0, 30017-8, 30018-6, 30019-4, 30020-2, 30021-0, 30128-3, 30526-8, 31155-5, 31268-6, 31269-4, 31738-8, 32666-0, 32667-8, 32668-6, 32669-4, 33931-7, 33932-5, 34148-7, 34942-3, 34943-1, 35638-6, 38173-1, 38174-9, 40612-4, 41279-1, 42236-0, 42237-8, 42238-6, 42239-4, 42589-2, 42767-4, 43074-4, 43075-1, 43076-9, 43077-7, 43573-5, 43842-4, 44020-6, 44452-1, 44453-9, 44454-7, 44455-4, 44456-2, 44946-2, 44947-0, 44948-8, 44949-6, 45165-8, 45189-8, 46174-9, 46248-1, 47304-1, 48500-3, 48651-4, 4991-6, 49973-1, 49974-9, 49975-6, 49976-4, 49977-2, 49978-0, 49979-8, 49980-6, 49981-4, 49982-2, 49983-0, 49984-8, 49991-3, 49992-1, 49993-9, 49994-7, 49995-4, 49996-2, 49997-0, 49998-8, 5060-9, 5061-7, 5062-5, 5063-3, 5064-1, 5065-8, 51742-5, 51743-3, 51744-1, 51745-8, 51746-6, 51747-4, 53362-0, 53363-8, 53364-6, 53730-8, 55726-4, 57916-9, 60342-3, 60343-1, 62341-3, 62342-1, 6318-0, 6319-8, 6320-6, 6321-4, 6322-2, 67823-5, 67825-0, 7817-0, 7818-8, 79708-4, 79709-2, 83080-2, 83081-0, 87423-0, 87547-6, 90893-9, 94247-4, 94250-8, 94475-1, 94476-9, 94477-7, 9586-9, 9587-7, 9588-5, 9589-3, 9590-1, 9591-9, 9592-7, 9593-5, 9594-3, 9595-0, 9596-8, 9597-6, 9598-4, 9599-2, 96427-0, 96428-8, 96429-6, 96430-4, 96431-2, 96432-0, 98204-1, 98205-8, 98206-6, 98207-4, 98208-2 | days -1825 to -1 (H) | 1.708059 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 0.322032 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.272215 |
lab_rf | Rheumatoid factor test | Lab tests ordered | Observation (any) | LOINC: 11572-5, 11573-3, 13634-1, 13929-5, 13930-3, 14034-3, 15203-3, 15204-1, 15205-8, 15206-628 more17534-9, 17857-4, 25745-1, 25746-9, 29351-4, 30231-5, 31046-6, 33313-8, 33314-6, 33577-8, 33648-7, 33910-1, 43932-3, 45156-7, 46435-4, 46437-0, 5297-7, 5298-5, 5299-3, 5300-9, 53562-5, 53924-7, 63313-1, 63314-9, 63315-6, 6823-9, 6928-6, 9338-5 | days -1825 to -1 (H) | 0.340206 |
lab_ccp | Anti-CCP antibody test | Lab tests ordered | Observation (any) | LOINC: 32218-0, 33935-8, 42898-7, 46435-4, 46437-0, 53027-9, 53028-7, 57093-7, 63217-4, 63375-02 more82576-0, 94874-5 | days -1825 to -1 (H) | 0.259556 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.359936 |
rx_naltrexone | Naltrexone | Medications | MedicationRequest (any) | RxNorm ingredients: naltrexone (114 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.178496 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.090931 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.090954 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.120816 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.161496 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.209135 |
rx_pots | POTS medication | Medications | MedicationRequest (any) | RxNorm ingredients: ivabradine, midodrine, fludrocortisone, pyridostigmine (122 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.241264 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.119231 |
rx_nsaid | NSAID pain reliever | Medications | MedicationRequest (any) | RxNorm ingredients: naproxen, ibuprofen, meloxicam, diclofenac, ketorolac (1712 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.045576 |
rx_muscle_relaxant | Muscle relaxant | Medications | MedicationRequest (any) | RxNorm ingredients: tizanidine, methocarbamol, baclofen (237 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.062134 |
rx_doxycycline | Doxycycline | Medications | MedicationRequest (any) | RxNorm ingredients: doxycycline (289 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.871091 |
rx_lyme_oral_beta_lactam | Amoxicillin or cefuroxime | Medications | MedicationRequest (any) | RxNorm ingredients: amoxicillin, cefuroxime (780 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.195741 |
rx_ceftriaxone | Ceftriaxone | Medications | MedicationRequest (any) | RxNorm ingredients: ceftriaxone (20 RxCUIs listed in the model file) | days -1825 to -1 (H) | -0.04212 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | 0.090404 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | 0.08672 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | -0.068726 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | -0.121547 |
Score, calibration, and risk bands
score = -4.356271 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.02308 (about 2.3%).
Calibration points come from a logistic on binned training-split counts (a = -2.032003, b = 0.491336).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 3.46% | 1.50 |
| Elevated | 6.92% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -8.6916 | 0.18% |
| -8.1131 | 0.24% |
| -7.5346 | 0.32% |
| -6.9561 | 0.43% |
| -6.3776 | 0.57% |
| -5.7991 | 0.75% |
| -5.2206 | 1.00% |
| -4.6421 | 1.32% |
| -4.0636 | 1.75% |
| -3.4851 | 2.31% |
| -2.9066 | 3.05% |
| -2.3281 | 4.01% |
| -1.7496 | 5.26% |
| -1.171 | 6.87% |
| -0.5925 | 8.92% |
| -0.014 | 11.5% |
| 0.5645 | 14.7% |
| 1.143 | 18.7% |
| 1.7215 | 23.4% |
| 2.3 | 28.9% |
| 2.8785 | 35.0% |
| 3.457 | 41.7% |
| 4.0355 | 48.8% |
| 4.614 | 55.8% |
| 5.1925 | 62.7% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Shrinkage variance (tau²): 0.098474.
- Features eligible: 86.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-lyme-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 2.42% (1.05 times the average) | C-reactive protein test; Fatigue or malaise coded; Holter or event monitor |
| James | built for the Long COVID card | Typical, 1.22% (0.53 times the average) | COVID-19; Age 40-49 |
| Rosa | built for the Long COVID card | Typical, 1.18% (0.51 times the average) | COVID-19; Female; Age 50-59 |
| Lee | built for the Long COVID card | Typical, 1.29% (0.56 times the average) | Age 18-39 |
| Nora | built for the Long COVID card | Typical, 1.10% (0.48 times the average) | COVID-19; Female; Age 18-39 |
| Dana | built for the Lyme card | Elevated, 3.48% (1.51 times the average) | Insect or tick bite; Doxycycline; Rash or skin redness |
| Elena | built for the Chronic fatigue and ME/CFS card | Typical, 2.24% (0.97 times the average) | Stimulant or wakefulness drug; Fatigue or malaise coded; POTS medication |
| Omar | built for the Chronic fatigue and ME/CFS card | Typical, 1.23% (0.53 times the average) | Hypertension; Age 40-49 |
| Grace | built for the Chronic fatigue and ME/CFS card | Typical, 1.30% (0.56 times the average) | Chronic fatigue or ME/CFS; Female; Age 40-49 |
| Sofia | built for the Fibromyalgia card | Elevated, 3.94% (1.71 times the average) | Sedimentation rate (ESR) test; Rheumatoid factor test; C-reactive protein test |
| Priya | built for the Long COVID card | Typical, 1.40% (0.61 times the average) | Fatigue or malaise coded; Fatigue or malaise coded in the past year; COVID-19 |
| Sam | built for the Long COVID card | Typical, 1.63% (0.71 times the average) | Fatigue or malaise coded; Fatigue or malaise coded in the past year; COVID-19 |
| Theo | built for the Long COVID card | Typical, 1.53% (0.66 times the average) | Fatigue or malaise coded; Fatigue or malaise coded in the past year; COVID-19 |
| Yara | built for the Long COVID card | Typical, 1.38% (0.60 times the average) | Fatigue or malaise coded; Fatigue or malaise coded in the past year; COVID-19 |
| Vera | built for the Long COVID card | Typical, 1.79% (0.78 times the average) | Fatigue or malaise coded; Age 60-69; Fatigue or malaise coded in the past year |
| Will | built for the Long COVID card | Typical, 1.22% (0.53 times the average) | COVID-19; Age 40-49 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |
Lupus (unm-lupus 1.0.0)
Model file model/lupus.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported lupus diagnosis. Participant reports having been told by a clinician that they have lupus (All of Us Personal and Family Health History survey).
- Population: Adults with an EHR visit in the past year and no systemic lupus erythematosus code (ICD-10-CM M32).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to patients who report a lupus diagnosis that was never coded." The number is shown as "N times the average for adults with a visit in the past year" and as the "Probability that the patient reports a lupus diagnosis".
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM M32 is dated on or before day 0, or has no usable date: "a lupus diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (79, of which 79 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | 0.088406 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | 0.667276 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | 0.326695 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | -0.145446 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | -0.907416 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | 1.689212 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | -0.312887 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | -0.003361 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | -0.417869 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | -0.406663 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | 0.134812 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | 0.089003 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | 0.000265 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | 0.193715 |
cx_migraine | Migraine | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G43 | days -1825 to -1 (H) | 0.230931 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | -0.349986 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | -0.041036 |
cx_depression | Depression | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F32, F33 | days -1825 to -1 (H) | -0.038422 |
cx_anxiety | Anxiety | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F41 | days -1825 to -1 (H) | -0.100198 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 0.467801 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | -0.074227 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | -0.219444 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | -0.188643 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | -0.171409 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | -0.176149 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | -0.304398 |
cx_autoimmune_other | Other autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | 1.181821 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | -0.423115 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | -0.56095 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | -0.634038 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | -0.506619 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | -0.860709 |
cx_cfs | Chronic fatigue or ME/CFS | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G93.3, R53.82 | days -1825 to -1 (H) | 0.440091 |
cx_osteoarthritis | Osteoarthritis | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M15, M16, M17, M18, M19 | days -1825 to -1 (H) | -0.142106 |
cx_neck_back_pain | Neck or low back pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.2, M54.5 | days -1825 to -1 (H) | -0.157092 |
cx_fibromyalgia | Fibromyalgia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.7 | days -1825 to -1 (H) | 1.524674 |
cx_cutaneous_lupus | Cutaneous lupus | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: L93 | days -1825 to -1 (H) | 3.987127 |
cx_rash | Rash or skin redness | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R21, L53 | days -1825 to -1 (H) | 0.167239 |
cx_raynaud | Raynaud phenomenon | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I73.0 | days -1825 to -1 (H) | 1.383432 |
cx_arthritis | Arthritis or joint swelling | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M13, M25.4 | days -1825 to -1 (H) | -0.209911 |
cx_sjogren | Sjögren syndrome | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M35.0 | days -1825 to -1 (H) | 1.901257 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5, M13, M25.4 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 skin: L93, L56, R21, L53, L63, L64, L65 | days -1825 to -1 | -0.179103 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5, M13, M25.4 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 skin: L93, L56, R21, L53, L63, L64, L65 | days -1825 to -1 | 0.023973 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | 0.07254 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | -0.343738 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | -0.348917 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | -0.385129 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | -0.045699 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.407947 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.329897 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | 0.175014 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 1.577756 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 1.384903 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 1.421693 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 0.648969 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.825259 |
lab_rf | Rheumatoid factor test | Lab tests ordered | Observation (any) | LOINC: 11572-5, 11573-3, 13634-1, 13929-5, 13930-3, 14034-3, 15203-3, 15204-1, 15205-8, 15206-628 more17534-9, 17857-4, 25745-1, 25746-9, 29351-4, 30231-5, 31046-6, 33313-8, 33314-6, 33577-8, 33648-7, 33910-1, 43932-3, 45156-7, 46435-4, 46437-0, 5297-7, 5298-5, 5299-3, 5300-9, 53562-5, 53924-7, 63313-1, 63314-9, 63315-6, 6823-9, 6928-6, 9338-5 | days -1825 to -1 (H) | 1.248846 |
lab_ccp | Anti-CCP antibody test | Lab tests ordered | Observation (any) | LOINC: 32218-0, 33935-8, 42898-7, 46435-4, 46437-0, 53027-9, 53028-7, 57093-7, 63217-4, 63375-02 more82576-0, 94874-5 | days -1825 to -1 (H) | 1.49661 |
lab_dsdna | Anti-double-stranded DNA test | Lab tests ordered | Observation (any) | LOINC: 11013-0, 12277-0, 15177-9, 31348-6, 32677-7, 34187-5, 37993-3, 42200-6, 47299-3, 48308-113 more5130-0, 5131-8, 53148-3, 54910-5, 63220-8, 63221-6, 63222-4, 63223-2, 63408-9, 63409-7, 63410-5, 6457-6, 81716-3 | days -1825 to -1 (H) | 2.52052 |
lab_smith | Anti-Smith antibody test | Lab tests ordered | Observation (any) | LOINC: 11090-8, 14030-1, 17589-3, 17590-1, 17591-9, 17592-7, 21522-8, 26703-9, 26880-5, 27048-822 more30556-5, 31627-3, 31628-1, 33460-7, 33567-9, 33568-7, 43182-5, 5355-3, 5356-1, 5357-9, 56148-0, 56730-5, 63352-9, 63353-7, 63354-5, 63405-5, 63406-3, 63546-6, 63547-4, 89501-1, 89531-8, 9722-0 | days -1825 to -1 (H) | 2.228757 |
lab_c3 | Complement C3 test | Lab tests ordered | Observation (any) | LOINC: 10434-9, 14195-2, 15164-7, 34401-0, 34544-7, 38388-5, 43575-0, 43578-4, 43579-2, 44714-420 more4485-9, 4486-7, 4487-5, 4488-3, 4489-1, 4490-9, 4491-7, 4492-5, 48420-4, 54409-8, 54410-6, 55774-4, 56471-6, 58956-4, 60277-1, 6295-0, 6296-8, 6801-5, 81313-9, 87723-3 | days -1825 to -1 (H) | 2.863384 |
lab_c4 | Complement C4 test | Lab tests ordered | Observation (any) | LOINC: 15165-4, 21217-5, 26931-6, 38522-9, 39565-7, 43580-0, 43581-8, 43582-6, 44715-1, 4498-211 more4500-5, 4501-3, 4502-1, 4503-9, 4504-7, 48731-4, 57949-0, 6293-5, 6908-8, 76496-9, 93978-5 | days -1825 to -1 (H) | 2.836616 |
lab_cardiolipin | Anticardiolipin antibody test | Lab tests ordered | Observation (any) | LOINC: 2040-4, 20424-8, 20425-5, 20484-2, 20485-9, 20669-8, 24319-6, 24385-7, 24386-5, 27183-325 more29860-4, 30470-9, 3180-7, 3181-5, 3182-3, 42729-4, 42730-2, 42731-0, 42732-8, 42733-6, 42734-4, 43361-5, 43362-3, 43363-1, 45057-7, 46125-1, 5076-5, 55772-8, 55773-6, 56149-8, 80154-8, 8062-2, 8063-0, 8065-5, 8067-1 | days -1825 to -1 (H) | 2.091116 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.582608 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.598112 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.602509 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.556131 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.348187 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.22289 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.389245 |
rx_nsaid | NSAID pain reliever | Medications | MedicationRequest (any) | RxNorm ingredients: naproxen, ibuprofen, meloxicam, diclofenac, ketorolac (1712 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.26353 |
rx_muscle_relaxant | Muscle relaxant | Medications | MedicationRequest (any) | RxNorm ingredients: tizanidine, methocarbamol, baclofen (237 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.888323 |
rx_hydroxychloroquine | Hydroxychloroquine | Medications | MedicationRequest (any) | RxNorm ingredients: hydroxychloroquine (29 RxCUIs listed in the model file) | days -1825 to -1 (H) | 3.406322 |
rx_glucocorticoid | Oral or injected steroid | Medications | MedicationRequest (any) | RxNorm ingredients: prednisone, prednisolone, methylprednisolone (946 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.601303 |
rx_immunosuppressant | Immunosuppressant | Medications | MedicationRequest (any) | RxNorm ingredients: mycophenolate mofetil, mycophenolic acid, azathioprine, methotrexate, cyclophosphamide (378 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.772923 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | 0.074679 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | 0.016347 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | 0.418723 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | -0.030831 |
Score, calibration, and risk bands
score = -8.150635 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.004048 (about 0.4%).
Calibration points come from a logistic on binned training-split counts (a = -4.488303, b = 0.293527).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 0.61% | 1.50 |
| Elevated | 1.21% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -16.1173 | 0.01% |
| -14.2015 | 0.02% |
| -12.2856 | 0.03% |
| -10.3698 | 0.05% |
| -8.4539 | 0.09% |
| -6.5381 | 0.16% |
| -4.6223 | 0.29% |
| -2.7064 | 0.51% |
| -0.7906 | 0.88% |
| 1.1252 | 1.54% |
| 3.0411 | 2.67% |
| 4.9569 | 4.59% |
| 6.8727 | 7.79% |
| 8.7886 | 12.9% |
| 10.7044 | 20.6% |
| 12.6203 | 31.3% |
| 14.5361 | 44.5% |
| 16.4519 | 58.4% |
| 18.3678 | 71.2% |
| 20.2836 | 81.2% |
| 22.1994 | 88.4% |
| 24.1153 | 93.0% |
| 26.0311 | 95.9% |
| 27.947 | 97.6% |
| 29.8628 | 98.6% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Shrinkage variance (tau²): 1.221628.
- Features eligible: 79.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-lupus-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 0.30% (0.74 times the average) | Female; C-reactive protein test; Age 40-49 |
| James | built for the Long COVID card | Typical, 0.12% (0.30 times the average) | Age 40-49; COVID-19 |
| Rosa | built for the Long COVID card | Typical, 0.18% (0.44 times the average) | Female; Age 50-59; COVID-19 |
| Lee | built for the Long COVID card | Typical, 0.11% (0.27 times the average) | Age 18-39 |
| Nora | built for the Long COVID card | Typical, 0.16% (0.40 times the average) | Female; Age 18-39; COVID-19 |
| Dana | built for the Lyme card | Typical, 0.18% (0.44 times the average) | Female; Age 50-59; Rash or skin redness |
| Elena | built for the Chronic fatigue and ME/CFS card | Typical, 0.19% (0.46 times the average) | Female; Stimulant or wakefulness drug; Ferritin test |
| Omar | built for the Chronic fatigue and ME/CFS card | Typical, 0.11% (0.26 times the average) | Age 40-49; Hypertension |
| Grace | built for the Chronic fatigue and ME/CFS card | Typical, 0.24% (0.60 times the average) | Female; Age 40-49; Chronic fatigue or ME/CFS |
| Sofia | built for the Fibromyalgia card | High, 3.59% (8.88 times the average) | Female; Antinuclear antibody (ANA) test; Anti-CCP antibody test |
| Priya | built for the Long COVID card | Typical, 0.18% (0.45 times the average) | Female; Age 40-49; Fatigue or malaise coded in the past year |
| Sam | built for the Long COVID card | Typical, 0.10% (0.24 times the average) | Age 50-59; Fatigue or malaise coded in the past year; COVID-19 |
| Theo | built for the Long COVID card | Typical, 0.09% (0.23 times the average) | Age 18-39; Fatigue or malaise coded in the past year; COVID-19 |
| Yara | built for the Long COVID card | Typical, 0.15% (0.38 times the average) | Female; Age 18-39; Fatigue or malaise coded in the past year |
| Vera | built for the Long COVID card | Typical, 0.14% (0.35 times the average) | Female; Fatigue or malaise coded in the past year; Age 60-69 |
| Will | built for the Long COVID card | Typical, 0.12% (0.30 times the average) | Age 40-49; COVID-19 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |
Migraine (unm-migraine 1.0.0)
Model file model/migraine.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported migraine diagnosis. Participant reports having been told by a clinician that they have migraine (All of Us Personal and Family Health History survey).
- Population: Adults with an EHR visit in the past year and no migraine code (ICD-10-CM G43).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to patients who report a migraine diagnosis that was never coded." The number is shown as "N times the average for adults with a visit in the past year" and as the "Probability that the patient reports a migraine diagnosis".
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM G43 is dated on or before day 0, or has no usable date: "a migraine diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (88, of which 88 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | 0.438625 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | 0.52573 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | 0.255073 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | -0.291615 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | -0.738724 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | 1.121884 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | -0.121761 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | -0.028575 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | -0.078043 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | -0.225586 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | -0.071275 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | -0.081455 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | -0.094575 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | 0.400664 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | -0.313623 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | -0.121272 |
cx_depression | Depression | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F32, F33 | days -1825 to -1 (H) | 0.103152 |
cx_anxiety | Anxiety | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F41 | days -1825 to -1 (H) | 0.107091 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 0.32953 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | -0.069707 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | -0.10886 |
cx_fever | Fever | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R50 | days -1825 to -1 (H) | -0.154348 |
cx_ebv_mono | Infectious mononucleosis (EBV) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: B27 | days -1825 to -1 (H) | -0.060591 |
cx_lyme | Lyme disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: A69.2 | days -1825 to -1 (H) | -0.249159 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | -0.175911 |
cx_long_covid | Long COVID | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U09.9 | days -1825 to -1 (H) | 0.311603 |
cx_eds_hypermobility | Ehlers-Danlos syndrome or hypermobility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: Q79.6, M35.7 | days -1825 to -1 (H) | 1.207138 |
cx_mast_cell | Mast cell disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D89.4 | days -1825 to -1 (H) | 1.455033 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | -0.10791 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | -0.394094 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | -0.183378 |
cx_autoimmune | Autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M32, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | -0.00328 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | -0.219346 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | -0.485988 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | -0.492724 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | -0.610659 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | -0.616781 |
cx_cfs | Chronic fatigue or ME/CFS | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G93.3, R53.82 | days -1825 to -1 (H) | 0.12346 |
cx_tmj | Temporomandibular joint disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M26.6 | days -1825 to -1 (H) | 0.140914 |
cx_rls | Restless legs syndrome | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G25.81 | days -1825 to -1 (H) | 0.112829 |
cx_interstitial_cystitis | Interstitial cystitis or bladder pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N30.1 | days -1825 to -1 (H) | 0.690506 |
cx_osteoarthritis | Osteoarthritis | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M15, M16, M17, M18, M19 | days -1825 to -1 (H) | -0.383964 |
cx_neck_back_pain | Neck or low back pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.2, M54.5 | days -1825 to -1 (H) | -0.12921 |
cx_fibromyalgia | Fibromyalgia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.7 | days -1825 to -1 (H) | 0.902738 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | -0.07922 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F32, F33, F41 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | 0.082743 |
px_tilt | Tilt-table test | Tests and evaluations | Procedure (any) | CPT: 93660 | days -1825 to -1 (H) | 0.489007 |
px_sleep_study | Sleep study | Tests and evaluations | Procedure (any) | CPT: 95806, 95807, 95808, 95809, 95810, 95811, G0398, G0399, G0400 | days -1825 to -1 (H) | -0.034933 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | 0.112588 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | -0.230154 |
px_cardiac_monitor | Holter or event monitor | Tests and evaluations | Procedure (any) | CPT: 93224, 93225, 93226, 93227, 93228, 93229, 93241, 93242, 93243, 93244, 93245, 93246, 93247, 93248, 93268, 93269, 93270, 93271, 93272 | days -1825 to -1 (H) | -0.006274 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | -0.251273 |
px_neuropsych | Neuropsychological testing | Tests and evaluations | Procedure (any) | CPT: 96132, 96133, 96136, 96137, 96138, 96139 | days -1825 to -1 (H) | 0.079185 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | -0.11369 |
px_head_ct | Head CT | Tests and evaluations | Procedure (any) | CPT: 70450, 70451, 70452, 70453, 70454, 70455, 70456, 70457, 70458, 70459, 70460, 70461, 70462, 70463, 70464, 70465, 70466, 70467, 70468, 704691 more70470 | days -1825 to -1 (H) | -0.036021 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | 0.050133 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.126205 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.108199 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | 0.031033 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 0.261714 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 0.30191 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 0.278505 |
lab_ebv | Epstein-Barr virus test | Lab tests ordered | Observation (any) | LOINC: 100677-4, 100678-2, 101817-5, 11009-8, 11010-6, 12212-7, 13236-5, 13237-3, 13238-1, 14083-0135 more16823-7, 16824-5, 16825-2, 16826-0, 16827-8, 18427-5, 18428-3, 20432-1, 20490-9, 20491-7, 21260-5, 22290-1, 22291-9, 22292-7, 22293-5, 22294-3, 22295-0, 22296-8, 22297-6, 22298-4, 23858-4, 23970-7, 23971-5, 23972-3, 23994-7, 23995-4, 23996-2, 24007-7, 24114-1, 24115-8, 24316-2, 26705-4, 30083-0, 30136-6, 30137-4, 30138-2, 30339-6, 30340-4, 31369-2, 31370-0, 31371-8, 31372-6, 31373-4, 31374-2, 31375-9, 32585-2, 32828-6, 32829-4, 32830-2, 32843-5, 32844-3, 32845-0, 33395-5, 33479-7, 34593-4, 34639-5, 35397-9, 35398-7, 36923-1, 40750-2, 40751-0, 40752-8, 40753-6, 42497-8, 42498-6, 43730-1, 47064-1, 47066-6, 47068-2, 47072-4, 47432-0, 47433-8, 47434-6, 47435-3, 47436-1, 47437-9, 47982-4, 48723-1, 49069-8, 49178-7, 49352-8, 49353-6, 49354-4, 49355-1, 49356-9, 49564-8, 5002-1, 5003-9, 5004-7, 5005-4, 50969-5, 51454-7, 5153-2, 5154-0, 5155-7, 5156-5, 5157-3, 5158-1, 5159-9, 5160-7, 53774-6, 56598-6, 56599-4, 58760-0, 59183-4, 59805-2, 66493-8, 6814-8, 6815-5, 69949-6, 72206-6, 7882-4, 7883-2, 7884-0, 7885-7, 7886-5, 81119-0, 83095-0, 84871-3, 84872-1, 87554-2, 93711-0, 93712-8, 93713-6, 93714-4, 93840-7, 93841-5, 94102-1, 94827-3, 94828-1, 94829-9, 94830-7, 95138-4, 9633-9, 97993-0 | days -1825 to -1 (H) | -0.217291 |
lab_lyme | Lyme disease test | Lab tests ordered | Observation (any) | LOINC: 100711-1, 101149-3, 101352-3, 101353-1, 101357-2, 101358-0, 101403-4, 103961-9, 10846-4, 10847-2265 more11006-4, 11007-2, 11550-1, 11551-9, 12781-1, 12860-3, 12861-1, 12862-9, 12863-7, 12864-5, 12865-2, 12866-0, 12867-8, 12868-6, 12869-4, 12873-6, 12874-4, 12877-7, 12878-5, 12879-3, 12880-1, 12881-9, 12882-7, 12883-5, 12884-3, 12885-0, 12886-8, 12887-6, 12888-4, 12889-2, 12890-0, 12891-8, 12892-6, 12896-7, 13202-7, 13203-5, 13204-3, 13205-0, 13206-8, 13207-6, 13502-0, 13503-8, 14077-2, 14078-0, 16475-6, 16476-4, 16477-2, 16478-0, 16479-8, 16480-6, 16481-4, 16482-2, 18201-4, 18202-2, 18203-0, 19052-0, 20449-5, 21116-9, 21117-7, 21118-5, 21119-3, 21120-1, 22118-4, 22119-2, 22120-0, 22121-8, 22122-6, 22123-4, 22124-2, 22125-9, 22126-7, 22127-5, 22128-3, 22129-1, 22130-9, 22131-7, 22132-5, 22133-3, 22134-1, 22135-8, 22136-6, 22137-4, 23676-0, 23833-7, 23966-5, 23977-2, 23978-0, 23979-8, 23980-6, 23981-4, 23982-2, 23983-0, 23984-8, 23985-5, 26006-7, 27982-8, 27985-1, 27986-9, 27992-7, 28002-4, 28036-2, 28037-0, 28039-6, 28040-4, 28043-8, 28048-7, 28053-7, 28054-5, 28055-2, 28056-0, 28057-8, 28058-6, 28062-8, 29898-4, 29952-9, 30010-3, 30011-1, 30012-9, 30013-7, 30014-5, 30015-2, 30016-0, 30017-8, 30018-6, 30019-4, 30020-2, 30021-0, 30128-3, 30526-8, 31155-5, 31268-6, 31269-4, 31738-8, 32666-0, 32667-8, 32668-6, 32669-4, 33931-7, 33932-5, 34148-7, 34942-3, 34943-1, 35638-6, 38173-1, 38174-9, 40612-4, 41279-1, 42236-0, 42237-8, 42238-6, 42239-4, 42589-2, 42767-4, 43074-4, 43075-1, 43076-9, 43077-7, 43573-5, 43842-4, 44020-6, 44452-1, 44453-9, 44454-7, 44455-4, 44456-2, 44946-2, 44947-0, 44948-8, 44949-6, 45165-8, 45189-8, 46174-9, 46248-1, 47304-1, 48500-3, 48651-4, 4991-6, 49973-1, 49974-9, 49975-6, 49976-4, 49977-2, 49978-0, 49979-8, 49980-6, 49981-4, 49982-2, 49983-0, 49984-8, 49991-3, 49992-1, 49993-9, 49994-7, 49995-4, 49996-2, 49997-0, 49998-8, 5060-9, 5061-7, 5062-5, 5063-3, 5064-1, 5065-8, 51742-5, 51743-3, 51744-1, 51745-8, 51746-6, 51747-4, 53362-0, 53363-8, 53364-6, 53730-8, 55726-4, 57916-9, 60342-3, 60343-1, 62341-3, 62342-1, 6318-0, 6319-8, 6320-6, 6321-4, 6322-2, 67823-5, 67825-0, 7817-0, 7818-8, 79708-4, 79709-2, 83080-2, 83081-0, 87423-0, 87547-6, 90893-9, 94247-4, 94250-8, 94475-1, 94476-9, 94477-7, 9586-9, 9587-7, 9588-5, 9589-3, 9590-1, 9591-9, 9592-7, 9593-5, 9594-3, 9595-0, 9596-8, 9597-6, 9598-4, 9599-2, 96427-0, 96428-8, 96429-6, 96430-4, 96431-2, 96432-0, 98204-1, 98205-8, 98206-6, 98207-4, 98208-2 | days -1825 to -1 (H) | 0.083267 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 0.399741 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.063038 |
lab_rf | Rheumatoid factor test | Lab tests ordered | Observation (any) | LOINC: 11572-5, 11573-3, 13634-1, 13929-5, 13930-3, 14034-3, 15203-3, 15204-1, 15205-8, 15206-628 more17534-9, 17857-4, 25745-1, 25746-9, 29351-4, 30231-5, 31046-6, 33313-8, 33314-6, 33577-8, 33648-7, 33910-1, 43932-3, 45156-7, 46435-4, 46437-0, 5297-7, 5298-5, 5299-3, 5300-9, 53562-5, 53924-7, 63313-1, 63314-9, 63315-6, 6823-9, 6928-6, 9338-5 | days -1825 to -1 (H) | 0.418197 |
lab_ccp | Anti-CCP antibody test | Lab tests ordered | Observation (any) | LOINC: 32218-0, 33935-8, 42898-7, 46435-4, 46437-0, 53027-9, 53028-7, 57093-7, 63217-4, 63375-02 more82576-0, 94874-5 | days -1825 to -1 (H) | 0.51091 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.857209 |
rx_naltrexone | Naltrexone | Medications | MedicationRequest (any) | RxNorm ingredients: naltrexone (114 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.436797 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.654281 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.63842 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.366878 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.330134 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.178516 |
rx_pots | POTS medication | Medications | MedicationRequest (any) | RxNorm ingredients: ivabradine, midodrine, fludrocortisone, pyridostigmine (122 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.741587 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.182148 |
rx_milnacipran | Milnacipran | Medications | MedicationRequest (any) | RxNorm ingredients: milnacipran (28 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.728002 |
rx_nsaid | NSAID pain reliever | Medications | MedicationRequest (any) | RxNorm ingredients: naproxen, ibuprofen, meloxicam, diclofenac, ketorolac (1712 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.289883 |
rx_muscle_relaxant | Muscle relaxant | Medications | MedicationRequest (any) | RxNorm ingredients: tizanidine, methocarbamol, baclofen (237 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.571544 |
rx_triptan | Triptan | Medications | MedicationRequest (any) | RxNorm ingredients: sumatriptan, rizatriptan, zolmitriptan, eletriptan, naratriptan, almotriptan, frovatriptan (286 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.77925 |
rx_cgrp | CGRP-targeted migraine drug | Medications | MedicationRequest (any) | RxNorm ingredients: erenumab, fremanezumab, galcanezumab, eptinezumab, rimegepant, ubrogepant, atogepant (129 RxCUIs listed in the model file) | days -1825 to -1 (H) | 3.944482 |
rx_topiramate | Topiramate | Medications | MedicationRequest (any) | RxNorm ingredients: topiramate (135 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.361601 |
rx_antiemetic | Antinausea drug | Medications | MedicationRequest (any) | RxNorm ingredients: ondansetron, metoclopramide, prochlorperazine, promethazine (621 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.350759 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | -0.0437 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | 0.015092 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | 0.239377 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | -0.116961 |
Score, calibration, and risk bands
score = -2.774273 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.134288 (about 13.4%).
Calibration points come from a logistic on binned training-split counts (a = -1.313992, b = 0.386146).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 20.1% | 1.50 |
| Elevated | 40.3% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -10.2654 | 0.51% |
| -9.1875 | 0.77% |
| -8.1096 | 1.16% |
| -7.0317 | 1.75% |
| -5.9539 | 2.63% |
| -4.876 | 3.93% |
| -3.7981 | 5.84% |
| -2.7202 | 8.59% |
| -1.6423 | 12.5% |
| -0.5644 | 17.8% |
| 0.5135 | 24.7% |
| 1.5914 | 33.2% |
| 2.6692 | 43.0% |
| 3.7471 | 53.3% |
| 4.825 | 63.4% |
| 5.9029 | 72.4% |
| 6.9808 | 79.9% |
| 8.0587 | 85.8% |
| 9.1366 | 90.2% |
| 10.2145 | 93.3% |
| 11.2923 | 95.5% |
| 12.3702 | 97.0% |
| 13.4481 | 98.0% |
| 14.526 | 98.7% |
| 15.6039 | 99.1% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Shrinkage variance (tau²): 0.453631.
- Features eligible: 88.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-migraine-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 14.7% (1.09 times the average) | Female; Age 40-49; C-reactive protein test |
| James | built for the Long COVID card | Typical, 9.66% (0.72 times the average) | Age 40-49; COVID-19 |
| Rosa | built for the Long COVID card | Typical, 14.3% (1.07 times the average) | Female; Long COVID; Age 50-59 |
| Lee | built for the Long COVID card | Typical, 9.98% (0.74 times the average) | Age 18-39 |
| Nora | built for the Long COVID card | Typical, 13.7% (1.02 times the average) | Female; Age 18-39; COVID-19 |
| Dana | built for the Lyme card | Typical, 12.2% (0.91 times the average) | Female; Age 50-59; Muscle or joint pain |
| Elena | built for the Chronic fatigue and ME/CFS card | Elevated, 22.7% (1.69 times the average) | Female; Stimulant or wakefulness drug; POTS medication |
| Omar | built for the Chronic fatigue and ME/CFS card | Typical, 8.54% (0.64 times the average) | Age 40-49; Hypertension |
| Grace | built for the Chronic fatigue and ME/CFS card | Typical, 15.6% (1.16 times the average) | Female; Age 40-49; Chronic fatigue or ME/CFS |
| Sofia | built for the Fibromyalgia card | High, 53.1% (3.95 times the average) | Female; SSRI or SNRI antidepressant; Amitriptyline, nortriptyline, or cyclobenzaprine |
| Priya | built for the Long COVID card | Typical, 14.9% (1.11 times the average) | Female; Age 40-49; Long COVID |
| Sam | built for the Long COVID card | Typical, 8.27% (0.62 times the average) | Age 50-59; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Theo | built for the Long COVID card | Typical, 9.93% (0.74 times the average) | Age 18-39; Long COVID; Fatigue or malaise coded in the past year |
| Yara | built for the Long COVID card | Typical, 13.0% (0.97 times the average) | Female; Age 18-39; Fatigue or malaise coded in the past year |
| Vera | built for the Long COVID card | Typical, 10.2% (0.76 times the average) | Female; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Will | built for the Long COVID card | Typical, 9.66% (0.72 times the average) | Age 40-49; COVID-19 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |
Depression (unm-depression 1.0.0)
Model file model/depression.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported depression diagnosis. Participant reports having been told by a clinician that they have depression (All of Us Personal and Family Health History survey).
- Population: Adults with an EHR visit in the past year and no depression code (ICD-10-CM F32, F33).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to patients who report a depression diagnosis that was never coded." The number is shown as "N times the average for adults with a visit in the past year" and as the "Probability that the patient reports a depression diagnosis".
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM F32 or F33 is dated on or before day 0, or has no usable date: "a depression diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (86, of which 86 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | 0.759557 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | 0.501363 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | 0.166047 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | -0.331083 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | -0.916873 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | 0.741824 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | -0.268827 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | -0.194493 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | -0.052838 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | -0.2054 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | 0.001427 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | -0.365135 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | -0.304991 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | -0.077916 |
cx_migraine | Migraine | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G43 | days -1825 to -1 (H) | 0.13888 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | -0.541115 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | -0.32311 |
cx_anxiety | Anxiety | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F41 | days -1825 to -1 (H) | 0.584745 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 1.061047 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | -0.277448 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | -0.241414 |
cx_fever | Fever | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R50 | days -1825 to -1 (H) | -0.401185 |
cx_ebv_mono | Infectious mononucleosis (EBV) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: B27 | days -1825 to -1 (H) | -0.232271 |
cx_lyme | Lyme disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: A69.2 | days -1825 to -1 (H) | -0.426762 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | -0.472966 |
cx_long_covid | Long COVID | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U09.9 | days -1825 to -1 (H) | -0.066216 |
cx_eds_hypermobility | Ehlers-Danlos syndrome or hypermobility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: Q79.6, M35.7 | days -1825 to -1 (H) | 0.725108 |
cx_mast_cell | Mast cell disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D89.4 | days -1825 to -1 (H) | 0.954857 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | -0.31925 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | -0.552308 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | -0.412196 |
cx_autoimmune | Autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M32, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | -0.148662 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | -0.304983 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | -0.413015 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | -0.763357 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | -0.841265 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | -0.815473 |
cx_cfs | Chronic fatigue or ME/CFS | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G93.3, R53.82 | days -1825 to -1 (H) | 0.142409 |
cx_tmj | Temporomandibular joint disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M26.6 | days -1825 to -1 (H) | -0.057737 |
cx_rls | Restless legs syndrome | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G25.81 | days -1825 to -1 (H) | 0.056121 |
cx_interstitial_cystitis | Interstitial cystitis or bladder pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N30.1 | days -1825 to -1 (H) | 0.44266 |
cx_osteoarthritis | Osteoarthritis | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M15, M16, M17, M18, M19 | days -1825 to -1 (H) | -0.64871 |
cx_neck_back_pain | Neck or low back pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.2, M54.5 | days -1825 to -1 (H) | -0.35656 |
cx_fibromyalgia | Fibromyalgia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.7 | days -1825 to -1 (H) | 0.867096 |
cx_suicidal_ideation | Suicidal ideation | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R45.851 | days -1825 to -1 (H) | 1.215031 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F41, R45.851 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | -0.167401 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F41, R45.851 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | 0.092213 |
px_tilt | Tilt-table test | Tests and evaluations | Procedure (any) | CPT: 93660 | days -1825 to -1 (H) | 0.40907 |
px_sleep_study | Sleep study | Tests and evaluations | Procedure (any) | CPT: 95806, 95807, 95808, 95809, 95810, 95811, G0398, G0399, G0400 | days -1825 to -1 (H) | -0.037392 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | -0.114466 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | -0.530069 |
px_cardiac_monitor | Holter or event monitor | Tests and evaluations | Procedure (any) | CPT: 93224, 93225, 93226, 93227, 93228, 93229, 93241, 93242, 93243, 93244, 93245, 93246, 93247, 93248, 93268, 93269, 93270, 93271, 93272 | days -1825 to -1 (H) | -0.338951 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | -0.518214 |
px_neuropsych | Neuropsychological testing | Tests and evaluations | Procedure (any) | CPT: 96132, 96133, 96136, 96137, 96138, 96139 | days -1825 to -1 (H) | 0.340725 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | -0.364226 |
px_psychotherapy | Psychotherapy or psychiatric evaluation | Tests and evaluations | Procedure (any) | CPT: 90791, 90792, 90832, 90833, 90834, 90835, 90836, 90837, 90838 | days -1825 to -1 (H) | 0.526165 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | 0.01579 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.176969 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.163119 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | -0.013094 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 0.106062 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 0.224942 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 0.193015 |
lab_ebv | Epstein-Barr virus test | Lab tests ordered | Observation (any) | LOINC: 100677-4, 100678-2, 101817-5, 11009-8, 11010-6, 12212-7, 13236-5, 13237-3, 13238-1, 14083-0135 more16823-7, 16824-5, 16825-2, 16826-0, 16827-8, 18427-5, 18428-3, 20432-1, 20490-9, 20491-7, 21260-5, 22290-1, 22291-9, 22292-7, 22293-5, 22294-3, 22295-0, 22296-8, 22297-6, 22298-4, 23858-4, 23970-7, 23971-5, 23972-3, 23994-7, 23995-4, 23996-2, 24007-7, 24114-1, 24115-8, 24316-2, 26705-4, 30083-0, 30136-6, 30137-4, 30138-2, 30339-6, 30340-4, 31369-2, 31370-0, 31371-8, 31372-6, 31373-4, 31374-2, 31375-9, 32585-2, 32828-6, 32829-4, 32830-2, 32843-5, 32844-3, 32845-0, 33395-5, 33479-7, 34593-4, 34639-5, 35397-9, 35398-7, 36923-1, 40750-2, 40751-0, 40752-8, 40753-6, 42497-8, 42498-6, 43730-1, 47064-1, 47066-6, 47068-2, 47072-4, 47432-0, 47433-8, 47434-6, 47435-3, 47436-1, 47437-9, 47982-4, 48723-1, 49069-8, 49178-7, 49352-8, 49353-6, 49354-4, 49355-1, 49356-9, 49564-8, 5002-1, 5003-9, 5004-7, 5005-4, 50969-5, 51454-7, 5153-2, 5154-0, 5155-7, 5156-5, 5157-3, 5158-1, 5159-9, 5160-7, 53774-6, 56598-6, 56599-4, 58760-0, 59183-4, 59805-2, 66493-8, 6814-8, 6815-5, 69949-6, 72206-6, 7882-4, 7883-2, 7884-0, 7885-7, 7886-5, 81119-0, 83095-0, 84871-3, 84872-1, 87554-2, 93711-0, 93712-8, 93713-6, 93714-4, 93840-7, 93841-5, 94102-1, 94827-3, 94828-1, 94829-9, 94830-7, 95138-4, 9633-9, 97993-0 | days -1825 to -1 (H) | -0.162164 |
lab_lyme | Lyme disease test | Lab tests ordered | Observation (any) | LOINC: 100711-1, 101149-3, 101352-3, 101353-1, 101357-2, 101358-0, 101403-4, 103961-9, 10846-4, 10847-2265 more11006-4, 11007-2, 11550-1, 11551-9, 12781-1, 12860-3, 12861-1, 12862-9, 12863-7, 12864-5, 12865-2, 12866-0, 12867-8, 12868-6, 12869-4, 12873-6, 12874-4, 12877-7, 12878-5, 12879-3, 12880-1, 12881-9, 12882-7, 12883-5, 12884-3, 12885-0, 12886-8, 12887-6, 12888-4, 12889-2, 12890-0, 12891-8, 12892-6, 12896-7, 13202-7, 13203-5, 13204-3, 13205-0, 13206-8, 13207-6, 13502-0, 13503-8, 14077-2, 14078-0, 16475-6, 16476-4, 16477-2, 16478-0, 16479-8, 16480-6, 16481-4, 16482-2, 18201-4, 18202-2, 18203-0, 19052-0, 20449-5, 21116-9, 21117-7, 21118-5, 21119-3, 21120-1, 22118-4, 22119-2, 22120-0, 22121-8, 22122-6, 22123-4, 22124-2, 22125-9, 22126-7, 22127-5, 22128-3, 22129-1, 22130-9, 22131-7, 22132-5, 22133-3, 22134-1, 22135-8, 22136-6, 22137-4, 23676-0, 23833-7, 23966-5, 23977-2, 23978-0, 23979-8, 23980-6, 23981-4, 23982-2, 23983-0, 23984-8, 23985-5, 26006-7, 27982-8, 27985-1, 27986-9, 27992-7, 28002-4, 28036-2, 28037-0, 28039-6, 28040-4, 28043-8, 28048-7, 28053-7, 28054-5, 28055-2, 28056-0, 28057-8, 28058-6, 28062-8, 29898-4, 29952-9, 30010-3, 30011-1, 30012-9, 30013-7, 30014-5, 30015-2, 30016-0, 30017-8, 30018-6, 30019-4, 30020-2, 30021-0, 30128-3, 30526-8, 31155-5, 31268-6, 31269-4, 31738-8, 32666-0, 32667-8, 32668-6, 32669-4, 33931-7, 33932-5, 34148-7, 34942-3, 34943-1, 35638-6, 38173-1, 38174-9, 40612-4, 41279-1, 42236-0, 42237-8, 42238-6, 42239-4, 42589-2, 42767-4, 43074-4, 43075-1, 43076-9, 43077-7, 43573-5, 43842-4, 44020-6, 44452-1, 44453-9, 44454-7, 44455-4, 44456-2, 44946-2, 44947-0, 44948-8, 44949-6, 45165-8, 45189-8, 46174-9, 46248-1, 47304-1, 48500-3, 48651-4, 4991-6, 49973-1, 49974-9, 49975-6, 49976-4, 49977-2, 49978-0, 49979-8, 49980-6, 49981-4, 49982-2, 49983-0, 49984-8, 49991-3, 49992-1, 49993-9, 49994-7, 49995-4, 49996-2, 49997-0, 49998-8, 5060-9, 5061-7, 5062-5, 5063-3, 5064-1, 5065-8, 51742-5, 51743-3, 51744-1, 51745-8, 51746-6, 51747-4, 53362-0, 53363-8, 53364-6, 53730-8, 55726-4, 57916-9, 60342-3, 60343-1, 62341-3, 62342-1, 6318-0, 6319-8, 6320-6, 6321-4, 6322-2, 67823-5, 67825-0, 7817-0, 7818-8, 79708-4, 79709-2, 83080-2, 83081-0, 87423-0, 87547-6, 90893-9, 94247-4, 94250-8, 94475-1, 94476-9, 94477-7, 9586-9, 9587-7, 9588-5, 9589-3, 9590-1, 9591-9, 9592-7, 9593-5, 9594-3, 9595-0, 9596-8, 9597-6, 9598-4, 9599-2, 96427-0, 96428-8, 96429-6, 96430-4, 96431-2, 96432-0, 98204-1, 98205-8, 98206-6, 98207-4, 98208-2 | days -1825 to -1 (H) | -0.024648 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 0.379511 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.053748 |
lab_rf | Rheumatoid factor test | Lab tests ordered | Observation (any) | LOINC: 11572-5, 11573-3, 13634-1, 13929-5, 13930-3, 14034-3, 15203-3, 15204-1, 15205-8, 15206-628 more17534-9, 17857-4, 25745-1, 25746-9, 29351-4, 30231-5, 31046-6, 33313-8, 33314-6, 33577-8, 33648-7, 33910-1, 43932-3, 45156-7, 46435-4, 46437-0, 5297-7, 5298-5, 5299-3, 5300-9, 53562-5, 53924-7, 63313-1, 63314-9, 63315-6, 6823-9, 6928-6, 9338-5 | days -1825 to -1 (H) | 0.293353 |
lab_ccp | Anti-CCP antibody test | Lab tests ordered | Observation (any) | LOINC: 32218-0, 33935-8, 42898-7, 46435-4, 46437-0, 53027-9, 53028-7, 57093-7, 63217-4, 63375-02 more82576-0, 94874-5 | days -1825 to -1 (H) | 0.373152 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.619563 |
rx_naltrexone | Naltrexone | Medications | MedicationRequest (any) | RxNorm ingredients: naltrexone (114 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.269975 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.844417 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.579823 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.497287 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.841304 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.129138 |
rx_pots | POTS medication | Medications | MedicationRequest (any) | RxNorm ingredients: ivabradine, midodrine, fludrocortisone, pyridostigmine (122 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.545912 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.167944 |
rx_milnacipran | Milnacipran | Medications | MedicationRequest (any) | RxNorm ingredients: milnacipran (28 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.382474 |
rx_nsaid | NSAID pain reliever | Medications | MedicationRequest (any) | RxNorm ingredients: naproxen, ibuprofen, meloxicam, diclofenac, ketorolac (1712 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.255318 |
rx_muscle_relaxant | Muscle relaxant | Medications | MedicationRequest (any) | RxNorm ingredients: tizanidine, methocarbamol, baclofen (237 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.600579 |
rx_other_antidepressant | Bupropion, mirtazapine, or another antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: bupropion, mirtazapine, vortioxetine, vilazodone (223 RxCUIs listed in the model file) | days -1825 to -1 (H) | 2.082246 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | -0.098603 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | -0.060633 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | 0.251104 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | -0.176001 |
Score, calibration, and risk bands
score = -1.185411 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.208691 (about 20.9%).
Calibration points come from a logistic on binned training-split counts (a = -1.060449, b = 0.39768).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 31.3% | 1.50 |
| Elevated | 62.6% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -12.6463 | 0.23% |
| -11.5535 | 0.35% |
| -10.4607 | 0.54% |
| -9.3679 | 0.83% |
| -8.275 | 1.27% |
| -7.1822 | 1.95% |
| -6.0894 | 2.98% |
| -4.9966 | 4.53% |
| -3.9038 | 6.83% |
| -2.8109 | 10.2% |
| -1.7181 | 14.9% |
| -0.6253 | 21.3% |
| 0.4675 | 29.4% |
| 1.5603 | 39.2% |
| 2.6531 | 49.9% |
| 3.746 | 60.6% |
| 4.8388 | 70.3% |
| 5.9316 | 78.6% |
| 7.0244 | 85.0% |
| 8.1172 | 89.7% |
| 9.21 | 93.1% |
| 10.3029 | 95.4% |
| 11.3957 | 97.0% |
| 12.4885 | 98.0% |
| 13.5813 | 98.7% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Shrinkage variance (tau²): 0.367311.
- Features eligible: 86.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-depression-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 14.7% (0.71 times the average) | Female; Age 40-49; Emergency visit in the past year |
| James | built for the Long COVID card | Typical, 18.2% (0.87 times the average) | Age 40-49; COVID-19 |
| Rosa | built for the Long COVID card | Typical, 20.1% (0.97 times the average) | Female; Age 50-59; Long COVID |
| Lee | built for the Long COVID card | Typical, 22.8% (1.09 times the average) | Age 18-39 |
| Nora | built for the Long COVID card | Typical, 24.8% (1.19 times the average) | Age 18-39; Female; COVID-19 |
| Dana | built for the Lyme card | Typical, 20.1% (0.96 times the average) | Female; Age 50-59; Muscle or joint pain |
| Elena | built for the Chronic fatigue and ME/CFS card | Elevated, 33.3% (1.59 times the average) | Stimulant or wakefulness drug; Age 18-39; Female |
| Omar | built for the Chronic fatigue and ME/CFS card | Typical, 16.5% (0.79 times the average) | Age 40-49; Hypertension |
| Grace | built for the Chronic fatigue and ME/CFS card | Typical, 27.4% (1.31 times the average) | Female; Age 40-49; Chronic fatigue or ME/CFS |
| Sofia | built for the Fibromyalgia card | High, 70.0% (3.35 times the average) | SSRI or SNRI antidepressant; Sleep medication; Female |
| Priya | built for the Long COVID card | Typical, 19.4% (0.93 times the average) | Female; Age 40-49; Long COVID |
| Sam | built for the Long COVID card | Typical, 13.9% (0.66 times the average) | Age 50-59; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Theo | built for the Long COVID card | Typical, 16.6% (0.79 times the average) | Age 18-39; Long COVID; Fatigue or malaise coded in the past year |
| Yara | built for the Long COVID card | Typical, 21.3% (1.02 times the average) | Age 18-39; Female; Fatigue or malaise coded in the past year |
| Vera | built for the Long COVID card | Typical, 14.9% (0.72 times the average) | Female; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Will | built for the Long COVID card | Typical, 18.2% (0.87 times the average) | Age 40-49; COVID-19 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |
Anxiety (unm-anxiety 1.0.0)
Model file model/anxiety.json, status "research". Research decision support. Surfaces chart patterns for clinician review. Not a diagnosis.
What it predicts and for whom
- Predicts: Self-reported anxiety diagnosis. Participant reports having been told by a clinician that they have anxiety (All of Us Personal and Family Health History survey).
- Population: Adults with an EHR visit in the past year and no anxiety code (ICD-10-CM F41).
- Day 0: the scoring date (day 0 is the date the chart is scored; all windows look back from it).
Card wording, from the CDS Hooks service (web/functions/cds-services/_cds.js): "Chart pattern similar to patients who report an anxiety diagnosis that was never coded." The number is shown as "N times the average for adults with a visit in the past year" and as the "Probability that the patient reports an anxiety diagnosis".
When it does not score
- No usable birth date: "birth date missing or unusable (age is required)".
- Under 18 on day 0 (age is days / 365.25, as in training): "under 18 on the scoring date (the model covers adults)".
- A Condition coded ICD-10-CM F41 is dated on or before day 0, or has no usable date: "an anxiety diagnosis is already recorded".
- No AMB, EMER, or IMP encounter in days -365 to -1 (R): "no encounters in the past year (insufficient history)".
ICD-10-CM codes match by prefix with dots removed, so a listed code also matches its subcodes. In each case the app says why it did not score. Every rule reads only records dated on or before the scoring date; Conditions whose verificationStatus is refuted or entered-in-error, and records whose status is entered-in-error, are ignored. If a FHIR search the model needs failed or was forbidden, the result is "could not score: <resource> unavailable" instead of a score (interface spec, section 4c).
Windows
| Window | Days relative to day 0 |
|---|---|
H | -1825 to -1 |
R | -365 to -1 |
Features (84, of which 84 carry a weight)
Each feature is 0 or 1. Features that differ only in threshold (for example 2+ and 3+ of the same thing) show as one driver carrying the summed weight. ICD-10-CM codes are shown with dots for reading; the model file stores feature codes without dots.
| Feature | Label | Group | Source (kind) | Codes | Window | Weight |
|---|---|---|---|---|---|---|
age_18_39 | Age 18-39 | Demographics | Patient (age_band) | Patient.birthDate: age 18 to 39 on day 0 | on day 0 | 1.17858 |
age_40_49 | Age 40-49 | Demographics | Patient (age_band) | Patient.birthDate: age 40 to 49 on day 0 | on day 0 | 0.635782 |
age_50_59 | Age 50-59 | Demographics | Patient (age_band) | Patient.birthDate: age 50 to 59 on day 0 | on day 0 | 0.168333 |
age_60_69 | Age 60-69 | Demographics | Patient (age_band) | Patient.birthDate: age 60 to 69 on day 0 | on day 0 | -0.625077 |
age_70p | Age 70 or older | Demographics | Patient (age_band) | Patient.birthDate: age 70 and older on day 0 | on day 0 | -1.357707 |
sex_female | Female | Demographics | Patient (sex) | Patient.gender = female | on day 0 | 0.92015 |
cx_fatigue_other | Fatigue or malaise coded | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -1825 to -1 (H) | -0.400398 |
cx_fatigue_recent | Fatigue or malaise coded in the past year | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R53.0, R53.1, R53.81, R53.83 | days -365 to -1 (R) | -0.28011 |
cx_sleep | Sleep disturbance | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.0, G47.1, G47.8, G47.9, F51 | days -1825 to -1 (H) | -0.188671 |
cx_sleep_apnea | Sleep apnea | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G47.33 | days -1825 to -1 (H) | -0.365612 |
cx_cognitive | Cognitive symptoms (brain fog, memory) | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R41, G31.84 | days -1825 to -1 (H) | -0.170754 |
cx_autonomic | Palpitations, POTS, orthostatic hypotension, or dysautonomia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9 | days -1825 to -1 (H) | -0.32433 |
cx_dizzy_syncope | Dizziness or fainting | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R42, R55 | days -1825 to -1 (H) | -0.347299 |
cx_headache | Headache | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R51, G44 | days -1825 to -1 (H) | -0.064332 |
cx_migraine | Migraine | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G43 | days -1825 to -1 (H) | 0.165784 |
cx_myalgia_arthralgia | Muscle or joint pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.1, M25.5, M79.6 | days -1825 to -1 (H) | -0.666756 |
cx_chronic_pain | Chronic pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G89 | days -1825 to -1 (H) | -0.399266 |
cx_depression | Depression | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F32, F33 | days -1825 to -1 (H) | 0.572239 |
cx_ptsd | Posttraumatic stress disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: F43.1 | days -1825 to -1 (H) | 1.133541 |
cx_ibs_gi | Irritable bowel or gastrointestinal symptoms | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: K58, R10, R11, R14, R19 | days -1825 to -1 (H) | -0.316076 |
cx_sore_throat_nodes | Sore throat or enlarged lymph nodes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: J02, R59 | days -1825 to -1 (H) | -0.268455 |
cx_fever | Fever | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: R50 | days -1825 to -1 (H) | -0.525287 |
cx_lyme | Lyme disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: A69.2 | days -1825 to -1 (H) | -0.68444 |
cx_covid | COVID-19 | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U07.1 | days -1825 to -1 (H) | -0.424803 |
cx_long_covid | Long COVID | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: U09.9 | days -1825 to -1 (H) | -0.0277 |
cx_eds_hypermobility | Ehlers-Danlos syndrome or hypermobility | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: Q79.6, M35.7 | days -1825 to -1 (H) | 0.789063 |
cx_hypothyroid | Hypothyroidism | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E03 | days -1825 to -1 (H) | -0.504422 |
cx_anemia | Anemia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: D50, D51, D52, D53, D63, D64 | days -1825 to -1 (H) | -0.594288 |
cx_vitd_deficiency | Vitamin D deficiency | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E55 | days -1825 to -1 (H) | -0.513303 |
cx_autoimmune | Autoimmune or demyelinating disease | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M05, M06, M32, M35, L40, K50, K51, M45, G35 | days -1825 to -1 (H) | -0.184984 |
cx_obesity | Obesity | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E66, Z68.3, Z68.4 | days -1825 to -1 (H) | -0.43279 |
cx_diabetes | Diabetes | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: E10, E11 | days -1825 to -1 (H) | -0.588794 |
cx_hypertension | Hypertension | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I10 | days -1825 to -1 (H) | -0.870062 |
cx_heart_disease | Coronary disease or heart failure | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: I25, I50 | days -1825 to -1 (H) | -0.993745 |
cx_cancer | Cancer | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: C | days -1825 to -1 (H) | -0.982914 |
cx_cfs | Chronic fatigue or ME/CFS | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G93.3, R53.82 | days -1825 to -1 (H) | 0.02085 |
cx_tmj | Temporomandibular joint disorder | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M26.6 | days -1825 to -1 (H) | -0.086624 |
cx_rls | Restless legs syndrome | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: G25.81 | days -1825 to -1 (H) | -0.079688 |
cx_interstitial_cystitis | Interstitial cystitis or bladder pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: N30.1 | days -1825 to -1 (H) | 0.509897 |
cx_osteoarthritis | Osteoarthritis | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M15, M16, M17, M18, M19 | days -1825 to -1 (H) | -0.830087 |
cx_neck_back_pain | Neck or low back pain | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M54.2, M54.5 | days -1825 to -1 (H) | -0.388553 |
cx_fibromyalgia | Fibromyalgia | Conditions and symptoms (past 5 years) | Condition (any) | ICD-10-CM prefix: M79.7 | days -1825 to -1 (H) | 0.701769 |
clusters_ge3 | Three or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 3 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F32, F33 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | -0.250951 |
clusters_ge5 | Five or more symptom types | Symptom pattern | Condition (cluster_count_ge) | at least 5 of these symptom clusters coded fatigue: R53.0, R53.1, R53.81, R53.83, G93.3, R53.82 sleep: G47.0, G47.1, G47.8, G47.9, F51, G25.81 cognitive: R41, G31.84 autonomic: R00.0, R00.2, I49.8, G90.A, I95.1, G90.9, R42, R55 pain: R51, G44, M79.1, M25.5, M79.6, M26.6, M54.2, M54.5 mood: F32, F33 gi: K58, R10, R11, R14, R19 immune: J02, R59, R50 | days -1825 to -1 | 0.081303 |
px_tilt | Tilt-table test | Tests and evaluations | Procedure (any) | CPT: 93660 | days -1825 to -1 (H) | 0.609642 |
px_sleep_study | Sleep study | Tests and evaluations | Procedure (any) | CPT: 95806, 95807, 95808, 95809, 95810, 95811, G0398, G0399, G0400 | days -1825 to -1 (H) | -0.005821 |
px_brain_mri | Brain MRI | Tests and evaluations | Procedure (any) | CPT: 70551, 70552, 70553 | days -1825 to -1 (H) | -0.143039 |
px_echo | Echocardiogram | Tests and evaluations | Procedure (any) | CPT: 93303, 93304, 93305, 93306, 93307, 93308, 93312, 93313, 93314, 93315, 93316, 93317, 93318, 93350, 93351, 93352 | days -1825 to -1 (H) | -0.570942 |
px_cardiac_monitor | Holter or event monitor | Tests and evaluations | Procedure (any) | CPT: 93224, 93225, 93226, 93227, 93228, 93229, 93241, 93242, 93243, 93244, 93245, 93246, 93247, 93248, 93268, 93269, 93270, 93271, 93272 | days -1825 to -1 (H) | -0.240553 |
px_exercise_test | Exercise or cardiopulmonary exercise test | Tests and evaluations | Procedure (any) | CPT: 94621, 93015, 93016, 93017, 93018 | days -1825 to -1 (H) | -0.695493 |
px_neuropsych | Neuropsychological testing | Tests and evaluations | Procedure (any) | CPT: 96132, 96133, 96136, 96137, 96138, 96139 | days -1825 to -1 (H) | 0.227732 |
px_pt_eval | Physical therapy evaluation | Tests and evaluations | Procedure (any) | CPT: 97161, 97162, 97163 | days -1825 to -1 (H) | -0.396988 |
px_psychotherapy | Psychotherapy or psychiatric evaluation | Tests and evaluations | Procedure (any) | CPT: 90791, 90792, 90832, 90833, 90834, 90835, 90836, 90837, 90838 | days -1825 to -1 (H) | 0.588933 |
lab_tsh | Thyroid (TSH) test | Lab tests ordered | Observation (any) | LOINC: 10516-3, 11033-8, 11579-0, 11580-8, 12932-0, 12933-8, 12934-6, 12935-3, 12936-1, 12937-988 more12938-7, 12939-5, 12940-3, 12941-1, 12942-9, 12943-7, 12944-5, 12945-2, 12946-0, 12947-8, 12948-6, 13869-3, 13871-9, 13897-4, 14255-4, 14919-5, 14997-1, 14998-9, 14999-7, 15000-3, 17786-5, 20452-9, 25789-9, 25990-3, 25991-1, 26998-5, 29316-7, 29317-5, 29574-1, 29575-8, 3015-5, 30151-5, 3016-3, 3018-9, 3019-7, 33258-5, 33259-3, 33260-1, 33261-9, 33269-2, 34054-7, 35134-6, 40397-2, 40398-0, 40399-8, 40400-4, 40401-2, 40673-6, 44935-5, 44936-3, 45173-2, 47947-7, 47948-5, 47949-3, 47950-1, 47951-9, 47952-7, 47953-5, 48077-2, 48700-9, 50533-9, 50534-7, 50535-4, 50536-2, 50537-0, 50538-8, 50539-6, 50540-4, 50541-2, 5384-3, 5385-0, 55362-8, 56594-5, 57416-0, 57854-2, 58833-5, 58834-3, 63363-6, 63364-4, 63365-1, 63366-9, 65360-0, 69561-9, 70096-3, 77623-7, 82659-4, 90801-2, 99078-8 | days -1825 to -1 (H) | 0.033411 |
lab_ferritin | Ferritin test | Lab tests ordered | Observation (any) | LOINC: 14723-1, 14724-9, 20567-4, 2276-4, 24373-3, 48141-6, 53048-5, 74807-9, 86914-9 | days -1825 to -1 (H) | 0.21407 |
lab_b12 | Vitamin B12 test | Lab tests ordered | Observation (any) | LOINC: 1460-5, 14685-2, 14733-0, 15052-4, 16695-9, 16696-7, 1888-7, 2132-9, 2169-1, 2171-728 more2440-6, 26916-7, 3029-6, 3031-2, 3032-0, 30904-7, 30905-4, 30906-2, 32341-0, 33766-7, 4203-6, 49264-5, 54376-9, 54377-7, 54378-5, 55850-2, 55881-7, 55882-5, 55883-3, 55884-1, 55885-8, 59211-3, 72157-1, 72158-9, 72160-5, 96297-7, 96805-7, 96809-9 | days -1825 to -1 (H) | 0.165213 |
lab_vitamin_d | Vitamin D test | Lab tests ordered | Observation (any) | LOINC: 14635-7, 1989-3, 46269-7, 49054-0, 55814-8, 57566-2, 57567-0, 57568-8, 57569-6, 62292-812 more68438-1, 72403-9, 72404-7, 72888-1, 83070-3, 83071-1, 86918-0, 94673-1, 94674-9, 95593-0, 95594-8, 95595-5 | days -1825 to -1 (H) | -0.028813 |
lab_ana | Antinuclear antibody (ANA) test | Lab tests ordered | Observation (any) | LOINC: 101221-0, 101231-9, 11088-2, 11089-0, 11090-8, 11565-9, 11571-7, 13066-6, 13067-4, 13068-2267 more14030-1, 14235-6, 14240-6, 14607-6, 14608-4, 14609-2, 14610-0, 14611-8, 14612-6, 14613-4, 14614-2, 14615-9, 14616-7, 14722-3, 15398-1, 16139-8, 16392-3, 16393-1, 16394-9, 16824-5, 17031-6, 17032-4, 17341-9, 17380-7, 17532-3, 17533-1, 17535-6, 17536-4, 17569-5, 17583-6, 17584-4, 17586-9, 17587-7, 17589-3, 17590-1, 17591-9, 17592-7, 17791-5, 17792-3, 19137-9, 20398-4, 20399-2, 20400-8, 20401-6, 20432-1, 20435-4, 21260-5, 21423-9, 21522-8, 22296-8, 22297-6, 26023-2, 26703-9, 26880-5, 26975-3, 27048-8, 27200-5, 27416-7, 29374-6, 29948-7, 29949-5, 29953-7, 29954-5, 30138-2, 30342-0, 30556-5, 31372-6, 31535-8, 31540-8, 31541-6, 31542-4, 31543-2, 31544-0, 31562-2, 31563-0, 31627-3, 31628-1, 31693-5, 32041-6, 32715-5, 32716-3, 33253-6, 33460-7, 33566-1, 33567-9, 33568-7, 33569-5, 33570-3, 33600-8, 33635-4, 35278-1, 35333-4, 40655-3, 41025-8, 42212-1, 42213-9, 42214-7, 42254-3, 42498-6, 43100-7, 43119-7, 43182-5, 44083-4, 44751-6, 44752-4, 45142-7, 47074-0, 47383-5, 49309-8, 49310-6, 49311-4, 49738-8, 5047-6, 5048-4, 51749-0, 51928-0, 5234-0, 5235-7, 5275-3, 5276-1, 53002-2, 53006-3, 53007-1, 53008-9, 5301-7, 5302-5, 5348-8, 5349-6, 5351-2, 5352-0, 5353-8, 5354-6, 5355-3, 5356-1, 5357-9, 53983-3, 53984-1, 53985-8, 53986-6, 53987-4, 53988-2, 53989-0, 53990-8, 53991-6, 53992-4, 53993-2, 53994-0, 53997-3, 53998-1, 53999-9, 54000-5, 54005-4, 54006-2, 54149-0, 54154-0, 54155-7, 56148-0, 56693-5, 56721-4, 56723-0, 56724-8, 56725-5, 56730-5, 56731-3, 56733-9, 56977-2, 57010-1, 57431-9, 57448-3, 59069-5, 59390-5, 63238-0, 63239-8, 63265-3, 63266-1, 63267-9, 63294-3, 63295-0, 63296-8, 63297-6, 63305-7, 63306-5, 63307-3, 63308-1, 63317-2, 63318-0, 63319-8, 63334-7, 63335-4, 63336-2, 63337-0, 63338-8, 63345-3, 63346-1, 63347-9, 63348-7, 63349-5, 63350-3, 63351-1, 63352-9, 63353-7, 63354-5, 63388-3, 63389-1, 63390-9, 63391-7, 63393-3, 63394-1, 63398-2, 63399-0, 63400-6, 63401-4, 63402-2, 63403-0, 63404-8, 63405-5, 63406-3, 63536-7, 63540-9, 63542-5, 63545-8, 63546-6, 63547-4, 63569-8, 63570-6, 6822-1, 68369-8, 68370-6, 68371-4, 68372-2, 68373-0, 68374-8, 68375-5, 68376-3, 8061-4, 8076-2, 8088-7, 8091-1, 8092-9, 8093-7, 8094-5, 81728-8, 89501-1, 89502-9, 89526-8, 89527-6, 89529-2, 89531-8, 89533-4, 89535-9, 89536-7, 89537-5, 93712-8, 9399-7, 9423-5, 96919-6, 96920-4, 96921-2, 96922-0, 96923-8, 96924-6, 96925-3, 96926-1, 96927-9, 9722-0, 9839-2, 99069-7 | days -1825 to -1 (H) | 0.162993 |
lab_crp | C-reactive protein test | Lab tests ordered | Observation (any) | LOINC: 11039-5, 14634-0, 16503-5, 1988-5, 30522-7, 35648-5, 45062-7, 48421-2, 59182-6, 71426-13 more76485-2, 76486-0, 98987-1 | days -1825 to -1 (H) | 0.256555 |
lab_esr | Sedimentation rate (ESR) test | Lab tests ordered | Observation (any) | LOINC: 18184-2, 30341-2, 43402-7, 4537-7, 4538-5, 4539-3, 82477-1 | days -1825 to -1 (H) | 0.230445 |
lab_ebv | Epstein-Barr virus test | Lab tests ordered | Observation (any) | LOINC: 100677-4, 100678-2, 101817-5, 11009-8, 11010-6, 12212-7, 13236-5, 13237-3, 13238-1, 14083-0135 more16823-7, 16824-5, 16825-2, 16826-0, 16827-8, 18427-5, 18428-3, 20432-1, 20490-9, 20491-7, 21260-5, 22290-1, 22291-9, 22292-7, 22293-5, 22294-3, 22295-0, 22296-8, 22297-6, 22298-4, 23858-4, 23970-7, 23971-5, 23972-3, 23994-7, 23995-4, 23996-2, 24007-7, 24114-1, 24115-8, 24316-2, 26705-4, 30083-0, 30136-6, 30137-4, 30138-2, 30339-6, 30340-4, 31369-2, 31370-0, 31371-8, 31372-6, 31373-4, 31374-2, 31375-9, 32585-2, 32828-6, 32829-4, 32830-2, 32843-5, 32844-3, 32845-0, 33395-5, 33479-7, 34593-4, 34639-5, 35397-9, 35398-7, 36923-1, 40750-2, 40751-0, 40752-8, 40753-6, 42497-8, 42498-6, 43730-1, 47064-1, 47066-6, 47068-2, 47072-4, 47432-0, 47433-8, 47434-6, 47435-3, 47436-1, 47437-9, 47982-4, 48723-1, 49069-8, 49178-7, 49352-8, 49353-6, 49354-4, 49355-1, 49356-9, 49564-8, 5002-1, 5003-9, 5004-7, 5005-4, 50969-5, 51454-7, 5153-2, 5154-0, 5155-7, 5156-5, 5157-3, 5158-1, 5159-9, 5160-7, 53774-6, 56598-6, 56599-4, 58760-0, 59183-4, 59805-2, 66493-8, 6814-8, 6815-5, 69949-6, 72206-6, 7882-4, 7883-2, 7884-0, 7885-7, 7886-5, 81119-0, 83095-0, 84871-3, 84872-1, 87554-2, 93711-0, 93712-8, 93713-6, 93714-4, 93840-7, 93841-5, 94102-1, 94827-3, 94828-1, 94829-9, 94830-7, 95138-4, 9633-9, 97993-0 | days -1825 to -1 (H) | 0.027843 |
lab_lyme | Lyme disease test | Lab tests ordered | Observation (any) | LOINC: 100711-1, 101149-3, 101352-3, 101353-1, 101357-2, 101358-0, 101403-4, 103961-9, 10846-4, 10847-2265 more11006-4, 11007-2, 11550-1, 11551-9, 12781-1, 12860-3, 12861-1, 12862-9, 12863-7, 12864-5, 12865-2, 12866-0, 12867-8, 12868-6, 12869-4, 12873-6, 12874-4, 12877-7, 12878-5, 12879-3, 12880-1, 12881-9, 12882-7, 12883-5, 12884-3, 12885-0, 12886-8, 12887-6, 12888-4, 12889-2, 12890-0, 12891-8, 12892-6, 12896-7, 13202-7, 13203-5, 13204-3, 13205-0, 13206-8, 13207-6, 13502-0, 13503-8, 14077-2, 14078-0, 16475-6, 16476-4, 16477-2, 16478-0, 16479-8, 16480-6, 16481-4, 16482-2, 18201-4, 18202-2, 18203-0, 19052-0, 20449-5, 21116-9, 21117-7, 21118-5, 21119-3, 21120-1, 22118-4, 22119-2, 22120-0, 22121-8, 22122-6, 22123-4, 22124-2, 22125-9, 22126-7, 22127-5, 22128-3, 22129-1, 22130-9, 22131-7, 22132-5, 22133-3, 22134-1, 22135-8, 22136-6, 22137-4, 23676-0, 23833-7, 23966-5, 23977-2, 23978-0, 23979-8, 23980-6, 23981-4, 23982-2, 23983-0, 23984-8, 23985-5, 26006-7, 27982-8, 27985-1, 27986-9, 27992-7, 28002-4, 28036-2, 28037-0, 28039-6, 28040-4, 28043-8, 28048-7, 28053-7, 28054-5, 28055-2, 28056-0, 28057-8, 28058-6, 28062-8, 29898-4, 29952-9, 30010-3, 30011-1, 30012-9, 30013-7, 30014-5, 30015-2, 30016-0, 30017-8, 30018-6, 30019-4, 30020-2, 30021-0, 30128-3, 30526-8, 31155-5, 31268-6, 31269-4, 31738-8, 32666-0, 32667-8, 32668-6, 32669-4, 33931-7, 33932-5, 34148-7, 34942-3, 34943-1, 35638-6, 38173-1, 38174-9, 40612-4, 41279-1, 42236-0, 42237-8, 42238-6, 42239-4, 42589-2, 42767-4, 43074-4, 43075-1, 43076-9, 43077-7, 43573-5, 43842-4, 44020-6, 44452-1, 44453-9, 44454-7, 44455-4, 44456-2, 44946-2, 44947-0, 44948-8, 44949-6, 45165-8, 45189-8, 46174-9, 46248-1, 47304-1, 48500-3, 48651-4, 4991-6, 49973-1, 49974-9, 49975-6, 49976-4, 49977-2, 49978-0, 49979-8, 49980-6, 49981-4, 49982-2, 49983-0, 49984-8, 49991-3, 49992-1, 49993-9, 49994-7, 49995-4, 49996-2, 49997-0, 49998-8, 5060-9, 5061-7, 5062-5, 5063-3, 5064-1, 5065-8, 51742-5, 51743-3, 51744-1, 51745-8, 51746-6, 51747-4, 53362-0, 53363-8, 53364-6, 53730-8, 55726-4, 57916-9, 60342-3, 60343-1, 62341-3, 62342-1, 6318-0, 6319-8, 6320-6, 6321-4, 6322-2, 67823-5, 67825-0, 7817-0, 7818-8, 79708-4, 79709-2, 83080-2, 83081-0, 87423-0, 87547-6, 90893-9, 94247-4, 94250-8, 94475-1, 94476-9, 94477-7, 9586-9, 9587-7, 9588-5, 9589-3, 9590-1, 9591-9, 9592-7, 9593-5, 9594-3, 9595-0, 9596-8, 9597-6, 9598-4, 9599-2, 96427-0, 96428-8, 96429-6, 96430-4, 96431-2, 96432-0, 98204-1, 98205-8, 98206-6, 98207-4, 98208-2 | days -1825 to -1 (H) | -0.129973 |
lab_cortisol | Cortisol test | Lab tests ordered | Observation (any) | LOINC: 100662-6, 100799-6, 100800-2, 100801-0, 100802-8, 100803-6, 100998-4, 101315-0, 101316-8, 101319-2578 more101586-6, 101977-7, 101979-3, 101980-1, 102023-9, 102024-7, 102025-4, 102026-2, 102027-0, 102028-8, 10332-5, 103647-4, 11040-3, 11155-9, 12557-5, 12558-3, 12559-1, 12560-9, 12561-7, 12562-5, 12563-3, 12564-1, 12565-8, 12566-6, 12567-4, 12568-2, 12569-0, 12570-8, 13480-9, 1356-5, 1357-3, 13600-2, 13601-0, 13602-8, 13611-9, 13872-7, 1389-6, 1390-4, 1391-2, 1392-0, 1393-8, 1394-6, 1395-3, 1396-1, 1397-9, 1398-7, 1399-5, 1400-1, 1401-9, 1402-7, 1403-5, 1404-3, 14043-4, 1406-8, 1407-6, 1408-4, 1409-2, 1410-0, 1411-8, 1412-6, 1413-4, 1414-2, 14148-1, 1415-9, 14158-0, 1416-7, 1417-5, 1418-3, 1419-1, 1421-7, 1422-5, 1423-3, 1424-1, 1425-8, 1426-6, 1427-4, 1428-2, 1429-0, 1430-8, 1431-6, 1432-4, 1433-2, 1434-0, 1435-7, 1436-5, 1437-3, 1438-1, 1439-9, 1440-7, 1441-5, 1442-3, 1443-1, 1444-9, 1445-6, 1446-4, 1447-2, 1448-0, 1449-8, 1450-6, 1451-4, 14567-2, 14675-3, 14676-1, 14677-9, 14678-7, 14679-5, 15043-3, 15044-1, 16295-8, 1657-6, 16667-8, 16668-6, 16669-4, 16670-2, 16671-0, 16672-8, 16673-6, 16674-4, 16675-1, 18351-7, 18365-7, 20622-7, 20995-7, 21034-4, 21035-1, 21039-3, 21044-3, 21222-5, 21223-3, 21224-1, 21225-8, 21226-6, 2142-8, 2143-6, 2144-4, 2145-1, 2147-7, 24389-9, 24390-7, 24391-5, 24392-3, 24393-1, 24394-9, 24395-6, 25315-3, 25618-0, 25619-8, 25621-4, 25622-2, 25623-0, 25624-8, 25625-5, 25626-3, 25627-1, 25628-9, 25882-2, 25883-0, 25884-8, 25885-5, 26525-6, 26526-4, 26527-2, 26528-0, 26529-8, 26530-6, 26531-4, 26532-2, 26533-0, 26534-8, 26535-5, 26536-3, 26828-4, 27199-9, 28045-3, 28046-1, 28550-2, 29358-9, 29363-9, 2995-9, 2996-7, 30171-3, 30172-1, 30173-9, 32009-3, 32310-5, 32311-3, 32312-1, 32313-9, 32314-7, 32315-4, 33257-7, 33346-8, 34065-3, 34204-8, 34205-5, 34206-3, 34476-2, 34909-2, 38551-8, 40274-3, 40275-0, 40310-5, 40311-3, 40312-1, 40313-9, 40314-7, 40315-4, 40316-2, 40317-0, 40809-6, 40810-4, 40928-4, 41289-0, 41407-8, 42572-8, 43126-2, 43215-3, 43217-9, 44309-3, 44310-1, 44412-5, 44864-7, 44916-5, 44917-3, 45047-8, 45048-6, 45049-4, 45050-2, 45051-0, 45184-9, 45296-1, 46397-6, 46398-4, 46399-2, 46403-2, 46416-4, 47604-4, 47605-1, 47606-9, 47607-7, 47608-5, 47609-3, 47844-6, 47845-3, 47846-1, 47847-9, 47848-7, 47849-5, 47850-3, 47851-1, 48098-8, 48099-6, 48100-2, 48101-0, 48102-8, 48103-6, 48104-4, 48105-1, 49029-2, 49324-7, 49968-1, 49969-9, 50071-0, 50072-8, 50073-6, 50074-4, 50075-1, 50093-4, 50094-2, 50095-9, 50096-7, 50097-5, 50250-0, 50336-7, 50415-9, 50416-7, 50421-7, 50422-5, 50423-3, 50424-1, 50429-0, 50430-8, 50431-6, 50432-4, 50433-2, 50434-0, 50441-5, 50442-3, 50453-0, 50454-8, 50455-5, 50456-3, 50457-1, 50458-9, 50459-7, 50460-5, 50645-1, 50716-0, 50717-8, 50718-6, 50719-4, 50720-2, 50721-0, 50752-5, 50848-1, 51424-0, 51488-5, 51489-3, 51490-1, 51491-9, 51492-7, 51493-5, 51494-3, 51495-0, 51844-9, 53336-4, 53337-2, 53338-0, 53339-8, 53341-4, 53342-2, 53345-5, 53346-3, 54211-8, 54212-6, 54213-4, 54214-2, 54215-9, 54235-7, 54236-5, 55138-2, 55348-7, 55467-5, 55468-3, 55472-5, 55473-3, 55809-8, 55810-6, 55811-4, 55812-2, 55822-1, 55823-9, 55826-2, 55844-5, 55845-2, 56517-6, 56518-4, 56519-2, 56520-0, 56521-8, 56585-3, 57002-8, 57463-2, 57464-0, 57465-7, 57466-5, 57494-7, 57495-4, 57496-2, 57497-0, 57498-8, 57499-6, 57500-1, 57501-9, 57502-7, 57503-5, 57504-3, 57505-0, 57506-8, 57507-6, 57557-1, 57558-9, 57559-7, 57563-9, 57564-7, 57565-4, 57597-7, 57598-5, 57599-3, 57600-9, 57601-7, 57602-5, 57603-3, 57604-1, 57613-2, 57614-0, 57615-7, 57616-5, 57617-3, 57618-1, 57619-9, 57620-7, 57672-8, 57684-3, 57685-0, 57686-8, 57687-6, 57688-4, 57689-2, 57690-0, 57691-8, 57692-6, 57693-4, 57694-2, 57695-9, 57824-5, 57825-2, 58631-3, 58632-1, 58633-9, 58634-7, 58635-4, 58636-2, 58637-0, 58638-8, 58639-6, 58640-4, 58641-2, 58642-0, 58643-8, 58644-6, 58645-3, 58646-1, 58647-9, 58648-7, 58649-5, 58650-3, 58651-1, 58652-9, 58653-7, 58654-5, 58655-2, 58656-0, 58657-8, 58658-6, 58659-4, 58660-2, 58661-0, 58662-8, 58663-6, 58664-4, 58665-1, 58666-9, 58667-7, 58668-5, 58669-3, 58670-1, 58671-9, 58672-7, 58673-5, 58674-3, 58675-0, 58676-8, 58677-6, 58678-4, 58679-2, 58680-0, 58688-3, 58689-1, 58690-9, 58691-7, 58692-5, 58693-3, 58694-1, 58695-8, 58696-6, 58697-4, 58698-2, 58819-4, 58820-2, 58821-0, 58822-8, 58823-6, 58824-4, 58825-1, 58826-9, 58827-7, 58828-5, 58829-3, 58830-1, 58908-5, 58909-3, 58910-1, 58985-3, 59153-7, 59273-3, 59803-7, 59804-5, 60013-0, 60680-6, 60681-4, 65364-2, 68315-1, 6869-2, 71805-6, 72392-4, 73841-9, 73842-7, 73843-5, 73862-5, 73863-3, 73864-1, 73890-6, 73891-4, 73892-2, 74872-3, 75516-5, 76347-4, 76352-4, 77607-0, 77925-6, 77926-4, 77927-2, 77928-0, 77929-8, 77930-6, 77931-4, 77932-2, 77933-0, 77934-8, 77935-5, 77936-3, 77937-1, 78047-8, 78988-3, 81793-2, 81794-0, 81804-7, 82848-3, 82849-1, 82850-9, 82851-7, 82854-1, 82855-8, 82856-6, 82857-4, 82861-6, 82862-4, 82878-0, 82879-8, 82894-7, 82895-4, 82896-2, 82897-0, 82898-8, 82899-6, 82900-2, 82901-0, 82908-5, 82909-3, 83088-5, 83089-3, 83090-1, 83091-9, 87429-7, 93480-2, 93481-0, 93482-8, 93483-6, 93484-4, 93773-0, 94873-7, 95578-1, 95579-9, 95580-7, 95581-5, 95582-3, 9612-3, 9613-1, 9614-9, 9615-6, 96424-7, 96425-4, 96798-4, 96801-6, 97765-2, 9812-9, 9813-7 | days -1825 to -1 (H) | 0.420003 |
lab_ck | Creatine kinase test | Lab tests ordered | Observation (any) | LOINC: 101446-3, 12187-1, 12189-7, 13969-1, 14680-3, 15048-2, 15049-0, 16688-4, 20569-0, 2151-935 more2152-7, 2153-5, 2154-3, 2155-0, 2156-8, 2157-6, 2158-4, 24335-2, 26019-0, 26020-8, 32673-6, 33547-1, 34160-2, 38482-6, 49129-0, 49136-5, 49258-7, 49259-5, 49551-5, 50756-6, 50757-4, 51505-6, 51506-4, 51507-2, 53433-9, 5912-1, 59149-5, 72561-4, 72562-2, 72563-0, 72564-8, 72565-5, 83092-7, 9642-0, 9643-8 | days -1825 to -1 (H) | 0.061549 |
lab_rf | Rheumatoid factor test | Lab tests ordered | Observation (any) | LOINC: 11572-5, 11573-3, 13634-1, 13929-5, 13930-3, 14034-3, 15203-3, 15204-1, 15205-8, 15206-628 more17534-9, 17857-4, 25745-1, 25746-9, 29351-4, 30231-5, 31046-6, 33313-8, 33314-6, 33577-8, 33648-7, 33910-1, 43932-3, 45156-7, 46435-4, 46437-0, 5297-7, 5298-5, 5299-3, 5300-9, 53562-5, 53924-7, 63313-1, 63314-9, 63315-6, 6823-9, 6928-6, 9338-5 | days -1825 to -1 (H) | 0.298374 |
lab_ccp | Anti-CCP antibody test | Lab tests ordered | Observation (any) | LOINC: 32218-0, 33935-8, 42898-7, 46435-4, 46437-0, 53027-9, 53028-7, 57093-7, 63217-4, 63375-02 more82576-0, 94874-5 | days -1825 to -1 (H) | 0.415897 |
rx_stimulant | Stimulant or wakefulness drug | Medications | MedicationRequest (any) | RxNorm ingredients: modafinil, armodafinil, methylphenidate, amphetamine, dextroamphetamine, lisdexamfetamine (788 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.549593 |
rx_naltrexone | Naltrexone | Medications | MedicationRequest (any) | RxNorm ingredients: naltrexone (114 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.137913 |
rx_ssri_snri | SSRI or SNRI antidepressant | Medications | MedicationRequest (any) | RxNorm ingredients: sertraline, fluoxetine, citalopram, escitalopram, paroxetine, venlafaxine, duloxetine, desvenlafaxine (490 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.770372 |
rx_tricyclic_lowdose | Amitriptyline, nortriptyline, or cyclobenzaprine | Medications | MedicationRequest (any) | RxNorm ingredients: amitriptyline, nortriptyline, cyclobenzaprine (295 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.600059 |
rx_gabapentinoid | Gabapentin or pregabalin | Medications | MedicationRequest (any) | RxNorm ingredients: gabapentin, pregabalin (162 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.443813 |
rx_sleep_aid | Sleep medication | Medications | MedicationRequest (any) | RxNorm ingredients: zolpidem, trazodone, eszopiclone (169 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.790467 |
rx_beta_blocker | Beta blocker | Medications | MedicationRequest (any) | RxNorm ingredients: propranolol, metoprolol, atenolol, bisoprolol, nadolol, carvedilol (787 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.144616 |
rx_pots | POTS medication | Medications | MedicationRequest (any) | RxNorm ingredients: ivabradine, midodrine, fludrocortisone, pyridostigmine (122 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.614236 |
rx_opioid | Opioid | Medications | MedicationRequest (any) | RxNorm ingredients: oxycodone, hydrocodone, tramadol, morphine (3607 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.141792 |
rx_milnacipran | Milnacipran | Medications | MedicationRequest (any) | RxNorm ingredients: milnacipran (28 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.435677 |
rx_nsaid | NSAID pain reliever | Medications | MedicationRequest (any) | RxNorm ingredients: naproxen, ibuprofen, meloxicam, diclofenac, ketorolac (1712 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.255109 |
rx_muscle_relaxant | Muscle relaxant | Medications | MedicationRequest (any) | RxNorm ingredients: tizanidine, methocarbamol, baclofen (237 RxCUIs listed in the model file) | days -1825 to -1 (H) | 0.620474 |
rx_benzodiazepine | Benzodiazepine | Medications | MedicationRequest (any) | RxNorm ingredients: alprazolam, lorazepam, clonazepam, diazepam (564 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.070669 |
rx_buspirone_hydroxyzine | Buspirone or hydroxyzine | Medications | MedicationRequest (any) | RxNorm ingredients: buspirone, hydroxyzine (228 RxCUIs listed in the model file) | days -1825 to -1 (H) | 1.793517 |
util_out_r_ge6 | 6+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 6 Encounters) | days -365 to -1 (R) | -0.151418 |
util_out_r_ge12 | 12+ outpatient visits in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class AMB (at least 12 Encounters) | days -365 to -1 (R) | -0.077976 |
util_ed_r | Emergency visit in the past year | Health care use | Encounter (encounter_count_ge) | Encounter.class EMER (at least 1 Encounter) | days -365 to -1 (R) | 0.342323 |
util_ip_h | Hospital stay in the past 5 years | Health care use | Encounter (encounter_count_ge) | Encounter.class IMP (at least 1 Encounter) | days -1825 to -1 (H) | -0.1679 |
Score, calibration, and risk bands
score = -1.286731 + Σ weight × value. The probability is the piecewise-linear interpolation of the score over the calibration points below, clamped at the ends. The band is the first band whose upper limit is at or above the probability. "Times the average" is the probability divided by the cohort base rate in the model file, reference.cohort_base_rate = 0.145196 (about 14.5%).
Calibration points come from a logistic on binned training-split counts (a = -1.500075, b = 0.385902).
| Band | Probability up to | Times the average |
|---|---|---|
| Typical | 21.8% | 1.50 |
| Elevated | 43.6% | 3.00 |
| High | 100% | above 3.00 |
| Score | Probability |
|---|---|
| -15.0127 | 0.07% |
| -13.7977 | 0.11% |
| -12.5827 | 0.17% |
| -11.3677 | 0.28% |
| -10.1527 | 0.44% |
| -8.9377 | 0.70% |
| -7.7226 | 1.12% |
| -6.5076 | 1.78% |
| -5.2926 | 2.81% |
| -4.0776 | 4.42% |
| -2.8626 | 6.88% |
| -1.6476 | 10.6% |
| -0.4326 | 15.9% |
| 0.7824 | 23.2% |
| 1.9974 | 32.5% |
| 3.2124 | 43.5% |
| 4.4274 | 55.2% |
| 5.6424 | 66.3% |
| 6.8575 | 75.9% |
| 8.0725 | 83.4% |
| 9.2875 | 88.9% |
| 10.5025 | 92.8% |
| 11.7175 | 95.4% |
| 12.9325 | 97.0% |
| 14.1475 | 98.1% |
Validation and provenance
- Data: NIH All of Us Research Program, Registered Tier Dataset v9 (CDR R2025Q4R6).
- Method: Naive Bayes with empirical-Bayes shrinkage, fit outside the Researcher Workbench from dissemination-compliant summary counts (every released cell above 20, rounded up to a multiple of 10).
- Shrinkage variance (tau²): 0.403502.
- Features eligible: 84.
Intended use and limitations
- Decision support for clinician review of a single chart. It is not a diagnosis and does not rule a condition in or out.
- Validated retrospectively on one research program's records; it has not been evaluated prospectively or at a health system.
- The model is linear and every point of the score traces to a named, dated chart finding; findings outside the listed codes are invisible to it.
Test patients and expected results
Synthetic FHIR R4 bundles in model/test_vectors/bundles/, scored as of 2024-06-01. Expected outputs are in model/test_vectors/expected/unm-anxiety-1.0.0/; this generator reran the reference scorer on every bundle and they match. The JavaScript scorer must reproduce them to 1e-9.
| Patient | Scenario | Expected result | Top drivers |
|---|---|---|---|
| Maria | built for the Long COVID card | Typical, 10.2% (0.70 times the average) | Female; Age 40-49; Emergency visit in the past year |
| James | built for the Long COVID card | Typical, 13.1% (0.90 times the average) | Age 40-49; COVID-19 |
| Rosa | built for the Long COVID card | Typical, 14.9% (1.03 times the average) | Female; Age 50-59; Long COVID |
| Lee | built for the Long COVID card | Typical, 17.8% (1.23 times the average) | Age 18-39 |
| Nora | built for the Long COVID card | Typical, 20.8% (1.43 times the average) | Age 18-39; Female; COVID-19 |
| Dana | built for the Lyme card | Typical, 14.0% (0.96 times the average) | Female; Age 50-59; Muscle or joint pain |
| Elena | built for the Chronic fatigue and ME/CFS card | Elevated, 25.8% (1.78 times the average) | Stimulant or wakefulness drug; Age 18-39; Female |
| Omar | built for the Chronic fatigue and ME/CFS card | Typical, 11.1% (0.77 times the average) | Age 40-49; Hypertension |
| Grace | built for the Chronic fatigue and ME/CFS card | Typical, 20.2% (1.39 times the average) | Female; Age 40-49; Chronic fatigue or ME/CFS |
| Sofia | built for the Fibromyalgia card | not scored: an anxiety diagnosis is already recorded | |
| Priya | built for the Long COVID card | Typical, 14.0% (0.96 times the average) | Female; Age 40-49; Long COVID |
| Sam | built for the Long COVID card | Typical, 8.82% (0.61 times the average) | Age 50-59; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Theo | built for the Long COVID card | Typical, 12.3% (0.85 times the average) | Age 18-39; Long COVID; Fatigue or malaise coded in the past year |
| Yara | built for the Long COVID card | Typical, 16.7% (1.15 times the average) | Age 18-39; Female; Fatigue or malaise coded in the past year |
| Vera | built for the Long COVID card | Typical, 9.20% (0.63 times the average) | Female; Fatigue or malaise coded in the past year; Fatigue or malaise coded |
| Will | built for the Long COVID card | Typical, 13.1% (0.90 times the average) | Age 40-49; COVID-19 |
| Uma | no birth date: not scored by any model | not scored: birth date missing or unusable (age is required) | |
| Kai | 16 at the COVID-19 index, 17 on the scoring date: not scored by any model | not scored: under 18 on the scoring date (the model covers adults) |