GithubHelp home page GithubHelp logo

ahrq-cds / ahrq-cds-connect-authoring-tool Goto Github PK

View Code? Open in Web Editor NEW
40.0 9.0 17.0 67.01 MB

The CDS Authoring Tool is part of the CDS Connect project https://cds.ahrq.gov/, sponsored by the Agency for Healthcare Research and Quality (AHRQ), and developed under contract with AHRQ by MITRE's CAMH FFRDC.

Home Page: https://cds.ahrq.gov/cdsconnect/authoring

License: Apache License 2.0

JavaScript 98.76% HTML 0.04% Dockerfile 0.12% SCSS 1.02% EJS 0.06%
cds clinical-quality-language clinical-decision-support fhir cql

ahrq-cds-connect-authoring-tool's People

Contributors

agustinmora avatar andrequina avatar cmoesel avatar craigmcginley avatar dependabot[bot] avatar dpc15038 avatar jafeltra avatar jgibson avatar jsthomas1 avatar laclark22 avatar luis1van avatar mitread avatar mrnosal avatar noranda avatar pkmitre avatar radamson avatar schreiaj 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ahrq-cds-connect-authoring-tool's Issues

vsac apis are no longer working

On the authoring tool none of the vsac execution works even after correct authentication. I am seeing this issue since yesterday. After searching for any keyword it just blanks out after sometime. If I do a network inspect using inspect tool, it just says 404 error. Same during any value set code or system validations. we need an urgent fix

Importing External CQL to use in Inclusions/Subpopulations/etc

Hello,
I have been trying to figure out how to use the "External CQL" part of the authoring tool (screenshot below) and have been able to get a couple CQL libraries to be successfully uploaded as a test.

image

I can see that the functions appear to appropriately be defined from the imported CQL...

image

However, it doesn't appear that any of these are usable when trying to refer to them in the Base Elements, Subpopulations, Inclusions/Exclusions.

image

Do you have any insight as to what else might need to be done or anything I might be missing in order to be able to refer to the functions defined in the external CQL? Are there any example use cases of this with functional CQL snippets that I can try to go off of? I haven't been able to find documentation for using this portion of the authoring tool.

Thank you!

Local Database Issue

Originally posted by @nibaba007 in #72 (comment):

What to do when encountering the following situation:

289455695-f5068a3d-e429-4ae1-ad62-04f42cf89252-redacted2

Note from Admin: This issue report is related to a developer's local implementation of the CDS Authoring Tool. The AHRQ-hosted CDS Authoring Tool has not been impacted.

Question about converting artifacts to FHIR STU3 and FHIR DSTU2 CQL

Hello,
I work as a researcher with the University of Pittsburgh Department of Biomedical Informatics and we have been working with this authoring tool to implement a drug-drug interaction alerting system.

I am working on the addition of Dosage in MedicationStatements and MedicationOrders as well as the comparison of dose in the frontend of the app, however, I am having some issues in converting the artifact that I create into CQL for FHIR STU3 and FHIR DSTU2. Do you have any documentation that explains the conversion process?

image

Thank you for any and all help!

Import CQL for authoring

Is there a capability to import existing CQL to Artifacts rather than creating a new one from scratch? It would be nice to be able to modify the published artifacts. Thanks in advance.

Question about accessing FHIR Resource Contents (ex. MedicationStatement dose) within matching records

Hello,
I work as a researcher with the University of Pittsburgh Department of Biomedical Informatics and we have been working with this authoring tool to implement a drug-drug interaction alerting system.

In some of the alerts we are trying to implement, we would like to access the contents within a MedicationStatement, such as "dosage", "effectiveDateTime", or the contained "Medication" resource. However, currently we have only been able to figure out how to use the Expressions in the tool to return lists of MedicationStatements, or booleans for if MedicationStatements exist, are active, or are/are not null, etc (screenshots below). Are there any other expressions or other aspects of the authoring tool that can allow us to reference other items within the MedicationStatement resource other than these?

Screen Shot 2019-09-23 at 2 50 21 PM

Screen Shot 2019-09-23 at 2 50 45 PM

Also, if there is a different communication channel or forum to discuss CQL features/potential future features such as this one for the authoring tool, my colleagues and I would love to be included in it. Thanks!

External CQL and base elements

Hi,

I'm attempting to assign a base element to a External CQL function parameter but get the following error just after i select it from the drop down:


TypeError: Cannot read property 'find' of undefined
getBaseElementName
src/components/builder/base-elements/utils.js:4
1 | export const getBaseElementReturnType = baseElement =>
2 | baseElement.modifiers?.length > 0 ? baseElement.modifiers.slice(-1)[0].returnType : baseElement.returnType;
3 |

4 | export const getBaseElementName = baseElement => baseElement.fields.find(field => field.id === 'element_name').value;
5 |
6 | export const getBaseElementsByType = (baseElements, type) =>
7 | baseElements.filter(baseElement => getBaseElementReturnType(baseElement) === type);
View compiled
onChange
src/components/builder/templates/ArgumentsTemplate.js:137
134 | handleUpdateArgument({
135 | ...argumentValue,
136 | selected: event.target.value,
137 | elementName:
| ^ 138 | argumentValue.argSource === 'baseElement'
139 | ? getBaseElementName(getBaseElementById(baseElements, event.target.value))
140 | : getParameterById(parameters, event.target.value).name
View compiled
▶ 21 stack frames were collapsed.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error. Click the 'X' or hit ESC to dismiss this message.`

My external CQL is:

library BMICalculator
version '1'

define function BMI(height System.Quantity, weight System.Quantity):
System.Quantity {
value: (weight.value/(height.value*height.value)),
unit: 'kg/m2'
}

no longer can connect to VSAC

cannot retrieve info from VSAC, same with version deployed on AHRQ site, perhaps linked to missing API key for UMLS?

zip of external cels fail

If I upload a zip file of external cql files (dependent on one another), I get an error that invalid file format (it says format should be in cql or zip) though I am loading a zip file. Please advise what to do

Cannot login in using default user and password.

I compiled the Authoring Tool using the instructions at Run (Development Quick Start). Everything went fine (with some warnings), and the tool ran, but I could not log in. I tried the pair user: demo and password: password, and made sure I copied the local.json and local-users.json files to their proper places.

I got the message Authentication Error: 500 Internal Server Error, please try again. on the browser and the following messages on the console:

11:40:31 AM web.1 |  Proxy error: Could not proxy request /authoring/api/auth/login from localhost:5100 to http://localhost:3001.
11:40:31 AM web.1 |  See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

By the way, the project docker is not available:

Unable to find image 'cdsauthoringtool:latest' locally
docker: Error response from daemon: pull access denied for cdsauthoringtool, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

Add XML-formatted output to export bundles

The CQL Engine does not support the JAXB-JSON format that is currently included in the ZIP export bundles. The preferred format for the CQL Engine is XML. In order to preserve existing functionality that uses the JAXB-JSON format and also support the CQL Engine, we would like the CDS AT to export both formats at the same time. See https://github.com/DBCG/cql_engine/issues/405 for the complete discussion and cqframework/cql-translation-service#18 for the related change needed in the CQL Translation Service.

Error with nf start: /bin/sh: 1: pushd: not found

Steps to reproduce:

  1. Clone repo
  2. Install foreman globally
  3. Install dependencies for api/ and frontend/
  4. Run nf start

After cloning the repo, installing foreman, and installing dependencies for api/ and frontend I get the below error when running nf start. It seems this is because pushd and popd are commands not present in /bin/sh which foreman is using.

I looked around for a way to set the default shell for foreman, but couldn't find any hints.
However by changing my Procfile to use the following commands nf start didn't throw this error:

api: cd api && ./node_modules/.bin/nodemon server.js && cd ..
web: cd frontend && npm start && cd ..

The error from running nf start

[WARN] No ENV file 
23:59:21 api.1   |  /bin/sh: 1: pushd: not found
23:59:21 web.1   |  /bin/sh: 1: pushd: not found
[DONE] Killing all processes with signal  null
internal/util.js:192
  throw new errors.TypeError('ERR_UNKNOWN_SIGNAL', signal);

Tested on Debian 9 and Ubuntu 16.04 using both bash and zsh.

CQL execution failure

Hi,
I am able to edit CQL and upload patients, but when I run a test (Testing page: Execute CQL on Selected Patients ) I get:
Execution failed. Error: Cannot read properties of undefined (reading 'content')

It seems like a JavaScript bug. Please can you provide a feedback on this?
Thanks in advance.

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.