Workflow or API calls:
I am trying to get encounters for a patient whose start date is earlier than a given date.
curl -i -H "Accept: application/fhir+json" 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter?patient=12724065&date=lt1960-04-26T00:00:00.000Z'
Expected Result:
Only encounters whose period start date is earlier than 1960-04-26 or period start date null should be included in the results returned
Actual Result:
Encounters like the following are included whose start date is "start" : "2021-04-26T19:03:19.000Z" are included (output is too large to list all such cases. Am I incorrectly interpreting how the date param works?
{
"fullUrl" : "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter/97958996",
"resource" : {
"class" : {
"code" : "AMB",
"display" : "ambulatory",
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"userSelected" : false
},
"id" : "97958996",
"identifier" : [
{
"period" : {
"start" : "2021-04-26T19:03:19.000Z"
},
"system" : "urn:oid:5.5.5.5.5.5.",
"type" : {
"coding" : [
{
"code" : "1077",
"display" : "FIN NBR",
"system" : "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/319",
"userSelected" : true
},
{
"code" : "AN",
"display" : "Account number",
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"userSelected" : false
}
],
"text" : "FIN NBR"
},
"use" : "usual",
"value" : "17653"
}
],
"location" : [
{
"location" : {
"display" : "Model Hospital",
"reference" : "Location/21250403"
},
"status" : "active"
}
],
"meta" : {
"lastUpdated" : "2021-04-26T19:03:19.000Z",
"versionId" : "0"
},
"resourceType" : "Encounter",
"serviceProvider" : {
"display" : "Model Hospital",
"reference" : "Organization/675844"
},
"status" : "in-progress",
"subject" : {
"display" : "Smart, Wilma",
"reference" : "Patient/12724065"
},
"text" : {
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml"><p><b>Encounter</b></p><p><b>Patient</b>: Smart, Wilma</p><p><b>Location</b>: Model Hospital</p><p><b>Type</b>: Outpatient</p><p><b>Class</b>: ambulatory</p><p><b>Status</b>: In Progress</p><p><b>Service Provider</b>: Model Hospital</p></div>",
"status" : "generated"
},
"type" : [
{
"coding" : [
{
"code" : "309309",
"display" : "Outpatient",
"system" : "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/71",
"userSelected" : true
},
{
"code" : "O",
"display" : "Outpatient",
"system" : "http://terminology.hl7.org/CodeSystem/v2-0004",
"userSelected" : false
}
],
"text" : "Outpatient"
}
]
},
"search" : {
"mode" : "match"
}
},
X-Request-Id / Cerner-Correlation-Id / opc-request-id: