Common searchparameter 'patient' should have single target 'Patient'

XMLWordPrintableJSON

    • Type: Technical Correction
    • Resolution: Persuasive
    • Priority: Medium
    • FHIR Core (FHIR)
    • R4
    • FHIR Infrastructure
    • SearchParameter
    • Search Parameter Registry
    • 3.1.4
    • Hide

      Will ensure that all resources that are covered by this search parameter include the .​`where(resolve() is Patient)` clause if the name of the element is anything other than 'patient' to avoid any possibility of scope changing to include resources other than Patient.

      Show
      Will ensure that all resources that are covered by this search parameter include the .​`where(resolve() is Patient)` clause if the name of the element is anything other than 'patient' to avoid any possibility of scope changing to include resources other than Patient.
    • Correction

      The common searchparameter 'patient' has two targets: Patient and Group.

      The only base resourcetype for which Group is relevant is DeviceUseStatement.

      For this resourcetype the fhirpath expression is DeviceUseStatement.subject. For all others it is either Xyz.patient or Xyz.subject.where(resolve() is Patient), thereby limiting it to Patient targets.

      It would be easier and more consistent if the expression were changed to include DeviceUseStatement.subject.where(resolve() is Patient), and the target set to only 'Patient'.

            Assignee:
            Unassigned
            Reporter:
            cpk
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: