brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
problem-list-reviewReviews the active problem list by cross-referencing Conditions with medications, encounters, and labs to identify discrepancies. Use when user asks to "review the problem list", "audit diagnoses", "check conditions", "problem list reconciliation", "coding review", "are there missing diagnoses", or "what conditions are untreated". Do NOT use for allergy rev…
Independent GitHub snapshot · Automated classification · Original documentation governs
Perform a structured audit of the active problem list by pulling Condition resources and cross-referencing with MedicationRequests, recent Encounters, and Observations. Identify clinical discrepancies: conditions without active treatment, resolved conditions still listed as active, medications implying undocumented conditions, and ICD-10 coding specificity opportunities. Output actionable findings for clinical review.
| Resource | Purpose | Search Parameters |
|---|---|---|
| Condition | Active problem list | patient, clinical-status |
| MedicationRequest | Cross-reference treatments | patient, status=active |
| Encounter | Recent visit context | patient, date |
| Observation | Lab correlation | patient, category=laboratory, code |
Tool: fhir_search
resourceType: "Condition"
queryParams: "patient=[patient-id]"
Retrieve all conditions regardless of status. Categorize each by:
clinicalStatus: active, recurrence, relapse, inactive, remission, resolvedverificationStatus: confirmed, unconfirmed, provisional, differential, refuted, entered-in-errorcategory: problem-list-item, encounter-diagnosis, health-concerncode.coding: Extract SNOMED CT code and ICD-10-CM code if presentBuild two lists:
Tool: fhir_search
resourceType: "MedicationRequest"
queryParams: "patient=[patient-id]&status=active"
For each medication, extract:
medicationCodeableConceptdosageInstructionTool: fhir_search
resourceType: "Encounter"
queryParams: "patient=[patient-id]&date=ge[12-months-ago]&_sort=-date"
Extract encounter diagnoses from reasonCode or associated Condition references with category = encounter-diagnosis.
For each active medication, check if a corresponding condition exists on the active problem list. Use the medication-condition mapping reference.
Flag Type A -- Medication Without Matching Condition (Implied Diagnosis Missing):
| Medication / Class | Implied Condition | Check Problem List For |
|---|---|---|
| Metformin, glipizide, insulin | Type 2 Diabetes Mellitus | SNOMED 44054006 or ICD-10 E11.x |
| Lisinopril, losartan, amlodipine | Hypertension | SNOMED 59621000 or ICD-10 I10 |
| Atorvastatin, rosuvastatin | Hyperlipidemia | SNOMED 55822004 or ICD-10 E78.x |
| Levothyroxine | Hypothyroidism | SNOMED 40930008 or ICD-10 E03.x |
| Albuterol, fluticasone inhaler | Asthma or COPD | SNOMED 195967001 or 13645005 |
| Sertraline, fluoxetine, escitalopram | Depression or Anxiety | SNOMED 35489007 or 197480006 |
| Omeprazole, pantoprazole | GERD | SNOMED 235595009 or ICD-10 K21.0 |
| Warfarin, apixaban, rivaroxaban | A-fib, DVT/PE, or valve condition | SNOMED 49436004 |
| Gabapentin, pregabalin | Neuropathy, seizure disorder, or chronic pain | SNOMED 386033004 |
| Methotrexate | Rheumatoid arthritis or psoriasis | SNOMED 69896004 |
If medication is present but no matching condition exists on the active problem list, flag as: "Patient is on [medication] but [condition] is not on the active problem list."
For each active condition, check if there is at least one active medication or recent encounter addressing it.
Flag Type B -- Untreated Active Condition:
Flag Type C -- Potentially Resolved Conditions:
clinicalStatus = active but abatementDateTime is in the pastVerify with lab data where applicable:
Tool: fhir_search
resourceType: "Observation"
queryParams: "patient=[patient-id]&code=[relevant-LOINC]&_sort=-date&_count=1"
Examples:
For each active condition, check if the ICD-10 code can be made more specific:
Flag Type D -- Coding Specificity Opportunities:
| Current Code | Issue | Suggested Improvement |
|---|---|---|
| E11.9 (Type 2 DM without complications) | Patient has documented neuropathy or nephropathy | E11.40 (with neuropathy) or E11.22 (with CKD) |
| I10 (Essential hypertension) | Adequate but check for hypertensive heart/kidney disease | I11.x, I12.x, I13.x if applicable |
| E78.5 (Hyperlipidemia, unspecified) | Can specify type | E78.00 (pure hypercholesterolemia), E78.1 (hypertriglyceridemia) |
| J45.20 (Mild intermittent asthma, uncomplicated) | Patient on daily controller | J45.30 (mild persistent) or higher |
| M17.9 (Osteoarthritis of knee, unspecified) | Laterality missing | M17.11 (right), M17.12 (left) |
| F32.9 (Major depressive disorder, unspecified) | Can specify episode/severity | F32.0 (mild), F32.1 (moderate), F32.2 (severe) |
PROBLEM LIST REVIEW
===================
Patient: [name] ([patient-id])
Reviewed: [timestamp]
Active Conditions: [count]
Inactive/Resolved: [count]
Active Medications: [count]
ACTIVE PROBLEM LIST
-------------------
1. [Condition] - SNOMED: [code] / ICD-10: [code] - Onset: [date]
Treatment: [matching medication(s)]
2. ...
FINDINGS
--------
[A] MISSING DIAGNOSES (Medications imply undocumented conditions)
1. On Metformin 1000mg BID but Type 2 Diabetes not on problem list
-> Recommend adding: E11.9 Type 2 diabetes mellitus without complications
2. ...
[B] UNTREATED CONDITIONS
1. Essential hypertension (I10) - Active since 2020 - No antihypertensive medication found
-> Verify: Is patient on lifestyle management only? If pharmacotherapy indicated, address.
2. ...
[C] POTENTIALLY RESOLVED CONDITIONS
1. Acute bronchitis (J20.9) - Onset: 2025-03-15 - Still listed as active
-> Recommend: Update clinicalStatus to "resolved"
2. ...
[D] CODING SPECIFICITY OPPORTUNITIES
1. E11.9 (DM2 without complications) - Patient has documented diabetic neuropathy
-> Recommend: E11.40 (Type 2 DM with diabetic neuropathy)
2. ...
SUMMARY
-------
- [N] conditions reviewed
- [N] missing diagnoses identified
- [N] conditions potentially untreated
- [N] conditions potentially resolved
- [N] coding improvements suggested
User says: "Review the problem list for patient 44321"
Actions:
fhir_search Condition?patient=44321 -- returns 8 conditions (6 active, 2 resolved)fhir_search MedicationRequest?patient=44321&status=active -- returns 7 active medicationsfhir_search Encounter?patient=44321&date=ge2025-02-07&_sort=-date -- returns 4 encountersCross-reference findings:
Result: Formatted report with 2 missing diagnoses, 1 potentially resolved condition, 1 coding improvement.
User says: "Audit the problem list for patient 77890 after their hospital stay"
Actions:
fhir_search Condition?patient=77890 -- returns 12 conditionsfhir_search MedicationRequest?patient=77890&status=active -- returns 10 medicationsfhir_search Encounter?patient=77890&date=ge2025-02-07&_sort=-date -- returns 6 encounters including inpatient stayFindings:
Tool: fhir_read
resourceType: "Medication"
id: "[medication-reference-id]"
Medication.code.coding.category = "problem-list-item" to exclude encounter-only diagnoses.clinicalStatus to prioritize active conditions._count=50 and follow Bundle.link where relation = "next".clinical-summary-generator -- for full chart summary including problems in contextallergy-adverse-reaction-summary -- for allergy-specific reviewpatient-demographics-summary -- when problem list review reveals missing demographic data