awacke1 commited on
Commit
0820829
Β·
1 Parent(s): 30a6e88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +119 -24
app.py CHANGED
@@ -3,29 +3,124 @@ import streamlit as st
3
  st.set_page_config(layout="wide")
4
 
5
  st.markdown("""
6
- ## Anatomy 101 with Health Care Costs:
7
-
8
- | Table Num | Body Part | Organ/Part | Description | πŸ“ˆ Costly Condition | πŸ’° Spending (billions) | CPT Range Start | CPT Range Finish |
9
- |-----------|------------------|----------------------|---------------------------|-----------------------------|------------------------|-----------------|------------------|
10
- | 1 | 🧠 Head | 🧠 Brain | Controls mental processes | 😨 Anxiety & Depression | 210 | 90791 | 90899 |
11
- | 2 | πŸ‘€ Eyes | πŸ‘οΈ Optic Nerve | Vision | πŸ‘“ Cataracts | 10.7 | 92002 | 92499 |
12
- | 3 | πŸ‘‚ Ears | 🐚 Cochlea | Hearing | πŸ“’ Hearing Loss | 7.1 | 92502 | 92700 |
13
- | 4 | πŸ‘ƒ Nose | πŸ‘ƒ Olfactory Bulb | Smell | 🀧 Allergies | 25 | 31231 | 31294 |
14
- | 5 | πŸ‘„ Mouth | πŸ‘… Tongue | Taste | 🦷 Dental Issues | 130 | 00100 | 00192 |
15
- | 6 | 🫁 Neck | πŸ¦‹ Thyroid | Metabolism | 🦠 Hypothyroidism | 3.1 | 60210 | 60271 |
16
- | 7 | πŸ’ͺ Upper Body | ❀️ Heart | Circulation | πŸ’” Heart Disease | 230 | 92920 | 93799 |
17
- | 8 | πŸ’ͺ Upper Body | 🫁 Lungs | Respiration | 😷 Chronic Obstructive Pulmonary Disease | 70 | 94002 | 94799 |
18
- | 9 | πŸ’ͺ Upper Body | 🍽️ Stomach | Digestion | πŸ”₯ Gastroesophageal Reflux Disease | 17 | 43200 | 43289 |
19
- | 10 | πŸ’ͺ Upper Body | 🍷 Liver | Detoxification | 🍺 Liver Disease | 40 | 47000 | 47999 |
20
- | 11 | πŸ’ͺ Upper Body | 🍹 Kidneys | Filtration | 🌊 Chronic Kidney Disease | 110 | 50010 | 50999 |
21
- | 12 | πŸ’ͺ Upper Body | 🌰 Adrenal Gland | Hormone regulation | 😰 Adrenal Disorders | 1 | 60500 | 60699 |
22
- | 13 | πŸ’ͺ Upper Body | πŸ’‰ Pancreas | Insulin secretion | 🍬 Diabetes | 327 | 48100 | 48999 |
23
- | 14 | πŸ’ͺ Upper Body | πŸ›‘οΈ Spleen | Immune functions | 🩸 Anemia | 5.6 | 38100 | 38199 |
24
- | 15 | 🦡 Lower Body | 🍝 Intestines | Absorption of nutrients | 🚽 Inflammatory Bowel Disease | 14.6 | 44140 | 44238 |
25
- | 16 | 🦡 Lower Body | 🚽 Bladder | Urine excretion | πŸ’§ Urinary Incontinence | 8 | 51700 | 51798 |
26
- | 17 | 🦡 Lower Body | πŸ’ž Reproductive Organs| Sex hormone secretion | πŸŽ—οΈ Endometriosis | 22 | 56405 | 58999 |
27
- | 18 | 🦢 Feet | 🎯 Nerve endings | Balance and movement | πŸ€• Peripheral Neuropathy | 19 | 95900 | 96004 |
28
- | 19 | 🦢 Feet | 🌑️ Skin | Temperature regulation | 🌞 Skin Cancer | 8.1 | 96910 | 96999 |
29
- | 20 | 🦢 Feet | πŸ’ͺ Muscles | Movement and strength | πŸ‹οΈβ€β™‚οΈ Musculoskeletal Disorders | 176 | 97110 | 97799 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  """)
 
3
  st.set_page_config(layout="wide")
4
 
5
  st.markdown("""
6
+ EACN - EDI, ADT, CCD, Note
7
+
8
+ ## EDI Sample with All DX and Services
9
+
10
+
11
+ EDI:
12
+
13
+
14
+ ISA*00* *00* *ZZ*EMRSENDER *ZZ*RECEIVER *230504*1345*^*00501*000000001*0*P*:~
15
+ GS*HS*EMRSENDER*RECEIVER*20230504*1345*1*X*005010X221A1~
16
+ ST*278*0001~
17
+ BHT*0078*11*100012345*20230504*1345~
18
+ HL*1**20*1~
19
+ NM1*X3*2*RECEIVER*****46*123456789~
20
+ HL*2*1*21*1~
21
+ NM1*1P*2*DOE*JANE****46*987654321~
22
+ HL*3*2*19*1~
23
+ TRN*1*100012345*987654321~
24
+ UM*HS*100012345*987654321~
25
+ HCR*A*1*ZZZ001~
26
+ HI*BF:7295:::3~
27
+ HI*BF:72148:::1~
28
+ HI*BF:72156:::1~
29
+ HI*BF:72158:::1~
30
+ HI*BF:S72.0:::1~
31
+ HI*BF:M16.10:::1~
32
+ SE*13*0001~
33
+ GE*1*1~
34
+ IEA*1*000000001~
35
+
36
+
37
+ ## ADT A08 Event
38
+
39
+ ADT:
40
+
41
+
42
+ MSH|^~\&|EMRSENDER|FACILITY_A|RECEIVER|FACILITY_A|20230504||ADT^A08^ADT_A01|0001|P|2.5
43
+ EVN|A08|20230504|||BROWN^SARAH|20230504
44
+ PID|||100012345^^^FACILITY_A^MRN||PATIENT^JOHN^M||||||||||||100012345
45
+ PV1||I|FLOOR^1001^1^FACILITY_A||||987654321^DOE^JANE|||||||||||||||||||||||||20230504
46
+ PV2|||^^^FACILITY_A|||||||||||||||||||||||||||||||||||||3
47
+ PV3|3|ICD10|S72.0^M16.10^Z96.649
48
+ PV4||O
49
+ AL1|1|||^^^72148^72156^72158
50
+ DG1|1|ICD10|S72.0|Fracture of neck of femur|20230504
51
+ DG1|2|ICD10|M16.10|Bilateral primary osteoarthritis of hip|20230504
52
+ ZCD|3|CPT|72148^72156^72158
53
+
54
+
55
+ ## Clinical Document
56
+
57
+ CCD:
58
+
59
+ Clinical Document
60
+
61
+ **Patient:** John Patient
62
+
63
+ **Date:** 2023-05-04
64
+
65
+ **Chief Complaint:**
66
+ John experienced a fall, resulting in a **hip injury**. The patient complains of severe pain and difficulty in walking.
67
+
68
+ **History of Present Illness:**
69
+ The patient has a history of **bilateral primary osteoarthritis of the hip (M16.10)**. The fall exacerbated the existing condition, causing **fracture of the neck of femur (S72.0)**.
70
+
71
+ **Physical Examination:**
72
+ Upon examination, the patient had severe pain, limited range of motion, and swelling of the affected hip. Imaging studies were ordered to assess the extent of the damage.
73
+
74
+ **Imaging Studies:**
75
+ 1. **MRI of the pelvis (CPT 72148)**
76
+ 2. **MRI of the bilateral hips (CPT 72156)**
77
+ 3. **MRI of the bilateral femurs (CPT 72158)**
78
+
79
+ The MRI scans revealed significant damage to the hip joint, confirming the **fracture of the neck of femur (S72.0)** and worsening of the **bilateral primary osteoarthritis of the hip (M16.10)**.
80
+
81
+ **Assessment:**
82
+ Based on the clinical findings and imaging results, it is evident that the patient requires immediate surgical intervention to repair the hip joint and prevent further complications.
83
+
84
+ **Plan:**
85
+ 1. Admit the patient to the hospital for surgical treatment.
86
+ 2. Perform an emergent **hip replacement surgery (Z96.649)** to repair the hip joint and restore function.
87
+ 3. Postoperative rehabilitation and physical therapy to regain strength and mobility.
88
+
89
+ **Medical Necessity:**
90
+ The emergent hip replacement surgery is medically necessary due to the following factors:
91
+ - Severe pain and functional impairment caused by the **fracture of the neck of femur (S72.0)**
92
+ - Worsening of pre-existing **bilateral primary osteoarthritis of the hip (M16.10)**
93
+ - High risk of complications if left untreated
94
+
95
+ Based on the clinical evidence, the patient's condition warrants immediate surgical intervention to alleviate pain, restore function, and prevent further complications. The surgery is deemed medically necessary to improve the patient's quality of life and long-term prognosis.
96
+
97
+ **Attending Physician:** Dr. Sarah Brown
98
+
99
+ ## Note and Summary Index by Code Type
100
+
101
+ | Code Value | Code Description | Code Type | Decision Relevance | Additional Information |
102
+ |------------|-----------------------------------------------|-----------------|------------------------------------|---------------------------------------------|
103
+ | 7295 | Authorization and Referral Services | EDI | Required for authorization | |
104
+ | 72148 | MRI of the pelvis | CPT | Medical necessity for imaging | |
105
+ | 72156 | MRI of the bilateral hips | CPT | Medical necessity for imaging | |
106
+ | 72158 | MRI of the bilateral femurs | CPT | Medical necessity for imaging | |
107
+ | S72.0 | Fracture of the neck of femur | ICD10 | Diagnosis, treatment decision | |
108
+ | M16.10 | Bilateral primary osteoarthritis of the hip | ICD10 | Diagnosis, treatment decision | |
109
+ | Z96.649 | Presence of unspecified artificial hip joint | ICD10 | Procedure, treatment decision | |
110
+ | A08 | Update Patient Information | ADT Event | Patient update after surgery | |
111
+ | 72148 | MRI of the pelvis | ZCD | Diagnostic code for imaging | |
112
+ | 72156 | MRI of the bilateral hips | ZCD | Diagnostic code for imaging | |
113
+ | 72158 | MRI of the bilateral femurs | ZCD | Diagnostic code for imaging | |
114
+ | 987654321 | Dr. Jane Doe - Initial Attending Physician | NPI | Patient care provider | Taxonomy: 207Q00000X (Family Medicine) |
115
+ | 123456789 | Dr. Robert Smith - Second Attending Physician | NPI | Patient care provider | Taxonomy: 207Q00000X (Family Medicine) |
116
+ | 000000001 | Dr. Sarah Brown - Surgeon | NPI | Patient care provider, surgery | Taxonomy: 207XS0106X (Orthopedic Surgery) |
117
+ | 555444333 | Facility A | Facility NPI | Patient care facility | Name: Facility A |
118
+ | | | Facility Address| | Address: 123 Main St, City, State, Zip Code |
119
+ | J7325 | Hyaluronan or derivative, Synvisc or Synvisc-One, for intra-articular injection, 1 mg | HCPCS | Medication used during treatment | |
120
+ | Q4081 | Injection, dexamethasone sodium phosphate, 1 mg | HCPCS | Medication used during treatment | |
121
+ | 99238 | Hospital discharge day management, 30 minutes or less | CPT | Follow-up plan | |
122
+ | 99239 | Hospital discharge day management, more than 30 minutes | CPT | Follow-up plan | |
123
+
124
+
125
 
126
  """)