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

Bug in CQL and MeasureReporting - MIssing version artifact, #3639

Open
f-odhiambo opened this issue Nov 28, 2024 · 3 comments
Open

Bug in CQL and MeasureReporting - MIssing version artifact, #3639

f-odhiambo opened this issue Nov 28, 2024 · 3 comments

Comments

@f-odhiambo
Copy link
Contributor

f-odhiambo commented Nov 28, 2024

CQL Evaluator bug

Process: org.smartregister.opensrp.zeir, PID: 14895 org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library GrowthMonitoring, version null.

CQL Engine

 public EvaluationResult evaluate(String libraryName, Set<String> expressions, Pair<String, Object> contextParameter, Map<String, Object> parameters) {
        return this.evaluate(new VersionedIdentifier().withId(libraryName), expressions, contextParameter, parameters, null);
    }

Sample Measure

{
   "resourceType": "Measure",
   "id": "69111ad7-3472-42e1-a769-684c89ae3bf40900090RE",
   "url": "https://fhir.zeir.smartregister.org/fhir/Measure/Attendance001|1",
   "name": "Attendance001",
   "title": "Clinic Attendance by age group",
   "status": "active",
   "version": "1",
-----
}
@f-odhiambo
Copy link
Contributor Author

f-odhiambo commented Nov 28, 2024

I will add a new SDK ticket to track this bug

@f-odhiambo
Copy link
Contributor Author

CQL version presumed currently in use

cqfFhirCr = "3.0.0-PRE9"

@f-odhiambo
Copy link
Contributor Author

f-odhiambo commented Nov 29, 2024

Seems like version id will need to be parsed or made nullable in this function. .withVersionId(versionId) in CQLEngine v3.2.2.

 public EvaluationResult evaluate(String libraryName, Set<String> expressions, Pair<String, Object> contextParameter, Map<String, Object> parameters) {
        return this.evaluate(new VersionedIdentifier().withId(libraryName), expressions, contextParameter, parameters, null);
    }

@f-odhiambo f-odhiambo removed the Draft label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant