Giter VIP home page Giter VIP logo

cqframework / cql-formatting-and-usage-wiki Goto Github PK

View Code? Open in Web Editor NEW
61.0 36.0 23.0 17.17 MB

A collaborative workspace for the development of CQL formatting conventions and usage patterns for artifact development. The home of Cooking with CQL Examples, visit the wiki for more.

Home Page: https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki

HTML 98.63% XSLT 1.37%
cql fhir clinical-quality-measurement clinical-decision-support clinical-quality-improvement

cql-formatting-and-usage-wiki's Introduction

CQL-Formatting-and-Usage-Wiki

Welcome to the CQL Formatting and Usage Wiki!

This wiki will serve as a collaborative workspace for the development of CQL formatting conventions and usage patterns for measure development.

The contents of this wiki are a work in progress and nothing contained here should be considered a final specification or recommendation for guidance. The content developed here will help guide and direct the process of finding conventions and usage patterns that meet the needs of the various stakeholders in the measure development community.

Please feel free to submit edits, comments, and concerns to this wiki, as well as examples of formatting and usage. We encourage active participation and look forward to your feedback!

To view the wiki, use the Wiki link at the top of this page, or follow this link.

The Clinical Quality Framework Team

cql-formatting-and-usage-wiki's People

Contributors

alexisc0le avatar ashleymccrea avatar brynrhodes avatar c-schuler avatar drmuir avatar jbyrdevans avatar matthewtiller avatar mholck avatar rhondaschwartz avatar sillyhound25 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cql-formatting-and-usage-wiki's Issues

QICore 4.1.1 MedicationRequest.doNotPerform

Per QICore 4.1.1 StructureDefinition for MedicationRequest, it looks like doNotPerform is fixed to false. However, the QICore 4.1.1 patterns wiki page states "...the MedicationRequest profile does not fix the value of the doNotPerfom element...". Will you consider updating the wiki page to provide more background as to why specifying "doNotPerform is not true" in the CQL is required to express MedicationRequest? Thank you in advance!

https://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-medicationrequest.html
https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns---QICore-v4.1.1#medication-ordered

Add Observation Status Functions

The current Hospitalization functions provide a way to define criteria with respect to an "episode-of-care" whether that is a single in-patient encounter, or an in-patient encounter with an immediately preceding emergency department visit. However, there are scenarios that need to be able to account for episodes of care that may include observation time, as well as potential emergency department visits. To account for this, new hospitalization functions that account for observation status should be added, as described here:

https://github.com/esacinc/CQL-Formatting-and-Usage-Wiki/blob/master/Source/Cooking%20With%20CQL/27/67_ObservationStatus.cql#L188

Remove Global.ToDate function?

There is a Global.ToDate defined in the Common library. CQL 1.3 defines a System ToDate function that should be used instead, so the ToDate in the Global Common Library should be removed.

code systems not in VSAC

https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/blob/master/Source/Libraries/CumulativeMedicationDuration-1.0.000.cql#L9-L38

These 2 code systems, and the associated codes, are not in VSAC.
I could not find the code systems using https://vsac.nlm.nih.gov/context/cs

Looking for them using FHIR also comes up empty
curl -s -k -u apiKey:your-key-here https://cts.nlm.nih.gov/fhir/r4/CodeSystem?_format=json^&name=timing
curl -s -k -u apiKey:your-key-here https://cts.nlm.nih.gov/fhir/r4/CodeSystem?_format=json^&name:contains=timing

Therefore, these codes cannot be added when creating this library in MAT (for QDM); apparently MAT does not verify with VSAC that those code systems exist since a FHIR version is in MAT.

http://tx.fhir.org/r4/CodeSystem?_format=json&name:contains=timing finds 4 code systems including both urn:oid:2.16.840.1.113883.4.642.4.76 and urn:oid:2.16.840.1.113883.5.139 (with 2 versions of ..5.139)

https://r4.ontoserver.csiro.au/fhir/CodeSystem?_format=json&name:contains=timing finds them

Correct inconsistent frequency determination in CumulativeMedicationDuration logic

The ToDaily(Code) function in this library incorrectly uses the lower number of doses for frequencies that are specified as a range of hours:

https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/blob/master/Source/Libraries/CumulativeMedicationDurationFHIR4-1.0.000.cql#L174

In addition, add this comment to the description of the function:

Note that for ranges, the boundary resulting in the highest frequency result is used. E.g. `Every two to four hours` results in `12.0` and `One to two` times a day results in `2.0`.

Use Last instead of SingletonFrom in Hospitalization functions

Based on implementer feedback in CQLIT-117, the assumption that there would only ever be one immediately preceding emergency room visit within an hour of an inpatient encounter for a given patient does not hold. Guidance from the resolution is that the most recent preceding emergency room visit should be used. The hospitalization functions should be updated to reflect this change.

Remove Code System Versions

Since different terminology systems are managed by different organizations and have different update cycles, measure content typically avoids referencing specific versions of terminologies (value sets and code systems) until there is a publication date, at which time terminology version information is typically provided through a different mechanism (the Binding Parameters Specification for example).

However, the 2.0.0 version of the common library references code system versions specifically. These versions should be removed.

Update Age Calculations to use the new Date type in CQL 1.3

Because CQL 1.2 defines Age calculations to account for birth time, existing measures use the CalendarAgeInXXX functions to determine patient age. However, in CQL 1.3, a new Date type was introduced to allow Age functions to use birth date or birth time, as appropriate. The common library should be updated to take advantage of this new functionality.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.