carisackc commited on
Commit
81c3f08
1 Parent(s): 6f4e679

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -66,7 +66,8 @@ df.rename(columns={'SUBJECT_ID':'Patient_ID',
66
  'HADM_ID':'Admission_ID',
67
  'hpi_input_text':'Original_Text',
68
  'hpi_reference_summary':'Reference_text'}, inplace = True)
69
-
 
70
  #data.rename(columns={'gdp':'log(gdp)'}, inplace=True)
71
 
72
  #Filter selection
@@ -89,10 +90,15 @@ inputNote ='Input note here:'
89
  original_text = df.query(
90
  "Patient_ID == @patient & Admission_ID == @HospitalAdmission"
91
  )
 
 
 
 
92
  original_text2 = original_text['Original_Text'].values
93
  AdmissionChiefCom = original_text['Admission_Chief_Complaint'].values
94
  diagnosis =original_text['DIAGNOSIS'].values
95
  reference_text = original_text['Reference_text'].values
 
96
 
97
 
98
  ##========= Buttons to the 5 tabs ======== Temp disabled Discharge Plan and Social Notes
@@ -136,8 +142,8 @@ with st.container():
136
  with col7:
137
  st.text_area('Discharge Disposition:',' ', height=8) #to replace with dropdown list if data is available
138
  with col8:
139
- st.date_input('Select Admission Date') # To replace with a dropdown filter instead
140
-
141
 
142
 
143
 
 
66
  'HADM_ID':'Admission_ID',
67
  'hpi_input_text':'Original_Text',
68
  'hpi_reference_summary':'Reference_text'}, inplace = True)
69
+ df3.rename(columns={'SUBJECT_ID':'Patient_ID'}, inplace = True)
70
+
71
  #data.rename(columns={'gdp':'log(gdp)'}, inplace=True)
72
 
73
  #Filter selection
 
90
  original_text = df.query(
91
  "Patient_ID == @patient & Admission_ID == @HospitalAdmission"
92
  )
93
+
94
+ pastHistory = df3.query(
95
+ "Patient_ID == @patient & INDEX_HADM == @HospitalAdmission"
96
+ )
97
  original_text2 = original_text['Original_Text'].values
98
  AdmissionChiefCom = original_text['Admission_Chief_Complaint'].values
99
  diagnosis =original_text['DIAGNOSIS'].values
100
  reference_text = original_text['Reference_text'].values
101
+ pastHistoryEp = pastHistory['HADM_ID'].values
102
 
103
 
104
  ##========= Buttons to the 5 tabs ======== Temp disabled Discharge Plan and Social Notes
 
142
  with col7:
143
  st.text_area('Discharge Disposition:',' ', height=8) #to replace with dropdown list if data is available
144
  with col8:
145
+ #st.date_input('Select Admission Date') # To replace with a dropdown filter instead
146
+ st.selectbox('Past Episodes',pastHistoryEp)
147
 
148
 
149