Validator doesn't recognize references between two contained resources

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive
    • Priority: Medium

      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')) *

            Assignee:
            Unassigned
            Reporter:
            Kevin Power
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: