Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-25391

FHIR Query - filtering with Codes or CodeableConcepts

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • Structured Data Capture (SDC) (FHIR)
    • 2.0 [deprecated]
    • FHIR Infrastructure
    • Using Expressions
    • Hide

      We will update the rules describing FHIR-x-query (expressions.html#fhirquery) as follows:

      • if the expression resolves to a complex element of type Coding, Identifier, or Reference, the element content will be substituted using the standard token format.  
      • if the expression resolves to a complex element of type CodeableConcept, the processing will behave as though the expression had an additional node specifying ".coding".  i.e. the substitution will execute on the collection of codings resolved to within the CodeableConcept.
      • if the expression resolves to an element of type Quantity, it will be converted to a search type of 'quantity'
      • if the expression resolves to a collection of more than one value, the substitution will be a list of comma-separated values (i.e. behaving as 'or')

      Will also include an example showing how substitution would work searching based on the start and end values within a period element.

      Show
      We will update the rules describing FHIR-x-query ( expressions.html#fhirquery ) as follows: if the expression resolves to a complex element of type Coding, Identifier, or Reference, the element content will be substituted using the standard token format.   if the expression resolves to a complex element of type CodeableConcept, the processing will behave as though the expression had an additional node specifying ".coding".  i.e. the substitution will execute on the collection of codings resolved to within the CodeableConcept. if the expression resolves to an element of type Quantity, it will be converted to a search type of 'quantity' if the expression resolves to a collection of more than one value, the substitution will be a list of comma-separated values (i.e. behaving as 'or') Will also include an example showing how substitution would work searching based on the start and end values within a period element.
    • Brian Postlethwaite/Joee Garcia: 9-0-0
    • Enhancement
    • Compatible, substantive

    Description

      Is the FHIR Query smart enough to handle filtering Resources based on a Collection (ie specific coding or CodeableConcept)? For example, if I want to list all the Practitioners who can speak at least one of the languages that the patient (in context) can speak, will the following expression work?

      <expression value="Practitioner?communication={{%patient.communication.language}}"/>

      Related to https://jira.hl7.org/browse/FHIR-19748

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            joeegarcia Josephine Garcia (Inactive)
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: