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 output when a contentReference element won't unfold #1479

Open
mint-thompson opened this issue Jun 27, 2024 · 0 comments
Open

Comments

@mint-thompson
Copy link
Collaborator

Transferred from internal JIRA issue originally created 2023-06-12.

In ElementDefinition.unfold, errors may occur if the element specified in a contentReference can’t be found. Currently, the errors are language-level, such as Cannot read properties of undefined (reading 'length') rather than SUSHI-specific messages. Update this function so that more useful error messages are produced.

This was found in the HL7/davinci-epdx repository, which uses USCore 3.1.1 as a dependency. The following FSH will cause an error with an unhelpful message:

Profile:        ProblemProvenance
Parent:         us-core-provenance
* entity.agent.role = #12345

The contentReference on the entity.agent element will not resolve, since it refers to a BackboneElement that does not use the profile element extension.

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