Synav commited on
Commit
3a8f3bf
·
verified ·
1 Parent(s): 9b4ffac

Update src/pages/1_Individual_Predictions.py

Browse files
src/pages/1_Individual_Predictions.py CHANGED
@@ -15,12 +15,12 @@ st.title("👤 Individual Patient Prediction")
15
  st.session_state.targets_df = pd.DataFrame()
16
 
17
  with st.form("individual_form"):
18
- st.subheader("Recipient Information", divider=True)
19
- gender = st.radio("Recipient Gender", ['MALE', 'FEMALE'], index=None)
20
  min_d = dt.date(1950, 1, 1)
21
  max_d = dt.date(2050, 12, 31)
22
- dob = st.date_input("Recipient DOB", value=dt.date(2000, 1, 31), min_value=min_d, max_value=max_d, format="DD/MM/YYYY")
23
- nationality = st.selectbox("Recipient Nationality", sorted([
24
  'EMIRATI', 'EGYPTIAN', 'BANGLADESHI', 'AFGHAN', 'SYRIAN', 'INDIAN', 'PAKISTANI',
25
  'YEMENI', 'JORDANIAN', 'OMANI', 'FILIPINO', 'SUDANESE', 'MOROCCAN',
26
  'PALESTINIAN', 'ETHIOPIAN', 'AMERICAN', 'ALGERIAN', 'INDONESIAN', 'LEBANESE',
@@ -57,12 +57,12 @@ with st.form("individual_form"):
57
  r_hla_dq = st.multiselect("R_HLA_DQ", options=['Unknown', 'SELF'], max_selections=2, accept_new_options=True)
58
 
59
  st.subheader("Donor Information", divider=True)
60
- donor_relation = st.radio("Donor Relation to Recipient", [
61
  'SELF', 'SIBLING', 'FIRST DEGREE RELATIVE', 'SECOND DEGREE RELATIVE', 'RELATED', 'UNRELATED', 'Unknown',
62
  ], index=None)
63
 
64
  if donor_relation == 'SELF':
65
- # If the donor is the recipient, set the donor
66
  st.session_state.SELF = True
67
  else:
68
  st.session_state.SELF = False
@@ -199,7 +199,7 @@ if submitted:
199
  "PreHSCT conditioning regimen+/-ATG+/-TBI": conditioning,
200
  "HSCT_date": hsct_date.strftime("%d/%m/%Y"),
201
  "Source of cells": cell_source,
202
- "Donor_relation to recipient": donor_relation,
203
  "HLA match ratio": hla_match,
204
  "Donor_type": donor_type if donor_type else "UNKNOWN",
205
  "Conditioning_intensity": conditioning_intensity if conditioning_intensity else "UNKNOWN",
 
15
  st.session_state.targets_df = pd.DataFrame()
16
 
17
  with st.form("individual_form"):
18
+ st.subheader("Recepient Information", divider=True)
19
+ gender = st.radio("Recepient Gender", ['MALE', 'FEMALE'], index=None)
20
  min_d = dt.date(1950, 1, 1)
21
  max_d = dt.date(2050, 12, 31)
22
+ dob = st.date_input("Recepient DOB", value=dt.date(2000, 1, 31), min_value=min_d, max_value=max_d, format="DD/MM/YYYY")
23
+ nationality = st.selectbox("Recepient Nationality", sorted([
24
  'EMIRATI', 'EGYPTIAN', 'BANGLADESHI', 'AFGHAN', 'SYRIAN', 'INDIAN', 'PAKISTANI',
25
  'YEMENI', 'JORDANIAN', 'OMANI', 'FILIPINO', 'SUDANESE', 'MOROCCAN',
26
  'PALESTINIAN', 'ETHIOPIAN', 'AMERICAN', 'ALGERIAN', 'INDONESIAN', 'LEBANESE',
 
57
  r_hla_dq = st.multiselect("R_HLA_DQ", options=['Unknown', 'SELF'], max_selections=2, accept_new_options=True)
58
 
59
  st.subheader("Donor Information", divider=True)
60
+ donor_relation = st.radio("Donor Relation to Recepient", [
61
  'SELF', 'SIBLING', 'FIRST DEGREE RELATIVE', 'SECOND DEGREE RELATIVE', 'RELATED', 'UNRELATED', 'Unknown',
62
  ], index=None)
63
 
64
  if donor_relation == 'SELF':
65
+ # If the donor is the recepient, set the donor
66
  st.session_state.SELF = True
67
  else:
68
  st.session_state.SELF = False
 
199
  "PreHSCT conditioning regimen+/-ATG+/-TBI": conditioning,
200
  "HSCT_date": hsct_date.strftime("%d/%m/%Y"),
201
  "Source of cells": cell_source,
202
+ "Donor_relation to recepient": donor_relation,
203
  "HLA match ratio": hla_match,
204
  "Donor_type": donor_type if donor_type else "UNKNOWN",
205
  "Conditioning_intensity": conditioning_intensity if conditioning_intensity else "UNKNOWN",