skip to Main Content

I am using Azure Health Data Services – FHIR service

In FHIR Claim resource, we have diagnosis property. Inside the diagnosis property –> diagnosisCodeableConcept –> code.

Now I want to create a custom search parameter to retrieve claim resources based on Code value inside diagnosis property.

What should be the value in expression property of custom search parameter?

Can you please provide the Custom search parameter for the above?

I gave the following expression value: Claim.diagnosisCodeableConcept.code. But I am getting 424 Failed dependency. What is the reason for this?

2

Answers


  1. Your expression would need to be:
    Claim.diagnosis as CodeableConcept
    The type of your search parameter should be ‘token’.
    The token type will automatically find a match if any of the codings match your specified search string (based on code and/or system, depending on what the user specified)

    Login or Signup to reply.
  2. If you check the R4 specification for Claim you’ll note that the correct path to the diagnosis is:

    Claim.diagnosis.trace('d').diagnosis
    

    :test_tube: Test with FHIRPath-Lab

    I hope you’ve defined the search parameter as a token type, which creates indexes on CodeableConcept types.
    You likely don’t need to cast down to the type as the search engine will handle that anyway.

    You don’t also drill into the coding.code as the search indexer knows how to process the type, and it also permits the usage of the codesystem prefix on the search too

    e.g.

    Claim?diagnosis=http://hl7.org/fhir/sid/icd-10|G89.4
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search