You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I populate a Questionnaire on Postman with a test patient that does not have a resource associated with a CQL Statement I get the following response - "Error encountered evaluating expression (Allergies) for item (patient-info|drug-allergies): Cannot invoke "java.util.List.stream()" because the return value of "org.opencds.cqf.fhir.cql.LibraryEngine.resolveExpression(String, org.opencds.cqf.fhir.cql.CqfExpression, org.hl7.fhir.instance.model.api.IBaseParameters, org.hl7.fhir.instance.model.api.IBaseBundle)" is null".
Describe the bug
When I populate a Questionnaire on Postman with a test patient that does not have a resource associated with a CQL Statement I get the following response - "Error encountered evaluating expression (Allergies) for item (patient-info|drug-allergies): Cannot invoke "java.util.List.stream()" because the return value of "org.opencds.cqf.fhir.cql.LibraryEngine.resolveExpression(String, org.opencds.cqf.fhir.cql.CqfExpression, org.hl7.fhir.instance.model.api.IBaseParameters, org.hl7.fhir.instance.model.api.IBaseBundle)" is null".
To Reproduce
(I have been having the issue on this branch- https://github.com/cqframework/cqf-us/tree/2024-Updates-Debugging)
Expected Behaviour
It is expected that we don’t get that error message, and that question just be skipped/left empty.
The text was updated successfully, but these errors were encountered: