-
Notifications
You must be signed in to change notification settings - Fork 123
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
Namespace - Missing Library identifier.system #449
Comments
Because the namespace is broader than a library, CQL does not provide a namespace declaration. The translator needs the namespace uri to be provided as a parameter. |
…ired one change to the cqlannotations.xsd, a non-normative aspect of the specification, to ensure that errors encountered in libraries referenced in other namespaces could be unambiguously identified.
…support #449: Implemented support for namespaces in the translator. This requ…
Addressed in 1.4.9 release |
I feel like I'm missing something, how would I actually specify a namespace in practice? It sounds like it's a parameter to the cql>elm translation but I don't see it as one of the parameters to the CLI client or as a setting in the Atom plugin. |
You're right, there is no command-line parameter for setting the namespace information, but it is a parameter to the translator component. If you need it exposed on the command-line, feel free to submit an issue request. As of today, the only way to set the namespace is through the FHIR IG publisher, using the Adjunct Binary File loader and CQL processing: https://confluence.hl7.org/pages/viewpage.action?pageId=66938614#ImplementationGuideParameters-BinaryAdjunctFiles Within a FHIR IG, the We are currently working to expose this same capability to the Atom plugin, see CQF-Tooling issue 101. |
CQL R1 STU4 added namespace capability. Based on a read of CQL, it appears that the library identifier in the ELM XML and JSON should have a property named system that is the URI for the namespace. For reference, see the RelatedContextRetrieve library example in CQL that uses an Example namespace. The identifier for the library in the ELM XML file has the following:
<identifier id="Example.RelatedContextRetrieve" system="http://example.org/measures" version="0.1.0"/>
In fact, volume 2 of CQL-based HQMF IG R1 STU4 provides the following:
However, when using the CQL-to-ELM Translator to transform a library containing a namespace, the system property is not provided in the ELM XML and JSON output. For example:
CMS.Common.1.0.000.cql
library CMS.Common version ‘1.0.000’ ...
ELM XML CMS.Common.1.0.000.xml
<library> <identifier id="CMS.Common" version="1.0.000"/> ... </library>
ELM JSON CMS.Common.1.0.000.json
In addition, there does not appear to be a way to provide the respective URI for the respective namespace.
Am I missing something?
The text was updated successfully, but these errors were encountered: