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

Improve error message for code caret rule on ValueSet compose component without any concept #1518

Open
mint-thompson opened this issue Sep 23, 2024 · 0 comments

Comments

@mint-thompson
Copy link
Collaborator

When writing rules for a ValueSet, it is invalid to make a code caret rule on a concept that is not specifically present within the ValueSet.. However, when there are no specific concepts present, a slightly strange error message is produced.

Sample FSH:

ValueSet: SomeVS
* include codes from system http://example.org/CS
* http://example.org/CS#"some-code" ^designation.value = "some value"

Error message received:

error The element or path you referenced does not exist: compose.include[0].concept[undefined].designation.value
  Line: 3

The rule path in the error message is the path constructed within the ValueSetExporter for the rule on line 3. But, it might be more useful to directly indicate that the rule is invalid because there is no concept array in the compose element with http://example.org/CS as the system.

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

1 participant