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

Validator doesn't recognize references between two contained resources

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium

    Description

      We have noticed recently a new error in our QA file with examples that have a resource instance which contains two resources and one of the contained resources attempts to reference the other.

      The example (in the URL and also see attached XML copy) is a DiagnosticReport with two Observation resources as 'contained' inside the DR. One of the contained Observation resources tries reference the other contained Observation resource via derivedFrom, but it throws this error in the QA file:

      *SHALL have a contained resource if a local reference is provided ( (url: 2; ids: )) reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids')) *

      Attachments

        Activity

          People

            GrahameGrieve Grahame Grieve
            cerkyp Kevin Power
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: