{
  "principal_diagnosis": {
    "code": "K8033",
    "seq": 1,
    "description": "Calculus of bile duct with acute cholangitis with obstruction"
  },
  "secondary_diagnoses": [
    {
      "code": "K8590",
      "seq": 2,
      "description": "Acute pancreatitis without necrosis or infection, unspecified"
    },
    {
      "code": "K91840",
      "seq": 3,
      "description": "Postprocedural hemorrhage of a digestive system organ or structure following a digestive system procedure"
    },
    {
      "code": "K9189",
      "seq": 4,
      "description": "Other postprocedural complications and disorders of digestive system"
    },
    {
      "code": "N179",
      "seq": 5,
      "description": "Acute kidney failure, unspecified"
    },
    {
      "code": "N189",
      "seq": 6,
      "description": "Chronic kidney disease, unspecified"
    },
    {
      "code": "E860",
      "seq": 7,
      "description": "Dehydration"
    },
    {
      "code": "E1142",
      "seq": 8,
      "description": "Type 2 diabetes mellitus with diabetic polyneuropathy"
    },
    {
      "code": "E1165",
      "seq": 9,
      "description": "Type 2 diabetes mellitus with hyperglycemia"
    },
    {
      "code": "I5022",
      "seq": 10,
      "description": "Chronic systolic (congestive) heart failure"
    },
    {
      "code": "I2510",
      "seq": 11,
      "description": "Atherosclerotic heart disease of native coronary artery without angina pectoris"
    },
    {
      "code": "Z951",
      "seq": 12,
      "description": "Presence of aortocoronary bypass graft"
    },
    {
      "code": "I4892",
      "seq": 13,
      "description": "Unspecified atrial flutter"
    },
    {
      "code": "E876",
      "seq": 14,
      "description": "Hypokalemia"
    },
    {
      "code": "D631",
      "seq": 15,
      "description": "Anemia in chronic kidney disease"
    },
    {
      "code": "Z86718",
      "seq": 16,
      "description": "Personal history of other venous thrombosis and embolism"
    },
    {
      "code": "Z7901",
      "seq": 17,
      "description": "Long term (current) use of anticoagulants"
    },
    {
      "code": "M1A9XX1",
      "seq": 18,
      "description": "Chronic gout, unspecified, with tophus (tophi)"
    },
    {
      "code": "K2950",
      "seq": 19,
      "description": "Unspecified chronic gastritis without bleeding"
    },
    {
      "code": "N400",
      "seq": 20,
      "description": "Benign prostatic hyperplasia without lower urinary tract symptoms"
    },
    {
      "code": "J90",
      "seq": 21,
      "description": "Pleural effusion, not elsewhere classified"
    },
    {
      "code": "Z9049",
      "seq": 22,
      "description": "Acquired absence of other specified parts of digestive tract"
    }
  ],
  "procedures": [
    {
      "code": "0FC98ZZ",
      "seq": 1,
      "description": "Extirpation of Matter from Common Bile Duct, Via Natural or Artificial Opening Endoscopic"
    },
    {
      "code": "0F7C8ZZ",
      "seq": 2,
      "description": "Dilation of Ampulla of Vater, Via Natural or Artificial Opening Endoscopic"
    },
    {
      "code": "BF10YZZ",
      "seq": 3,
      "description": "Fluoroscopy of Bile Ducts using Other Contrast"
    },
    {
      "code": "0W3P8ZZ",
      "seq": 4,
      "description": "Control Bleeding in Gastrointestinal Tract, Via Natural or Artificial Opening Endoscopic"
    },
    {
      "code": "0DB68ZX",
      "seq": 5,
      "description": "Excision of Stomach, Via Natural or Artificial Opening Endoscopic, Diagnostic"
    },
    {
      "code": "30233N1",
      "seq": 6,
      "description": "Transfusion of Nonautologous Red Blood Cells into Peripheral Vein, Percutaneous Approach"
    }
  ],
  "total_diagnosis_count": 22,
  "total_procedure_count": 6
}