Skip to content

Commit

Permalink
for completed rows beyond withdrawal, use general_row_detail() to g…
Browse files Browse the repository at this point in the history
…ather all missing data, i.e. `entry_method`.
  • Loading branch information
pbugni committed Feb 28, 2024
1 parent a12d85b commit 879fb2c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions portal/models/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,8 @@ def empro_row_detail(row, ts_reporting):
missing_qbts.append((pre_wd_visit_cd, last_viable))

for at, qbd in missing_qbts:
row['status'] = 'Completed'
row['completion_date'] = report_format(at)
row['visit'] = visit_name(qbd)
row['status'] = 'Completed' # overwrite withdrawn state
general_row_detail(row, patient, qbd)
empro_row_detail(row, ts_reporting)
rs_visit = AdherenceData.rs_visit_string(
research_study_id, row['visit'], post_withdrawn=True)
Expand Down

0 comments on commit 879fb2c

Please sign in to comment.