Skip to content

Commit

Permalink
Update Treatment Endpoint to handle event_type TREATMENT, previously … (
Browse files Browse the repository at this point in the history
cBioPortal#10959)

* Update Treatment Endpoint to handle event_type TREATMENT, previously only searched on Treatment

* Handle all variations of Treatment
  • Loading branch information
haynescd authored Aug 27, 2024
1 parent f456bd5 commit b36bffb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit b36bffb

Please sign in to comment.