FHIR Chat · Publisher not processing CQL · cql

Stream: cql

Topic: Publisher not processing CQL


view this post on Zulip Richard Stanley (May 03 2021 at 18:36):

Hi folks. I'm troubleshooting an IG where running _genonce.sh does not pick up the need to process the CQL. I think the IG was from a fsh demo template. Where does publisher know when it needs to process CQL? I tried /input/ig.xml settings but it could be something else. @Srimaurya Kummamuru

view this post on Zulip Rob Reynolds (May 04 2021 at 13:57):

Hello Richard.

I'm assuming by "process CQL" you mean generate FHIR Library Resources from .cql files.

Is that correct?

view this post on Zulip Rob Reynolds (May 04 2021 at 14:09):

If so, that's enabled through Implementation Guide Parameters, specifically, Binary Adjunct Files: https://confluence.hl7.org/pages/viewpage.action?pageId=66938614#ImplementationGuideParameters-BinaryAdjunctFiles.

view this post on Zulip Rob Reynolds (May 04 2021 at 14:39):

For CQL, that looks like:

  • Create the resource (.cql file) as per normal
  • For the attachment resource (Library resource file), leave it empty, and provide only an id property
    the id has the special value "ig-loader-[filename]", where filename is the name of the file to load. e.g. "id" : "ig-loader-MyLibrary.cql" (case sensitive)

For FSH this looks like:

Instance: MyLibrary
InstanceOf: Library
* content.id = "ig-loader-MyLibrary.cql"

For instance.

  • The IG Publisher will scan all the folders identified by the path-binary parameter (see above), and remove the id property, and replace it with the content from the file

For FSH, this means add the "path-binary" parameter to the sushi-config.yaml file:

parameters:
     path-binary: <path to cql files>
  • If a matching file cannot be found, the id will be left in place, and an error will be logged in the qa page

view this post on Zulip Richard Stanley (May 04 2021 at 16:40):

Thanks @Rob Reynolds What a wonderful explanation. I'll troubleshoot the path-binary parameters and hadn't used fsh for the Library resources so that's an awesome trick too. @Srimaurya Kummamuru

view this post on Zulip Srimaurya Kummamuru (May 04 2021 at 18:07):

Thank you @Rob Reynolds for the great response and taking the time. The path-binary parameter did the trick.

view this post on Zulip Rob Reynolds (May 04 2021 at 18:29):

Excellent! @Srimaurya Kummamuru @Richard Stanley

view this post on Zulip Richard Stanley (May 21 2021 at 16:21):

@Rob Reynolds Is there an example IG out in the world in which the Library and Measure resources are defined in FSH? I'm troubleshooting some MeasureReports that only produce summaries and not counts etc. I would love to use FSH instead to define the Libraries and Measures to test options and see what I'm missing.

view this post on Zulip Paul Denning (May 21 2021 at 20:44):

Use gofsh on Json examples

view this post on Zulip Richard Stanley (May 21 2021 at 23:43):

@Paul Denning Thanks! I had not thought of doing so.

view this post on Zulip Paul Denning (May 22 2021 at 10:01):

http://gb2.clinfhir.com/ can also be useful

view this post on Zulip Yolanda (Feb 16 2022 at 18:22):

Inline CQL in Questionnaire


Last updated: Apr 12 2022 at 19:14 UTC