Stream: Covid-19 Response
Topic: MeasureReport.period searches
Nick Rupley (May 15 2020 at 02:13):
When you search on the period field, is it supposed to be compared to the period start date or end date? Like "period=ge2020-04-15", what if the period is 3/20-4/20, is that supposed to match?
Also is it valid for a client to send multiple period search parameters? Like "period=ge2020-04-15&period=lt2020-05-15"
Michael Donnelly (May 15 2020 at 03:01):
To the latter: yes
Michael Donnelly (May 15 2020 at 03:02):
To the former, I'm kind of wiped out and am not 100% sure I'll explain it right.
Michael Donnelly (May 15 2020 at 03:03):
Here's an example with a date range:
https://connectathon.epic.com/Interconnect-Fhir-Unsecure/api/FHIR/R4/MeasureReport?measure=http://hl7.org/fhir/us/saner/Measure/CDCPatientImpactAndHospitalCapacity&period=ge2020-04-01&period=le2020-04-30&subject=X410004
Nick Rupley (May 15 2020 at 03:09):
I see that the period in that example has the same start/end dates for the period. I guess that's normal for these MeasureReport resources, so it doesn't matter whether you use the start or end date to compare the incoming search parameter against?
Nick Rupley (May 15 2020 at 03:12):
Side question, in that example you posted I see the subject is:
<subject>
<reference value="Location/e7C1vTDtpn7--SZ49O.8EKqXBc8hYPPxvSmBhCU5r0NY3"/>
<type value="Location"/>
<identifier>
<use value="usual"/>
<value value="e7C1vTDtpn7--SZ49O.8EKqXBc8hYPPxvSmBhCU5r0NY3"/>
</identifier>
<display value="CHARLES D WARD MEMORIAL HOSPITAL"/>
</subject>
Yet your search URL is "subject=X410004". This makes me wonder whether I'm also misunderstanding the subject search parameter...
Michael Donnelly (May 15 2020 at 13:10):
Nick Rupley said:
I see that the period in that example has the same start/end dates for the period. I guess that's normal for these MeasureReport resources, so it doesn't matter whether you use the start or end date to compare the incoming search parameter against?
The CDC measures are for one day, so yes they have the same start and end.
Michael Donnelly (May 15 2020 at 13:11):
Nick Rupley said:
Side question, in that example you posted I see the subject is:
<subject> <reference value="Location/e7C1vTDtpn7--SZ49O.8EKqXBc8hYPPxvSmBhCU5r0NY3"/> <type value="Location"/> <identifier> <use value="usual"/> <value value="e7C1vTDtpn7--SZ49O.8EKqXBc8hYPPxvSmBhCU5r0NY3"/> </identifier> <display value="CHARLES D WARD MEMORIAL HOSPITAL"/> </subject>
Yet your search URL is "subject=X410004". This makes me wonder whether I'm also misunderstanding the subject search parameter...
Generally, you need to search based on the local Location ID for the server. I added something to also allow searches by the CCN.
Michael Donnelly (May 15 2020 at 13:13):
You could also search with https://connectathon.epic.com/Interconnect-Fhir-Unsecure/api/FHIR/R4/MeasureReport?measure=http://hl7.org/fhir/us/saner/Measure/CDCPatientImpactAndHospitalCapacity&period=ge2020-04-01&period=le2020-04-30&subject=e7C1vTDtpn7--SZ49O.8EKqXBc8hYPPxvSmBhCU5r0NY3
Last updated: Apr 12 2022 at 19:14 UTC