Giter Club home page Giter Club logo

ahrq-cds / cql-testing-framework Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 7.0 19.17 MB

AHRQ-CDS CQL Testing Framework to allow CQL authors to more easily develop and run test cases for validating CQL-based CDS logic, regardless of how that CQL was developed (e.g., by hand, in the AT, etc). This is intended to be a developer-facing tool, run on the command-line; it has no server components.

License: Apache License 2.0

JavaScript 100.00%

cql-testing-framework's People

Contributors

cmoesel avatar mickohanlon23 avatar mitread avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

cql-testing-framework's Issues

"Medication" resource type

Hello again,

thanks for your previous help for the first issue about the "dosage" attribute. Another element we are trying to implement involves the "Medication" resource type. Specifically from this we would like to access items from the "ingredient" part of this where we extract the "amount" of a medication. FHIR provides an example of this for a medication statement here where we can see the "Tylenol PM" medication specified as an ingredient named "Acetaminophen 500 MG" which has an amount 500 milligrams.

We notice that the test cases support specifying the "medication[x]" portion of MedicationStatements via the CodeableConcept, but it looks like for the functionality above it would need to be done through a reference to a full medication object, which doesn't currently seem to be a supported resource type. Is this correct? If so, what steps would you suggest for implementing the use of full medication objects?

Thank you for your time!
-Eric

Implementing additional attributes for test cases

Hello,
I am a researcher at the University of Pittsburgh Department of Biomedical Informatics and our lab forked this repository in order to work with it for drug-drug interaction alerting. For many of our use cases, though, we would like to be able to use STU3 MedicationStatement items such as "dosage" and the amount for each ingredient(s) of the medication. We understand that currently "dosage" is not a supported attribute , but on our fork I have looked into how to implement these ourselves via the src file loadYamlTestCases.js in the function "handleMedicationStatement".

I have only gotten this to be able to partially work for implementing dosage, though, basically by adding a line for "dosage: d.dosage ? d.dosage : undefined" in the "handleMedicationStatement" return statement. Below are a couple of screenshots of how the YAML I am trying to test is outputted with this addition. It looks like only the dosage text made it through but none of the other "dosage" elements.

image

image

So overall:

  • Is there a general process that you all have for implementing new attributes for these resources?
  • Do you have additional pointers for which files/functions I should look into that are necessary to keep up to date for implementing additional attributes?

Thank you!
-Eric

Dependency problems for cql2elm

I recently started working with CQL-Testing-Framework in my work at Optum. I tried to run the cql2elm tool that is included with this repo. I installed it in my IG by adding "cql-testing": "^2.6.1" to my package.json.

When I tried to run cql2elm, I got a NoClassDefFoundError from java. A little bit of research and hacking lead to a temporary,brittle solution of adding runtimeOnly 'xmlpull:xmlpull:1.1.3.1' to the node_modules/cql-testing/build.gradle

Once I added that dependency, the tool ran as expected and generated the ELM json files that are needed by CQL-Testing-Framework.

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.