Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ecqm-bundler

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecqm-bundler - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

dist/helpers/ecqm.js

28

dist/index.js

@@ -26,2 +26,3 @@ #!/usr/bin/env node

const measure_1 = require("./types/measure");
const ecqm_1 = require("./helpers/ecqm");
const program = new commander_1.Command();

@@ -59,11 +60,11 @@ program

if (opts.elmFile && opts.cqlFile) {
logger_1.default.error('ERROR: Cannot use both -c/--cql-file and -e/--elm-file\n');
logger_1.default.error('Cannot use both -c/--cql-file and -e/--elm-file\n');
program.help();
}
if (!(opts.elmFile || opts.cqlFile)) {
logger_1.default.error('ERROR: Must specify one of -c/--cql-file or -e/--elm-file\n');
logger_1.default.error('Must specify one of -c/--cql-file or -e/--elm-file\n');
program.help();
}
if (opts.deps.length !== 0 && opts.depsDirectory) {
logger_1.default.error('ERROR: Must specify only one of -d/--deps and --deps-directory\n');
logger_1.default.error('Must specify only one of -d/--deps and --deps-directory\n');
program.help();

@@ -114,3 +115,3 @@ }

if (opts.elmFile) {
logger_1.default.error('ERROR: Interactive mode is only supported with CQL files');
logger_1.default.error('Interactive mode is only supported with CQL files');
program.help();

@@ -222,3 +223,3 @@ }

if (!observingPops) {
logger_1.default.error(`ERROR: Could not find population ${observingPopExpression} in group`);
logger_1.default.error(`Could not find population ${observingPopExpression} in group`);
process.exit(1);

@@ -230,3 +231,3 @@ }

if (!observingPop) {
logger_1.default.error(`ERROR: Could not find population ${observingPopExpression} in group`);
logger_1.default.error(`Could not find population ${observingPopExpression} in group`);
process.exit(1);

@@ -269,3 +270,3 @@ }

if (!groupInfo.populationCriteria['initial-population']) {
logger_1.default.error(`ERROR: could not detect initial-population entries to draw from for ratio measure with multipe IPPs`);
logger_1.default.error(`Could not detect initial-population entries to draw from for ratio measure with multipe IPPs`);
process.exit(1);

@@ -281,3 +282,3 @@ }

if (!observingPopId) {
logger_1.default.error(`ERROR: Could not find population ${observingPopExpression} in group`);
logger_1.default.error(`Could not find population ${observingPopExpression} in group`);
process.exit(1);

@@ -287,3 +288,3 @@ }

if (!gi) {
logger_1.default.error(`ERROR: trying to set a criteria reference on ${popCode}, but no criteriaExpression was defined for it`);
logger_1.default.error(`Trying to set a criteria reference on ${popCode}, but no criteriaExpression was defined for it`);
process.exit(1);

@@ -302,3 +303,3 @@ }

if (Object.keys(popCriteria).length === 0) {
logger_1.default.error(`ERROR: must specify at least 1 population expression (e.g. --ipop "Initial Population")`);
logger_1.default.error(`Must specify at least 1 population expression (e.g. --ipop "Initial Population")`);
program.help();

@@ -314,2 +315,7 @@ }

}
const populationConstraintErrors = (0, ecqm_1.getPopulationConstraintErrors)(allGroupInfo);
if (populationConstraintErrors.length > 0) {
populationConstraintErrors.forEach(errMsg => logger_1.default.error(`${errMsg}`));
program.help();
}
let elm;

@@ -410,3 +416,3 @@ let cqlLookup = {};

const missingUrls = allValueSets.filter(u => !resolvedValueSetUrls.includes(u));
logger_1.default.error(`ERROR: Detected ValueSet(s) ${missingUrls} used by the library but could not be resolved in ${opts.valuesets}`);
logger_1.default.error(`Detected ValueSet(s) ${missingUrls} used by the library but could not be resolved in ${opts.valuesets}`);
process.exit(1);

@@ -413,0 +419,0 @@ }

{
"name": "ecqm-bundler",
"version": "0.1.1",
"version": "0.1.2",
"description": "CLI for bundling FHIR-based eCQMs",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -156,3 +156,3 @@ # ecqm-bundler

```bash
ecqm-bundler -c example/cql/MainLib.cql --deps-directory example/cql -v example/valuesets
ecqm-bundler -c example/cql/MainLib.cql --deps-directory example/cql -v example/valuesets --ipop "Initial Population" --denom "Denominator" --numer "Numerator"
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc