How to search all Patient resources based on Identifier system and code?

P, Pioline (Cognizant) 195 Reputation points
2023-10-09T09:06:19.3333333+00:00

Hi

Without using custom search parameters, Can you do the following:

  1. Search all patient FHIR resources based on identifer system and code (system and code value inside identifier property)
  2. Search all Claim FHIR resources based on code value inside diagnosis property.

Thanks

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
170 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,361 Reputation points
    2023-10-12T14:10:54.6766667+00:00

    P, Pioline (Cognizant) Thanks for posting your question in Microsoft Q&A. You can use Chained search to perform search operations on a resource within a referenced resource or Reverse chain search to search resources based on properties of resources they refer to.

    Based on the description, you can try the following code snippet for your scenarios:

    #1 GET [fhir-server]/Patient?identifier:system=[system]&identifier[code]=[code] (Patient.identifier has reference to Identifier)

    #2 GET [fhir-server]/Claim?diagnosis.code=[code]

    For other search examples, check out FHIR search examples which would be very helpful. I hope this helps and let me know if you have any questions.


    If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.