FHIR Chat · Measure Library resolution? · cql

Stream: cql

Topic: Measure Library resolution?


view this post on Zulip Sean McIlvenna (Jun 14 2021 at 22:56):

Can anyone explain the process for how Libraries referenced by a Measure are resolved? As far as I can tell, if a Measure references a library via URL of http://test.com/Library/someLibrary, it tries to resolve it by looking for a Library resource with an id of "someLibrary". Which would mean an assumption that the leaf portion of the URL is always the same as the ID of the library; and that doesn't seem quite right... Is my understanding correct? And how does that relate to a library that is referenced in the text/cql? Does it load the libraries that are referenced directly in the Measure and then expect that the Library is loaded with a matching version number when processing the text/cql?

view this post on Zulip Bryn Rhodes (Jun 15 2021 at 02:27):

Library resolution has some legacy aspects as the code didn't always resolve correctly and some tooling and implementations still rely on the "by id" resolution. That should only be a fallback though. If the Measure.library element correctly specifies an existing library by url, that will be used to resolve. If the canonical reference doesn't have a version, the latest version of the library is used. See the default R4 implementation here: https://github.com/DBCG/cqf-ruler/blob/8bb2b2f35786c7a7aa786ff6b28e2822bfa5c169/r4/src/main/java/org/opencds/cqf/r4/providers/LibraryOperationsProvider.java#L400

view this post on Zulip Sean McIlvenna (Jun 15 2021 at 15:09):

Thanks Bryn!


Last updated: Apr 12 2022 at 19:14 UTC