carisackc commited on
Commit
fb7c545
1 Parent(s): 54c282f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -6
app.py CHANGED
@@ -89,7 +89,7 @@ reference_text = original_text['Reference_text'].values
89
 
90
  ##========= Buttons to the 4 tabs ========
91
  col1, col2, col3, col4, col5 = st.columns([1,1,1,1,1])
92
- col6, col7 =st.columns([2,2])
93
  with st.container():
94
  with col1:
95
  btnAdmission = st.button("🏥 Admission")
@@ -113,14 +113,25 @@ with st.container():
113
  if btnPastHistory:
114
  inputNote = "Input History records"
115
 
 
 
 
 
 
 
 
 
116
  with st.container():
117
  if btnPastHistory:
118
  with col6:
119
  st.markdown('**No. of admission past 6 months: xx**')
120
- with col7:
121
- st.date_input('Select Admission Date')
122
-
123
- runtext =st.text_area(inputNote, str(original_text2), height=300)
 
 
 
124
 
125
 
126
  # Extract words associated with each entity
@@ -206,7 +217,8 @@ with col2:
206
  genEntities(trans_df, 'CHEMICAL')
207
  #st.table(trans_df)
208
  st.markdown('**NER**')
209
- st.markdown(ent_html, unsafe_allow_html=True)
 
210
 
211
 
212
 
 
89
 
90
  ##========= Buttons to the 4 tabs ========
91
  col1, col2, col3, col4, col5 = st.columns([1,1,1,1,1])
92
+ col6, col7, col8 =st.columns([2,2,2])
93
  with st.container():
94
  with col1:
95
  btnAdmission = st.button("🏥 Admission")
 
113
  if btnPastHistory:
114
  inputNote = "Input History records"
115
 
116
+ if btnPastHistory:
117
+ st.text_area('Past History','Date of discharge: xxxxxxxxx')
118
+ with st.expander('Full Discharge Summary'):
119
+ st.write( str(original_text2))
120
+ else:
121
+ runtext =st.text_area(inputNote, str(original_text2), height=300)
122
+
123
+
124
  with st.container():
125
  if btnPastHistory:
126
  with col6:
127
  st.markdown('**No. of admission past 6 months: xx**')
128
+ with col7:
129
+ st.text_area('Discharge Disposition:',' ', height=8) #to replace with dropdown list if data is available
130
+ with col8:
131
+ st.date_input('Select Admission Date') # To replace with a dropdown filter instead
132
+
133
+
134
+
135
 
136
 
137
  # Extract words associated with each entity
 
217
  genEntities(trans_df, 'CHEMICAL')
218
  #st.table(trans_df)
219
  st.markdown('**NER**')
220
+ with st.expander("See NER Details"):
221
+ st.markdown(ent_html, unsafe_allow_html=True)
222
 
223
 
224