Stream: cql
Topic: Error - MeasureReport - Could not resolve library name FH...
Srimaurya Kummamuru (May 11 2021 at 16:06):
When trying to run $evaluate-measure
on a Measure, I'm facing an error Could not resolve library name FHIRHelpers
WARN c.u.f.c.c.p.LibrarySourceProvider [LibrarySourceProvider.java:63] Failed to parse Library source for VersionedIdentifier 'org.hl7.elm.r1.VersionedIdentifier@13bf8db[id=FHIRHelpers, system=<null>(default), version=4.0.1]'!
Could not resolve library name FHIRHelpers
java.lang.IllegalArgumentException: Could not resolve library name FHIRHelpers
at ca.uhn.fhir.cql.r4.provider.LibraryResolutionProviderImpl.resolveLibraryByName(LibraryResolutionProviderImpl.java:72)
at ca.uhn.fhir.cql.r4.provider.LibraryResolutionProviderImpl.resolveLibraryByName(LibraryResolutionProviderImpl.java:41)
at ca.uhn.fhir.cql.common.provider.LibrarySourceProvider.getLibrarySource(LibrarySourceProvider.java:55)
On the browser I see either - Measure report complete - but I don't see a measure report generated
{
"resourceType": "MeasureReport",
"status": "complete",
"type": "summary",
"measure": "Measure/HIVSimpleTestResult"
}
or a NullPointerException
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Failed to call access method: java.lang.NullPointerException</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [ {
"severity": "error",
"code": "processing",
"diagnostics": "Failed to call access method: java.lang.NullPointerException"
} ]
}
But the common log for both has been Could not resolve library name FHIRHelpers
.
The initial cql does have
include FHIRHelpers version '4.0.1'
Is there a configuration I might be missing?
JP (May 11 2021 at 16:25):
@Srimaurya Kummamuru - See this thread: https://chat.fhir.org/#narrow/stream/179220-cql/topic/Could.20not.20resolve.20library.20name.20FHIRHelpers
Srimaurya Kummamuru (May 11 2021 at 17:35):
That resolved the FHIRHelpers error thank you @JP !
But the additional errors of NullPointerException
or Not generating the Measure Report still persist
2021-05-11 13:29:04.298 [qtp15140522-123] INFO c.u.f.c.r.e.MeasureEvaluation [MeasureEvaluation.java:82] Generating individual report
2021-05-11 13:29:04.298 [qtp15140522-123] INFO c.u.f.c.r.e.MeasureEvaluation [MeasureEvaluation.java:130] Generating summary report
2021-05-11 13:29:04.308 [qtp15140522-123] ERROR c.u.f.r.s.i.ExceptionHandlingInterceptor [ExceptionHandlingInterceptor.java:140] Failure during REST processing
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: Failed to call access method: java.lang.NullPointerException
at ca.uhn.fhir.rest.server.method.BaseMethodBinding.invokeServerMethod(BaseMethodBinding.java:254)
at ca.uhn.fhir.rest.server.method.OperationMethodBinding.invokeServer(OperationMethodBinding.java:329)
at ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding.doInvokeServer(BaseResourceReturningMethodBinding
Caused by: java.lang.NullPointerException: null
at ca.uhn.fhir.cql.r4.evaluation.MeasureEvaluation.getAllPatients(MeasureEvaluation.java:124)
at ca.uhn.fhir.cql.r4.evaluation.MeasureEvaluation.evaluatePopulationMeasure(MeasureEvaluation.java:133)
at ca.uhn.fhir.cql.r4.evaluation.MeasureEvaluation.evaluatePatientMeasure(MeasureEvaluation.java:85)
at ca.uhn.fhir.cql.r4.provider.MeasureOperationsProvider.evaluateMeasure(MeasureOperationsProvider.java:114)
... 61 common frames omitted
JP (May 11 2021 at 17:42):
@Srimaurya Kummamuru - You likely do not have any patient resources loaded on your server. This was a known issue and resolved by:
https://github.com/hapifhir/hapi-fhir/pull/2632
JP (May 11 2021 at 17:42):
(it'll presumably go into the next HAPI release)
Srimaurya Kummamuru (May 11 2021 at 18:51):
@JP I do have Patient Resources Screen-Shot-2021-05-11-at-2.22.49-PM.png . Is there any other resource I need to be looking for? or do I need to do something to load/initiate or prep the patient resources?
Last updated: Apr 12 2022 at 19:14 UTC