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

SearchParameter deceased expression

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • STU3
    • Patient Administration
    • Patient
    • Hide

      The XPath expression will be updated to:

      exists(f:Patient/f:deceasedBoolean[@value = 'true'] | f:Patient/f:deceasedDateTime/@value)

      Show
      The XPath expression will be updated to: exists(f:Patient/f:deceasedBoolean [@value = 'true'] | f:Patient/f:deceasedDateTime/@value)
    • Alexander Henket/Alexander deLeon: 9-0-1
    • Correction
    • Compatible, substantive
    • R5

    Description

      Good day HL7 FHIR,

      When searching for Patient with ?deceased=true, the SearchParameter `"code" : "deceased"` is used. From the search-parameters.json definitions file from http://hl7.org/fhir/definitions.json.zip, the key elements are:
      "description" : "This patient has been marked as deceased, or as a death date entered",
      "code" : "deceased",
      "type" : "token",
      "expression" : "Patient.deceased.exists() and Patient.deceased != false",
      "xpath" : "f:Patient/f:deceasedBoolean | f:Patient/f:deceasedDateTime",

      The docmentation (http://hl7.org/fhir/r4/patient.html#search) further describes deceased as:
      deceased TU token This patient has been marked as deceased, or as a death date entered Patient.deceased.exists() and Patient.deceased != false

      The XPath expression seems to return a multiple typed response, where as the FHIRPath expression returns a Boolean valued result, such that the following pattern results .
      deceasedBoolean deceasedDateTime extracted token
      null null null
      false null false
      true null true
      null 2018 2018

      Is the XPath expression correct? Or should the last row return a Boolean value?

      Many thanks for your time.

      Paul Bastide/IBM

      \\P.S.
      The nearest tracker items we found are:
      - https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=5531&start=0
      - https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=6630&start=0

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbastide Paul Bastide
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: