Identifier.type.code and value search parameter in not working?

Thadani, Sanjay (Cognizant) 20 Reputation points
2023-10-19T13:19:56.2066667+00:00

I want to retrieve all patients resources using search param identifier.type.code and identifier.value as shown in below json file attached

Can you tell me the query how do i search for nested elements data inside identifiers?

"identifier" : [{
    "use" : "usual",
    "type" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
        "code" : "MR"
      }]
    },
    "system" : "urn:oid:0.1.2.3.4.5.6.7",
    "value" : "654321"
  }]
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,997 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,351 Reputation points Microsoft Employee
    2023-10-21T00:00:15.35+00:00

    @Thadani, Sanjay (Cognizant) To search for nested elements data inside identifiers, you can use the dot notation to specify the nested element. Here is an example query to retrieve all patients' resources using search param identifier.type.code and identifier.value:

    GET [baseURL]/Patient?identifier.type.coding.code=MR&identifier.value=654321
    

    This query will retrieve all patients resources that have an identifier with type code "MR" and value "654321". Make sure to replace [baseURL] with the base URL of your FHIR server.