eaglelandsonce commited on
Commit
ad9022b
·
verified ·
1 Parent(s): 8f89163

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -109,7 +109,10 @@ if st.button("Generate Data"):
109
  members_df = generate_members(num_members)
110
  providers_df = generate_providers(num_providers)
111
  services_df = generate_services(num_services, enrollments_df["PRIMARY_PERSON_KEY"].tolist())
112
- breast_cancer_df = generate_breast_cancer_data(members_df, num_patients)
 
 
 
113
 
114
  # Display and download data
115
  st.subheader("Enrollments Data")
 
109
  members_df = generate_members(num_members)
110
  providers_df = generate_providers(num_providers)
111
  services_df = generate_services(num_services, enrollments_df["PRIMARY_PERSON_KEY"].tolist())
112
+
113
+ # Adjust Breast Cancer Patients to not exceed Members
114
+ max_breast_cancer_patients = min(num_patients, num_members)
115
+ breast_cancer_df = generate_breast_cancer_data(members_df, max_breast_cancer_patients)
116
 
117
  # Display and download data
118
  st.subheader("Enrollments Data")