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

Tutorial for cql plugin #412

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Tutorial for cql plugin #412

wants to merge 6 commits into from

Conversation

aswathikrishnan24
Copy link

No description provided.

Copy link
Contributor

@Sieuwkje-firely Sieuwkje-firely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a couple of comments, it is good to explain the motivation behind certain steps and parts of the documentation.

Introduction
------------

Firely Server CQL Plugin is a means to use the Firely Server to run the CQL engine.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe good to explain a little bit on CQL here, it would be good to mention some basic principles.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add a link to https://cql.hl7.org/. Rather than us repeating information in our document, we can point to the source itself.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check in the team if CQL explanation have to come in this page. But i added a link to the main cql documentation at the top.

Create a CQL File
-----------------

To start working with Firely Server CQL Plugin, you would need a CQL File.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe good to refer to documentation were people can find more information on creating a CQL file. Also good to mention the criteria for such a file here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was that customers come up with their own CQL or use the example we provided. I can attach https://cql.hl7.org/03-developersguide.html or https://cql.hl7.org/examples.html. @cheng13231 Do you have a better document?

features_and_tools/cql.rst Show resolved Hide resolved
------------------------

This chapter details setting up Firely Server CQL Plugin and provides you with an example to get some hands-on experience with CQL library with Postman tool.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the CQL plugin relate to the steps you mentioned before? It is good to explain that here, what is it exactly that the CQL plugin does with regard to what you already mentioned?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I am not sure if your changes came through here....

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Edit appsettings.instance.json:

1. Set Repository to ``SQL`` and add the database configuration
Copy link
Contributor

@Sieuwkje-firely Sieuwkje-firely Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct that CQL is currently only supported in combination with SQL? Then it is good to make a note/warning of that under the Firely Server CQL Plugin header

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paul-l-fire can you confirm if this is true?

CQL Plugin in Firely Server uses the ``$evaluate-measure`` operation to execute a CQL measure on a resource.
To verify the result of our CQL measure, we use Postman tool

Create a postman collection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to point to a link where a ready made postman collection can be found?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you do that already below, in that case maybe the part you describe here is not necessary? Unless, as you state below, you add extra explanation on each step of the Postman collection.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check this with rest of the team, either switch the order in which this is displayed or map the explanation of the steps based on the collection.

* Install Firely Server using `Basic installation — Firely Server documentation <https://docs.fire.ly/projects/Firely-Server/en/latest/getting_started/basic_installation.html>`_

.. warning::
Make sure that the license contains CQL Plugin.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best to show how the plugin would look like, such as "Your license permits the use of the CQL plugin if it contains the following entry: http://fire.ly/vonk/plugins/cql"
Please check if this is the correct plugin though!
Also, I would not make this a warning, it can be a note I think.

------------------------

This chapter details setting up Firely Server CQL Plugin and provides you with an example to get some hands-on experience with CQL library with Postman tool.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I am not sure if your changes came through here....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants