Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator throws ref-1 error when no reference is provided #366

Open
Kasdejong opened this issue Sep 24, 2024 · 0 comments
Open

Validator throws ref-1 error when no reference is provided #366

Kasdejong opened this issue Sep 24, 2024 · 0 comments

Comments

@Kasdejong
Copy link
Contributor

Kasdejong commented Sep 24, 2024

Validating the following patient:

{
  "resourceType": "Patient",
  "id": "Pat",
  "link": [
    {
      "id": "Link",
      "other": {
        "id": "lol",
        "display": "this is a test"
      },
      "type": "replaces"
    }
  ]
}

throws validator error:
Overall result: FAILURE (1 errors and 0 warnings) [ERROR] Instance failed constraint ref-1 "SHALL have a contained resource if a local reference is provided" (at Patient.link[0].other[0])

The invariant for this starts with "reference.exists() implies...", so this is a bug. Maybe we assign a placeholder value which we forget to check for during the validation?

@Kasdejong Kasdejong added the bug label Sep 24, 2024
@mmsmits mmsmits removed the bug label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants