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

More detailed error message #13

Open
alexisc0le opened this issue Mar 5, 2024 · 0 comments
Open

More detailed error message #13

alexisc0le opened this issue Mar 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@alexisc0le
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I was getting a very confusing error response that seemed unrelated to the actual issue that was occurring. When I did a Questionnaire$populate on postman, I got the following error - "HAPI-0389: Failed to call access method: java.lang.IllegalArgumentException: Url http://hl7.org/fhir/StructureDefinition/questionnaireresponse-author must have only one match". In this case the questionnaire item was referencing a CQL expression that returned a list of strings, but the questionnaire item type was expecting a string.

Describe the solution you'd like
A better error message from engine that states the CQL statement and questionnaire statement are searching for different things.

Describe alternatives you've considered
The engine creates a concatenation of strings when there are multiple in one resource

@alexisc0le alexisc0le added the enhancement New feature or request label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant