Clinical Quality Language (CQL) is an expressive language for clinical quality measures and clinical decision support. It helps in expressing logic that involves clinical data.
Due to its complexity, testing CQL code becomes a challenge. There can be issues of syntax errors, logic errors, wrong use of clinical terms, etc. To tackle these issues, I built this CQL Testing Tool.
Testing CQL code also involves checking whether the written code produces the desired logic correctly. Since CQL is used for clinical quality measures and clinical decision support, it becomes very important to test it accurately due to the criticality of the healthcare domain.
To use the CQL Testing Tool, you need to provide the CQL code and the mock FHIR resources in the FHIR Shorthand (FSH) language. FSH is used to define the FHIR resource bundle that will be used for testing the CQL code. You can tick the "Expand value sets using VSAC" box to expand the value sets in the CQL code using the Value Set Authority Center (VSAC) service.
Click "Execute CQL" to run the CQL code against the provided FSH instances. The output will be shown in the Results section. You can revise and troubleshoot your code based on the output until the desired logic is successfully achieved and working as expected. Happy coding!