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".
Post the MBODAQuestionnaire Bundle to Postman (/cqf-us/bundles/questionnaire/MBODAQuestionnaire/MBODAQuestionnaire-bundle.json)
Post USCorePatient-2 Bundle to Postman
Populate the Questionnaire with USCorePatient-2 (GET {{server}}/Questionnaire/MBODAQuestionnaire/$populate?subject=USCorePatient-2)
OPTIONAL/TO COMPARE: Post USCorePatient-1 bundle to Postman and populate the Questionnaire with USCorePatient-1
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:
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)
Post the MBODAQuestionnaire Bundle to Postman (/cqf-us/bundles/questionnaire/MBODAQuestionnaire/MBODAQuestionnaire-bundle.json)
Post USCorePatient-2 Bundle to Postman
Populate the Questionnaire with USCorePatient-2 (GET {{server}}/Questionnaire/MBODAQuestionnaire/$populate?subject=USCorePatient-2)
OPTIONAL/TO COMPARE: Post USCorePatient-1 bundle to Postman and populate the Questionnaire with USCorePatient-1
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: