projectcypress / js-ecqm-engine Goto Github PK
View Code? Open in Web Editor NEWA pure Javascript library to calculate electronic clinical quality measures (eCQMs)
License: Apache License 2.0
A pure Javascript library to calculate electronic clinical quality measures (eCQMs)
License: Apache License 2.0
Are there any architecture diagrams or documentation on the upstream RabbitMQ requirements? I was able to get the ECQM engine installed and running, with both MongoDB and Rabbit, but it's waiting for messages. I think I'm missing an upstream utility.
Hi, I have questions, hopefully this is the right place for it.
Will this library work for reporting year 2020 if we upgrade cqm-models to version 2.0.0? If not, do you have suggestion for the replacement?
Thanks,
Nat
Calculations occasionally fail due to an unresolved promise. In lib/executor.js, the getPatientsById function needs to:
return await this.patientSource.findPatients(patientIdsList);
instead of:
return this.patientSource.findPatients(patientIdsList);
Otherwise null is occasionally returned which results in a query result with zero values for all populations.
Hello,
So, I have the ECQM Engine running successfully, with both MongoDB and RabbitMQ, using node bin/rabbit_worker.js
.
However, I'm receiving the following errors when I try to run the jasmine tests using npm run-script test
:
FF(node:97426) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'model' of undefined
at Handler.finish (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/lib/handlers/cypress_mongo_handler.js:34:41)
at UserContext.it (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/spec/handlers/cypress_mongo_handler_spec.js:63:13)
at attempt (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4478:46)
at QueueRunner.run (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4402:20)
at QueueRunner.execute (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4384:10)
at Spec.queueRunnerFactory (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:964:35)
at Spec.execute (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:563:10)
at UserContext.fn (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:5541:37)
at attempt (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4486:26)
at QueueRunner.run (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4402:20)
at QueueRunner.execute (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4384:10)
at queueRunnerFactory (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:964:35)
at UserContext.fn (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:5526:13)
at attempt (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4486:26)
at QueueRunner.run (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4402:20)
at runNext (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4446:20)
(node:97426) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:97426) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Further down the page, we're also receiving the following:
**Failures:
1) A Javascript CQL Calculation Executor encountered a declaration exception
Message:
TypeError: connection.model is not a function
Stack:
TypeError: connection.model is not a function
at new MongoDBMeasureSource (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/lib/models/measure_source.js:6:34)
at new Executor (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/lib/executor.js:13:26)
at Suite.describe (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/spec/executor_spec.js:11:20)
at Object.<anonymous> (/Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/spec/executor_spec.js:9:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /Volumes/StorageCrystal-Quartz/Code/MITRE/js-ecqm-engine/node_modules/jasmine/lib/jasmine.js:93:5
at Array.forEach (<anonymous>)
**
Are there any extra command options we're suppose to be using when running the jasmine tests? I've tried using a environment variables such as NODE_ENV=test node bin/rabbit_worker.js
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.