Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Treatment Endpoint to handle event_type TREATMENT, previously … #10959

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
value AS treatment,
argMin(start_date, start_date) AS treatment_time_taken
FROM clinical_event_derived
WHERE event_type = 'Treatment'
WHERE lower(event_type) = 'treatment'
AND key = 'AGENT'
GROUP BY patient_unique_id, value
) ced_inner ON ced_inner.patient_unique_id = ced.patient_unique_id
Expand Down Expand Up @@ -231,7 +231,7 @@
<where>
<foreach item="patientTreatmentFilter" collection="andedPatientTreatmentFilters.getFilters()" open="(" separator=") OR ("
close=")">
event_type = 'Treatment'
lower(event_type) = 'treatment'
AND key = 'AGENT'
AND value = '${patientTreatmentFilter.treatment}'
</foreach>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
patient_unique_id
FROM clinical_event_derived
<where>
event_type = 'Treatment'
lower(event_type) = 'treatment'
AND key = 'AGENT'
AND
<include refid="applyStudyViewFilter">
Expand All @@ -465,7 +465,7 @@
count(DISTINCT patient_unique_id) AS count
FROM clinical_event_derived
<where>
event_type = 'Treatment'
lower(event_type) = 'treatment'
AND key = 'AGENT'
AND
<include refid="applyStudyViewFilter">
Expand Down Expand Up @@ -493,7 +493,7 @@
patient_unique_id
FROM clinical_event_derived
<where>
event_type = 'Treatment'
lower(event_type) = 'treatment'
AND key = 'AGENT'
AND
<include refid="applyStudyViewFilter">
Expand Down Expand Up @@ -537,7 +537,7 @@
argMin(start_date, start_date) AS treatment_time_taken
FROM clinical_event_derived
<where>
event_type = 'Treatment'
lower(event_type) = 'treatment'
AND key = 'AGENT'
</where>
GROUP BY patient_unique_id, value
Expand Down
Loading