From 42be1b6d3bb31848eac281a8f0a44c8faa0efdad Mon Sep 17 00:00:00 2001 From: jaanli Date: Wed, 9 Oct 2024 12:32:02 -0400 Subject: [PATCH] update with glucose measurements aligned to last hospitalization time --- data/major_diagnostic_categories.csv | 766 +++++ data/mdc_dictionary.json | 102 + data/ms_drg_to_mdc.json | 2966 +++++++++++++++++ .../models/mdc_number_to_description.sql | 13 + data_processing/models/ms_drg_to_mdc.sql | 13 + ...-diagnostic-categories-for-drg-codes.ipynb | 152 + ...glucose-by-major-diagnostic-category.ipynb | 433 +++ 7 files changed, 4445 insertions(+) create mode 100644 data/major_diagnostic_categories.csv create mode 100644 data/mdc_dictionary.json create mode 100644 data/ms_drg_to_mdc.json create mode 100644 data_processing/models/mdc_number_to_description.sql create mode 100644 data_processing/models/ms_drg_to_mdc.sql create mode 100644 notebooks/241009-process-major-diagnostic-categories-for-drg-codes.ipynb create mode 100644 notebooks/241009-visualizing-glucose-by-major-diagnostic-category.ipynb diff --git a/data/major_diagnostic_categories.csv b/data/major_diagnostic_categories.csv new file mode 100644 index 0000000..8471757 --- /dev/null +++ b/data/major_diagnostic_categories.csv @@ -0,0 +1,766 @@ +001, ,P,HEART TRANSPLANT OR IMPLANT OF HEART ASSIST SYSTEM WITH MCC +002, ,P,HEART TRANSPLANT OR IMPLANT OF HEART ASSIST SYSTEM WITHOUT MCC +003, ,P,ECMO OR TRACHEOSTOMY WITH MV >96 HOURS OR PRINCIPAL DIAGNOSIS EXCEPT FACE, MOUTH AND NECK WITH MAJOR O.R. PROCEDURES +004, ,P,TRACHEOSTOMY WITH MV >96 HOURS OR PRINCIPAL DIAGNOSIS EXCEPT FACE, MOUTH AND NECK WITHOUT MAJOR O.R. PROCEDURES +005, ,P,LIVER TRANSPLANT WITH MCC OR INTESTINAL TRANSPLANT +006, ,P,LIVER TRANSPLANT WITHOUT MCC +007, ,P,LUNG TRANSPLANT +008, ,P,SIMULTANEOUS PANCREAS AND KIDNEY TRANSPLANT +010, ,P,PANCREAS TRANSPLANT +011, ,P,TRACHEOSTOMY FOR FACE, MOUTH AND NECK DIAGNOSES OR LARYNGECTOMY WITH MCC +012, ,P,TRACHEOSTOMY FOR FACE, MOUTH AND NECK DIAGNOSES OR LARYNGECTOMY WITH CC +013, ,P,TRACHEOSTOMY FOR FACE, MOUTH AND NECK DIAGNOSES OR LARYNGECTOMY WITHOUT CC/MCC +014, ,M,ALLOGENEIC BONE MARROW TRANSPLANT +016, ,M,AUTOLOGOUS BONE MARROW TRANSPLANT WITH CC/MCC +017, ,M,AUTOLOGOUS BONE MARROW TRANSPLANT WITHOUT CC/MCC +018, ,M,CHIMERIC ANTIGEN RECEPTOR (CAR) T-CELL AND OTHER IMMUNOTHERAPIES +019, ,P,SIMULTANEOUS PANCREAS AND KIDNEY TRANSPLANT WITH HEMODIALYSIS +020,MDC 01,P,INTRACRANIAL VASCULAR PROCEDURES WITH PRINCIPAL DIAGNOSIS HEMORRHAGE WITH MCC +021,MDC 01,P,INTRACRANIAL VASCULAR PROCEDURES WITH PRINCIPAL DIAGNOSIS HEMORRHAGE WITH CC +022,MDC 01,P,INTRACRANIAL VASCULAR PROCEDURES WITH PRINCIPAL DIAGNOSIS HEMORRHAGE WITHOUT CC/MCC +023,MDC 01,P,CRANIOTOMY WITH MAJOR DEVICE IMPLANT OR ACUTE COMPLEX CNS PRINCIPAL DIAGNOSIS WITH MCC OR CHEMOTHERAPY IMPLANT OR EPILEPSY WITH NEUROSTIMULATOR +024,MDC 01,P,CRANIOTOMY WITH MAJOR DEVICE IMPLANT OR ACUTE COMPLEX CNS PRINCIPAL DIAGNOSIS WITHOUT MCC +025,MDC 01,P,CRANIOTOMY AND ENDOVASCULAR INTRACRANIAL PROCEDURES WITH MCC +026,MDC 01,P,CRANIOTOMY AND ENDOVASCULAR INTRACRANIAL PROCEDURES WITH CC +027,MDC 01,P,CRANIOTOMY AND ENDOVASCULAR INTRACRANIAL PROCEDURES WITHOUT CC/MCC +028,MDC 01,P,SPINAL PROCEDURES WITH MCC +029,MDC 01,P,SPINAL PROCEDURES WITH CC OR SPINAL NEUROSTIMULATORS +030,MDC 01,P,SPINAL PROCEDURES WITHOUT CC/MCC +031,MDC 01,P,VENTRICULAR SHUNT PROCEDURES WITH MCC +032,MDC 01,P,VENTRICULAR SHUNT PROCEDURES WITH CC +033,MDC 01,P,VENTRICULAR SHUNT PROCEDURES WITHOUT CC/MCC +034,MDC 01,P,CAROTID ARTERY STENT PROCEDURES WITH MCC +035,MDC 01,P,CAROTID ARTERY STENT PROCEDURES WITH CC +036,MDC 01,P,CAROTID ARTERY STENT PROCEDURES WITHOUT CC/MCC +037,MDC 01,P,EXTRACRANIAL PROCEDURES WITH MCC +038,MDC 01,P,EXTRACRANIAL PROCEDURES WITH CC +039,MDC 01,P,EXTRACRANIAL PROCEDURES WITHOUT CC/MCC +040,MDC 01,P,PERIPHERAL, CRANIAL NERVE AND OTHER NERVOUS SYSTEM PROCEDURES WITH MCC +041,MDC 01,P,PERIPHERAL, CRANIAL NERVE AND OTHER NERVOUS SYSTEM PROCEDURES WITH CC OR PERIPHERAL NEUROSTIMULATOR +042,MDC 01,P,PERIPHERAL, CRANIAL NERVE AND OTHER NERVOUS SYSTEM PROCEDURES WITHOUT CC/MCC +052,MDC 01,M,SPINAL DISORDERS AND INJURIES WITH CC/MCC +053,MDC 01,M,SPINAL DISORDERS AND INJURIES WITHOUT CC/MCC +054,MDC 01,M,NERVOUS SYSTEM NEOPLASMS WITH MCC +055,MDC 01,M,NERVOUS SYSTEM NEOPLASMS WITHOUT MCC +056,MDC 01,M,DEGENERATIVE NERVOUS SYSTEM DISORDERS WITH MCC +057,MDC 01,M,DEGENERATIVE NERVOUS SYSTEM DISORDERS WITHOUT MCC +058,MDC 01,M,MULTIPLE SCLEROSIS AND CEREBELLAR ATAXIA WITH MCC +059,MDC 01,M,MULTIPLE SCLEROSIS AND CEREBELLAR ATAXIA WITH CC +060,MDC 01,M,MULTIPLE SCLEROSIS AND CEREBELLAR ATAXIA WITHOUT CC/MCC +061,MDC 01,M,ISCHEMIC STROKE, PRECEREBRAL OCCLUSION OR TRANSIENT ISCHEMIA WITH THROMBOLYTIC AGENT WITH MCC +062,MDC 01,M,ISCHEMIC STROKE, PRECEREBRAL OCCLUSION OR TRANSIENT ISCHEMIA WITH THROMBOLYTIC AGENT WITH CC +063,MDC 01,M,ISCHEMIC STROKE, PRECEREBRAL OCCLUSION OR TRANSIENT ISCHEMIA WITH THROMBOLYTIC AGENT WITHOUT CC/MCC +064,MDC 01,M,INTRACRANIAL HEMORRHAGE OR CEREBRAL INFARCTION WITH MCC +065,MDC 01,M,INTRACRANIAL HEMORRHAGE OR CEREBRAL INFARCTION WITH CC OR TPA IN 24 HOURS +066,MDC 01,M,INTRACRANIAL HEMORRHAGE OR CEREBRAL INFARCTION WITHOUT CC/MCC +067,MDC 01,M,NONSPECIFIC CVA AND PRECEREBRAL OCCLUSION WITHOUT INFARCTION WITH MCC +068,MDC 01,M,NONSPECIFIC CVA AND PRECEREBRAL OCCLUSION WITHOUT INFARCTION WITHOUT MCC +069,MDC 01,M,TRANSIENT ISCHEMIA WITHOUT THROMBOLYTIC +070,MDC 01,M,NONSPECIFIC CEREBROVASCULAR DISORDERS WITH MCC +071,MDC 01,M,NONSPECIFIC CEREBROVASCULAR DISORDERS WITH CC +072,MDC 01,M,NONSPECIFIC CEREBROVASCULAR DISORDERS WITHOUT CC/MCC +073,MDC 01,M,CRANIAL AND PERIPHERAL NERVE DISORDERS WITH MCC +074,MDC 01,M,CRANIAL AND PERIPHERAL NERVE DISORDERS WITHOUT MCC +075,MDC 01,M,VIRAL MENINGITIS WITH CC/MCC +076,MDC 01,M,VIRAL MENINGITIS WITHOUT CC/MCC +077,MDC 01,M,HYPERTENSIVE ENCEPHALOPATHY WITH MCC +078,MDC 01,M,HYPERTENSIVE ENCEPHALOPATHY WITH CC +079,MDC 01,M,HYPERTENSIVE ENCEPHALOPATHY WITHOUT CC/MCC +080,MDC 01,M,NONTRAUMATIC STUPOR AND COMA WITH MCC +081,MDC 01,M,NONTRAUMATIC STUPOR AND COMA WITHOUT MCC +082,MDC 01,M,TRAUMATIC STUPOR AND COMA >1 HOUR WITH MCC +083,MDC 01,M,TRAUMATIC STUPOR AND COMA >1 HOUR WITH CC +084,MDC 01,M,TRAUMATIC STUPOR AND COMA >1 HOUR WITHOUT CC/MCC +085,MDC 01,M,TRAUMATIC STUPOR AND COMA <1 HOUR WITH MCC +086,MDC 01,M,TRAUMATIC STUPOR AND COMA <1 HOUR WITH CC +087,MDC 01,M,TRAUMATIC STUPOR AND COMA <1 HOUR WITHOUT CC/MCC +088,MDC 01,M,CONCUSSION WITH MCC +089,MDC 01,M,CONCUSSION WITH CC +090,MDC 01,M,CONCUSSION WITHOUT CC/MCC +091,MDC 01,M,OTHER DISORDERS OF NERVOUS SYSTEM WITH MCC +092,MDC 01,M,OTHER DISORDERS OF NERVOUS SYSTEM WITH CC +093,MDC 01,M,OTHER DISORDERS OF NERVOUS SYSTEM WITHOUT CC/MCC +094,MDC 01,M,BACTERIAL AND TUBERCULOUS INFECTIONS OF NERVOUS SYSTEM WITH MCC +095,MDC 01,M,BACTERIAL AND TUBERCULOUS INFECTIONS OF NERVOUS SYSTEM WITH CC +096,MDC 01,M,BACTERIAL AND TUBERCULOUS INFECTIONS OF NERVOUS SYSTEM WITHOUT CC/MCC +097,MDC 01,M,NON-BACTERIAL INFECTION OF NERVOUS SYSTEM EXCEPT VIRAL MENINGITIS WITH MCC +098,MDC 01,M,NON-BACTERIAL INFECTION OF NERVOUS SYSTEM EXCEPT VIRAL MENINGITIS WITH CC +099,MDC 01,M,NON-BACTERIAL INFECTION OF NERVOUS SYSTEM EXCEPT VIRAL MENINGITIS WITHOUT CC/MCC +100,MDC 01,M,SEIZURES WITH MCC +101,MDC 01,M,SEIZURES WITHOUT MCC +102,MDC 01,M,HEADACHES WITH MCC +103,MDC 01,M,HEADACHES WITHOUT MCC +113,MDC 02,P,ORBITAL PROCEDURES WITH CC/MCC +114,MDC 02,P,ORBITAL PROCEDURES WITHOUT CC/MCC +115,MDC 02,P,EXTRAOCULAR PROCEDURES EXCEPT ORBIT +116,MDC 02,P,INTRAOCULAR PROCEDURES WITH CC/MCC +117,MDC 02,P,INTRAOCULAR PROCEDURES WITHOUT CC/MCC +121,MDC 02,M,ACUTE MAJOR EYE INFECTIONS WITH CC/MCC +122,MDC 02,M,ACUTE MAJOR EYE INFECTIONS WITHOUT CC/MCC +123,MDC 02,M,NEUROLOGICAL EYE DISORDERS +124,MDC 02,M,OTHER DISORDERS OF THE EYE WITH MCC OR THROMBOLYTIC AGENT +125,MDC 02,M,OTHER DISORDERS OF THE EYE WITHOUT MCC +135,MDC 03,P,SINUS AND MASTOID PROCEDURES WITH CC/MCC +136,MDC 03,P,SINUS AND MASTOID PROCEDURES WITHOUT CC/MCC +137,MDC 03,P,MOUTH PROCEDURES WITH CC/MCC +138,MDC 03,P,MOUTH PROCEDURES WITHOUT CC/MCC +139,MDC 03,P,SALIVARY GLAND PROCEDURES +140,MDC 03,P,MAJOR HEAD AND NECK PROCEDURES WITH MCC +141,MDC 03,P,MAJOR HEAD AND NECK PROCEDURES WITH CC +142,MDC 03,P,MAJOR HEAD AND NECK PROCEDURES WITHOUT CC/MCC +143,MDC 03,P,OTHER EAR, NOSE, MOUTH AND THROAT O.R. PROCEDURES WITH MCC +144,MDC 03,P,OTHER EAR, NOSE, MOUTH AND THROAT O.R. PROCEDURES WITH CC +145,MDC 03,P,OTHER EAR, NOSE, MOUTH AND THROAT O.R. PROCEDURES WITHOUT CC/MCC +146,MDC 03,M,EAR, NOSE, MOUTH AND THROAT MALIGNANCY WITH MCC +147,MDC 03,M,EAR, NOSE, MOUTH AND THROAT MALIGNANCY WITH CC +148,MDC 03,M,EAR, NOSE, MOUTH AND THROAT MALIGNANCY WITHOUT CC/MCC +149,MDC 03,M,DYSEQUILIBRIUM +150,MDC 03,M,EPISTAXIS WITH MCC +151,MDC 03,M,EPISTAXIS WITHOUT MCC +152,MDC 03,M,OTITIS MEDIA AND URI WITH MCC +153,MDC 03,M,OTITIS MEDIA AND URI WITHOUT MCC +154,MDC 03,M,OTHER EAR, NOSE, MOUTH AND THROAT DIAGNOSES WITH MCC +155,MDC 03,M,OTHER EAR, NOSE, MOUTH AND THROAT DIAGNOSES WITH CC +156,MDC 03,M,OTHER EAR, NOSE, MOUTH AND THROAT DIAGNOSES WITHOUT CC/MCC +157,MDC 03,M,DENTAL AND ORAL DISEASES WITH MCC +158,MDC 03,M,DENTAL AND ORAL DISEASES WITH CC +159,MDC 03,M,DENTAL AND ORAL DISEASES WITHOUT CC/MCC +163,MDC 04,P,MAJOR CHEST PROCEDURES WITH MCC +164,MDC 04,P,MAJOR CHEST PROCEDURES WITH CC +165,MDC 04,P,MAJOR CHEST PROCEDURES WITHOUT CC/MCC +166,MDC 04,P,OTHER RESPIRATORY SYSTEM O.R. PROCEDURES WITH MCC +167,MDC 04,P,OTHER RESPIRATORY SYSTEM O.R. PROCEDURES WITH CC +168,MDC 04,P,OTHER RESPIRATORY SYSTEM O.R. PROCEDURES WITHOUT CC/MCC +173,MDC 04,P,ULTRASOUND ACCELERATED AND OTHER THROMBOLYSIS WITH PRINCIPAL DIAGNOSIS PULMONARY EMBOLISM +175,MDC 04,M,PULMONARY EMBOLISM WITH MCC OR ACUTE COR PULMONALE +176,MDC 04,M,PULMONARY EMBOLISM WITHOUT MCC +177,MDC 04,M,RESPIRATORY INFECTIONS AND INFLAMMATIONS WITH MCC +178,MDC 04,M,RESPIRATORY INFECTIONS AND INFLAMMATIONS WITH CC +179,MDC 04,M,RESPIRATORY INFECTIONS AND INFLAMMATIONS WITHOUT CC/MCC +180,MDC 04,M,RESPIRATORY NEOPLASMS WITH MCC +181,MDC 04,M,RESPIRATORY NEOPLASMS WITH CC +182,MDC 04,M,RESPIRATORY NEOPLASMS WITHOUT CC/MCC +183,MDC 04,M,MAJOR CHEST TRAUMA WITH MCC +184,MDC 04,M,MAJOR CHEST TRAUMA WITH CC +185,MDC 04,M,MAJOR CHEST TRAUMA WITHOUT CC/MCC +186,MDC 04,M,PLEURAL EFFUSION WITH MCC +187,MDC 04,M,PLEURAL EFFUSION WITH CC +188,MDC 04,M,PLEURAL EFFUSION WITHOUT CC/MCC +189,MDC 04,M,PULMONARY EDEMA AND RESPIRATORY FAILURE +190,MDC 04,M,CHRONIC OBSTRUCTIVE PULMONARY DISEASE WITH MCC +191,MDC 04,M,CHRONIC OBSTRUCTIVE PULMONARY DISEASE WITH CC +192,MDC 04,M,CHRONIC OBSTRUCTIVE PULMONARY DISEASE WITHOUT CC/MCC +193,MDC 04,M,SIMPLE PNEUMONIA AND PLEURISY WITH MCC +194,MDC 04,M,SIMPLE PNEUMONIA AND PLEURISY WITH CC +195,MDC 04,M,SIMPLE PNEUMONIA AND PLEURISY WITHOUT CC/MCC +196,MDC 04,M,INTERSTITIAL LUNG DISEASE WITH MCC +197,MDC 04,M,INTERSTITIAL LUNG DISEASE WITH CC +198,MDC 04,M,INTERSTITIAL LUNG DISEASE WITHOUT CC/MCC +199,MDC 04,M,PNEUMOTHORAX WITH MCC +200,MDC 04,M,PNEUMOTHORAX WITH CC +201,MDC 04,M,PNEUMOTHORAX WITHOUT CC/MCC +202,MDC 04,M,BRONCHITIS AND ASTHMA WITH CC/MCC +203,MDC 04,M,BRONCHITIS AND ASTHMA WITHOUT CC/MCC +204,MDC 04,M,RESPIRATORY SIGNS AND SYMPTOMS +205,MDC 04,M,OTHER RESPIRATORY SYSTEM DIAGNOSES WITH MCC +206,MDC 04,M,OTHER RESPIRATORY SYSTEM DIAGNOSES WITHOUT MCC +207,MDC 04,M,RESPIRATORY SYSTEM DIAGNOSIS WITH VENTILATOR SUPPORT >96 HOURS +208,MDC 04,M,RESPIRATORY SYSTEM DIAGNOSIS WITH VENTILATOR SUPPORT <=96 HOURS +212,MDC 05,P,CONCOMITANT AORTIC AND MITRAL VALVE PROCEDURES +215,MDC 05,P,OTHER HEART ASSIST SYSTEM IMPLANT +216,MDC 05,P,CARDIAC VALVE AND OTHER MAJOR CARDIOTHORACIC PROCEDURES WITH CARDIAC CATHETERIZATION WITH MCC +217,MDC 05,P,CARDIAC VALVE AND OTHER MAJOR CARDIOTHORACIC PROCEDURES WITH CARDIAC CATHETERIZATION WITH CC +218,MDC 05,P,CARDIAC VALVE AND OTHER MAJOR CARDIOTHORACIC PROCEDURES WITH CARDIAC CATHETERIZATION WITHOUT CC/MCC +219,MDC 05,P,CARDIAC VALVE AND OTHER MAJOR CARDIOTHORACIC PROCEDURES WITHOUT CARDIAC CATHETERIZATION WITH MCC +220,MDC 05,P,CARDIAC VALVE AND OTHER MAJOR CARDIOTHORACIC PROCEDURES WITHOUT CARDIAC CATHETERIZATION WITH CC +221,MDC 05,P,CARDIAC VALVE AND OTHER MAJOR CARDIOTHORACIC PROCEDURES WITHOUT CARDIAC CATHETERIZATION WITHOUT CC/MCC +228,MDC 05,P,OTHER CARDIOTHORACIC PROCEDURES WITH MCC +229,MDC 05,P,OTHER CARDIOTHORACIC PROCEDURES WITHOUT MCC +231,MDC 05,P,CORONARY BYPASS WITH PTCA WITH MCC +232,MDC 05,P,CORONARY BYPASS WITH PTCA WITHOUT MCC +233,MDC 05,P,CORONARY BYPASS WITH CARDIAC CATHETERIZATION OR OPEN ABLATION WITH MCC +234,MDC 05,P,CORONARY BYPASS WITH CARDIAC CATHETERIZATION OR OPEN ABLATION WITHOUT MCC +235,MDC 05,P,CORONARY BYPASS WITHOUT CARDIAC CATHETERIZATION WITH MCC +236,MDC 05,P,CORONARY BYPASS WITHOUT CARDIAC CATHETERIZATION WITHOUT MCC +239,MDC 05,P,AMPUTATION FOR CIRCULATORY SYSTEM DISORDERS EXCEPT UPPER LIMB AND TOE WITH MCC +240,MDC 05,P,AMPUTATION FOR CIRCULATORY SYSTEM DISORDERS EXCEPT UPPER LIMB AND TOE WITH CC +241,MDC 05,P,AMPUTATION FOR CIRCULATORY SYSTEM DISORDERS EXCEPT UPPER LIMB AND TOE WITHOUT CC/MCC +242,MDC 05,P,PERMANENT CARDIAC PACEMAKER IMPLANT WITH MCC +243,MDC 05,P,PERMANENT CARDIAC PACEMAKER IMPLANT WITH CC +244,MDC 05,P,PERMANENT CARDIAC PACEMAKER IMPLANT WITHOUT CC/MCC +245,MDC 05,P,AICD GENERATOR PROCEDURES +250,MDC 05,P,PERCUTANEOUS CARDIOVASCULAR PROCEDURES WITHOUT INTRALUMINAL DEVICE WITH MCC +251,MDC 05,P,PERCUTANEOUS CARDIOVASCULAR PROCEDURES WITHOUT INTRALUMINAL DEVICE WITHOUT MCC +252,MDC 05,P,OTHER VASCULAR PROCEDURES WITH MCC +253,MDC 05,P,OTHER VASCULAR PROCEDURES WITH CC +254,MDC 05,P,OTHER VASCULAR PROCEDURES WITHOUT CC/MCC +255,MDC 05,P,UPPER LIMB AND TOE AMPUTATION FOR CIRCULATORY SYSTEM DISORDERS WITH MCC +256,MDC 05,P,UPPER LIMB AND TOE AMPUTATION FOR CIRCULATORY SYSTEM DISORDERS WITH CC +257,MDC 05,P,UPPER LIMB AND TOE AMPUTATION FOR CIRCULATORY SYSTEM DISORDERS WITHOUT CC/MCC +258,MDC 05,P,CARDIAC PACEMAKER DEVICE REPLACEMENT WITH MCC +259,MDC 05,P,CARDIAC PACEMAKER DEVICE REPLACEMENT WITHOUT MCC +260,MDC 05,P,CARDIAC PACEMAKER REVISION EXCEPT DEVICE REPLACEMENT WITH MCC +261,MDC 05,P,CARDIAC PACEMAKER REVISION EXCEPT DEVICE REPLACEMENT WITH CC +262,MDC 05,P,CARDIAC PACEMAKER REVISION EXCEPT DEVICE REPLACEMENT WITHOUT CC/MCC +263,MDC 05,P,VEIN LIGATION AND STRIPPING +264,MDC 05,P,OTHER CIRCULATORY SYSTEM O.R. PROCEDURES +265,MDC 05,P,AICD LEAD PROCEDURES +266,MDC 05,P,ENDOVASCULAR CARDIAC VALVE REPLACEMENT AND SUPPLEMENT PROCEDURES WITH MCC +267,MDC 05,P,ENDOVASCULAR CARDIAC VALVE REPLACEMENT AND SUPPLEMENT PROCEDURES WITHOUT MCC +268,MDC 05,P,AORTIC AND HEART ASSIST PROCEDURES EXCEPT PULSATION BALLOON WITH MCC +269,MDC 05,P,AORTIC AND HEART ASSIST PROCEDURES EXCEPT PULSATION BALLOON WITHOUT MCC +270,MDC 05,P,OTHER MAJOR CARDIOVASCULAR PROCEDURES WITH MCC +271,MDC 05,P,OTHER MAJOR CARDIOVASCULAR PROCEDURES WITH CC +272,MDC 05,P,OTHER MAJOR CARDIOVASCULAR PROCEDURES WITHOUT CC/MCC +273,MDC 05,P,PERCUTANEOUS AND OTHER INTRACARDIAC PROCEDURES WITH MCC +274,MDC 05,P,PERCUTANEOUS AND OTHER INTRACARDIAC PROCEDURES WITHOUT MCC +275,MDC 05,P,CARDIAC DEFIBRILLATOR IMPLANT WITH CARDIAC CATHETERIZATION AND MCC +276,MDC 05,P,CARDIAC DEFIBRILLATOR IMPLANT WITH MCC +277,MDC 05,P,CARDIAC DEFIBRILLATOR IMPLANT WITHOUT MCC +278,MDC 05,P,ULTRASOUND ACCELERATED AND OTHER THROMBOLYSIS OF PERIPHERAL VASCULAR STRUCTURES WITH MCC +279,MDC 05,P,ULTRASOUND ACCELERATED AND OTHER THROMBOLYSIS OF PERIPHERAL VASCULAR STRUCTURES WITHOUT MCC +280,MDC 05,M,ACUTE MYOCARDIAL INFARCTION, DISCHARGED ALIVE WITH MCC +281,MDC 05,M,ACUTE MYOCARDIAL INFARCTION, DISCHARGED ALIVE WITH CC +282,MDC 05,M,ACUTE MYOCARDIAL INFARCTION, DISCHARGED ALIVE WITHOUT CC/MCC +283,MDC 05,M,ACUTE MYOCARDIAL INFARCTION, EXPIRED WITH MCC +284,MDC 05,M,ACUTE MYOCARDIAL INFARCTION, EXPIRED WITH CC +285,MDC 05,M,ACUTE MYOCARDIAL INFARCTION, EXPIRED WITHOUT CC/MCC +286,MDC 05,M,CIRCULATORY DISORDERS EXCEPT AMI, WITH CARDIAC CATHETERIZATION WITH MCC +287,MDC 05,M,CIRCULATORY DISORDERS EXCEPT AMI, WITH CARDIAC CATHETERIZATION WITHOUT MCC +288,MDC 05,M,ACUTE AND SUBACUTE ENDOCARDITIS WITH MCC +289,MDC 05,M,ACUTE AND SUBACUTE ENDOCARDITIS WITH CC +290,MDC 05,M,ACUTE AND SUBACUTE ENDOCARDITIS WITHOUT CC/MCC +291,MDC 05,M,HEART FAILURE AND SHOCK WITH MCC +292,MDC 05,M,HEART FAILURE AND SHOCK WITH CC +293,MDC 05,M,HEART FAILURE AND SHOCK WITHOUT CC/MCC +294,MDC 05,M,DEEP VEIN THROMBOPHLEBITIS WITH CC/MCC +295,MDC 05,M,DEEP VEIN THROMBOPHLEBITIS WITHOUT CC/MCC +296,MDC 05,M,CARDIAC ARREST, UNEXPLAINED WITH MCC +297,MDC 05,M,CARDIAC ARREST, UNEXPLAINED WITH CC +298,MDC 05,M,CARDIAC ARREST, UNEXPLAINED WITHOUT CC/MCC +299,MDC 05,M,PERIPHERAL VASCULAR DISORDERS WITH MCC +300,MDC 05,M,PERIPHERAL VASCULAR DISORDERS WITH CC +301,MDC 05,M,PERIPHERAL VASCULAR DISORDERS WITHOUT CC/MCC +302,MDC 05,M,ATHEROSCLEROSIS WITH MCC +303,MDC 05,M,ATHEROSCLEROSIS WITHOUT MCC +304,MDC 05,M,HYPERTENSION WITH MCC +305,MDC 05,M,HYPERTENSION WITHOUT MCC +306,MDC 05,M,CARDIAC CONGENITAL AND VALVULAR DISORDERS WITH MCC +307,MDC 05,M,CARDIAC CONGENITAL AND VALVULAR DISORDERS WITHOUT MCC +308,MDC 05,M,CARDIAC ARRHYTHMIA AND CONDUCTION DISORDERS WITH MCC +309,MDC 05,M,CARDIAC ARRHYTHMIA AND CONDUCTION DISORDERS WITH CC +310,MDC 05,M,CARDIAC ARRHYTHMIA AND CONDUCTION DISORDERS WITHOUT CC/MCC +311,MDC 05,M,ANGINA PECTORIS +312,MDC 05,M,SYNCOPE AND COLLAPSE +313,MDC 05,M,CHEST PAIN +314,MDC 05,M,OTHER CIRCULATORY SYSTEM DIAGNOSES WITH MCC +315,MDC 05,M,OTHER CIRCULATORY SYSTEM DIAGNOSES WITH CC +316,MDC 05,M,OTHER CIRCULATORY SYSTEM DIAGNOSES WITHOUT CC/MCC +319,MDC 05,P,OTHER ENDOVASCULAR CARDIAC VALVE PROCEDURES WITH MCC +320,MDC 05,P,OTHER ENDOVASCULAR CARDIAC VALVE PROCEDURES WITHOUT MCC +321,MDC 05,P,PERCUTANEOUS CARDIOVASCULAR PROCEDURES WITH INTRALUMINAL DEVICE WITH MCC OR 4+ ARTERIES/INTRALUMINAL DEVICES +322,MDC 05,P,PERCUTANEOUS CARDIOVASCULAR PROCEDURES WITH INTRALUMINAL DEVICE WITHOUT MCC +323,MDC 05,P,CORONARY INTRAVASCULAR LITHOTRIPSY WITH INTRALUMINAL DEVICE WITH MCC +324,MDC 05,P,CORONARY INTRAVASCULAR LITHOTRIPSY WITH INTRALUMINAL DEVICE WITHOUT MCC +325,MDC 05,P,CORONARY INTRAVASCULAR LITHOTRIPSY WITHOUT INTRALUMINAL DEVICE +326,MDC 06,P,STOMACH, ESOPHAGEAL AND DUODENAL PROCEDURES WITH MCC +327,MDC 06,P,STOMACH, ESOPHAGEAL AND DUODENAL PROCEDURES WITH CC +328,MDC 06,P,STOMACH, ESOPHAGEAL AND DUODENAL PROCEDURES WITHOUT CC/MCC +329,MDC 06,P,MAJOR SMALL AND LARGE BOWEL PROCEDURES WITH MCC +330,MDC 06,P,MAJOR SMALL AND LARGE BOWEL PROCEDURES WITH CC +331,MDC 06,P,MAJOR SMALL AND LARGE BOWEL PROCEDURES WITHOUT CC/MCC +332,MDC 06,P,RECTAL RESECTION WITH MCC +333,MDC 06,P,RECTAL RESECTION WITH CC +334,MDC 06,P,RECTAL RESECTION WITHOUT CC/MCC +335,MDC 06,P,PERITONEAL ADHESIOLYSIS WITH MCC +336,MDC 06,P,PERITONEAL ADHESIOLYSIS WITH CC +337,MDC 06,P,PERITONEAL ADHESIOLYSIS WITHOUT CC/MCC +344,MDC 06,P,MINOR SMALL AND LARGE BOWEL PROCEDURES WITH MCC +345,MDC 06,P,MINOR SMALL AND LARGE BOWEL PROCEDURES WITH CC +346,MDC 06,P,MINOR SMALL AND LARGE BOWEL PROCEDURES WITHOUT CC/MCC +347,MDC 06,P,ANAL AND STOMAL PROCEDURES WITH MCC +348,MDC 06,P,ANAL AND STOMAL PROCEDURES WITH CC +349,MDC 06,P,ANAL AND STOMAL PROCEDURES WITHOUT CC/MCC +350,MDC 06,P,INGUINAL AND FEMORAL HERNIA PROCEDURES WITH MCC +351,MDC 06,P,INGUINAL AND FEMORAL HERNIA PROCEDURES WITH CC +352,MDC 06,P,INGUINAL AND FEMORAL HERNIA PROCEDURES WITHOUT CC/MCC +353,MDC 06,P,HERNIA PROCEDURES EXCEPT INGUINAL AND FEMORAL WITH MCC +354,MDC 06,P,HERNIA PROCEDURES EXCEPT INGUINAL AND FEMORAL WITH CC +355,MDC 06,P,HERNIA PROCEDURES EXCEPT INGUINAL AND FEMORAL WITHOUT CC/MCC +356,MDC 06,P,OTHER DIGESTIVE SYSTEM O.R. PROCEDURES WITH MCC +357,MDC 06,P,OTHER DIGESTIVE SYSTEM O.R. PROCEDURES WITH CC +358,MDC 06,P,OTHER DIGESTIVE SYSTEM O.R. PROCEDURES WITHOUT CC/MCC +368,MDC 06,M,MAJOR ESOPHAGEAL DISORDERS WITH MCC +369,MDC 06,M,MAJOR ESOPHAGEAL DISORDERS WITH CC +370,MDC 06,M,MAJOR ESOPHAGEAL DISORDERS WITHOUT CC/MCC +371,MDC 06,M,MAJOR GASTROINTESTINAL DISORDERS AND PERITONEAL INFECTIONS WITH MCC +372,MDC 06,M,MAJOR GASTROINTESTINAL DISORDERS AND PERITONEAL INFECTIONS WITH CC +373,MDC 06,M,MAJOR GASTROINTESTINAL DISORDERS AND PERITONEAL INFECTIONS WITHOUT CC/MCC +374,MDC 06,M,DIGESTIVE MALIGNANCY WITH MCC +375,MDC 06,M,DIGESTIVE MALIGNANCY WITH CC +376,MDC 06,M,DIGESTIVE MALIGNANCY WITHOUT CC/MCC +377,MDC 06,M,GASTROINTESTINAL HEMORRHAGE WITH MCC +378,MDC 06,M,GASTROINTESTINAL HEMORRHAGE WITH CC +379,MDC 06,M,GASTROINTESTINAL HEMORRHAGE WITHOUT CC/MCC +380,MDC 06,M,COMPLICATED PEPTIC ULCER WITH MCC +381,MDC 06,M,COMPLICATED PEPTIC ULCER WITH CC +382,MDC 06,M,COMPLICATED PEPTIC ULCER WITHOUT CC/MCC +383,MDC 06,M,UNCOMPLICATED PEPTIC ULCER WITH MCC +384,MDC 06,M,UNCOMPLICATED PEPTIC ULCER WITHOUT MCC +385,MDC 06,M,INFLAMMATORY BOWEL DISEASE WITH MCC +386,MDC 06,M,INFLAMMATORY BOWEL DISEASE WITH CC +387,MDC 06,M,INFLAMMATORY BOWEL DISEASE WITHOUT CC/MCC +388,MDC 06,M,GASTROINTESTINAL OBSTRUCTION WITH MCC +389,MDC 06,M,GASTROINTESTINAL OBSTRUCTION WITH CC +390,MDC 06,M,GASTROINTESTINAL OBSTRUCTION WITHOUT CC/MCC +391,MDC 06,M,ESOPHAGITIS, GASTROENTERITIS AND MISCELLANEOUS DIGESTIVE DISORDERS WITH MCC +392,MDC 06,M,ESOPHAGITIS, GASTROENTERITIS AND MISCELLANEOUS DIGESTIVE DISORDERS WITHOUT MCC +393,MDC 06,M,OTHER DIGESTIVE SYSTEM DIAGNOSES WITH MCC +394,MDC 06,M,OTHER DIGESTIVE SYSTEM DIAGNOSES WITH CC +395,MDC 06,M,OTHER DIGESTIVE SYSTEM DIAGNOSES WITHOUT CC/MCC +397,MDC 06,P,APPENDIX PROCEDURES WITH MCC +398,MDC 06,P,APPENDIX PROCEDURES WITH CC +399,MDC 06,P,APPENDIX PROCEDURES WITHOUT CC/MCC +405,MDC 07,P,PANCREAS, LIVER AND SHUNT PROCEDURES WITH MCC +406,MDC 07,P,PANCREAS, LIVER AND SHUNT PROCEDURES WITH CC +407,MDC 07,P,PANCREAS, LIVER AND SHUNT PROCEDURES WITHOUT CC/MCC +408,MDC 07,P,BILIARY TRACT PROCEDURES EXCEPT ONLY CHOLECYSTECTOMY WITH OR WITHOUT C.D.E. WITH MCC +409,MDC 07,P,BILIARY TRACT PROCEDURES EXCEPT ONLY CHOLECYSTECTOMY WITH OR WITHOUT C.D.E. WITH CC +410,MDC 07,P,BILIARY TRACT PROCEDURES EXCEPT ONLY CHOLECYSTECTOMY WITH OR WITHOUT C.D.E. WITHOUT CC/MCC +411,MDC 07,P,CHOLECYSTECTOMY WITH C.D.E. WITH MCC +412,MDC 07,P,CHOLECYSTECTOMY WITH C.D.E. WITH CC +413,MDC 07,P,CHOLECYSTECTOMY WITH C.D.E. WITHOUT CC/MCC +414,MDC 07,P,CHOLECYSTECTOMY EXCEPT BY LAPAROSCOPE WITHOUT C.D.E. WITH MCC +415,MDC 07,P,CHOLECYSTECTOMY EXCEPT BY LAPAROSCOPE WITHOUT C.D.E. WITH CC +416,MDC 07,P,CHOLECYSTECTOMY EXCEPT BY LAPAROSCOPE WITHOUT C.D.E. WITHOUT CC/MCC +417,MDC 07,P,LAPAROSCOPIC CHOLECYSTECTOMY WITHOUT C.D.E. WITH MCC +418,MDC 07,P,LAPAROSCOPIC CHOLECYSTECTOMY WITHOUT C.D.E. WITH CC +419,MDC 07,P,LAPAROSCOPIC CHOLECYSTECTOMY WITHOUT C.D.E. WITHOUT CC/MCC +420,MDC 07,P,HEPATOBILIARY DIAGNOSTIC PROCEDURES WITH MCC +421,MDC 07,P,HEPATOBILIARY DIAGNOSTIC PROCEDURES WITH CC +422,MDC 07,P,HEPATOBILIARY DIAGNOSTIC PROCEDURES WITHOUT CC/MCC +423,MDC 07,P,OTHER HEPATOBILIARY OR PANCREAS O.R. PROCEDURES WITH MCC +424,MDC 07,P,OTHER HEPATOBILIARY OR PANCREAS O.R. PROCEDURES WITH CC +425,MDC 07,P,OTHER HEPATOBILIARY OR PANCREAS O.R. PROCEDURES WITHOUT CC/MCC +432,MDC 07,M,CIRRHOSIS AND ALCOHOLIC HEPATITIS WITH MCC +433,MDC 07,M,CIRRHOSIS AND ALCOHOLIC HEPATITIS WITH CC +434,MDC 07,M,CIRRHOSIS AND ALCOHOLIC HEPATITIS WITHOUT CC/MCC +435,MDC 07,M,MALIGNANCY OF HEPATOBILIARY SYSTEM OR PANCREAS WITH MCC +436,MDC 07,M,MALIGNANCY OF HEPATOBILIARY SYSTEM OR PANCREAS WITH CC +437,MDC 07,M,MALIGNANCY OF HEPATOBILIARY SYSTEM OR PANCREAS WITHOUT CC/MCC +438,MDC 07,M,DISORDERS OF PANCREAS EXCEPT MALIGNANCY WITH MCC +439,MDC 07,M,DISORDERS OF PANCREAS EXCEPT MALIGNANCY WITH CC +440,MDC 07,M,DISORDERS OF PANCREAS EXCEPT MALIGNANCY WITHOUT CC/MCC +441,MDC 07,M,DISORDERS OF LIVER EXCEPT MALIGNANCY, CIRRHOSIS OR ALCOHOLIC HEPATITIS WITH MCC +442,MDC 07,M,DISORDERS OF LIVER EXCEPT MALIGNANCY, CIRRHOSIS OR ALCOHOLIC HEPATITIS WITH CC +443,MDC 07,M,DISORDERS OF LIVER EXCEPT MALIGNANCY, CIRRHOSIS OR ALCOHOLIC HEPATITIS WITHOUT CC/MCC +444,MDC 07,M,DISORDERS OF THE BILIARY TRACT WITH MCC +445,MDC 07,M,DISORDERS OF THE BILIARY TRACT WITH CC +446,MDC 07,M,DISORDERS OF THE BILIARY TRACT WITHOUT CC/MCC +453,MDC 08,P,COMBINED ANTERIOR AND POSTERIOR SPINAL FUSION WITH MCC +454,MDC 08,P,COMBINED ANTERIOR AND POSTERIOR SPINAL FUSION WITH CC +455,MDC 08,P,COMBINED ANTERIOR AND POSTERIOR SPINAL FUSION WITHOUT CC/MCC +456,MDC 08,P,SPINAL FUSION EXCEPT CERVICAL WITH SPINAL CURVATURE, MALIGNANCY, INFECTION OR EXTENSIVE FUSIONS WITH MCC +457,MDC 08,P,SPINAL FUSION EXCEPT CERVICAL WITH SPINAL CURVATURE, MALIGNANCY, INFECTION OR EXTENSIVE FUSIONS WITH CC +458,MDC 08,P,SPINAL FUSION EXCEPT CERVICAL WITH SPINAL CURVATURE, MALIGNANCY, INFECTION OR EXTENSIVE FUSIONS WITHOUT CC/MCC +459,MDC 08,P,SPINAL FUSION EXCEPT CERVICAL WITH MCC +460,MDC 08,P,SPINAL FUSION EXCEPT CERVICAL WITHOUT MCC +461,MDC 08,P,BILATERAL OR MULTIPLE MAJOR JOINT PROCEDURES OF LOWER EXTREMITY WITH MCC +462,MDC 08,P,BILATERAL OR MULTIPLE MAJOR JOINT PROCEDURES OF LOWER EXTREMITY WITHOUT MCC +463,MDC 08,P,WOUND DEBRIDEMENT AND SKIN GRAFT EXCEPT HAND FOR MUSCULOSKELETAL AND CONNECTIVE TISSUE DISORDERS WITH MCC +464,MDC 08,P,WOUND DEBRIDEMENT AND SKIN GRAFT EXCEPT HAND FOR MUSCULOSKELETAL AND CONNECTIVE TISSUE DISORDERS WITH CC +465,MDC 08,P,WOUND DEBRIDEMENT AND SKIN GRAFT EXCEPT HAND FOR MUSCULOSKELETAL AND CONNECTIVE TISSUE DISORDERS WITHOUT CC/MCC +466,MDC 08,P,REVISION OF HIP OR KNEE REPLACEMENT WITH MCC +467,MDC 08,P,REVISION OF HIP OR KNEE REPLACEMENT WITH CC +468,MDC 08,P,REVISION OF HIP OR KNEE REPLACEMENT WITHOUT CC/MCC +469,MDC 08,P,MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITH MCC OR TOTAL ANKLE REPLACEMENT +470,MDC 08,P,MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC +471,MDC 08,P,CERVICAL SPINAL FUSION WITH MCC +472,MDC 08,P,CERVICAL SPINAL FUSION WITH CC +473,MDC 08,P,CERVICAL SPINAL FUSION WITHOUT CC/MCC +474,MDC 08,P,AMPUTATION FOR MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE DISORDERS WITH MCC +475,MDC 08,P,AMPUTATION FOR MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE DISORDERS WITH CC +476,MDC 08,P,AMPUTATION FOR MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE DISORDERS WITHOUT CC/MCC +477,MDC 08,P,BIOPSIES OF MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITH MCC +478,MDC 08,P,BIOPSIES OF MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITH CC +479,MDC 08,P,BIOPSIES OF MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITHOUT CC/MCC +480,MDC 08,P,HIP AND FEMUR PROCEDURES EXCEPT MAJOR JOINT WITH MCC +481,MDC 08,P,HIP AND FEMUR PROCEDURES EXCEPT MAJOR JOINT WITH CC +482,MDC 08,P,HIP AND FEMUR PROCEDURES EXCEPT MAJOR JOINT WITHOUT CC/MCC +483,MDC 08,P,MAJOR JOINT OR LIMB REATTACHMENT PROCEDURES OF UPPER EXTREMITIES +485,MDC 08,P,KNEE PROCEDURES WITH PRINCIPAL DIAGNOSIS OF INFECTION WITH MCC +486,MDC 08,P,KNEE PROCEDURES WITH PRINCIPAL DIAGNOSIS OF INFECTION WITH CC +487,MDC 08,P,KNEE PROCEDURES WITH PRINCIPAL DIAGNOSIS OF INFECTION WITHOUT CC/MCC +488,MDC 08,P,KNEE PROCEDURES WITHOUT PRINCIPAL DIAGNOSIS OF INFECTION WITH CC/MCC +489,MDC 08,P,KNEE PROCEDURES WITHOUT PRINCIPAL DIAGNOSIS OF INFECTION WITHOUT CC/MCC +492,MDC 08,P,LOWER EXTREMITY AND HUMERUS PROCEDURES EXCEPT HIP, FOOT AND FEMUR WITH MCC +493,MDC 08,P,LOWER EXTREMITY AND HUMERUS PROCEDURES EXCEPT HIP, FOOT AND FEMUR WITH CC +494,MDC 08,P,LOWER EXTREMITY AND HUMERUS PROCEDURES EXCEPT HIP, FOOT AND FEMUR WITHOUT CC/MCC +495,MDC 08,P,LOCAL EXCISION AND REMOVAL OF INTERNAL FIXATION DEVICES EXCEPT HIP AND FEMUR WITH MCC +496,MDC 08,P,LOCAL EXCISION AND REMOVAL OF INTERNAL FIXATION DEVICES EXCEPT HIP AND FEMUR WITH CC +497,MDC 08,P,LOCAL EXCISION AND REMOVAL OF INTERNAL FIXATION DEVICES EXCEPT HIP AND FEMUR WITHOUT CC/MCC +498,MDC 08,P,LOCAL EXCISION AND REMOVAL OF INTERNAL FIXATION DEVICES OF HIP AND FEMUR WITH CC/MCC +499,MDC 08,P,LOCAL EXCISION AND REMOVAL OF INTERNAL FIXATION DEVICES OF HIP AND FEMUR WITHOUT CC/MCC +500,MDC 08,P,SOFT TISSUE PROCEDURES WITH MCC +501,MDC 08,P,SOFT TISSUE PROCEDURES WITH CC +502,MDC 08,P,SOFT TISSUE PROCEDURES WITHOUT CC/MCC +503,MDC 08,P,FOOT PROCEDURES WITH MCC +504,MDC 08,P,FOOT PROCEDURES WITH CC +505,MDC 08,P,FOOT PROCEDURES WITHOUT CC/MCC +506,MDC 08,P,MAJOR THUMB OR JOINT PROCEDURES +507,MDC 08,P,MAJOR SHOULDER OR ELBOW JOINT PROCEDURES WITH CC/MCC +508,MDC 08,P,MAJOR SHOULDER OR ELBOW JOINT PROCEDURES WITHOUT CC/MCC +509,MDC 08,P,ARTHROSCOPY +510,MDC 08,P,SHOULDER, ELBOW OR FOREARM PROCEDURES, EXCEPT MAJOR JOINT PROCEDURES WITH MCC +511,MDC 08,P,SHOULDER, ELBOW OR FOREARM PROCEDURES, EXCEPT MAJOR JOINT PROCEDURES WITH CC +512,MDC 08,P,SHOULDER, ELBOW OR FOREARM PROCEDURES, EXCEPT MAJOR JOINT PROCEDURES WITHOUT CC/MCC +513,MDC 08,P,HAND OR WRIST PROCEDURES, EXCEPT MAJOR THUMB OR JOINT PROCEDURES WITH CC/MCC +514,MDC 08,P,HAND OR WRIST PROCEDURES, EXCEPT MAJOR THUMB OR JOINT PROCEDURES WITHOUT CC/MCC +515,MDC 08,P,OTHER MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE O.R. PROCEDURES WITH MCC +516,MDC 08,P,OTHER MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE O.R. PROCEDURES WITH CC +517,MDC 08,P,OTHER MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE O.R. PROCEDURES WITHOUT CC/MCC +518,MDC 08,P,BACK AND NECK PROCEDURES EXCEPT SPINAL FUSION WITH MCC OR DISC DEVICE OR NEUROSTIMULATOR +519,MDC 08,P,BACK AND NECK PROCEDURES EXCEPT SPINAL FUSION WITH CC +520,MDC 08,P,BACK AND NECK PROCEDURES EXCEPT SPINAL FUSION WITHOUT CC/MCC +521,MDC 08,P,HIP REPLACEMENT WITH PRINCIPAL DIAGNOSIS OF HIP FRACTURE WITH MCC +522,MDC 08,P,HIP REPLACEMENT WITH PRINCIPAL DIAGNOSIS OF HIP FRACTURE WITHOUT MCC +533,MDC 08,M,FRACTURES OF FEMUR WITH MCC +534,MDC 08,M,FRACTURES OF FEMUR WITHOUT MCC +535,MDC 08,M,FRACTURES OF HIP AND PELVIS WITH MCC +536,MDC 08,M,FRACTURES OF HIP AND PELVIS WITHOUT MCC +537,MDC 08,M,SPRAINS, STRAINS, AND DISLOCATIONS OF HIP, PELVIS AND THIGH WITH CC/MCC +538,MDC 08,M,SPRAINS, STRAINS, AND DISLOCATIONS OF HIP, PELVIS AND THIGH WITHOUT CC/MCC +539,MDC 08,M,OSTEOMYELITIS WITH MCC +540,MDC 08,M,OSTEOMYELITIS WITH CC +541,MDC 08,M,OSTEOMYELITIS WITHOUT CC/MCC +542,MDC 08,M,PATHOLOGICAL FRACTURES AND MUSCULOSKELETAL AND CONNECTIVE TISSUE MALIGNANCY WITH MCC +543,MDC 08,M,PATHOLOGICAL FRACTURES AND MUSCULOSKELETAL AND CONNECTIVE TISSUE MALIGNANCY WITH CC +544,MDC 08,M,PATHOLOGICAL FRACTURES AND MUSCULOSKELETAL AND CONNECTIVE TISSUE MALIGNANCY WITHOUT CC/MCC +545,MDC 08,M,CONNECTIVE TISSUE DISORDERS WITH MCC +546,MDC 08,M,CONNECTIVE TISSUE DISORDERS WITH CC +547,MDC 08,M,CONNECTIVE TISSUE DISORDERS WITHOUT CC/MCC +548,MDC 08,M,SEPTIC ARTHRITIS WITH MCC +549,MDC 08,M,SEPTIC ARTHRITIS WITH CC +550,MDC 08,M,SEPTIC ARTHRITIS WITHOUT CC/MCC +551,MDC 08,M,MEDICAL BACK PROBLEMS WITH MCC +552,MDC 08,M,MEDICAL BACK PROBLEMS WITHOUT MCC +553,MDC 08,M,BONE DISEASES AND ARTHROPATHIES WITH MCC +554,MDC 08,M,BONE DISEASES AND ARTHROPATHIES WITHOUT MCC +555,MDC 08,M,SIGNS AND SYMPTOMS OF MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITH MCC +556,MDC 08,M,SIGNS AND SYMPTOMS OF MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITHOUT MCC +557,MDC 08,M,TENDONITIS, MYOSITIS AND BURSITIS WITH MCC +558,MDC 08,M,TENDONITIS, MYOSITIS AND BURSITIS WITHOUT MCC +559,MDC 08,M,AFTERCARE, MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITH MCC +560,MDC 08,M,AFTERCARE, MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITH CC +561,MDC 08,M,AFTERCARE, MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE WITHOUT CC/MCC +562,MDC 08,M,FRACTURE, SPRAIN, STRAIN AND DISLOCATION EXCEPT FEMUR, HIP, PELVIS AND THIGH WITH MCC +563,MDC 08,M,FRACTURE, SPRAIN, STRAIN AND DISLOCATION EXCEPT FEMUR, HIP, PELVIS AND THIGH WITHOUT MCC +564,MDC 08,M,OTHER MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE DIAGNOSES WITH MCC +565,MDC 08,M,OTHER MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE DIAGNOSES WITH CC +566,MDC 08,M,OTHER MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE DIAGNOSES WITHOUT CC/MCC +570,MDC 09,P,SKIN DEBRIDEMENT WITH MCC +571,MDC 09,P,SKIN DEBRIDEMENT WITH CC +572,MDC 09,P,SKIN DEBRIDEMENT WITHOUT CC/MCC +573,MDC 09,P,SKIN GRAFT FOR SKIN ULCER OR CELLULITIS WITH MCC +574,MDC 09,P,SKIN GRAFT FOR SKIN ULCER OR CELLULITIS WITH CC +575,MDC 09,P,SKIN GRAFT FOR SKIN ULCER OR CELLULITIS WITHOUT CC/MCC +576,MDC 09,P,SKIN GRAFT EXCEPT FOR SKIN ULCER OR CELLULITIS WITH MCC +577,MDC 09,P,SKIN GRAFT EXCEPT FOR SKIN ULCER OR CELLULITIS WITH CC +578,MDC 09,P,SKIN GRAFT EXCEPT FOR SKIN ULCER OR CELLULITIS WITHOUT CC/MCC +579,MDC 09,P,OTHER SKIN, SUBCUTANEOUS TISSUE AND BREAST PROCEDURES WITH MCC +580,MDC 09,P,OTHER SKIN, SUBCUTANEOUS TISSUE AND BREAST PROCEDURES WITH CC +581,MDC 09,P,OTHER SKIN, SUBCUTANEOUS TISSUE AND BREAST PROCEDURES WITHOUT CC/MCC +582,MDC 09,P,MASTECTOMY FOR MALIGNANCY WITH CC/MCC +583,MDC 09,P,MASTECTOMY FOR MALIGNANCY WITHOUT CC/MCC +584,MDC 09,P,BREAST BIOPSY, LOCAL EXCISION AND OTHER BREAST PROCEDURES WITH CC/MCC +585,MDC 09,P,BREAST BIOPSY, LOCAL EXCISION AND OTHER BREAST PROCEDURES WITHOUT CC/MCC +592,MDC 09,M,SKIN ULCERS WITH MCC +593,MDC 09,M,SKIN ULCERS WITH CC +594,MDC 09,M,SKIN ULCERS WITHOUT CC/MCC +595,MDC 09,M,MAJOR SKIN DISORDERS WITH MCC +596,MDC 09,M,MAJOR SKIN DISORDERS WITHOUT MCC +597,MDC 09,M,MALIGNANT BREAST DISORDERS WITH MCC +598,MDC 09,M,MALIGNANT BREAST DISORDERS WITH CC +599,MDC 09,M,MALIGNANT BREAST DISORDERS WITHOUT CC/MCC +600,MDC 09,M,NON-MALIGNANT BREAST DISORDERS WITH CC/MCC +601,MDC 09,M,NON-MALIGNANT BREAST DISORDERS WITHOUT CC/MCC +602,MDC 09,M,CELLULITIS WITH MCC +603,MDC 09,M,CELLULITIS WITHOUT MCC +604,MDC 09,M,TRAUMA TO THE SKIN, SUBCUTANEOUS TISSUE AND BREAST WITH MCC +605,MDC 09,M,TRAUMA TO THE SKIN, SUBCUTANEOUS TISSUE AND BREAST WITHOUT MCC +606,MDC 09,M,MINOR SKIN DISORDERS WITH MCC +607,MDC 09,M,MINOR SKIN DISORDERS WITHOUT MCC +614,MDC 10,P,ADRENAL AND PITUITARY PROCEDURES WITH CC/MCC +615,MDC 10,P,ADRENAL AND PITUITARY PROCEDURES WITHOUT CC/MCC +616,MDC 10,P,AMPUTATION OF LOWER LIMB FOR ENDOCRINE, NUTRITIONAL AND METABOLIC DISORDERS WITH MCC +617,MDC 10,P,AMPUTATION OF LOWER LIMB FOR ENDOCRINE, NUTRITIONAL AND METABOLIC DISORDERS WITH CC +618,MDC 10,P,AMPUTATION OF LOWER LIMB FOR ENDOCRINE, NUTRITIONAL AND METABOLIC DISORDERS WITHOUT CC/MCC +619,MDC 10,P,O.R. PROCEDURES FOR OBESITY WITH MCC +620,MDC 10,P,O.R. PROCEDURES FOR OBESITY WITH CC +621,MDC 10,P,O.R. PROCEDURES FOR OBESITY WITHOUT CC/MCC +622,MDC 10,P,SKIN GRAFTS AND WOUND DEBRIDEMENT FOR ENDOCRINE, NUTRITIONAL AND METABOLIC DISORDERS WITH MCC +623,MDC 10,P,SKIN GRAFTS AND WOUND DEBRIDEMENT FOR ENDOCRINE, NUTRITIONAL AND METABOLIC DISORDERS WITH CC +624,MDC 10,P,SKIN GRAFTS AND WOUND DEBRIDEMENT FOR ENDOCRINE, NUTRITIONAL AND METABOLIC DISORDERS WITHOUT CC/MCC +625,MDC 10,P,THYROID, PARATHYROID AND THYROGLOSSAL PROCEDURES WITH MCC +626,MDC 10,P,THYROID, PARATHYROID AND THYROGLOSSAL PROCEDURES WITH CC +627,MDC 10,P,THYROID, PARATHYROID AND THYROGLOSSAL PROCEDURES WITHOUT CC/MCC +628,MDC 10,P,OTHER ENDOCRINE, NUTRITIONAL AND METABOLIC O.R. PROCEDURES WITH MCC +629,MDC 10,P,OTHER ENDOCRINE, NUTRITIONAL AND METABOLIC O.R. PROCEDURES WITH CC +630,MDC 10,P,OTHER ENDOCRINE, NUTRITIONAL AND METABOLIC O.R. PROCEDURES WITHOUT CC/MCC +637,MDC 10,M,DIABETES WITH MCC +638,MDC 10,M,DIABETES WITH CC +639,MDC 10,M,DIABETES WITHOUT CC/MCC +640,MDC 10,M,MISCELLANEOUS DISORDERS OF NUTRITION, METABOLISM, FLUIDS AND ELECTROLYTES WITH MCC +641,MDC 10,M,MISCELLANEOUS DISORDERS OF NUTRITION, METABOLISM, FLUIDS AND ELECTROLYTES WITHOUT MCC +642,MDC 10,M,INBORN AND OTHER DISORDERS OF METABOLISM +643,MDC 10,M,ENDOCRINE DISORDERS WITH MCC +644,MDC 10,M,ENDOCRINE DISORDERS WITH CC +645,MDC 10,M,ENDOCRINE DISORDERS WITHOUT CC/MCC +650,MDC 11,P,KIDNEY TRANSPLANT WITH HEMODIALYSIS WITH MCC +651,MDC 11,P,KIDNEY TRANSPLANT WITH HEMODIALYSIS WITHOUT MCC +652,MDC 11,P,KIDNEY TRANSPLANT +653,MDC 11,P,MAJOR BLADDER PROCEDURES WITH MCC +654,MDC 11,P,MAJOR BLADDER PROCEDURES WITH CC +655,MDC 11,P,MAJOR BLADDER PROCEDURES WITHOUT CC/MCC +656,MDC 11,P,KIDNEY AND URETER PROCEDURES FOR NEOPLASM WITH MCC +657,MDC 11,P,KIDNEY AND URETER PROCEDURES FOR NEOPLASM WITH CC +658,MDC 11,P,KIDNEY AND URETER PROCEDURES FOR NEOPLASM WITHOUT CC/MCC +659,MDC 11,P,KIDNEY AND URETER PROCEDURES FOR NON-NEOPLASM WITH MCC +660,MDC 11,P,KIDNEY AND URETER PROCEDURES FOR NON-NEOPLASM WITH CC +661,MDC 11,P,KIDNEY AND URETER PROCEDURES FOR NON-NEOPLASM WITHOUT CC/MCC +662,MDC 11,P,MINOR BLADDER PROCEDURES WITH MCC +663,MDC 11,P,MINOR BLADDER PROCEDURES WITH CC +664,MDC 11,P,MINOR BLADDER PROCEDURES WITHOUT CC/MCC +665,MDC 11,P,PROSTATECTOMY WITH MCC +666,MDC 11,P,PROSTATECTOMY WITH CC +667,MDC 11,P,PROSTATECTOMY WITHOUT CC/MCC +668,MDC 11,P,TRANSURETHRAL PROCEDURES WITH MCC +669,MDC 11,P,TRANSURETHRAL PROCEDURES WITH CC +670,MDC 11,P,TRANSURETHRAL PROCEDURES WITHOUT CC/MCC +671,MDC 11,P,URETHRAL PROCEDURES WITH CC/MCC +672,MDC 11,P,URETHRAL PROCEDURES WITHOUT CC/MCC +673,MDC 11,P,OTHER KIDNEY AND URINARY TRACT PROCEDURES WITH MCC +674,MDC 11,P,OTHER KIDNEY AND URINARY TRACT PROCEDURES WITH CC +675,MDC 11,P,OTHER KIDNEY AND URINARY TRACT PROCEDURES WITHOUT CC/MCC +682,MDC 11,M,RENAL FAILURE WITH MCC +683,MDC 11,M,RENAL FAILURE WITH CC +684,MDC 11,M,RENAL FAILURE WITHOUT CC/MCC +686,MDC 11,M,KIDNEY AND URINARY TRACT NEOPLASMS WITH MCC +687,MDC 11,M,KIDNEY AND URINARY TRACT NEOPLASMS WITH CC +688,MDC 11,M,KIDNEY AND URINARY TRACT NEOPLASMS WITHOUT CC/MCC +689,MDC 11,M,KIDNEY AND URINARY TRACT INFECTIONS WITH MCC +690,MDC 11,M,KIDNEY AND URINARY TRACT INFECTIONS WITHOUT MCC +693,MDC 11,M,URINARY STONES WITH MCC +694,MDC 11,M,URINARY STONES WITHOUT MCC +695,MDC 11,M,KIDNEY AND URINARY TRACT SIGNS AND SYMPTOMS WITH MCC +696,MDC 11,M,KIDNEY AND URINARY TRACT SIGNS AND SYMPTOMS WITHOUT MCC +697,MDC 11,M,URETHRAL STRICTURE +698,MDC 11,M,OTHER KIDNEY AND URINARY TRACT DIAGNOSES WITH MCC +699,MDC 11,M,OTHER KIDNEY AND URINARY TRACT DIAGNOSES WITH CC +700,MDC 11,M,OTHER KIDNEY AND URINARY TRACT DIAGNOSES WITHOUT CC/MCC +707,MDC 12,P,MAJOR MALE PELVIC PROCEDURES WITH CC/MCC +708,MDC 12,P,MAJOR MALE PELVIC PROCEDURES WITHOUT CC/MCC +709,MDC 12,P,PENIS PROCEDURES WITH CC/MCC +710,MDC 12,P,PENIS PROCEDURES WITHOUT CC/MCC +711,MDC 12,P,TESTES PROCEDURES WITH CC/MCC +712,MDC 12,P,TESTES PROCEDURES WITHOUT CC/MCC +713,MDC 12,P,TRANSURETHRAL PROSTATECTOMY WITH CC/MCC +714,MDC 12,P,TRANSURETHRAL PROSTATECTOMY WITHOUT CC/MCC +715,MDC 12,P,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROCEDURES FOR MALIGNANCY WITH CC/MCC +716,MDC 12,P,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROCEDURES FOR MALIGNANCY WITHOUT CC/MCC +717,MDC 12,P,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROCEDURES EXCEPT MALIGNANCY WITH CC/MCC +718,MDC 12,P,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROCEDURES EXCEPT MALIGNANCY WITHOUT CC/MCC +722,MDC 12,M,MALIGNANCY, MALE REPRODUCTIVE SYSTEM WITH MCC +723,MDC 12,M,MALIGNANCY, MALE REPRODUCTIVE SYSTEM WITH CC +724,MDC 12,M,MALIGNANCY, MALE REPRODUCTIVE SYSTEM WITHOUT CC/MCC +725,MDC 12,M,BENIGN PROSTATIC HYPERTROPHY WITH MCC +726,MDC 12,M,BENIGN PROSTATIC HYPERTROPHY WITHOUT MCC +727,MDC 12,M,INFLAMMATION OF THE MALE REPRODUCTIVE SYSTEM WITH MCC +728,MDC 12,M,INFLAMMATION OF THE MALE REPRODUCTIVE SYSTEM WITHOUT MCC +729,MDC 12,M,OTHER MALE REPRODUCTIVE SYSTEM DIAGNOSES WITH CC/MCC +730,MDC 12,M,OTHER MALE REPRODUCTIVE SYSTEM DIAGNOSES WITHOUT CC/MCC +734,MDC 13,P,PELVIC EVISCERATION, RADICAL HYSTERECTOMY AND RADICAL VULVECTOMY WITH CC/MCC +735,MDC 13,P,PELVIC EVISCERATION, RADICAL HYSTERECTOMY AND RADICAL VULVECTOMY WITHOUT CC/MCC +736,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR OVARIAN OR ADNEXAL MALIGNANCY WITH MCC +737,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR OVARIAN OR ADNEXAL MALIGNANCY WITH CC +738,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR OVARIAN OR ADNEXAL MALIGNANCY WITHOUT CC/MCC +739,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR NON-OVARIAN AND NON-ADNEXAL MALIGNANCY WITH MCC +740,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR NON-OVARIAN AND NON-ADNEXAL MALIGNANCY WITH CC +741,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR NON-OVARIAN AND NON-ADNEXAL MALIGNANCY WITHOUT CC/MCC +742,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR NON-MALIGNANCY WITH CC/MCC +743,MDC 13,P,UTERINE AND ADNEXA PROCEDURES FOR NON-MALIGNANCY WITHOUT CC/MCC +744,MDC 13,P,D&C, CONIZATION, LAPAROSCOPY AND TUBAL INTERRUPTION WITH CC/MCC +745,MDC 13,P,D&C, CONIZATION, LAPAROSCOPY AND TUBAL INTERRUPTION WITHOUT CC/MCC +746,MDC 13,P,VAGINA, CERVIX AND VULVA PROCEDURES WITH CC/MCC +747,MDC 13,P,VAGINA, CERVIX AND VULVA PROCEDURES WITHOUT CC/MCC +748,MDC 13,P,FEMALE REPRODUCTIVE SYSTEM RECONSTRUCTIVE PROCEDURES +749,MDC 13,P,OTHER FEMALE REPRODUCTIVE SYSTEM O.R. PROCEDURES WITH CC/MCC +750,MDC 13,P,OTHER FEMALE REPRODUCTIVE SYSTEM O.R. PROCEDURES WITHOUT CC/MCC +754,MDC 13,M,MALIGNANCY, FEMALE REPRODUCTIVE SYSTEM WITH MCC +755,MDC 13,M,MALIGNANCY, FEMALE REPRODUCTIVE SYSTEM WITH CC +756,MDC 13,M,MALIGNANCY, FEMALE REPRODUCTIVE SYSTEM WITHOUT CC/MCC +757,MDC 13,M,INFECTIONS, FEMALE REPRODUCTIVE SYSTEM WITH MCC +758,MDC 13,M,INFECTIONS, FEMALE REPRODUCTIVE SYSTEM WITH CC +759,MDC 13,M,INFECTIONS, FEMALE REPRODUCTIVE SYSTEM WITHOUT CC/MCC +760,MDC 13,M,MENSTRUAL AND OTHER FEMALE REPRODUCTIVE SYSTEM DISORDERS WITH CC/MCC +761,MDC 13,M,MENSTRUAL AND OTHER FEMALE REPRODUCTIVE SYSTEM DISORDERS WITHOUT CC/MCC +768,MDC 14,P,VAGINAL DELIVERY WITH O.R. PROCEDURES EXCEPT STERILIZATION AND/OR D&C +769,MDC 14,P,POSTPARTUM AND POST ABORTION DIAGNOSES WITH O.R. PROCEDURES +770,MDC 14,P,ABORTION WITH D&C, ASPIRATION CURETTAGE OR HYSTEROTOMY +776,MDC 14,M,POSTPARTUM AND POST ABORTION DIAGNOSES WITHOUT O.R. PROCEDURES +779,MDC 14,M,ABORTION WITHOUT D&C +783,MDC 14,P,CESAREAN SECTION WITH STERILIZATION WITH MCC +784,MDC 14,P,CESAREAN SECTION WITH STERILIZATION WITH CC +785,MDC 14,P,CESAREAN SECTION WITH STERILIZATION WITHOUT CC/MCC +786,MDC 14,P,CESAREAN SECTION WITHOUT STERILIZATION WITH MCC +787,MDC 14,P,CESAREAN SECTION WITHOUT STERILIZATION WITH CC +788,MDC 14,P,CESAREAN SECTION WITHOUT STERILIZATION WITHOUT CC/MCC +789,MDC 15,M,NEONATES, DIED OR TRANSFERRED TO ANOTHER ACUTE CARE FACILITY +790,MDC 15,M,EXTREME IMMATURITY OR RESPIRATORY DISTRESS SYNDROME, NEONATE +791,MDC 15,M,PREMATURITY WITH MAJOR PROBLEMS +792,MDC 15,M,PREMATURITY WITHOUT MAJOR PROBLEMS +793,MDC 15,M,FULL TERM NEONATE WITH MAJOR PROBLEMS +794,MDC 15,M,NEONATE WITH OTHER SIGNIFICANT PROBLEMS +795,MDC 15,M,NORMAL NEWBORN +796,MDC 14,P,VAGINAL DELIVERY WITH STERILIZATION AND/OR D&C WITH MCC +797,MDC 14,P,VAGINAL DELIVERY WITH STERILIZATION AND/OR D&C WITH CC +798,MDC 14,P,VAGINAL DELIVERY WITH STERILIZATION AND/OR D&C WITHOUT CC/MCC +799,MDC 16,P,SPLENIC PROCEDURES WITH MCC +800,MDC 16,P,SPLENIC PROCEDURES WITH CC +801,MDC 16,P,SPLENIC PROCEDURES WITHOUT CC/MCC +802,MDC 16,P,OTHER O.R. PROCEDURES OF THE BLOOD AND BLOOD FORMING ORGANS WITH MCC +803,MDC 16,P,OTHER O.R. PROCEDURES OF THE BLOOD AND BLOOD FORMING ORGANS WITH CC +804,MDC 16,P,OTHER O.R. PROCEDURES OF THE BLOOD AND BLOOD FORMING ORGANS WITHOUT CC/MCC +805,MDC 14,M,VAGINAL DELIVERY WITHOUT STERILIZATION OR D&C WITH MCC +806,MDC 14,M,VAGINAL DELIVERY WITHOUT STERILIZATION OR D&C WITH CC +807,MDC 14,M,VAGINAL DELIVERY WITHOUT STERILIZATION OR D&C WITHOUT CC/MCC +808,MDC 16,M,MAJOR HEMATOLOGICAL AND IMMUNOLOGICAL DIAGNOSES EXCEPT SICKLE CELL CRISIS AND COAGULATION DISORDERS WITH MCC +809,MDC 16,M,MAJOR HEMATOLOGICAL AND IMMUNOLOGICAL DIAGNOSES EXCEPT SICKLE CELL CRISIS AND COAGULATION DISORDERS WITH CC +810,MDC 16,M,MAJOR HEMATOLOGICAL AND IMMUNOLOGICAL DIAGNOSES EXCEPT SICKLE CELL CRISIS AND COAGULATION DISORDERS WITHOUT CC/MCC +811,MDC 16,M,RED BLOOD CELL DISORDERS WITH MCC +812,MDC 16,M,RED BLOOD CELL DISORDERS WITHOUT MCC +813,MDC 16,M,COAGULATION DISORDERS +814,MDC 16,M,RETICULOENDOTHELIAL AND IMMUNITY DISORDERS WITH MCC +815,MDC 16,M,RETICULOENDOTHELIAL AND IMMUNITY DISORDERS WITH CC +816,MDC 16,M,RETICULOENDOTHELIAL AND IMMUNITY DISORDERS WITHOUT CC/MCC +817,MDC 14,P,OTHER ANTEPARTUM DIAGNOSES WITH O.R. PROCEDURES WITH MCC +818,MDC 14,P,OTHER ANTEPARTUM DIAGNOSES WITH O.R. PROCEDURES WITH CC +819,MDC 14,P,OTHER ANTEPARTUM DIAGNOSES WITH O.R. PROCEDURES WITHOUT CC/MCC +820,MDC 17,P,LYMPHOMA AND LEUKEMIA WITH MAJOR O.R. PROCEDURES WITH MCC +821,MDC 17,P,LYMPHOMA AND LEUKEMIA WITH MAJOR O.R. PROCEDURES WITH CC +822,MDC 17,P,LYMPHOMA AND LEUKEMIA WITH MAJOR O.R. PROCEDURES WITHOUT CC/MCC +823,MDC 17,P,LYMPHOMA AND NON-ACUTE LEUKEMIA WITH OTHER PROCEDURES WITH MCC +824,MDC 17,P,LYMPHOMA AND NON-ACUTE LEUKEMIA WITH OTHER PROCEDURES WITH CC +825,MDC 17,P,LYMPHOMA AND NON-ACUTE LEUKEMIA WITH OTHER PROCEDURES WITHOUT CC/MCC +826,MDC 17,P,MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASMS WITH MAJOR O.R. PROCEDURES WITH MCC +827,MDC 17,P,MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASMS WITH MAJOR O.R. PROCEDURES WITH CC +828,MDC 17,P,MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASMS WITH MAJOR O.R. PROCEDURES WITHOUT CC/MCC +829,MDC 17,P,MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASMS WITH OTHER PROCEDURES WITH CC/MCC +830,MDC 17,P,MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASMS WITH OTHER PROCEDURES WITHOUT CC/MCC +831,MDC 14,M,OTHER ANTEPARTUM DIAGNOSES WITHOUT O.R. PROCEDURES WITH MCC +832,MDC 14,M,OTHER ANTEPARTUM DIAGNOSES WITHOUT O.R. PROCEDURES WITH CC +833,MDC 14,M,OTHER ANTEPARTUM DIAGNOSES WITHOUT O.R. PROCEDURES WITHOUT CC/MCC +834,MDC 17,M,ACUTE LEUKEMIA WITHOUT MAJOR O.R. PROCEDURES WITH MCC +835,MDC 17,M,ACUTE LEUKEMIA WITHOUT MAJOR O.R. PROCEDURES WITH CC +836,MDC 17,M,ACUTE LEUKEMIA WITHOUT MAJOR O.R. PROCEDURES WITHOUT CC/MCC +837,MDC 17,M,CHEMOTHERAPY WITH ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS OR WITH HIGH DOSE CHEMOTHERAPY AGENT WITH MCC +838,MDC 17,M,CHEMOTHERAPY WITH ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS WITH CC OR HIGH DOSE CHEMOTHERAPY AGENT +839,MDC 17,M,CHEMOTHERAPY WITH ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS WITHOUT CC/MCC +840,MDC 17,M,LYMPHOMA AND NON-ACUTE LEUKEMIA WITH MCC +841,MDC 17,M,LYMPHOMA AND NON-ACUTE LEUKEMIA WITH CC +842,MDC 17,M,LYMPHOMA AND NON-ACUTE LEUKEMIA WITHOUT CC/MCC +843,MDC 17,M,OTHER MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASTIC DIAGNOSES WITH MCC +844,MDC 17,M,OTHER MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASTIC DIAGNOSES WITH CC +845,MDC 17,M,OTHER MYELOPROLIFERATIVE DISORDERS OR POORLY DIFFERENTIATED NEOPLASTIC DIAGNOSES WITHOUT CC/MCC +846,MDC 17,M,CHEMOTHERAPY WITHOUT ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS WITH MCC +847,MDC 17,M,CHEMOTHERAPY WITHOUT ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS WITH CC +848,MDC 17,M,CHEMOTHERAPY WITHOUT ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS WITHOUT CC/MCC +849,MDC 17,M,RADIOTHERAPY +853,MDC 18,P,INFECTIOUS AND PARASITIC DISEASES WITH O.R. PROCEDURES WITH MCC +854,MDC 18,P,INFECTIOUS AND PARASITIC DISEASES WITH O.R. PROCEDURES WITH CC +855,MDC 18,P,INFECTIOUS AND PARASITIC DISEASES WITH O.R. PROCEDURES WITHOUT CC/MCC +856,MDC 18,P,POSTOPERATIVE OR POST-TRAUMATIC INFECTIONS WITH O.R. PROCEDURES WITH MCC +857,MDC 18,P,POSTOPERATIVE OR POST-TRAUMATIC INFECTIONS WITH O.R. PROCEDURES WITH CC +858,MDC 18,P,POSTOPERATIVE OR POST-TRAUMATIC INFECTIONS WITH O.R. PROCEDURES WITHOUT CC/MCC +862,MDC 18,M,POSTOPERATIVE AND POST-TRAUMATIC INFECTIONS WITH MCC +863,MDC 18,M,POSTOPERATIVE AND POST-TRAUMATIC INFECTIONS WITHOUT MCC +864,MDC 18,M,FEVER AND INFLAMMATORY CONDITIONS +865,MDC 18,M,VIRAL ILLNESS WITH MCC +866,MDC 18,M,VIRAL ILLNESS WITHOUT MCC +867,MDC 18,M,OTHER INFECTIOUS AND PARASITIC DISEASES DIAGNOSES WITH MCC +868,MDC 18,M,OTHER INFECTIOUS AND PARASITIC DISEASES DIAGNOSES WITH CC +869,MDC 18,M,OTHER INFECTIOUS AND PARASITIC DISEASES DIAGNOSES WITHOUT CC/MCC +870,MDC 18,M,SEPTICEMIA OR SEVERE SEPSIS WITH MV >96 HOURS +871,MDC 18,M,SEPTICEMIA OR SEVERE SEPSIS WITHOUT MV >96 HOURS WITH MCC +872,MDC 18,M,SEPTICEMIA OR SEVERE SEPSIS WITHOUT MV >96 HOURS WITHOUT MCC +876,MDC 19,P,O.R. PROCEDURES WITH PRINCIPAL DIAGNOSIS OF MENTAL ILLNESS +880,MDC 19,M,ACUTE ADJUSTMENT REACTION AND PSYCHOSOCIAL DYSFUNCTION +881,MDC 19,M,DEPRESSIVE NEUROSES +882,MDC 19,M,NEUROSES EXCEPT DEPRESSIVE +883,MDC 19,M,DISORDERS OF PERSONALITY AND IMPULSE CONTROL +884,MDC 19,M,ORGANIC DISTURBANCES AND INTELLECTUAL DISABILITY +885,MDC 19,M,PSYCHOSES +886,MDC 19,M,BEHAVIORAL AND DEVELOPMENTAL DISORDERS +887,MDC 19,M,OTHER MENTAL DISORDER DIAGNOSES +894,MDC 20,M,ALCOHOL, DRUG ABUSE OR DEPENDENCE, LEFT AMA +895,MDC 20,M,ALCOHOL, DRUG ABUSE OR DEPENDENCE WITH REHABILITATION THERAPY +896,MDC 20,M,ALCOHOL, DRUG ABUSE OR DEPENDENCE WITHOUT REHABILITATION THERAPY WITH MCC +897,MDC 20,M,ALCOHOL, DRUG ABUSE OR DEPENDENCE WITHOUT REHABILITATION THERAPY WITHOUT MCC +901,MDC 21,P,WOUND DEBRIDEMENTS FOR INJURIES WITH MCC +902,MDC 21,P,WOUND DEBRIDEMENTS FOR INJURIES WITH CC +903,MDC 21,P,WOUND DEBRIDEMENTS FOR INJURIES WITHOUT CC/MCC +904,MDC 21,P,SKIN GRAFTS FOR INJURIES WITH CC/MCC +905,MDC 21,P,SKIN GRAFTS FOR INJURIES WITHOUT CC/MCC +906,MDC 21,P,HAND PROCEDURES FOR INJURIES +907,MDC 21,P,OTHER O.R. PROCEDURES FOR INJURIES WITH MCC +908,MDC 21,P,OTHER O.R. PROCEDURES FOR INJURIES WITH CC +909,MDC 21,P,OTHER O.R. PROCEDURES FOR INJURIES WITHOUT CC/MCC +913,MDC 21,M,TRAUMATIC INJURY WITH MCC +914,MDC 21,M,TRAUMATIC INJURY WITHOUT MCC +915,MDC 21,M,ALLERGIC REACTIONS WITH MCC +916,MDC 21,M,ALLERGIC REACTIONS WITHOUT MCC +917,MDC 21,M,POISONING AND TOXIC EFFECTS OF DRUGS WITH MCC +918,MDC 21,M,POISONING AND TOXIC EFFECTS OF DRUGS WITHOUT MCC +919,MDC 21,M,COMPLICATIONS OF TREATMENT WITH MCC +920,MDC 21,M,COMPLICATIONS OF TREATMENT WITH CC +921,MDC 21,M,COMPLICATIONS OF TREATMENT WITHOUT CC/MCC +922,MDC 21,M,OTHER INJURY, POISONING AND TOXIC EFFECT DIAGNOSES WITH MCC +923,MDC 21,M,OTHER INJURY, POISONING AND TOXIC EFFECT DIAGNOSES WITHOUT MCC +927,MDC 22,P,EXTENSIVE BURNS OR FULL THICKNESS BURNS WITH MV >96 HOURS WITH SKIN GRAFT +928,MDC 22,P,FULL THICKNESS BURN WITH SKIN GRAFT OR INHALATION INJURY WITH CC/MCC +929,MDC 22,P,FULL THICKNESS BURN WITH SKIN GRAFT OR INHALATION INJURY WITHOUT CC/MCC +933,MDC 22,M,EXTENSIVE BURNS OR FULL THICKNESS BURNS WITH MV >96 HOURS WITHOUT SKIN GRAFT +934,MDC 22,M,FULL THICKNESS BURN WITHOUT SKIN GRAFT OR INHALATION INJURY +935,MDC 22,M,NON-EXTENSIVE BURNS +939,MDC 23,P,O.R. PROCEDURES WITH DIAGNOSES OF OTHER CONTACT WITH HEALTH SERVICES WITH MCC +940,MDC 23,P,O.R. PROCEDURES WITH DIAGNOSES OF OTHER CONTACT WITH HEALTH SERVICES WITH CC +941,MDC 23,P,O.R. PROCEDURES WITH DIAGNOSES OF OTHER CONTACT WITH HEALTH SERVICES WITHOUT CC/MCC +945,MDC 23,M,REHABILITATION WITH CC/MCC +946,MDC 23,M,REHABILITATION WITHOUT CC/MCC +947,MDC 23,M,SIGNS AND SYMPTOMS WITH MCC +948,MDC 23,M,SIGNS AND SYMPTOMS WITHOUT MCC +949,MDC 23,M,AFTERCARE WITH CC/MCC +950,MDC 23,M,AFTERCARE WITHOUT CC/MCC +951,MDC 23,M,OTHER FACTORS INFLUENCING HEALTH STATUS +955,MDC 24,P,CRANIOTOMY FOR MULTIPLE SIGNIFICANT TRAUMA +956,MDC 24,P,LIMB REATTACHMENT, HIP AND FEMUR PROCEDURES FOR MULTIPLE SIGNIFICANT TRAUMA +957,MDC 24,P,OTHER O.R. PROCEDURES FOR MULTIPLE SIGNIFICANT TRAUMA WITH MCC +958,MDC 24,P,OTHER O.R. PROCEDURES FOR MULTIPLE SIGNIFICANT TRAUMA WITH CC +959,MDC 24,P,OTHER O.R. PROCEDURES FOR MULTIPLE SIGNIFICANT TRAUMA WITHOUT CC/MCC +963,MDC 24,M,OTHER MULTIPLE SIGNIFICANT TRAUMA WITH MCC +964,MDC 24,M,OTHER MULTIPLE SIGNIFICANT TRAUMA WITH CC +965,MDC 24,M,OTHER MULTIPLE SIGNIFICANT TRAUMA WITHOUT CC/MCC +969,MDC 25,P,HIV WITH EXTENSIVE O.R. PROCEDURES WITH MCC +970,MDC 25,P,HIV WITH EXTENSIVE O.R. PROCEDURES WITHOUT MCC +974,MDC 25,M,HIV WITH MAJOR RELATED CONDITION WITH MCC +975,MDC 25,M,HIV WITH MAJOR RELATED CONDITION WITH CC +976,MDC 25,M,HIV WITH MAJOR RELATED CONDITION WITHOUT CC/MCC +977,MDC 25,M,HIV WITH OR WITHOUT OTHER RELATED CONDITION +981, ,P,EXTENSIVE O.R. PROCEDURES UNRELATED TO PRINCIPAL DIAGNOSIS WITH MCC +982, ,P,EXTENSIVE O.R. PROCEDURES UNRELATED TO PRINCIPAL DIAGNOSIS WITH CC +983, ,P,EXTENSIVE O.R. PROCEDURES UNRELATED TO PRINCIPAL DIAGNOSIS WITHOUT CC/MCC +987, ,P,NON-EXTENSIVE O.R. PROCEDURES UNRELATED TO PRINCIPAL DIAGNOSIS WITH MCC +988, ,P,NON-EXTENSIVE O.R. PROCEDURES UNRELATED TO PRINCIPAL DIAGNOSIS WITH CC +989, ,P,NON-EXTENSIVE O.R. PROCEDURES UNRELATED TO PRINCIPAL DIAGNOSIS WITHOUT CC/MCC +998, , ,PRINCIPAL DIAGNOSIS INVALID AS DISCHARGE DIAGNOSIS +999, , ,UNGROUPABLE \ No newline at end of file diff --git a/data/mdc_dictionary.json b/data/mdc_dictionary.json new file mode 100644 index 0000000..863becb --- /dev/null +++ b/data/mdc_dictionary.json @@ -0,0 +1,102 @@ +[ + { + "mdc_number": 1, + "mdc_description": "Diseases and disorders of the nervous system" + }, + { + "mdc_number": 2, + "mdc_description": "Diseases and disorders of the eye" + }, + { + "mdc_number": 3, + "mdc_description": "Diseases and disorders of the ear, nose, mouth and throat" + }, + { + "mdc_number": 4, + "mdc_description": "Diseases and disorders of the respiratory system" + }, + { + "mdc_number": 5, + "mdc_description": "Diseases and disorders of the circulatory system" + }, + { + "mdc_number": 6, + "mdc_description": "Diseases and disorders of the digestive system" + }, + { + "mdc_number": 7, + "mdc_description": "Diseases and disorders of the hepatobiliary system and pancreas" + }, + { + "mdc_number": 8, + "mdc_description": "Diseases and disorders of the musculoskeletal system and connective tissue" + }, + { + "mdc_number": 9, + "mdc_description": "Diseases and disorders of the skin, subcutaneous tissue and breast" + }, + { + "mdc_number": 10, + "mdc_description": "Endocrine, nutritional and metabolic diseases and disorders" + }, + { + "mdc_number": 11, + "mdc_description": "Diseases and disorders of the kidney and urinary tract" + }, + { + "mdc_number": 12, + "mdc_description": "Diseases and disorders of the male reproductive system" + }, + { + "mdc_number": 13, + "mdc_description": "Diseases and disorders of the female reproductive system" + }, + { + "mdc_number": 14, + "mdc_description": "Pregnancy, childbirth and the puerperium" + }, + { + "mdc_number": 15, + "mdc_description": "Newborns and other neonates with conditions originating in perinatal period" + }, + { + "mdc_number": 16, + "mdc_description": "Diseases and disorders of blood, blood forming organs and immunologic disorders" + }, + { + "mdc_number": 17, + "mdc_description": "Myeloproliferative diseases and disorders, poorly differentiated neoplasms" + }, + { + "mdc_number": 18, + "mdc_description": "Infectious and parasitic diseases, systemic or unspecified sites" + }, + { + "mdc_number": 19, + "mdc_description": "Mental diseases and disorders" + }, + { + "mdc_number": 20, + "mdc_description": "Alcohol or drug use or induced organic mental disorders" + }, + { + "mdc_number": 21, + "mdc_description": "Injuries, poisonings and toxic effects of drugs" + }, + { + "mdc_number": 22, + "mdc_description": "Burns" + }, + { + "mdc_number": 23, + "mdc_description": "Factors influencing health status and other contacts with health services" + }, + { + "mdc_number": 24, + "mdc_description": "Multiple significant trauma" + }, + { + "mdc_number": 25, + "mdc_description": "Human immunodeficiency virus infections" + } +] \ No newline at end of file diff --git a/data/ms_drg_to_mdc.json b/data/ms_drg_to_mdc.json new file mode 100644 index 0000000..1f5fbb0 --- /dev/null +++ b/data/ms_drg_to_mdc.json @@ -0,0 +1,2966 @@ +[ + { + "ms_drg": 20, + "mdc": 1 + }, + { + "ms_drg": 21, + "mdc": 1 + }, + { + "ms_drg": 22, + "mdc": 1 + }, + { + "ms_drg": 23, + "mdc": 1 + }, + { + "ms_drg": 24, + "mdc": 1 + }, + { + "ms_drg": 25, + "mdc": 1 + }, + { + "ms_drg": 26, + "mdc": 1 + }, + { + "ms_drg": 27, + "mdc": 1 + }, + { + "ms_drg": 28, + "mdc": 1 + }, + { + "ms_drg": 29, + "mdc": 1 + }, + { + "ms_drg": 30, + "mdc": 1 + }, + { + "ms_drg": 31, + "mdc": 1 + }, + { + "ms_drg": 32, + "mdc": 1 + }, + { + "ms_drg": 33, + "mdc": 1 + }, + { + "ms_drg": 34, + "mdc": 1 + }, + { + "ms_drg": 35, + "mdc": 1 + }, + { + "ms_drg": 36, + "mdc": 1 + }, + { + "ms_drg": 37, + "mdc": 1 + }, + { + "ms_drg": 38, + "mdc": 1 + }, + { + "ms_drg": 39, + "mdc": 1 + }, + { + "ms_drg": 40, + "mdc": 1 + }, + { + "ms_drg": 41, + "mdc": 1 + }, + { + "ms_drg": 42, + "mdc": 1 + }, + { + "ms_drg": 52, + "mdc": 1 + }, + { + "ms_drg": 53, + "mdc": 1 + }, + { + "ms_drg": 54, + "mdc": 1 + }, + { + "ms_drg": 55, + "mdc": 1 + }, + { + "ms_drg": 56, + "mdc": 1 + }, + { + "ms_drg": 57, + "mdc": 1 + }, + { + "ms_drg": 58, + "mdc": 1 + }, + { + "ms_drg": 59, + "mdc": 1 + }, + { + "ms_drg": 60, + "mdc": 1 + }, + { + "ms_drg": 61, + "mdc": 1 + }, + { + "ms_drg": 62, + "mdc": 1 + }, + { + "ms_drg": 63, + "mdc": 1 + }, + { + "ms_drg": 64, + "mdc": 1 + }, + { + "ms_drg": 65, + "mdc": 1 + }, + { + "ms_drg": 66, + "mdc": 1 + }, + { + "ms_drg": 67, + "mdc": 1 + }, + { + "ms_drg": 68, + "mdc": 1 + }, + { + "ms_drg": 69, + "mdc": 1 + }, + { + "ms_drg": 70, + "mdc": 1 + }, + { + "ms_drg": 71, + "mdc": 1 + }, + { + "ms_drg": 72, + "mdc": 1 + }, + { + "ms_drg": 73, + "mdc": 1 + }, + { + "ms_drg": 74, + "mdc": 1 + }, + { + "ms_drg": 75, + "mdc": 1 + }, + { + "ms_drg": 76, + "mdc": 1 + }, + { + "ms_drg": 77, + "mdc": 1 + }, + { + "ms_drg": 78, + "mdc": 1 + }, + { + "ms_drg": 79, + "mdc": 1 + }, + { + "ms_drg": 80, + "mdc": 1 + }, + { + "ms_drg": 81, + "mdc": 1 + }, + { + "ms_drg": 82, + "mdc": 1 + }, + { + "ms_drg": 83, + "mdc": 1 + }, + { + "ms_drg": 84, + "mdc": 1 + }, + { + "ms_drg": 85, + "mdc": 1 + }, + { + "ms_drg": 86, + "mdc": 1 + }, + { + "ms_drg": 87, + "mdc": 1 + }, + { + "ms_drg": 88, + "mdc": 1 + }, + { + "ms_drg": 89, + "mdc": 1 + }, + { + "ms_drg": 90, + "mdc": 1 + }, + { + "ms_drg": 91, + "mdc": 1 + }, + { + "ms_drg": 92, + "mdc": 1 + }, + { + "ms_drg": 93, + "mdc": 1 + }, + { + "ms_drg": 94, + "mdc": 1 + }, + { + "ms_drg": 95, + "mdc": 1 + }, + { + "ms_drg": 96, + "mdc": 1 + }, + { + "ms_drg": 97, + "mdc": 1 + }, + { + "ms_drg": 98, + "mdc": 1 + }, + { + "ms_drg": 99, + "mdc": 1 + }, + { + "ms_drg": 100, + "mdc": 1 + }, + { + "ms_drg": 101, + "mdc": 1 + }, + { + "ms_drg": 102, + "mdc": 1 + }, + { + "ms_drg": 103, + "mdc": 1 + }, + { + "ms_drg": 113, + "mdc": 2 + }, + { + "ms_drg": 114, + "mdc": 2 + }, + { + "ms_drg": 115, + "mdc": 2 + }, + { + "ms_drg": 116, + "mdc": 2 + }, + { + "ms_drg": 117, + "mdc": 2 + }, + { + "ms_drg": 121, + "mdc": 2 + }, + { + "ms_drg": 122, + "mdc": 2 + }, + { + "ms_drg": 123, + "mdc": 2 + }, + { + "ms_drg": 124, + "mdc": 2 + }, + { + "ms_drg": 125, + "mdc": 2 + }, + { + "ms_drg": 135, + "mdc": 3 + }, + { + "ms_drg": 136, + "mdc": 3 + }, + { + "ms_drg": 137, + "mdc": 3 + }, + { + "ms_drg": 138, + "mdc": 3 + }, + { + "ms_drg": 139, + "mdc": 3 + }, + { + "ms_drg": 140, + "mdc": 3 + }, + { + "ms_drg": 141, + "mdc": 3 + }, + { + "ms_drg": 142, + "mdc": 3 + }, + { + "ms_drg": 143, + "mdc": 3 + }, + { + "ms_drg": 144, + "mdc": 3 + }, + { + "ms_drg": 145, + "mdc": 3 + }, + { + "ms_drg": 146, + "mdc": 3 + }, + { + "ms_drg": 147, + "mdc": 3 + }, + { + "ms_drg": 148, + "mdc": 3 + }, + { + "ms_drg": 149, + "mdc": 3 + }, + { + "ms_drg": 150, + "mdc": 3 + }, + { + "ms_drg": 151, + "mdc": 3 + }, + { + "ms_drg": 152, + "mdc": 3 + }, + { + "ms_drg": 153, + "mdc": 3 + }, + { + "ms_drg": 154, + "mdc": 3 + }, + { + "ms_drg": 155, + "mdc": 3 + }, + { + "ms_drg": 156, + "mdc": 3 + }, + { + "ms_drg": 157, + "mdc": 3 + }, + { + "ms_drg": 158, + "mdc": 3 + }, + { + "ms_drg": 159, + "mdc": 3 + }, + { + "ms_drg": 163, + "mdc": 4 + }, + { + "ms_drg": 164, + "mdc": 4 + }, + { + "ms_drg": 165, + "mdc": 4 + }, + { + "ms_drg": 166, + "mdc": 4 + }, + { + "ms_drg": 167, + "mdc": 4 + }, + { + "ms_drg": 168, + "mdc": 4 + }, + { + "ms_drg": 173, + "mdc": 4 + }, + { + "ms_drg": 175, + "mdc": 4 + }, + { + "ms_drg": 176, + "mdc": 4 + }, + { + "ms_drg": 177, + "mdc": 4 + }, + { + "ms_drg": 178, + "mdc": 4 + }, + { + "ms_drg": 179, + "mdc": 4 + }, + { + "ms_drg": 180, + "mdc": 4 + }, + { + "ms_drg": 181, + "mdc": 4 + }, + { + "ms_drg": 182, + "mdc": 4 + }, + { + "ms_drg": 183, + "mdc": 4 + }, + { + "ms_drg": 184, + "mdc": 4 + }, + { + "ms_drg": 185, + "mdc": 4 + }, + { + "ms_drg": 186, + "mdc": 4 + }, + { + "ms_drg": 187, + "mdc": 4 + }, + { + "ms_drg": 188, + "mdc": 4 + }, + { + "ms_drg": 189, + "mdc": 4 + }, + { + "ms_drg": 190, + "mdc": 4 + }, + { + "ms_drg": 191, + "mdc": 4 + }, + { + "ms_drg": 192, + "mdc": 4 + }, + { + "ms_drg": 193, + "mdc": 4 + }, + { + "ms_drg": 194, + "mdc": 4 + }, + { + "ms_drg": 195, + "mdc": 4 + }, + { + "ms_drg": 196, + "mdc": 4 + }, + { + "ms_drg": 197, + "mdc": 4 + }, + { + "ms_drg": 198, + "mdc": 4 + }, + { + "ms_drg": 199, + "mdc": 4 + }, + { + "ms_drg": 200, + "mdc": 4 + }, + { + "ms_drg": 201, + "mdc": 4 + }, + { + "ms_drg": 202, + "mdc": 4 + }, + { + "ms_drg": 203, + "mdc": 4 + }, + { + "ms_drg": 204, + "mdc": 4 + }, + { + "ms_drg": 205, + "mdc": 4 + }, + { + "ms_drg": 206, + "mdc": 4 + }, + { + "ms_drg": 207, + "mdc": 4 + }, + { + "ms_drg": 208, + "mdc": 4 + }, + { + "ms_drg": 212, + "mdc": 5 + }, + { + "ms_drg": 215, + "mdc": 5 + }, + { + "ms_drg": 216, + "mdc": 5 + }, + { + "ms_drg": 217, + "mdc": 5 + }, + { + "ms_drg": 218, + "mdc": 5 + }, + { + "ms_drg": 219, + "mdc": 5 + }, + { + "ms_drg": 220, + "mdc": 5 + }, + { + "ms_drg": 221, + "mdc": 5 + }, + { + "ms_drg": 228, + "mdc": 5 + }, + { + "ms_drg": 229, + "mdc": 5 + }, + { + "ms_drg": 231, + "mdc": 5 + }, + { + "ms_drg": 232, + "mdc": 5 + }, + { + "ms_drg": 233, + "mdc": 5 + }, + { + "ms_drg": 234, + "mdc": 5 + }, + { + "ms_drg": 235, + "mdc": 5 + }, + { + "ms_drg": 236, + "mdc": 5 + }, + { + "ms_drg": 239, + "mdc": 5 + }, + { + "ms_drg": 240, + "mdc": 5 + }, + { + "ms_drg": 241, + "mdc": 5 + }, + { + "ms_drg": 242, + "mdc": 5 + }, + { + "ms_drg": 243, + "mdc": 5 + }, + { + "ms_drg": 244, + "mdc": 5 + }, + { + "ms_drg": 245, + "mdc": 5 + }, + { + "ms_drg": 250, + "mdc": 5 + }, + { + "ms_drg": 251, + "mdc": 5 + }, + { + "ms_drg": 252, + "mdc": 5 + }, + { + "ms_drg": 253, + "mdc": 5 + }, + { + "ms_drg": 254, + "mdc": 5 + }, + { + "ms_drg": 255, + "mdc": 5 + }, + { + "ms_drg": 256, + "mdc": 5 + }, + { + "ms_drg": 257, + "mdc": 5 + }, + { + "ms_drg": 258, + "mdc": 5 + }, + { + "ms_drg": 259, + "mdc": 5 + }, + { + "ms_drg": 260, + "mdc": 5 + }, + { + "ms_drg": 261, + "mdc": 5 + }, + { + "ms_drg": 262, + "mdc": 5 + }, + { + "ms_drg": 263, + "mdc": 5 + }, + { + "ms_drg": 264, + "mdc": 5 + }, + { + "ms_drg": 265, + "mdc": 5 + }, + { + "ms_drg": 266, + "mdc": 5 + }, + { + "ms_drg": 267, + "mdc": 5 + }, + { + "ms_drg": 268, + "mdc": 5 + }, + { + "ms_drg": 269, + "mdc": 5 + }, + { + "ms_drg": 270, + "mdc": 5 + }, + { + "ms_drg": 271, + "mdc": 5 + }, + { + "ms_drg": 272, + "mdc": 5 + }, + { + "ms_drg": 273, + "mdc": 5 + }, + { + "ms_drg": 274, + "mdc": 5 + }, + { + "ms_drg": 275, + "mdc": 5 + }, + { + "ms_drg": 276, + "mdc": 5 + }, + { + "ms_drg": 277, + "mdc": 5 + }, + { + "ms_drg": 278, + "mdc": 5 + }, + { + "ms_drg": 279, + "mdc": 5 + }, + { + "ms_drg": 280, + "mdc": 5 + }, + { + "ms_drg": 281, + "mdc": 5 + }, + { + "ms_drg": 282, + "mdc": 5 + }, + { + "ms_drg": 283, + "mdc": 5 + }, + { + "ms_drg": 284, + "mdc": 5 + }, + { + "ms_drg": 285, + "mdc": 5 + }, + { + "ms_drg": 286, + "mdc": 5 + }, + { + "ms_drg": 287, + "mdc": 5 + }, + { + "ms_drg": 288, + "mdc": 5 + }, + { + "ms_drg": 289, + "mdc": 5 + }, + { + "ms_drg": 290, + "mdc": 5 + }, + { + "ms_drg": 291, + "mdc": 5 + }, + { + "ms_drg": 292, + "mdc": 5 + }, + { + "ms_drg": 293, + "mdc": 5 + }, + { + "ms_drg": 294, + "mdc": 5 + }, + { + "ms_drg": 295, + "mdc": 5 + }, + { + "ms_drg": 296, + "mdc": 5 + }, + { + "ms_drg": 297, + "mdc": 5 + }, + { + "ms_drg": 298, + "mdc": 5 + }, + { + "ms_drg": 299, + "mdc": 5 + }, + { + "ms_drg": 300, + "mdc": 5 + }, + { + "ms_drg": 301, + "mdc": 5 + }, + { + "ms_drg": 302, + "mdc": 5 + }, + { + "ms_drg": 303, + "mdc": 5 + }, + { + "ms_drg": 304, + "mdc": 5 + }, + { + "ms_drg": 305, + "mdc": 5 + }, + { + "ms_drg": 306, + "mdc": 5 + }, + { + "ms_drg": 307, + "mdc": 5 + }, + { + "ms_drg": 308, + "mdc": 5 + }, + { + "ms_drg": 309, + "mdc": 5 + }, + { + "ms_drg": 310, + "mdc": 5 + }, + { + "ms_drg": 311, + "mdc": 5 + }, + { + "ms_drg": 312, + "mdc": 5 + }, + { + "ms_drg": 313, + "mdc": 5 + }, + { + "ms_drg": 314, + "mdc": 5 + }, + { + "ms_drg": 315, + "mdc": 5 + }, + { + "ms_drg": 316, + "mdc": 5 + }, + { + "ms_drg": 319, + "mdc": 5 + }, + { + "ms_drg": 320, + "mdc": 5 + }, + { + "ms_drg": 321, + "mdc": 5 + }, + { + "ms_drg": 322, + "mdc": 5 + }, + { + "ms_drg": 323, + "mdc": 5 + }, + { + "ms_drg": 324, + "mdc": 5 + }, + { + "ms_drg": 325, + "mdc": 5 + }, + { + "ms_drg": 326, + "mdc": 6 + }, + { + "ms_drg": 327, + "mdc": 6 + }, + { + "ms_drg": 328, + "mdc": 6 + }, + { + "ms_drg": 329, + "mdc": 6 + }, + { + "ms_drg": 330, + "mdc": 6 + }, + { + "ms_drg": 331, + "mdc": 6 + }, + { + "ms_drg": 332, + "mdc": 6 + }, + { + "ms_drg": 333, + "mdc": 6 + }, + { + "ms_drg": 334, + "mdc": 6 + }, + { + "ms_drg": 335, + "mdc": 6 + }, + { + "ms_drg": 336, + "mdc": 6 + }, + { + "ms_drg": 337, + "mdc": 6 + }, + { + "ms_drg": 344, + "mdc": 6 + }, + { + "ms_drg": 345, + "mdc": 6 + }, + { + "ms_drg": 346, + "mdc": 6 + }, + { + "ms_drg": 347, + "mdc": 6 + }, + { + "ms_drg": 348, + "mdc": 6 + }, + { + "ms_drg": 349, + "mdc": 6 + }, + { + "ms_drg": 350, + "mdc": 6 + }, + { + "ms_drg": 351, + "mdc": 6 + }, + { + "ms_drg": 352, + "mdc": 6 + }, + { + "ms_drg": 353, + "mdc": 6 + }, + { + "ms_drg": 354, + "mdc": 6 + }, + { + "ms_drg": 355, + "mdc": 6 + }, + { + "ms_drg": 356, + "mdc": 6 + }, + { + "ms_drg": 357, + "mdc": 6 + }, + { + "ms_drg": 358, + "mdc": 6 + }, + { + "ms_drg": 368, + "mdc": 6 + }, + { + "ms_drg": 369, + "mdc": 6 + }, + { + "ms_drg": 370, + "mdc": 6 + }, + { + "ms_drg": 371, + "mdc": 6 + }, + { + "ms_drg": 372, + "mdc": 6 + }, + { + "ms_drg": 373, + "mdc": 6 + }, + { + "ms_drg": 374, + "mdc": 6 + }, + { + "ms_drg": 375, + "mdc": 6 + }, + { + "ms_drg": 376, + "mdc": 6 + }, + { + "ms_drg": 377, + "mdc": 6 + }, + { + "ms_drg": 378, + "mdc": 6 + }, + { + "ms_drg": 379, + "mdc": 6 + }, + { + "ms_drg": 380, + "mdc": 6 + }, + { + "ms_drg": 381, + "mdc": 6 + }, + { + "ms_drg": 382, + "mdc": 6 + }, + { + "ms_drg": 383, + "mdc": 6 + }, + { + "ms_drg": 384, + "mdc": 6 + }, + { + "ms_drg": 385, + "mdc": 6 + }, + { + "ms_drg": 386, + "mdc": 6 + }, + { + "ms_drg": 387, + "mdc": 6 + }, + { + "ms_drg": 388, + "mdc": 6 + }, + { + "ms_drg": 389, + "mdc": 6 + }, + { + "ms_drg": 390, + "mdc": 6 + }, + { + "ms_drg": 391, + "mdc": 6 + }, + { + "ms_drg": 392, + "mdc": 6 + }, + { + "ms_drg": 393, + "mdc": 6 + }, + { + "ms_drg": 394, + "mdc": 6 + }, + { + "ms_drg": 395, + "mdc": 6 + }, + { + "ms_drg": 397, + "mdc": 6 + }, + { + "ms_drg": 398, + "mdc": 6 + }, + { + "ms_drg": 399, + "mdc": 6 + }, + { + "ms_drg": 405, + "mdc": 7 + }, + { + "ms_drg": 406, + "mdc": 7 + }, + { + "ms_drg": 407, + "mdc": 7 + }, + { + "ms_drg": 408, + "mdc": 7 + }, + { + "ms_drg": 409, + "mdc": 7 + }, + { + "ms_drg": 410, + "mdc": 7 + }, + { + "ms_drg": 411, + "mdc": 7 + }, + { + "ms_drg": 412, + "mdc": 7 + }, + { + "ms_drg": 413, + "mdc": 7 + }, + { + "ms_drg": 414, + "mdc": 7 + }, + { + "ms_drg": 415, + "mdc": 7 + }, + { + "ms_drg": 416, + "mdc": 7 + }, + { + "ms_drg": 417, + "mdc": 7 + }, + { + "ms_drg": 418, + "mdc": 7 + }, + { + "ms_drg": 419, + "mdc": 7 + }, + { + "ms_drg": 420, + "mdc": 7 + }, + { + "ms_drg": 421, + "mdc": 7 + }, + { + "ms_drg": 422, + "mdc": 7 + }, + { + "ms_drg": 423, + "mdc": 7 + }, + { + "ms_drg": 424, + "mdc": 7 + }, + { + "ms_drg": 425, + "mdc": 7 + }, + { + "ms_drg": 432, + "mdc": 7 + }, + { + "ms_drg": 433, + "mdc": 7 + }, + { + "ms_drg": 434, + "mdc": 7 + }, + { + "ms_drg": 435, + "mdc": 7 + }, + { + "ms_drg": 436, + "mdc": 7 + }, + { + "ms_drg": 437, + "mdc": 7 + }, + { + "ms_drg": 438, + "mdc": 7 + }, + { + "ms_drg": 439, + "mdc": 7 + }, + { + "ms_drg": 440, + "mdc": 7 + }, + { + "ms_drg": 441, + "mdc": 7 + }, + { + "ms_drg": 442, + "mdc": 7 + }, + { + "ms_drg": 443, + "mdc": 7 + }, + { + "ms_drg": 444, + "mdc": 7 + }, + { + "ms_drg": 445, + "mdc": 7 + }, + { + "ms_drg": 446, + "mdc": 7 + }, + { + "ms_drg": 453, + "mdc": 8 + }, + { + "ms_drg": 454, + "mdc": 8 + }, + { + "ms_drg": 455, + "mdc": 8 + }, + { + "ms_drg": 456, + "mdc": 8 + }, + { + "ms_drg": 457, + "mdc": 8 + }, + { + "ms_drg": 458, + "mdc": 8 + }, + { + "ms_drg": 459, + "mdc": 8 + }, + { + "ms_drg": 460, + "mdc": 8 + }, + { + "ms_drg": 461, + "mdc": 8 + }, + { + "ms_drg": 462, + "mdc": 8 + }, + { + "ms_drg": 463, + "mdc": 8 + }, + { + "ms_drg": 464, + "mdc": 8 + }, + { + "ms_drg": 465, + "mdc": 8 + }, + { + "ms_drg": 466, + "mdc": 8 + }, + { + "ms_drg": 467, + "mdc": 8 + }, + { + "ms_drg": 468, + "mdc": 8 + }, + { + "ms_drg": 469, + "mdc": 8 + }, + { + "ms_drg": 470, + "mdc": 8 + }, + { + "ms_drg": 471, + "mdc": 8 + }, + { + "ms_drg": 472, + "mdc": 8 + }, + { + "ms_drg": 473, + "mdc": 8 + }, + { + "ms_drg": 474, + "mdc": 8 + }, + { + "ms_drg": 475, + "mdc": 8 + }, + { + "ms_drg": 476, + "mdc": 8 + }, + { + "ms_drg": 477, + "mdc": 8 + }, + { + "ms_drg": 478, + "mdc": 8 + }, + { + "ms_drg": 479, + "mdc": 8 + }, + { + "ms_drg": 480, + "mdc": 8 + }, + { + "ms_drg": 481, + "mdc": 8 + }, + { + "ms_drg": 482, + "mdc": 8 + }, + { + "ms_drg": 483, + "mdc": 8 + }, + { + "ms_drg": 485, + "mdc": 8 + }, + { + "ms_drg": 486, + "mdc": 8 + }, + { + "ms_drg": 487, + "mdc": 8 + }, + { + "ms_drg": 488, + "mdc": 8 + }, + { + "ms_drg": 489, + "mdc": 8 + }, + { + "ms_drg": 492, + "mdc": 8 + }, + { + "ms_drg": 493, + "mdc": 8 + }, + { + "ms_drg": 494, + "mdc": 8 + }, + { + "ms_drg": 495, + "mdc": 8 + }, + { + "ms_drg": 496, + "mdc": 8 + }, + { + "ms_drg": 497, + "mdc": 8 + }, + { + "ms_drg": 498, + "mdc": 8 + }, + { + "ms_drg": 499, + "mdc": 8 + }, + { + "ms_drg": 500, + "mdc": 8 + }, + { + "ms_drg": 501, + "mdc": 8 + }, + { + "ms_drg": 502, + "mdc": 8 + }, + { + "ms_drg": 503, + "mdc": 8 + }, + { + "ms_drg": 504, + "mdc": 8 + }, + { + "ms_drg": 505, + "mdc": 8 + }, + { + "ms_drg": 506, + "mdc": 8 + }, + { + "ms_drg": 507, + "mdc": 8 + }, + { + "ms_drg": 508, + "mdc": 8 + }, + { + "ms_drg": 509, + "mdc": 8 + }, + { + "ms_drg": 510, + "mdc": 8 + }, + { + "ms_drg": 511, + "mdc": 8 + }, + { + "ms_drg": 512, + "mdc": 8 + }, + { + "ms_drg": 513, + "mdc": 8 + }, + { + "ms_drg": 514, + "mdc": 8 + }, + { + "ms_drg": 515, + "mdc": 8 + }, + { + "ms_drg": 516, + "mdc": 8 + }, + { + "ms_drg": 517, + "mdc": 8 + }, + { + "ms_drg": 518, + "mdc": 8 + }, + { + "ms_drg": 519, + "mdc": 8 + }, + { + "ms_drg": 520, + "mdc": 8 + }, + { + "ms_drg": 521, + "mdc": 8 + }, + { + "ms_drg": 522, + "mdc": 8 + }, + { + "ms_drg": 533, + "mdc": 8 + }, + { + "ms_drg": 534, + "mdc": 8 + }, + { + "ms_drg": 535, + "mdc": 8 + }, + { + "ms_drg": 536, + "mdc": 8 + }, + { + "ms_drg": 537, + "mdc": 8 + }, + { + "ms_drg": 538, + "mdc": 8 + }, + { + "ms_drg": 539, + "mdc": 8 + }, + { + "ms_drg": 540, + "mdc": 8 + }, + { + "ms_drg": 541, + "mdc": 8 + }, + { + "ms_drg": 542, + "mdc": 8 + }, + { + "ms_drg": 543, + "mdc": 8 + }, + { + "ms_drg": 544, + "mdc": 8 + }, + { + "ms_drg": 545, + "mdc": 8 + }, + { + "ms_drg": 546, + "mdc": 8 + }, + { + "ms_drg": 547, + "mdc": 8 + }, + { + "ms_drg": 548, + "mdc": 8 + }, + { + "ms_drg": 549, + "mdc": 8 + }, + { + "ms_drg": 550, + "mdc": 8 + }, + { + "ms_drg": 551, + "mdc": 8 + }, + { + "ms_drg": 552, + "mdc": 8 + }, + { + "ms_drg": 553, + "mdc": 8 + }, + { + "ms_drg": 554, + "mdc": 8 + }, + { + "ms_drg": 555, + "mdc": 8 + }, + { + "ms_drg": 556, + "mdc": 8 + }, + { + "ms_drg": 557, + "mdc": 8 + }, + { + "ms_drg": 558, + "mdc": 8 + }, + { + "ms_drg": 559, + "mdc": 8 + }, + { + "ms_drg": 560, + "mdc": 8 + }, + { + "ms_drg": 561, + "mdc": 8 + }, + { + "ms_drg": 562, + "mdc": 8 + }, + { + "ms_drg": 563, + "mdc": 8 + }, + { + "ms_drg": 564, + "mdc": 8 + }, + { + "ms_drg": 565, + "mdc": 8 + }, + { + "ms_drg": 566, + "mdc": 8 + }, + { + "ms_drg": 570, + "mdc": 9 + }, + { + "ms_drg": 571, + "mdc": 9 + }, + { + "ms_drg": 572, + "mdc": 9 + }, + { + "ms_drg": 573, + "mdc": 9 + }, + { + "ms_drg": 574, + "mdc": 9 + }, + { + "ms_drg": 575, + "mdc": 9 + }, + { + "ms_drg": 576, + "mdc": 9 + }, + { + "ms_drg": 577, + "mdc": 9 + }, + { + "ms_drg": 578, + "mdc": 9 + }, + { + "ms_drg": 579, + "mdc": 9 + }, + { + "ms_drg": 580, + "mdc": 9 + }, + { + "ms_drg": 581, + "mdc": 9 + }, + { + "ms_drg": 582, + "mdc": 9 + }, + { + "ms_drg": 583, + "mdc": 9 + }, + { + "ms_drg": 584, + "mdc": 9 + }, + { + "ms_drg": 585, + "mdc": 9 + }, + { + "ms_drg": 592, + "mdc": 9 + }, + { + "ms_drg": 593, + "mdc": 9 + }, + { + "ms_drg": 594, + "mdc": 9 + }, + { + "ms_drg": 595, + "mdc": 9 + }, + { + "ms_drg": 596, + "mdc": 9 + }, + { + "ms_drg": 597, + "mdc": 9 + }, + { + "ms_drg": 598, + "mdc": 9 + }, + { + "ms_drg": 599, + "mdc": 9 + }, + { + "ms_drg": 600, + "mdc": 9 + }, + { + "ms_drg": 601, + "mdc": 9 + }, + { + "ms_drg": 602, + "mdc": 9 + }, + { + "ms_drg": 603, + "mdc": 9 + }, + { + "ms_drg": 604, + "mdc": 9 + }, + { + "ms_drg": 605, + "mdc": 9 + }, + { + "ms_drg": 606, + "mdc": 9 + }, + { + "ms_drg": 607, + "mdc": 9 + }, + { + "ms_drg": 614, + "mdc": 10 + }, + { + "ms_drg": 615, + "mdc": 10 + }, + { + "ms_drg": 616, + "mdc": 10 + }, + { + "ms_drg": 617, + "mdc": 10 + }, + { + "ms_drg": 618, + "mdc": 10 + }, + { + "ms_drg": 619, + "mdc": 10 + }, + { + "ms_drg": 620, + "mdc": 10 + }, + { + "ms_drg": 621, + "mdc": 10 + }, + { + "ms_drg": 622, + "mdc": 10 + }, + { + "ms_drg": 623, + "mdc": 10 + }, + { + "ms_drg": 624, + "mdc": 10 + }, + { + "ms_drg": 625, + "mdc": 10 + }, + { + "ms_drg": 626, + "mdc": 10 + }, + { + "ms_drg": 627, + "mdc": 10 + }, + { + "ms_drg": 628, + "mdc": 10 + }, + { + "ms_drg": 629, + "mdc": 10 + }, + { + "ms_drg": 630, + "mdc": 10 + }, + { + "ms_drg": 637, + "mdc": 10 + }, + { + "ms_drg": 638, + "mdc": 10 + }, + { + "ms_drg": 639, + "mdc": 10 + }, + { + "ms_drg": 640, + "mdc": 10 + }, + { + "ms_drg": 641, + "mdc": 10 + }, + { + "ms_drg": 642, + "mdc": 10 + }, + { + "ms_drg": 643, + "mdc": 10 + }, + { + "ms_drg": 644, + "mdc": 10 + }, + { + "ms_drg": 645, + "mdc": 10 + }, + { + "ms_drg": 650, + "mdc": 11 + }, + { + "ms_drg": 651, + "mdc": 11 + }, + { + "ms_drg": 652, + "mdc": 11 + }, + { + "ms_drg": 653, + "mdc": 11 + }, + { + "ms_drg": 654, + "mdc": 11 + }, + { + "ms_drg": 655, + "mdc": 11 + }, + { + "ms_drg": 656, + "mdc": 11 + }, + { + "ms_drg": 657, + "mdc": 11 + }, + { + "ms_drg": 658, + "mdc": 11 + }, + { + "ms_drg": 659, + "mdc": 11 + }, + { + "ms_drg": 660, + "mdc": 11 + }, + { + "ms_drg": 661, + "mdc": 11 + }, + { + "ms_drg": 662, + "mdc": 11 + }, + { + "ms_drg": 663, + "mdc": 11 + }, + { + "ms_drg": 664, + "mdc": 11 + }, + { + "ms_drg": 665, + "mdc": 11 + }, + { + "ms_drg": 666, + "mdc": 11 + }, + { + "ms_drg": 667, + "mdc": 11 + }, + { + "ms_drg": 668, + "mdc": 11 + }, + { + "ms_drg": 669, + "mdc": 11 + }, + { + "ms_drg": 670, + "mdc": 11 + }, + { + "ms_drg": 671, + "mdc": 11 + }, + { + "ms_drg": 672, + "mdc": 11 + }, + { + "ms_drg": 673, + "mdc": 11 + }, + { + "ms_drg": 674, + "mdc": 11 + }, + { + "ms_drg": 675, + "mdc": 11 + }, + { + "ms_drg": 682, + "mdc": 11 + }, + { + "ms_drg": 683, + "mdc": 11 + }, + { + "ms_drg": 684, + "mdc": 11 + }, + { + "ms_drg": 686, + "mdc": 11 + }, + { + "ms_drg": 687, + "mdc": 11 + }, + { + "ms_drg": 688, + "mdc": 11 + }, + { + "ms_drg": 689, + "mdc": 11 + }, + { + "ms_drg": 690, + "mdc": 11 + }, + { + "ms_drg": 693, + "mdc": 11 + }, + { + "ms_drg": 694, + "mdc": 11 + }, + { + "ms_drg": 695, + "mdc": 11 + }, + { + "ms_drg": 696, + "mdc": 11 + }, + { + "ms_drg": 697, + "mdc": 11 + }, + { + "ms_drg": 698, + "mdc": 11 + }, + { + "ms_drg": 699, + "mdc": 11 + }, + { + "ms_drg": 700, + "mdc": 11 + }, + { + "ms_drg": 707, + "mdc": 12 + }, + { + "ms_drg": 708, + "mdc": 12 + }, + { + "ms_drg": 709, + "mdc": 12 + }, + { + "ms_drg": 710, + "mdc": 12 + }, + { + "ms_drg": 711, + "mdc": 12 + }, + { + "ms_drg": 712, + "mdc": 12 + }, + { + "ms_drg": 713, + "mdc": 12 + }, + { + "ms_drg": 714, + "mdc": 12 + }, + { + "ms_drg": 715, + "mdc": 12 + }, + { + "ms_drg": 716, + "mdc": 12 + }, + { + "ms_drg": 717, + "mdc": 12 + }, + { + "ms_drg": 718, + "mdc": 12 + }, + { + "ms_drg": 722, + "mdc": 12 + }, + { + "ms_drg": 723, + "mdc": 12 + }, + { + "ms_drg": 724, + "mdc": 12 + }, + { + "ms_drg": 725, + "mdc": 12 + }, + { + "ms_drg": 726, + "mdc": 12 + }, + { + "ms_drg": 727, + "mdc": 12 + }, + { + "ms_drg": 728, + "mdc": 12 + }, + { + "ms_drg": 729, + "mdc": 12 + }, + { + "ms_drg": 730, + "mdc": 12 + }, + { + "ms_drg": 734, + "mdc": 13 + }, + { + "ms_drg": 735, + "mdc": 13 + }, + { + "ms_drg": 736, + "mdc": 13 + }, + { + "ms_drg": 737, + "mdc": 13 + }, + { + "ms_drg": 738, + "mdc": 13 + }, + { + "ms_drg": 739, + "mdc": 13 + }, + { + "ms_drg": 740, + "mdc": 13 + }, + { + "ms_drg": 741, + "mdc": 13 + }, + { + "ms_drg": 742, + "mdc": 13 + }, + { + "ms_drg": 743, + "mdc": 13 + }, + { + "ms_drg": 744, + "mdc": 13 + }, + { + "ms_drg": 745, + "mdc": 13 + }, + { + "ms_drg": 746, + "mdc": 13 + }, + { + "ms_drg": 747, + "mdc": 13 + }, + { + "ms_drg": 748, + "mdc": 13 + }, + { + "ms_drg": 749, + "mdc": 13 + }, + { + "ms_drg": 750, + "mdc": 13 + }, + { + "ms_drg": 754, + "mdc": 13 + }, + { + "ms_drg": 755, + "mdc": 13 + }, + { + "ms_drg": 756, + "mdc": 13 + }, + { + "ms_drg": 757, + "mdc": 13 + }, + { + "ms_drg": 758, + "mdc": 13 + }, + { + "ms_drg": 759, + "mdc": 13 + }, + { + "ms_drg": 760, + "mdc": 13 + }, + { + "ms_drg": 761, + "mdc": 13 + }, + { + "ms_drg": 768, + "mdc": 14 + }, + { + "ms_drg": 769, + "mdc": 14 + }, + { + "ms_drg": 770, + "mdc": 14 + }, + { + "ms_drg": 776, + "mdc": 14 + }, + { + "ms_drg": 779, + "mdc": 14 + }, + { + "ms_drg": 783, + "mdc": 14 + }, + { + "ms_drg": 784, + "mdc": 14 + }, + { + "ms_drg": 785, + "mdc": 14 + }, + { + "ms_drg": 786, + "mdc": 14 + }, + { + "ms_drg": 787, + "mdc": 14 + }, + { + "ms_drg": 788, + "mdc": 14 + }, + { + "ms_drg": 789, + "mdc": 15 + }, + { + "ms_drg": 790, + "mdc": 15 + }, + { + "ms_drg": 791, + "mdc": 15 + }, + { + "ms_drg": 792, + "mdc": 15 + }, + { + "ms_drg": 793, + "mdc": 15 + }, + { + "ms_drg": 794, + "mdc": 15 + }, + { + "ms_drg": 795, + "mdc": 15 + }, + { + "ms_drg": 796, + "mdc": 14 + }, + { + "ms_drg": 797, + "mdc": 14 + }, + { + "ms_drg": 798, + "mdc": 14 + }, + { + "ms_drg": 799, + "mdc": 16 + }, + { + "ms_drg": 800, + "mdc": 16 + }, + { + "ms_drg": 801, + "mdc": 16 + }, + { + "ms_drg": 802, + "mdc": 16 + }, + { + "ms_drg": 803, + "mdc": 16 + }, + { + "ms_drg": 804, + "mdc": 16 + }, + { + "ms_drg": 805, + "mdc": 14 + }, + { + "ms_drg": 806, + "mdc": 14 + }, + { + "ms_drg": 807, + "mdc": 14 + }, + { + "ms_drg": 808, + "mdc": 16 + }, + { + "ms_drg": 809, + "mdc": 16 + }, + { + "ms_drg": 810, + "mdc": 16 + }, + { + "ms_drg": 811, + "mdc": 16 + }, + { + "ms_drg": 812, + "mdc": 16 + }, + { + "ms_drg": 813, + "mdc": 16 + }, + { + "ms_drg": 814, + "mdc": 16 + }, + { + "ms_drg": 815, + "mdc": 16 + }, + { + "ms_drg": 816, + "mdc": 16 + }, + { + "ms_drg": 817, + "mdc": 14 + }, + { + "ms_drg": 818, + "mdc": 14 + }, + { + "ms_drg": 819, + "mdc": 14 + }, + { + "ms_drg": 820, + "mdc": 17 + }, + { + "ms_drg": 821, + "mdc": 17 + }, + { + "ms_drg": 822, + "mdc": 17 + }, + { + "ms_drg": 823, + "mdc": 17 + }, + { + "ms_drg": 824, + "mdc": 17 + }, + { + "ms_drg": 825, + "mdc": 17 + }, + { + "ms_drg": 826, + "mdc": 17 + }, + { + "ms_drg": 827, + "mdc": 17 + }, + { + "ms_drg": 828, + "mdc": 17 + }, + { + "ms_drg": 829, + "mdc": 17 + }, + { + "ms_drg": 830, + "mdc": 17 + }, + { + "ms_drg": 831, + "mdc": 14 + }, + { + "ms_drg": 832, + "mdc": 14 + }, + { + "ms_drg": 833, + "mdc": 14 + }, + { + "ms_drg": 834, + "mdc": 17 + }, + { + "ms_drg": 835, + "mdc": 17 + }, + { + "ms_drg": 836, + "mdc": 17 + }, + { + "ms_drg": 837, + "mdc": 17 + }, + { + "ms_drg": 838, + "mdc": 17 + }, + { + "ms_drg": 839, + "mdc": 17 + }, + { + "ms_drg": 840, + "mdc": 17 + }, + { + "ms_drg": 841, + "mdc": 17 + }, + { + "ms_drg": 842, + "mdc": 17 + }, + { + "ms_drg": 843, + "mdc": 17 + }, + { + "ms_drg": 844, + "mdc": 17 + }, + { + "ms_drg": 845, + "mdc": 17 + }, + { + "ms_drg": 846, + "mdc": 17 + }, + { + "ms_drg": 847, + "mdc": 17 + }, + { + "ms_drg": 848, + "mdc": 17 + }, + { + "ms_drg": 849, + "mdc": 17 + }, + { + "ms_drg": 853, + "mdc": 18 + }, + { + "ms_drg": 854, + "mdc": 18 + }, + { + "ms_drg": 855, + "mdc": 18 + }, + { + "ms_drg": 856, + "mdc": 18 + }, + { + "ms_drg": 857, + "mdc": 18 + }, + { + "ms_drg": 858, + "mdc": 18 + }, + { + "ms_drg": 862, + "mdc": 18 + }, + { + "ms_drg": 863, + "mdc": 18 + }, + { + "ms_drg": 864, + "mdc": 18 + }, + { + "ms_drg": 865, + "mdc": 18 + }, + { + "ms_drg": 866, + "mdc": 18 + }, + { + "ms_drg": 867, + "mdc": 18 + }, + { + "ms_drg": 868, + "mdc": 18 + }, + { + "ms_drg": 869, + "mdc": 18 + }, + { + "ms_drg": 870, + "mdc": 18 + }, + { + "ms_drg": 871, + "mdc": 18 + }, + { + "ms_drg": 872, + "mdc": 18 + }, + { + "ms_drg": 876, + "mdc": 19 + }, + { + "ms_drg": 880, + "mdc": 19 + }, + { + "ms_drg": 881, + "mdc": 19 + }, + { + "ms_drg": 882, + "mdc": 19 + }, + { + "ms_drg": 883, + "mdc": 19 + }, + { + "ms_drg": 884, + "mdc": 19 + }, + { + "ms_drg": 885, + "mdc": 19 + }, + { + "ms_drg": 886, + "mdc": 19 + }, + { + "ms_drg": 887, + "mdc": 19 + }, + { + "ms_drg": 894, + "mdc": 20 + }, + { + "ms_drg": 895, + "mdc": 20 + }, + { + "ms_drg": 896, + "mdc": 20 + }, + { + "ms_drg": 897, + "mdc": 20 + }, + { + "ms_drg": 901, + "mdc": 21 + }, + { + "ms_drg": 902, + "mdc": 21 + }, + { + "ms_drg": 903, + "mdc": 21 + }, + { + "ms_drg": 904, + "mdc": 21 + }, + { + "ms_drg": 905, + "mdc": 21 + }, + { + "ms_drg": 906, + "mdc": 21 + }, + { + "ms_drg": 907, + "mdc": 21 + }, + { + "ms_drg": 908, + "mdc": 21 + }, + { + "ms_drg": 909, + "mdc": 21 + }, + { + "ms_drg": 913, + "mdc": 21 + }, + { + "ms_drg": 914, + "mdc": 21 + }, + { + "ms_drg": 915, + "mdc": 21 + }, + { + "ms_drg": 916, + "mdc": 21 + }, + { + "ms_drg": 917, + "mdc": 21 + }, + { + "ms_drg": 918, + "mdc": 21 + }, + { + "ms_drg": 919, + "mdc": 21 + }, + { + "ms_drg": 920, + "mdc": 21 + }, + { + "ms_drg": 921, + "mdc": 21 + }, + { + "ms_drg": 922, + "mdc": 21 + }, + { + "ms_drg": 923, + "mdc": 21 + }, + { + "ms_drg": 927, + "mdc": 22 + }, + { + "ms_drg": 928, + "mdc": 22 + }, + { + "ms_drg": 929, + "mdc": 22 + }, + { + "ms_drg": 933, + "mdc": 22 + }, + { + "ms_drg": 934, + "mdc": 22 + }, + { + "ms_drg": 935, + "mdc": 22 + }, + { + "ms_drg": 939, + "mdc": 23 + }, + { + "ms_drg": 940, + "mdc": 23 + }, + { + "ms_drg": 941, + "mdc": 23 + }, + { + "ms_drg": 945, + "mdc": 23 + }, + { + "ms_drg": 946, + "mdc": 23 + }, + { + "ms_drg": 947, + "mdc": 23 + }, + { + "ms_drg": 948, + "mdc": 23 + }, + { + "ms_drg": 949, + "mdc": 23 + }, + { + "ms_drg": 950, + "mdc": 23 + }, + { + "ms_drg": 951, + "mdc": 23 + }, + { + "ms_drg": 955, + "mdc": 24 + }, + { + "ms_drg": 956, + "mdc": 24 + }, + { + "ms_drg": 957, + "mdc": 24 + }, + { + "ms_drg": 958, + "mdc": 24 + }, + { + "ms_drg": 959, + "mdc": 24 + }, + { + "ms_drg": 963, + "mdc": 24 + }, + { + "ms_drg": 964, + "mdc": 24 + }, + { + "ms_drg": 965, + "mdc": 24 + }, + { + "ms_drg": 969, + "mdc": 25 + }, + { + "ms_drg": 970, + "mdc": 25 + }, + { + "ms_drg": 974, + "mdc": 25 + }, + { + "ms_drg": 975, + "mdc": 25 + }, + { + "ms_drg": 976, + "mdc": 25 + }, + { + "ms_drg": 977, + "mdc": 25 + } +] \ No newline at end of file diff --git a/data_processing/models/mdc_number_to_description.sql b/data_processing/models/mdc_number_to_description.sql new file mode 100644 index 0000000..5b4d223 --- /dev/null +++ b/data_processing/models/mdc_number_to_description.sql @@ -0,0 +1,13 @@ +{{ config( + materialized = 'external', + location = '~/data/physionet.org/processed/mimiciv/hosp/mdc_dictionary.parquet' +)}} + +WITH source_data AS ( + SELECT * FROM read_json_auto('~/projects/mimic-iv-visualization/data/mdc_dictionary.json') +) + +SELECT + CAST(mdc_number AS INTEGER) AS mdc_number, + mdc_description +FROM source_data \ No newline at end of file diff --git a/data_processing/models/ms_drg_to_mdc.sql b/data_processing/models/ms_drg_to_mdc.sql new file mode 100644 index 0000000..276fdcc --- /dev/null +++ b/data_processing/models/ms_drg_to_mdc.sql @@ -0,0 +1,13 @@ +{{ config( + materialized = 'external', + location = '~/data/physionet.org/processed/mimiciv/hosp/ms_drg_to_mdc.parquet' +)}} + +WITH source_data AS ( + SELECT * FROM read_json_auto('~/projects/mimic-iv-visualization/data/ms_drg_to_mdc.json') +) + +SELECT + CAST(ms_drg AS INTEGER) AS ms_drg, + CAST(mdc AS INTEGER) AS mdc +FROM source_data \ No newline at end of file diff --git a/notebooks/241009-process-major-diagnostic-categories-for-drg-codes.ipynb b/notebooks/241009-process-major-diagnostic-categories-for-drg-codes.ipynb new file mode 100644 index 0000000..d9c5738 --- /dev/null +++ b/notebooks/241009-process-major-diagnostic-categories-for-drg-codes.ipynb @@ -0,0 +1,152 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Process DRG codes\n", + "\n", + "Goal is to save the major diagnostic categories for all DRG codes here for further analysis:\n", + "\n", + "https://www.cms.gov/icd10m/FY2024-nprmversion41.0-fullcode-cms/fullcode_cms/P0380.html\n", + "\n", + "https://www.cms.gov/icd10m/FY2024-nprmversion41.0-fullcode-cms/fullcode_cms/P0001.html" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Total MS-DRG to MDC mappings: 741\n", + "Data saved to ./data/ms_drg_to_mdc.json\n" + ] + } + ], + "source": [ + "import csv\n", + "import json\n", + "\n", + "csv_file_path = './data/major_diagnostic_categories.csv'\n", + "json_file_path = './data/ms_drg_to_mdc.json'\n", + "\n", + "ms_drg_to_mdc = []\n", + "\n", + "with open(csv_file_path, 'r') as csv_file:\n", + " for row in csv.reader(csv_file):\n", + " if len(row) >= 2 and row[0].isdigit():\n", + " ms_drg = int(row[0])\n", + " mdc = row[1].strip()\n", + " if mdc.startswith('MDC '):\n", + " mdc_num = int(mdc[4:])\n", + " elif mdc.isdigit():\n", + " mdc_num = int(mdc)\n", + " else:\n", + " continue\n", + " ms_drg_to_mdc.append({\"ms_drg\": ms_drg, \"mdc\": mdc_num})\n", + "\n", + "with open(json_file_path, 'w') as json_file:\n", + " json.dump(ms_drg_to_mdc, json_file, indent=2)\n", + "\n", + "print(f\"Total MS-DRG to MDC mappings: {len(ms_drg_to_mdc)}\")\n", + "print(f\"Data saved to {json_file_path}\")" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MDC dictionary saved to ./data/mdc_dictionary.json\n", + "Total MDCs: 25\n" + ] + } + ], + "source": [ + "import json\n", + "\n", + "mdc_input_string = \"\"\"\n", + "MDC 01 Diseases and disorders of the nervous system\n", + "MDC 02 Diseases and disorders of the eye\n", + "MDC 03 Diseases and disorders of the ear, nose, mouth and throat\n", + "MDC 04 Diseases and disorders of the respiratory system\n", + "MDC 05 Diseases and disorders of the circulatory system\n", + "MDC 06 Diseases and disorders of the digestive system\n", + "MDC 07 Diseases and disorders of the hepatobiliary system and pancreas\n", + "MDC 08 Diseases and disorders of the musculoskeletal system and connective tissue\n", + "MDC 09 Diseases and disorders of the skin, subcutaneous tissue and breast\n", + "MDC 10 Endocrine, nutritional and metabolic diseases and disorders\n", + "MDC 11 Diseases and disorders of the kidney and urinary tract\n", + "MDC 12 Diseases and disorders of the male reproductive system\n", + "MDC 13 Diseases and disorders of the female reproductive system\n", + "MDC 14 Pregnancy, childbirth and the puerperium\n", + "MDC 15 Newborns and other neonates with conditions originating in perinatal period\n", + "MDC 16 Diseases and disorders of blood, blood forming organs and immunologic disorders\n", + "MDC 17 Myeloproliferative diseases and disorders, poorly differentiated neoplasms\n", + "MDC 18 Infectious and parasitic diseases, systemic or unspecified sites\n", + "MDC 19 Mental diseases and disorders\n", + "MDC 20 Alcohol or drug use or induced organic mental disorders\n", + "MDC 21 Injuries, poisonings and toxic effects of drugs\n", + "MDC 22 Burns\n", + "MDC 23 Factors influencing health status and other contacts with health services\n", + "MDC 24 Multiple significant trauma\n", + "MDC 25 Human immunodeficiency virus infections\n", + "\"\"\"\n", + "\n", + "# Create a list of dictionaries from the MDC list\n", + "mdc_list = []\n", + "for line in mdc_input_string.strip().split('\\n'):\n", + " mdc_number = int(line[4:6]) # Extract the MDC number\n", + " mdc_description = line[7:] # Extract the MDC description\n", + " mdc_list.append({\n", + " \"mdc_number\": mdc_number,\n", + " \"mdc_description\": mdc_description\n", + " })\n", + "\n", + "# Save the list to a JSON file\n", + "json_file_path = './data/mdc_dictionary.json'\n", + "with open(json_file_path, 'w') as json_file:\n", + " json.dump(mdc_list, json_file, indent=2)\n", + "\n", + "print(f\"MDC dictionary saved to {json_file_path}\")\n", + "print(f\"Total MDCs: {len(mdc_list)}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".venv", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.14" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/notebooks/241009-visualizing-glucose-by-major-diagnostic-category.ipynb b/notebooks/241009-visualizing-glucose-by-major-diagnostic-category.ipynb new file mode 100644 index 0000000..6a31c96 --- /dev/null +++ b/notebooks/241009-visualizing-glucose-by-major-diagnostic-category.ipynb @@ -0,0 +1,433 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Goal\n", + "\n", + "Our goal is to visualize the types of hospitalizations by major diagnostic category (MDC) using a lab value such as glucose:\n", + "\n", + "https://idl.uw.edu/mosaic-framework-example/observable-latency" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "# Load duckdb, which lets us efficiently load large files\n", + "import duckdb\n", + "\n", + "# Load pandas, which lets us manipulate dataframes\n", + "import pandas as pd\n", + "\n", + "# Import jupysql Jupyter extension to create SQL cells\n", + "%load_ext sql\n", + "\n", + "# Set configrations on jupysql to directly output data to Pandas and to simplify the output that is printed to the notebook.\n", + "%config SqlMagic.autopandas = True\n", + "\n", + "%config SqlMagic.feedback = False\n", + "%config SqlMagic.displaycon = False\n", + "\n", + "# Connect jupysql to DuckDB using a SQLAlchemy-style connection string. Either connect to an in memory DuckDB, or a file backed db.\n", + "%sql duckdb:///:memory:" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture\n", + "%%sql\n", + "WITH glucose_measurements AS (\n", + " SELECT \n", + " l.subject_id,\n", + " l.hadm_id,\n", + " l.valuenum AS glucose_value,\n", + " l.charttime AS measurement_time\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/labevents.parquet') l\n", + " JOIN \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/d_labitems.parquet') d\n", + " ON \n", + " l.itemid = d.itemid\n", + " WHERE \n", + " d.label = 'Glucose'\n", + "),\n", + "drgcodes AS (\n", + " SELECT \n", + " subject_id,\n", + " hadm_id,\n", + " drg_type,\n", + " drg_code\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/drgcodes.parquet')\n", + " WHERE \n", + " drg_type = 'HCFA'\n", + ")\n", + "SELECT \n", + " g.subject_id,\n", + " g.hadm_id,\n", + " g.glucose_value,\n", + " g.measurement_time,\n", + " d.drg_type,\n", + " d.drg_code\n", + "FROM \n", + " glucose_measurements g\n", + "JOIN \n", + " drgcodes d\n", + "ON \n", + " g.subject_id = d.subject_id\n", + " AND g.hadm_id = d.hadm_id\n", + "ORDER BY \n", + " g.subject_id, g.hadm_id, g.measurement_time" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture\n", + "%%sql\n", + "WITH glucose_measurements AS (\n", + " SELECT \n", + " l.subject_id,\n", + " l.hadm_id,\n", + " l.valuenum AS glucose_value\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/labevents.parquet') l\n", + " JOIN \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/d_labitems.parquet') d\n", + " ON \n", + " l.itemid = d.itemid\n", + " WHERE \n", + " d.label = 'Glucose'\n", + " AND l.valuenum IS NOT NULL\n", + "),\n", + "drgcodes AS (\n", + " SELECT \n", + " subject_id,\n", + " hadm_id,\n", + " drg_type,\n", + " drg_code\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/drgcodes.parquet')\n", + " WHERE \n", + " drg_type = 'HCFA'\n", + "),\n", + "ms_drg_to_mdc AS (\n", + " SELECT\n", + " ms_drg,\n", + " mdc\n", + " FROM\n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/ms_drg_to_mdc.parquet')\n", + "),\n", + "mdc_dictionary AS (\n", + " SELECT\n", + " mdc_number,\n", + " mdc_description\n", + " FROM\n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/mdc_dictionary.parquet')\n", + "),\n", + "mdc_counts AS (\n", + " SELECT\n", + " m.mdc,\n", + " COUNT(*) AS mdc_count\n", + " FROM\n", + " glucose_measurements g\n", + " JOIN \n", + " drgcodes d ON g.subject_id = d.subject_id AND g.hadm_id = d.hadm_id\n", + " LEFT JOIN\n", + " ms_drg_to_mdc m ON CAST(d.drg_code AS INTEGER) = m.ms_drg\n", + " GROUP BY\n", + " m.mdc\n", + " HAVING\n", + " COUNT(*) >= 20\n", + ")\n", + "SELECT \n", + " g.subject_id,\n", + " g.hadm_id,\n", + " g.glucose_value,\n", + " d.drg_type,\n", + " d.drg_code,\n", + " m.mdc,\n", + " md.mdc_description\n", + "FROM \n", + " glucose_measurements g\n", + "JOIN \n", + " drgcodes d ON g.subject_id = d.subject_id AND g.hadm_id = d.hadm_id\n", + "LEFT JOIN\n", + " ms_drg_to_mdc m ON CAST(d.drg_code AS INTEGER) = m.ms_drg\n", + "LEFT JOIN\n", + " mdc_dictionary md ON m.mdc = md.mdc_number\n", + "INNER JOIN\n", + " mdc_counts mc ON m.mdc = mc.mdc\n", + "ORDER BY \n", + " g.subject_id, g.hadm_id, g.glucose_value" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, + "outputs": [], + "source": [ + "df = _" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "mdc_description\n", + "Diseases and disorders of the circulatory system 577230\n", + "Diseases and disorders of the digestive system 259581\n", + "Infectious and parasitic diseases, systemic or unspecified sites 241405\n", + "Diseases and disorders of the nervous system 211832\n", + "Diseases and disorders of the respiratory system 197244\n", + "Diseases and disorders of the hepatobiliary system and pancreas 170848\n", + "Diseases and disorders of the musculoskeletal system and connective tissue 154653\n", + "Myeloproliferative diseases and disorders, poorly differentiated neoplasms 122313\n", + "Diseases and disorders of the kidney and urinary tract 120123\n", + "Endocrine, nutritional and metabolic diseases and disorders 76757\n", + "Injuries, poisonings and toxic effects of drugs 51802\n", + "Diseases and disorders of the skin, subcutaneous tissue and breast 34427\n", + "Diseases and disorders of blood, blood forming organs and immunologic disorders 34189\n", + "Multiple significant trauma 18480\n", + "Mental diseases and disorders 17621\n", + "Diseases and disorders of the female reproductive system 13481\n", + "Diseases and disorders of the ear, nose, mouth and throat 12402\n", + "Alcohol or drug use or induced organic mental disorders 10468\n", + "Human immunodeficiency virus infections 10384\n", + "Factors influencing health status and other contacts with health services 8942\n", + "Pregnancy, childbirth and the puerperium 5008\n", + "Diseases and disorders of the male reproductive system 4953\n", + "Diseases and disorders of the eye 2237\n", + "Burns 131\n", + "Name: count, dtype: int64" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df['mdc_description'].value_counts()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Aligning charttimes to the last measurement for every hospitalization" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture\n", + "%%sql \n", + "WITH glucose_measurements AS (\n", + " SELECT \n", + " l.subject_id,\n", + " l.hadm_id,\n", + " l.valuenum AS glucose_value,\n", + " l.charttime AS measurement_time\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/labevents.parquet') l\n", + " JOIN \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/d_labitems.parquet') d\n", + " ON \n", + " l.itemid = d.itemid\n", + " WHERE \n", + " d.label = 'Glucose'\n", + "),\n", + "drgcodes AS (\n", + " SELECT \n", + " subject_id,\n", + " hadm_id,\n", + " drg_type,\n", + " drg_code\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/drgcodes.parquet')\n", + " WHERE \n", + " drg_type = 'HCFA'\n", + "),\n", + "last_measurement_times AS (\n", + " SELECT\n", + " subject_id,\n", + " hadm_id,\n", + " MAX(measurement_time) AS last_measurement_time\n", + " FROM\n", + " glucose_measurements\n", + " GROUP BY\n", + " subject_id, hadm_id\n", + ")\n", + "SELECT \n", + " g.subject_id,\n", + " g.hadm_id,\n", + " g.glucose_value,\n", + " g.measurement_time,\n", + " TIMESTAMP '2000-01-01 00:00:00' + \n", + " INTERVAL (DATEDIFF('second', g.measurement_time, lmt.last_measurement_time)) SECOND \n", + " AS relative_measurement_time,\n", + " d.drg_type,\n", + " d.drg_code\n", + "FROM \n", + " glucose_measurements g\n", + "JOIN \n", + " drgcodes d ON g.subject_id = d.subject_id AND g.hadm_id = d.hadm_id\n", + "JOIN\n", + " last_measurement_times lmt ON g.subject_id = lmt.subject_id AND g.hadm_id = lmt.hadm_id\n", + "ORDER BY \n", + " g.subject_id, g.hadm_id, g.measurement_time" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture\n", + "%%sql \n", + "\n", + "WITH glucose_measurements AS (\n", + " SELECT \n", + " l.subject_id,\n", + " l.hadm_id,\n", + " l.valuenum AS glucose_value,\n", + " l.charttime AS measurement_time\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/labevents.parquet') l\n", + " JOIN \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/d_labitems.parquet') d\n", + " ON \n", + " l.itemid = d.itemid\n", + " WHERE \n", + " d.label = 'Glucose'\n", + " AND l.valuenum IS NOT NULL\n", + "),\n", + "drgcodes AS (\n", + " SELECT \n", + " subject_id,\n", + " hadm_id,\n", + " drg_type,\n", + " drg_code\n", + " FROM \n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/drgcodes.parquet')\n", + " WHERE \n", + " drg_type = 'HCFA'\n", + "),\n", + "ms_drg_to_mdc AS (\n", + " SELECT\n", + " ms_drg,\n", + " mdc\n", + " FROM\n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/ms_drg_to_mdc.parquet')\n", + "),\n", + "mdc_dictionary AS (\n", + " SELECT\n", + " mdc_number,\n", + " mdc_description\n", + " FROM\n", + " read_parquet('~/data/physionet.org/processed/mimiciv/hosp/mdc_dictionary.parquet')\n", + "),\n", + "mdc_counts AS (\n", + " SELECT\n", + " m.mdc,\n", + " COUNT(*) AS mdc_count\n", + " FROM\n", + " glucose_measurements g\n", + " JOIN \n", + " drgcodes d ON g.subject_id = d.subject_id AND g.hadm_id = d.hadm_id\n", + " LEFT JOIN\n", + " ms_drg_to_mdc m ON CAST(d.drg_code AS INTEGER) = m.ms_drg\n", + " GROUP BY\n", + " m.mdc\n", + " HAVING\n", + " COUNT(*) >= 20\n", + "),\n", + "last_measurement_times AS (\n", + " SELECT\n", + " subject_id,\n", + " hadm_id,\n", + " MAX(measurement_time) AS last_measurement_time\n", + " FROM\n", + " glucose_measurements\n", + " GROUP BY\n", + " subject_id, hadm_id\n", + ")\n", + "SELECT \n", + " g.subject_id,\n", + " g.hadm_id,\n", + " g.glucose_value,\n", + " g.measurement_time,\n", + " TIMESTAMP '2000-01-01 00:00:00' + \n", + " INTERVAL (DATEDIFF('second', g.measurement_time, lmt.last_measurement_time)) SECOND \n", + " AS relative_measurement_time,\n", + " d.drg_type,\n", + " d.drg_code,\n", + " m.mdc,\n", + " md.mdc_description\n", + "FROM \n", + " glucose_measurements g\n", + "JOIN \n", + " drgcodes d ON g.subject_id = d.subject_id AND g.hadm_id = d.hadm_id\n", + "LEFT JOIN\n", + " ms_drg_to_mdc m ON CAST(d.drg_code AS INTEGER) = m.ms_drg\n", + "LEFT JOIN\n", + " mdc_dictionary md ON m.mdc = md.mdc_number\n", + "INNER JOIN\n", + " mdc_counts mc ON m.mdc = mc.mdc\n", + "JOIN\n", + " last_measurement_times lmt ON g.subject_id = lmt.subject_id AND g.hadm_id = lmt.hadm_id\n", + "ORDER BY \n", + " g.subject_id, g.hadm_id, g.measurement_time" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".venv", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.14" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}