cqframework / clinical_quality_language

Clinical Quality Language (CQL) is an HL7 specification for the expression of clinical knowledge that can be used within both the Clinical Decision Support (CDS) and Clinical Quality Measurement (CQM) domains. This repository contains complementary tooling in support of that specification.
https://confluence.hl7.org/display/CDS/Clinical+Quality+Language
Apache License 2.0
258 stars 120 forks source link

Formatter deleting CQL with inline comment #215

Closed jackcmeyer closed 7 years ago

jackcmeyer commented 7 years ago

The following CQL has parts of it being deleted when going through the formatter:

library Test version '0.0.000'

using QDM version '5.3'

valueset "Dapsone and pyrimethamine": 'urn:oid:2.16.840.1.113883.3.464.1003.196.12.1202' version 'urn:hl7:version:eCQM%20Update%202017-05-05'
valueset "Leucovorin": 'urn:oid:2.16.840.1.113883.3.464.1003.196.12.1205' version 'urn:hl7:version:eCQM%20Update%202017-05-05'

parameter "Measurement Period" Interval<DateTime>

context Patient

define "test":
    ["Medication, Order": "Dapsone and pyrimethamine"] MO
    // some comment
          let var: 2

Results in:

library Test version '0.0.000'

using QDM version '5.3'

valueset "Dapsone and pyrimethamine": 'urn:oid:2.16.840.1.113883.3.464.1003.196.12.1202' version 'urn:hl7:version:eCQM%20Update%202017-05-05'
valueset "Leucovorin": 'urn:oid:2.16.840.1.113883.3.464.1003.196.12.1205' version 'urn:hl7:version:eCQM%20Update%202017-05-05'

parameter "Measurement Period" Interval<DateTime>

context Patient

define "test":
    ["Medication, Order": "Dapsone and pyrimethamine"] MO
    // some comment
           let var:

(note the missing 2 after var: )

brynrhodes commented 7 years ago

Hi @jackcmeyer, was this issue found with the latest code from master, or with the latest published translator package?

jackcmeyer commented 7 years ago

Hi @brynrhodes, this is with the most recent master branch code.

brynrhodes commented 7 years ago

Addressed in v1.2.12-SNAPSHOT.