FHIR Chat · FHIR Schedule search · hapi

Stream: hapi

Topic: FHIR Schedule search


view this post on Zulip Swetha Kumar (Aug 31 2021 at 22:23):

Hi everyone,

I had a question related to the searching of schedule resource.
I have created the below schedule resource

{
"resourceType": "Schedule",
"active": true,
"actor": [
{
"type": "Location",
"identifier": {
"system": "urn:salesforce:iam:source-system:ath:1000",
"value": "dept1"
},
"display": "Kaiser"
},
{
"type": "Practitioner",
"identifier": {
"system": "urn:salesforce:iam:source-system:ath:1000",
"value": "_https://g.co/fhir/exp/athn/provider-provider_npi_number|1345“
},
"display": "Christina Yang"
}
]
}

I am unable to search for this schedule using the below request. I get 0 results.

https://hapi.fhir.org/baseR4/Schedule/_search?actor:Schedule.actor:Practitioner.identifier=urn:salesforce:iam:source-system:ath:1000|_https://g.co/fhir/exp/athn/provider-provider_npi_number%7C1345&actor:Schedule.actor:Location.identifier=urn:salesforce:iam:source-system:ath:1000|dept1

I even tried to search using the below requests and i still got 0 results

https://hapi.fhir.org/baseR4/Schedule?actor:identifier=urn:salesforce:iam:source-system:ath:1000|dept1
https://hapi.fhir.org/baseR4/Schedule?actor:identifier=urn:salesforce:iam:source-system:ath:1000|_https://g.co/fhir/exp/athn/provider-provider_npi_number%7C1345

My use case is to search for schedule by just using the actors identifier.
Can you please let me know if I am missing something

view this post on Zulip Swetha Kumar (Sep 01 2021 at 18:27):

I was able to resolve this by adding the reference attribute


Last updated: Apr 12 2022 at 19:14 UTC