-
Notifications
You must be signed in to change notification settings - Fork 31
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
Updated cql-to-elm instructions in README.md #317
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. Your changes around cql-to-elm-cli
look good! I've requested one change related to how you reformatted the example that uses promises -- but once you fix that, I think we're good to go!
README.md
Outdated
"library" : { | ||
"identifier" : { "id" : "TestSnippet", "version" : "1" }, | ||
"schemaIdentifier" : { "id" : "urn:hl7-org:elm", "version" : "r1" }, | ||
"usings" : { | ||
"def" : [ | ||
{ "localIdentifier" : "System", "uri" : "urn:hl7-org:elm-types:r1" }, | ||
{ "localIdentifier" : "Simple", "uri" : "https://github.com/cqframework/cql-execution/simple", "version" : "1.0.0" } | ||
] | ||
}, | ||
"statements" : { | ||
"def" : [ { | ||
"name" : "Patient", | ||
"context" : "Patient", | ||
"expression" : { | ||
"type" : "SingletonFrom", | ||
"operand" : { | ||
"dataType" : "{https://github.com/cqframework/cql-execution/simple}Patient", | ||
"type" : "Retrieve" | ||
} | ||
} | ||
}, { | ||
"name" : "AllTrue", | ||
"context" : "Patient", | ||
"accessLevel" : "Public", | ||
"expression" : { | ||
"type" : "And", | ||
"operand" : [ | ||
{ "valueType" : "{urn:hl7-org:elm-types:r1}Boolean", "value" : "true", "type" : "Literal" }, | ||
{ "valueType" : "{urn:hl7-org:elm-types:r1}Boolean", "value" : "true", "type" : "Literal" } | ||
] | ||
} | ||
}, { | ||
"name" : "SomeTrue", | ||
"context" : "Patient", | ||
"accessLevel" : "Public", | ||
"expression" : { | ||
"type" : "And", | ||
"operand" : [ | ||
{ "valueType" : "{urn:hl7-org:elm-types:r1}Boolean", "value" : "true", "type" : "Literal" }, | ||
{ "valueType" : "{urn:hl7-org:elm-types:r1}Boolean", "value" : "false", "type" : "Literal" } | ||
] | ||
} | ||
}, { | ||
"name" : "AllFalse", | ||
"context" : "Patient", | ||
"accessLevel" : "Public", | ||
"expression" : { | ||
"type" : "And", | ||
"operand" : [ | ||
{ "valueType" : "{urn:hl7-org:elm-types:r1}Boolean", "value" : "false", "type" : "Literal" }, | ||
{ "valueType" : "{urn:hl7-org:elm-types:r1}Boolean", "value" : "false", "type" : "Literal" } | ||
] | ||
} | ||
} | ||
]} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indent, on the other hand, looks good. I'm not sure how/why we had a three-space indent before. Thanks for fixing it!
Thanks, @sorliog. It looks like |
Pull requests into cql-execution require the following.
Submitter and reviewer should ✔ when done.
For items that are not-applicable, mark "N/A" and ✔.
CDS Connect and Bonnie are the main users of this repository.
It is strongly recommended to include a person from each of those projects as a reviewer.
Summary
Instructions for translating CQL to ELM in README.md are out of date with clinical_quality_language. This update changes the documentation to use the
cql-to-elm-cli
executable instead of thecql-to-elm
library.Submitter:
npm run test:plus
to run tests, lint, and prettier)cql4browsers.js
built withnpm run build:browserify
if source changed.Reviewer:
Name: