"resourceType": "Bundle",
"id": "07790d28-58df-45a5-8383-a054557202b8",
"meta": {
"lastUpdated": "2020-05-25T10:37:48.459+00:00"
},
"type": "searchset",
"total": 3,
"link": [
{
"relation": "self",
}
],
"entry": [
{
"resource": {
"resourceType": "Encounter",
"id": "107",
"meta": {
"versionId": "2",
"lastUpdated": "2020-03-23T18:28:02.188+00:00",
"source": "#f0MXiK4oyfzvkD6S"
},
"status": "arrived",
"type": [
{
"coding": [
{
"code": "11429006",
"display": "Admission"
}
]
}
],
"priority": {
"coding": [
{
"code": "17621005",
"display": "Emergency"
}
]
},
"subject": {
"reference": "Patient/62"
},
"episodeOfCare": [
{
"reference": "EpisodeOfCare/105"
}
],
"period": {
"start": "2020-03-23T19:44:00+05:30"
},
"location": [
{
"location": {
"reference": "Location/57"
},
"status": "active",
"period": {
"start": "2020-03-23T19:44:00+05:30"
}
}
],
"serviceProvider": {
"reference": "Organization/52"
}
},
"search": {
"mode": "match"
}
},
{
"resource": {
"resourceType": "Encounter",
"id": "108",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-23T18:31:16.379+00:00",
"source": "#R211yxgKKbFRz0Q5"
},
"status": "arrived",
"type": [
{
"coding": [
{
"code": "11429006",
"display": "Admission"
}
]
}
],
"priority": {
"coding": [
{
"code": "17621005",
"display": "Emergency"
}
]
},
"subject": {
"reference": "Patient/61"
},
"episodeOfCare": [
{
"reference": "EpisodeOfCare/106"
}
],
"period": {
"start": "2020-03-23T19:44:00+05:30"
},
"location": [
{
"location": {
"reference": "Location/56"
},
"status": "active",
"period": {
"start": "2020-03-23T19:44:00+05:30"
}
}
],
"serviceProvider": {
"reference": "Organization/52"
}
},
"search": {
"mode": "match"
}
},
{
"resource": {
"resourceType": "Encounter",
"id": "110",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-23T18:34:53.960+00:00",
"source": "#Z8cK2BrTfjF6jXOc"
},
"status": "arrived",
"type": [
{
"coding": [
{
"code": "11429006",
"display": "Admission"
}
]
}
],
"priority": {
"coding": [
{
"code": "17621005",
"display": "Emergency"
}
]
},
"subject": {
"reference": "Patient/59"
},
"episodeOfCare": [
{
"reference": "EpisodeOfCare/103"
}
],
"period": {
"start": "2020-03-23T19:44:00+05:30"
},
"location": [
{
"location": {
"reference": "Location/54"
},
"status": "active",
"period": {
"start": "2020-03-23T19:44:00+05:30"
}
}
],
"serviceProvider": {
"reference": "Organization/52"
}
},
"search": {
"mode": "match"
}
}
]
}
But this query doesn't work, I don't have any encounters which have startdatetime in between the mentioned period
But issue is, I am expecting the query 1 response in query 2 since the period is matching though start datetime is not matching.