758 lines
27 KiB
JSON
758 lines
27 KiB
JSON
{
|
|
"total_test_cases": 6,
|
|
"cases_with_abstentions_or_guarded_failures": 6,
|
|
"results": [
|
|
{
|
|
"case_id": "CASE-01-STANDARD-ADMISSION",
|
|
"title": "Comprehensive Inpatient Discharge (Acute Systolic HF, T2DM, HTN)",
|
|
"expected_behavior": "Success with Primary I50.21, Secondaries E11.9, I10. Historical PMH excluded.",
|
|
"status": "PARTIAL_SUCCESS",
|
|
"primary_diagnosis": {
|
|
"code": "I50.21",
|
|
"description": "Acute systolic (congestive) heart failure",
|
|
"confidence_score": 1.0
|
|
},
|
|
"secondary_diagnoses": [
|
|
{
|
|
"code": "E11.9",
|
|
"description": "Type 2 diabetes mellitus without complications",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"code": "I10",
|
|
"description": "Essential (primary) hypertension",
|
|
"confidence_score": 1.0
|
|
}
|
|
],
|
|
"abstention_count": 2,
|
|
"abstentions": [
|
|
{
|
|
"diagnosis": "Resolved seasonal allergic rhinitis.",
|
|
"reason": "EXCLUDED_BY_NEGATION",
|
|
"detail": "Excluded from coding: [PAST_MEDICAL_HISTORY] Past Medical History alone without documented inpatient evaluation, monitoring, or therapy.",
|
|
"stage": "CLASSIFICATION"
|
|
},
|
|
{
|
|
"diagnosis": "Severe acute shortness of breath and peripheral edema",
|
|
"reason": "EXCLUDED_BY_NEGATION",
|
|
"detail": "Symptom integral to the primary diagnosis; excluded under CMS Guideline I.B.4",
|
|
"stage": "CLASSIFICATION"
|
|
}
|
|
],
|
|
"audit_trail_sample": [
|
|
{
|
|
"document_id": "CASE-01-STANDARD-ADMISSION",
|
|
"diagnosis_id": "858c704c-b4d1-4ce8-8aed-19bca0d0ca3a",
|
|
"raw_term": "Resolved seasonal allergic rhinitis.",
|
|
"evidence": "2. Resolved seasonal allergic rhinitis.",
|
|
"context": {
|
|
"certainty": "CONFIRMED",
|
|
"temporality": "HISTORICAL",
|
|
"negation": "AFFIRMATIVE",
|
|
"acuity": "UNSPECIFIED"
|
|
},
|
|
"classification": {
|
|
"role": "EXCLUDED",
|
|
"is_billable": false,
|
|
"reason": "Excluded from coding: [PAST_MEDICAL_HISTORY] Past Medical History alone without documented inpatient evaluation, monitoring, or therapy."
|
|
},
|
|
"retrieved_candidates": [],
|
|
"selected_candidate": {
|
|
"code": null,
|
|
"description": null,
|
|
"confidence": 0.0,
|
|
"reason": "Candidate pool was empty; no matching local ICD code.",
|
|
"decision": "ABSTAINED"
|
|
},
|
|
"validation": {
|
|
"status": "REJECTED_OR_ABSTAINED",
|
|
"checks": []
|
|
},
|
|
"final_result": {
|
|
"code": null,
|
|
"description": null,
|
|
"role": null
|
|
}
|
|
},
|
|
{
|
|
"document_id": "CASE-01-STANDARD-ADMISSION",
|
|
"diagnosis_id": "80165556-6c96-4cb9-85cc-fb71a656e79d",
|
|
"raw_term": "Acute systolic heart failure",
|
|
"evidence": "1. Acute systolic heart failure - Patient admitted with acute exacerbation of systolic congestive heart failure. Echo demonstrated EF 20%. Treated with intravenous furosemide diuresis with marked symptomatic improvement.",
|
|
"context": {
|
|
"certainty": "CONFIRMED",
|
|
"temporality": "CURRENT",
|
|
"negation": "AFFIRMATIVE",
|
|
"acuity": "ACUTE"
|
|
},
|
|
"classification": {
|
|
"role": "PRIMARY",
|
|
"is_billable": true,
|
|
"reason": "Selected as unique Primary Diagnosis (score=11.0): Identified as principal condition occasioning admission (+6.0); Active intravenous / intensive therapeutic management administered (+2.0); Acute presentation (+2.0); Confirmed diagnostic certainty (+1.0)"
|
|
},
|
|
"retrieved_candidates": [
|
|
{
|
|
"code": "I50.21",
|
|
"description": "Acute systolic (congestive) heart failure",
|
|
"score": 0.9148
|
|
},
|
|
{
|
|
"code": "I50.23",
|
|
"description": "Acute on chronic systolic (congestive) heart failure",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "I50.20",
|
|
"description": "Unspecified systolic (congestive) heart failure",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "I50.22",
|
|
"description": "Chronic systolic (congestive) heart failure",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "I50.89",
|
|
"description": "Other heart failure",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "I50.9",
|
|
"description": "Heart failure, unspecified",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "I50.31",
|
|
"description": "Acute diastolic (congestive) heart failure",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "I50.33",
|
|
"description": "Acute on chronic diastolic (congestive) heart failure",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "I50.30",
|
|
"description": "Unspecified diastolic (congestive) heart failure",
|
|
"score": 0.8
|
|
},
|
|
{
|
|
"code": "I50.32",
|
|
"description": "Chronic diastolic (congestive) heart failure",
|
|
"score": 0.8
|
|
},
|
|
{
|
|
"code": "I50.82",
|
|
"description": "Biventricular heart failure",
|
|
"score": 0.8
|
|
},
|
|
{
|
|
"code": "I50.811",
|
|
"description": "Acute right heart failure",
|
|
"score": 0.7291
|
|
},
|
|
{
|
|
"code": "I50.41",
|
|
"description": "Acute combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.7197
|
|
},
|
|
{
|
|
"code": "I50.43",
|
|
"description": "Acute on chronic combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.6894
|
|
},
|
|
{
|
|
"code": "I50.813",
|
|
"description": "Acute on chronic right heart failure",
|
|
"score": 0.65
|
|
},
|
|
{
|
|
"code": "I50.40",
|
|
"description": "Unspecified combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.65
|
|
},
|
|
{
|
|
"code": "I50.42",
|
|
"description": "Chronic combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.65
|
|
},
|
|
{
|
|
"code": "I50.810",
|
|
"description": "Right heart failure, unspecified",
|
|
"score": 0.8
|
|
},
|
|
{
|
|
"code": "I50.812",
|
|
"description": "Chronic right heart failure",
|
|
"score": 0.8
|
|
},
|
|
{
|
|
"code": "I50.1",
|
|
"description": "Left ventricular failure, unspecified",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "I50.83",
|
|
"description": "High output heart failure",
|
|
"score": 0.8
|
|
},
|
|
{
|
|
"code": "I50.84",
|
|
"description": "End stage heart failure",
|
|
"score": 0.8
|
|
},
|
|
{
|
|
"code": "I50.814",
|
|
"description": "Right heart failure due to left heart failure",
|
|
"score": 0.5818
|
|
},
|
|
{
|
|
"code": "T86.22",
|
|
"description": "Heart transplant failure",
|
|
"score": 0.545
|
|
},
|
|
{
|
|
"code": "I97.130",
|
|
"description": "Postprocedural heart failure following cardiac surgery",
|
|
"score": 0.5852
|
|
}
|
|
],
|
|
"selected_candidate": {
|
|
"code": "I50.21",
|
|
"description": "Acute systolic (congestive) heart failure",
|
|
"confidence": 1.0,
|
|
"reason": "Candidate 'I50.21' (Acute systolic (congestive) heart failure) best supported by documentation (core diagnostic entity match (3/3), acute acuity match).",
|
|
"decision": "ACCEPTED"
|
|
},
|
|
"validation": {
|
|
"status": "PASSED",
|
|
"checks": [
|
|
{
|
|
"rule_name": "CatalogExistence",
|
|
"passed": true,
|
|
"details": "Code 'I50.21' exists in local authoritative catalog."
|
|
},
|
|
{
|
|
"rule_name": "TerminalSpecificity",
|
|
"passed": true,
|
|
"details": "Code 'I50.21' is at terminal billable specificity."
|
|
}
|
|
]
|
|
},
|
|
"final_result": {
|
|
"code": "I50.21",
|
|
"description": "Acute systolic (congestive) heart failure",
|
|
"role": "PRIMARY"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"case_id": "CASE-02-UNSUPPORTED-SPECIFICITY",
|
|
"title": "General Heart Failure Mention Without Subtype Specificity",
|
|
"expected_behavior": "Guardrail 11: Candidate ranking must align with I50.9 (unspecified) or abstain; never force I50.21.",
|
|
"status": "PARTIAL_SUCCESS",
|
|
"primary_diagnosis": {
|
|
"code": "I50.9",
|
|
"description": "Heart failure, unspecified",
|
|
"confidence_score": 1.0
|
|
},
|
|
"secondary_diagnoses": [],
|
|
"abstention_count": 1,
|
|
"abstentions": [
|
|
{
|
|
"diagnosis": "Fatigue and peripheral edema",
|
|
"reason": "EXCLUDED_BY_NEGATION",
|
|
"detail": "Symptom integral to the primary diagnosis; excluded under CMS Guideline I.B.4",
|
|
"stage": "CLASSIFICATION"
|
|
}
|
|
],
|
|
"audit_trail_sample": [
|
|
{
|
|
"document_id": "CASE-02-UNSUPPORTED-SPECIFICITY",
|
|
"diagnosis_id": "3a1b04c7-2cd6-4abb-83ec-2ce5eb614316",
|
|
"raw_term": "Heart failure",
|
|
"evidence": "1. Heart failure - Patient has documented history of heart failure. Maintenance oral furosemide was continued. No echocardiogram was performed during admission and ejection fraction was not documented.",
|
|
"context": {
|
|
"certainty": "CONFIRMED",
|
|
"temporality": "CURRENT",
|
|
"negation": "AFFIRMATIVE",
|
|
"acuity": "ACUTE"
|
|
},
|
|
"classification": {
|
|
"role": "PRIMARY",
|
|
"is_billable": true,
|
|
"reason": "Selected as unique Primary Diagnosis (score=6.5): Explicitly documented under discharge / final diagnoses (+5.0); Active intravenous / intensive therapeutic management administered (+2.0); Confirmed diagnostic certainty (+1.0); Chronic background condition without acute exacerbation (-1.5)"
|
|
},
|
|
"retrieved_candidates": [
|
|
{
|
|
"code": "I50.89",
|
|
"description": "Other heart failure",
|
|
"score": 0.8643
|
|
},
|
|
{
|
|
"code": "I50.9",
|
|
"description": "Heart failure, unspecified",
|
|
"score": 0.9167
|
|
},
|
|
{
|
|
"code": "I50.82",
|
|
"description": "Biventricular heart failure",
|
|
"score": 0.817
|
|
},
|
|
{
|
|
"code": "I50.20",
|
|
"description": "Unspecified systolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.21",
|
|
"description": "Acute systolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.22",
|
|
"description": "Chronic systolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.23",
|
|
"description": "Acute on chronic systolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.30",
|
|
"description": "Unspecified diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.31",
|
|
"description": "Acute diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.32",
|
|
"description": "Chronic diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.33",
|
|
"description": "Acute on chronic diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.811",
|
|
"description": "Acute right heart failure",
|
|
"score": 0.7825
|
|
},
|
|
{
|
|
"code": "I50.812",
|
|
"description": "Chronic right heart failure",
|
|
"score": 0.7741
|
|
},
|
|
{
|
|
"code": "I50.810",
|
|
"description": "Right heart failure, unspecified",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.813",
|
|
"description": "Acute on chronic right heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.1",
|
|
"description": "Left ventricular failure, unspecified",
|
|
"score": 0.7833
|
|
},
|
|
{
|
|
"code": "I50.84",
|
|
"description": "End stage heart failure",
|
|
"score": 0.7992
|
|
},
|
|
{
|
|
"code": "I50.83",
|
|
"description": "High output heart failure",
|
|
"score": 0.7825
|
|
},
|
|
{
|
|
"code": "I50.40",
|
|
"description": "Unspecified combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.41",
|
|
"description": "Acute combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.42",
|
|
"description": "Chronic combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.43",
|
|
"description": "Acute on chronic combined systolic (congestive) and diastolic (congestive) heart failure",
|
|
"score": 0.8667
|
|
},
|
|
{
|
|
"code": "I50.814",
|
|
"description": "Right heart failure due to left heart failure",
|
|
"score": 0.8905
|
|
},
|
|
{
|
|
"code": "T86.22",
|
|
"description": "Heart transplant failure",
|
|
"score": 0.8459
|
|
},
|
|
{
|
|
"code": "I09.81",
|
|
"description": "Rheumatic heart failure",
|
|
"score": 0.8197
|
|
}
|
|
],
|
|
"selected_candidate": {
|
|
"code": "I50.9",
|
|
"description": "Heart failure, unspecified",
|
|
"confidence": 1.0,
|
|
"reason": "Candidate 'I50.9' (Heart failure, unspecified) best supported by documentation (core diagnostic entity match (2/2), canonical base/unspecified code for general documentation).",
|
|
"decision": "ACCEPTED"
|
|
},
|
|
"validation": {
|
|
"status": "PASSED",
|
|
"checks": [
|
|
{
|
|
"rule_name": "CatalogExistence",
|
|
"passed": true,
|
|
"details": "Code 'I50.9' exists in local authoritative catalog."
|
|
},
|
|
{
|
|
"rule_name": "TerminalSpecificity",
|
|
"passed": true,
|
|
"details": "Code 'I50.9' is at terminal billable specificity."
|
|
}
|
|
]
|
|
},
|
|
"final_result": {
|
|
"code": "I50.9",
|
|
"description": "Heart failure, unspecified",
|
|
"role": "PRIMARY"
|
|
}
|
|
},
|
|
{
|
|
"document_id": "CASE-02-UNSUPPORTED-SPECIFICITY",
|
|
"diagnosis_id": "e93bc4bc-1e42-4491-8224-26be11e409bb",
|
|
"raw_term": "Fatigue and peripheral edema",
|
|
"evidence": "Fatigue and peripheral edema",
|
|
"context": {
|
|
"certainty": "CONFIRMED",
|
|
"temporality": "HISTORICAL",
|
|
"negation": "AFFIRMATIVE",
|
|
"acuity": "UNSPECIFIED"
|
|
},
|
|
"classification": {
|
|
"role": "EXCLUDED",
|
|
"is_billable": false,
|
|
"reason": "Symptom integral to the primary diagnosis; excluded under CMS Guideline I.B.4"
|
|
},
|
|
"retrieved_candidates": [],
|
|
"selected_candidate": {
|
|
"code": null,
|
|
"description": null,
|
|
"confidence": 0.0,
|
|
"reason": "Candidate pool was empty; no matching local ICD code.",
|
|
"decision": "ABSTAINED"
|
|
},
|
|
"validation": {
|
|
"status": "REJECTED_OR_ABSTAINED",
|
|
"checks": []
|
|
},
|
|
"final_result": {
|
|
"code": null,
|
|
"description": null,
|
|
"role": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"case_id": "CASE-03-RULED-OUT-CONDITION",
|
|
"title": "Ruled-Out Acute Condition (Myocardial Infarction)",
|
|
"expected_behavior": "Guardrail 4: Ruled-out MI cannot be coded as confirmed or primary; triggers abstention or exclusion.",
|
|
"status": "PARTIAL_SUCCESS",
|
|
"primary_diagnosis": {
|
|
"code": "R07.4",
|
|
"description": "Chest pain, unspecified",
|
|
"confidence_score": 1.0
|
|
},
|
|
"secondary_diagnoses": [],
|
|
"abstention_count": 1,
|
|
"abstentions": [
|
|
{
|
|
"diagnosis": "Non-cardiac chest pain",
|
|
"reason": "EXCLUDED_BY_NEGATION",
|
|
"detail": "Excluded from coding: [DISCHARGE_DIAGNOSES] Definitively ruled out during hospital stay based on diagnostic evaluation.",
|
|
"stage": "CLASSIFICATION"
|
|
}
|
|
],
|
|
"audit_trail_sample": [
|
|
{
|
|
"document_id": "CASE-03-RULED-OUT-CONDITION",
|
|
"diagnosis_id": "2e7e84ee-0a27-41ea-b1c0-c767223116b7",
|
|
"raw_term": "Non-cardiac chest pain",
|
|
"evidence": "1. Non-cardiac chest pain - Evaluated for acute coronary syndrome. Acute myocardial infarction was definitively ruled out by serial negative high-sensitivity troponins and normal ECG.",
|
|
"context": {
|
|
"certainty": "CONFIRMED",
|
|
"temporality": "HISTORICAL",
|
|
"negation": "AFFIRMATIVE",
|
|
"acuity": "UNSPECIFIED"
|
|
},
|
|
"classification": {
|
|
"role": "EXCLUDED",
|
|
"is_billable": false,
|
|
"reason": "Excluded from coding: [DISCHARGE_DIAGNOSES] Definitively ruled out during hospital stay based on diagnostic evaluation."
|
|
},
|
|
"retrieved_candidates": [],
|
|
"selected_candidate": {
|
|
"code": null,
|
|
"description": null,
|
|
"confidence": 0.0,
|
|
"reason": "Candidate pool was empty; no matching local ICD code.",
|
|
"decision": "ABSTAINED"
|
|
},
|
|
"validation": {
|
|
"status": "REJECTED_OR_ABSTAINED",
|
|
"checks": []
|
|
},
|
|
"final_result": {
|
|
"code": null,
|
|
"description": null,
|
|
"role": null
|
|
}
|
|
},
|
|
{
|
|
"document_id": "CASE-03-RULED-OUT-CONDITION",
|
|
"diagnosis_id": "29adba3a-9803-4a25-9c85-b48ad4b884a5",
|
|
"raw_term": "Acute substernal chest discomfort",
|
|
"evidence": "Acute substernal chest discomfort",
|
|
"context": {
|
|
"certainty": "CONFIRMED",
|
|
"temporality": "CURRENT",
|
|
"negation": "AFFIRMATIVE",
|
|
"acuity": "ACUTE"
|
|
},
|
|
"classification": {
|
|
"role": "PRIMARY",
|
|
"is_billable": true,
|
|
"reason": "Selected as unique Primary Diagnosis (score=4.5): Documented as chief complaint or direct reason for admission (+3.5); Acute presentation (+2.0); Confirmed diagnostic certainty (+1.0); Symptom / manifestation accompanying presentation (-2.0)"
|
|
},
|
|
"retrieved_candidates": [
|
|
{
|
|
"code": "R07.3",
|
|
"description": "Other chest pain",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "R07.89",
|
|
"description": "Other chest pain",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "R07.4",
|
|
"description": "Chest pain, unspecified",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "R07.9",
|
|
"description": "Chest pain, unspecified",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "D57.01",
|
|
"description": "Hb-SS disease with acute chest syndrome",
|
|
"score": 0.85
|
|
},
|
|
{
|
|
"code": "R07.1",
|
|
"description": "Chest pain on breathing",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "G89.18",
|
|
"description": "Other acute postprocedural pain",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "G89.11",
|
|
"description": "Acute pain due to trauma",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "G89.12",
|
|
"description": "Acute post-thoracotomy pain",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "G89.3",
|
|
"description": "Neoplasm related pain (acute) (chronic)",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "H53.149",
|
|
"description": "Visual discomfort, unspecified",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "R10.24",
|
|
"description": "Suprapubic pain",
|
|
"score": 0.75
|
|
},
|
|
{
|
|
"code": "L03.323",
|
|
"description": "Acute lymphangitis of chest wall",
|
|
"score": 0.65
|
|
},
|
|
{
|
|
"code": "D57.811",
|
|
"description": "Other sickle-cell disorders with acute chest syndrome",
|
|
"score": 0.65
|
|
},
|
|
{
|
|
"code": "D57.211",
|
|
"description": "Sickle-cell/Hb-C disease with acute chest syndrome",
|
|
"score": 0.65
|
|
},
|
|
{
|
|
"code": "D57.411",
|
|
"description": "Sickle-cell thalassemia, unspecified, with acute chest syndrome",
|
|
"score": 0.55
|
|
},
|
|
{
|
|
"code": "H53.143",
|
|
"description": "Visual discomfort, bilateral",
|
|
"score": 0.55
|
|
},
|
|
{
|
|
"code": "D57.451",
|
|
"description": "Sickle-cell thalassemia beta plus with acute chest syndrome",
|
|
"score": 0.5
|
|
},
|
|
{
|
|
"code": "H53.141",
|
|
"description": "Visual discomfort, right eye",
|
|
"score": 0.5066
|
|
},
|
|
{
|
|
"code": "H53.142",
|
|
"description": "Visual discomfort, left eye",
|
|
"score": 0.5066
|
|
}
|
|
],
|
|
"selected_candidate": {
|
|
"code": "R07.4",
|
|
"description": "Chest pain, unspecified",
|
|
"confidence": 1.0,
|
|
"reason": "Candidate 'R07.4' (Chest pain, unspecified) best supported by documentation (core diagnostic entity match (2/3), unspecified code when specific detail (substernal) is documented).",
|
|
"decision": "ACCEPTED"
|
|
},
|
|
"validation": {
|
|
"status": "PASSED",
|
|
"checks": [
|
|
{
|
|
"rule_name": "CatalogExistence",
|
|
"passed": true,
|
|
"details": "Code 'R07.4' exists in local authoritative catalog."
|
|
},
|
|
{
|
|
"rule_name": "TerminalSpecificity",
|
|
"passed": true,
|
|
"details": "Code 'R07.4' is at terminal billable specificity."
|
|
}
|
|
]
|
|
},
|
|
"final_result": {
|
|
"code": "R07.4",
|
|
"description": "Chest pain, unspecified",
|
|
"role": "PRIMARY"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"case_id": "CASE-04-HISTORICAL-PMH-ONLY",
|
|
"title": "Past Medical History Without Inpatient Care (Remote CVA)",
|
|
"expected_behavior": "Guardrail 5: Historical-only conditions cannot automatically become coded secondary diagnoses.",
|
|
"status": "SUCCESS",
|
|
"primary_diagnosis": null,
|
|
"secondary_diagnoses": [],
|
|
"abstention_count": 0,
|
|
"abstentions": [],
|
|
"audit_trail_sample": [
|
|
{
|
|
"document_id": "CASE-04-HISTORICAL-PMH-ONLY",
|
|
"diagnosis_id": "8efa00aa-a42d-43be-9c32-aea64f8f7752",
|
|
"raw_term": "Remote stroke in 2014 without residual neurological deficit.",
|
|
"evidence": "1. Remote stroke in 2014 without residual neurological deficit.",
|
|
"context": {
|
|
"certainty": "CONFIRMED",
|
|
"temporality": "HISTORICAL",
|
|
"negation": "AFFIRMATIVE",
|
|
"acuity": "UNSPECIFIED"
|
|
},
|
|
"classification": {
|
|
"role": "EXCLUDED",
|
|
"is_billable": false,
|
|
"reason": "Excluded from coding: [PAST_MEDICAL_HISTORY] Past Medical History alone without documented inpatient evaluation, monitoring, or therapy."
|
|
},
|
|
"retrieved_candidates": [],
|
|
"selected_candidate": null,
|
|
"validation": {
|
|
"status": "REJECTED_OR_ABSTAINED",
|
|
"checks": []
|
|
},
|
|
"final_result": {
|
|
"code": null,
|
|
"description": null,
|
|
"role": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"case_id": "CASE-05-EMPTY-DOCUMENT",
|
|
"title": "Empty / Whitespace-Only Document",
|
|
"expected_behavior": "Guardrail 12: Missing/insufficient text causes explicit document-level abstention/abortion.",
|
|
"status": "ABSTAINED",
|
|
"primary_diagnosis": null,
|
|
"secondary_diagnoses": [],
|
|
"abstention_count": 1,
|
|
"abstentions": [
|
|
{
|
|
"diagnosis": null,
|
|
"reason": "INSUFFICIENT_CLINICAL_EVIDENCE",
|
|
"detail": "Input document text, PDF, and image sources are all empty or missing.",
|
|
"stage": "VALIDATION"
|
|
}
|
|
],
|
|
"audit_trail_sample": []
|
|
},
|
|
{
|
|
"case_id": "CASE-06-NON-CLINICAL-GIBBERISH",
|
|
"title": "Non-Clinical Gibberish Text",
|
|
"expected_behavior": "Guardrail 12: Insufficient clinical evidence triggers graceful extraction abstention.",
|
|
"status": "ABSTAINED",
|
|
"primary_diagnosis": null,
|
|
"secondary_diagnoses": [],
|
|
"abstention_count": 1,
|
|
"abstentions": [
|
|
{
|
|
"diagnosis": null,
|
|
"reason": "INSUFFICIENT_CLINICAL_EVIDENCE",
|
|
"detail": "No clinical diagnosis mentions identified in document.",
|
|
"stage": "EXTRACTION"
|
|
}
|
|
],
|
|
"audit_trail_sample": []
|
|
}
|
|
]
|
|
} |