Skip to content

The validator is not resolving certain references #1654

@PaulDeac

Description

@PaulDeac

Describe the bug
We have identified some cases in which the validator is not calling the IResourceResolver to resolve certain relative references.

To Reproduce
Steps to reproduce the behavior:

Both this resources have a reference to Patient/UKCore-Patient-RichardSmith-Example:
https://simplifier.net/ukcore/ukcore-careteam-weightmanagementteam-example
https://simplifier.net/ukcore/ukcore-medicationstatement-amoxicillin-example

However, validating them the outcome is different:

  1. Gives warnings: https://simplifier.net/ukcore/ukcore-careteam-weightmanagementteam-example/$validate
  2. Doesn't give warnings: https://simplifier.net/ukcore/ukcore-medicationstatement-amoxicillin-example/$validate

Our investigation concluded that in the case of the resource that doesn't give warnings the validator is not calling the IResourceResolver to resolve the reference.

Expected behavior
Both validations should attempt to resolve the reference to Patient/UKCore-Patient-RichardSmith-Example.

Screenshots
If applicable, add screenshots to help explain your problem.

Version used:

  • FHIR Version: R4 (haven't tried with STU3)
  • Version: Tried with both 1.9.0 and 2.0.2.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions