carisackc commited on
Commit
db8266b
1 Parent(s): 6d1fd62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -58,7 +58,7 @@ df3.sort_values(by='CHARTDATE',ascending = False, inplace=True)
58
 
59
  # Loading in Daily Narrative
60
  df4 = pd.read_csv('24hourevents.csv')
61
- df4.sort_values(by=['SUBJECT_ID','HADM_ID','STORETIME'],ascending = False, inplace=True)
62
 
63
 
64
  # combining both data into one
@@ -360,7 +360,7 @@ if not(btnPastHistory) and not(btnDailyNarrative):
360
  st.markdown(ent_html, unsafe_allow_html=True)
361
  if btnDailyNarrative:
362
  with st.container():
363
- st.markdown('Daily notes:')
364
  st.text_area('to input last day note','')
365
 
366
 
@@ -377,7 +377,7 @@ if btnDailyNarrative:
377
  # st.table(dailyNoteChange)
378
  styler = dailyNoteChange.style.hide_index()
379
  st.write(styler.to_html(), unsafe_allow_html=True)
380
-
381
 
382
  #else:
383
  if btnPastHistory:
@@ -387,12 +387,16 @@ if btnPastHistory:
387
  st.markdown('Admission Date: ' + historyAdmission['ADMITTIME'].values[0])
388
  st.markdown('Date of Discharge: ' + historyAdmission['DISCHTIME'].values[0])
389
  st.markdown('Days from current admission: ' + str(historyAdmission['days_from_index'].values[0]) +' days')
390
- st.markdown('Summary: ')
 
 
 
391
  if model == "BertSummarizer":
392
  st.markdown(str(historyAdmission['BertSummarizer'].values[0]))
393
  elif model == "t5seq2eq":
394
  st.markdown(str(historyAdmission['t5seq2eq'].values[0]))
395
- st.markdown('Diagnosis: ' + str(historyAdmission['Diagnosis_Description'].values[0]))
 
396
  st.markdown('**PROBLEM/ISSUE**')
397
  st.markdown(f'<p style="background-color:PINK;color:#080808;font-size:16px;">{str(problem_entities)[1:-1]}</p>', unsafe_allow_html=True)
398
  st.markdown('**MEDICATION**')
 
58
 
59
  # Loading in Daily Narrative
60
  df4 = pd.read_csv('24hourevents.csv')
61
+ df4.sort_values(by=['SUBJECT_ID','HADM_ID','STORETIME'],ascending = True, inplace=True)
62
 
63
 
64
  # combining both data into one
 
360
  st.markdown(ent_html, unsafe_allow_html=True)
361
  if btnDailyNarrative:
362
  with st.container():
363
+ st.markdown('Daily Progress Note (24 hour event only):')
364
  st.text_area('to input last day note','')
365
 
366
 
 
377
  # st.table(dailyNoteChange)
378
  styler = dailyNoteChange.style.hide_index()
379
  st.write(styler.to_html(), unsafe_allow_html=True)
380
+ st.markdown(f'<p style="color:#828080;font-size:12px;">*Current prototype displays only a single section within the daily progress note, could also potentially include all sections within each progress note and allow user to select the section changes the user wants to look at</p>', unsafe_allow_html=True)
381
 
382
  #else:
383
  if btnPastHistory:
 
387
  st.markdown('Admission Date: ' + historyAdmission['ADMITTIME'].values[0])
388
  st.markdown('Date of Discharge: ' + historyAdmission['DISCHTIME'].values[0])
389
  st.markdown('Days from current admission: ' + str(historyAdmission['days_from_index'].values[0]) +' days')
390
+ #st.markdown('Summary: ')
391
+ st.markdown(f'<p style="color:#080808;font-size:16px;"><b>Summary: </b></p>', unsafe_allow_html=True)
392
+
393
+
394
  if model == "BertSummarizer":
395
  st.markdown(str(historyAdmission['BertSummarizer'].values[0]))
396
  elif model == "t5seq2eq":
397
  st.markdown(str(historyAdmission['t5seq2eq'].values[0]))
398
+ st.markdown(f'<p style="color:#080808;font-size:16px;"><b>Diagnosis: </b></p>', unsafe_allow_html=True)
399
+ st.markdown(str(historyAdmission['Diagnosis_Description'].values[0]))
400
  st.markdown('**PROBLEM/ISSUE**')
401
  st.markdown(f'<p style="background-color:PINK;color:#080808;font-size:16px;">{str(problem_entities)[1:-1]}</p>', unsafe_allow_html=True)
402
  st.markdown('**MEDICATION**')