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

New Firely validator does not complain when extension is used outside of its context #267

Open
wardweistra opened this issue Dec 20, 2023 — with Slack · 12 comments · May be fixed by #361
Open

New Firely validator does not complain when extension is used outside of its context #267

wardweistra opened this issue Dec 20, 2023 — with Slack · 12 comments · May be fixed by #361
Assignees

Comments

Copy link
Member

wardweistra commented Dec 20, 2023

Describe the bug
When validating a resource which uses an extension outside of its defined context, the new Firely validator does not report an error.

To Reproduce

  1. Take an extension which has context defined as the element Address: https://simplifier.net/Signal-MSO-FHIR-Profiles/SignalRegion/~xml
  2. Take a Location resource where an extension is used in the root: https://simplifier.net/snippet/wardweistra/66
  3. Validate it with the new validator, eg with the Validation Demo tool
  4. See that it reports SUCCESS without any errors or warnings

Expected behavior
Error that the extension is incorrectly used

Screenshots
See next comment

Version used:

Additional context
Slack Message

@wardweistra
Copy link
Member Author

image
Confirmed with the Firely Validation Demo that it passes validation with warnings/errors.

@ewoutkramer
Copy link
Member

I can confirm this blindly: We don't check the context at all - never implemented that!

@ewoutkramer
Copy link
Member

BTW: We're trying to avoid having validator issues here. We will need to transfer this issue to the validator repo, but since this is a private repo (at this moment), I cannot use GitHub's transfer funtion yet, so have to do that when we open up the repo in january!

@mikaelweave
Copy link

@ewoutkramer - do you know if the old validator checked extension context? I'm working with a support issue on this very profile and am making sure I understand what's happening. Thank you! 😄

@alexzautke
Copy link
Member

No, extension context checking was never implemented in the old validator.

@Narnian12
Copy link

@ewoutkramer do you happen to know when the new validator will be public? We want to start using profile validation within our code, and have been trying to use the legacy one, but figured it would be much better to use the more recent one.

@ewoutkramer
Copy link
Member

This week - we're busy preparing the release!

@mikaelweave
Copy link

Thanks @alexzautke, appreciate the confirmation. Looks like we need to update to the new one. 😄

@mmsmits mmsmits transferred this issue from FirelyTeam/firely-net-sdk Jan 22, 2024
@mmsmits
Copy link
Member

mmsmits commented Jan 22, 2024

The new validator is available, I transferred the issue

@ewoutkramer
Copy link
Member

ewoutkramer commented Jan 23, 2024

No, extension context checking was never implemented in the old validator.

Just to manage expectations: It's not yet implemented in the new one either ;-)

We'll bump the priority now I know someone is waiting for it.

@mmsmits
Copy link
Member

mmsmits commented Feb 14, 2024

duplicate of #134

@mmsmits
Copy link
Member

mmsmits commented Apr 18, 2024

The context can be defined in three different ways:
http://hl7.org/fhir/valueset-extension-context-type.html

We have notion of the definition path to validate these contexts.

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

Successfully merging a pull request may close this issue.

7 participants