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

@madie/madie-models

Package Overview
Dependencies
Maintainers
7
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@madie/madie-models - npm Package Compare versions

Comparing version 1.3.11 to 1.3.12

dist/MeasurePopulation.d.ts

7

dist/AggregateFunctionType.d.ts

@@ -7,5 +7,10 @@ export declare enum AggregateFunctionType {

MINIMUM = "Minimum",
MODE = "Mode",
POPULATION_STANDARD_DEVIATION = "Population Standard Deviation",
POPULATION_VARIANCE = "Population Variance",
SAMPLE_STANDARD_DEVIATION = "Sample Standard Deviation",
SAMPLE_VARIANCE = "Sample Variance",
SUM = "Sum"
}
export declare type AggregateFunctionKeys = keyof typeof AggregateFunctionType;
export declare const AGGREGATE_FUNCTION_KEYS: Map<AggregateFunctionType, "AVERAGE" | "COUNT" | "MAXIMUM" | "MEDIAN" | "MINIMUM" | "SUM">;
export declare const AGGREGATE_FUNCTION_KEYS: Map<AggregateFunctionType, "AVERAGE" | "COUNT" | "MAXIMUM" | "MEDIAN" | "MINIMUM" | "MODE" | "POPULATION_STANDARD_DEVIATION" | "POPULATION_VARIANCE" | "SAMPLE_STANDARD_DEVIATION" | "SAMPLE_VARIANCE" | "SUM">;

@@ -11,2 +11,7 @@ "use strict";

AggregateFunctionType["MINIMUM"] = "Minimum";
AggregateFunctionType["MODE"] = "Mode";
AggregateFunctionType["POPULATION_STANDARD_DEVIATION"] = "Population Standard Deviation";
AggregateFunctionType["POPULATION_VARIANCE"] = "Population Variance";
AggregateFunctionType["SAMPLE_STANDARD_DEVIATION"] = "Sample Standard Deviation";
AggregateFunctionType["SAMPLE_VARIANCE"] = "Sample Variance";
AggregateFunctionType["SUM"] = "Sum";

@@ -13,0 +18,0 @@ })(AggregateFunctionType = exports.AggregateFunctionType || (exports.AggregateFunctionType = {}));

2

dist/CqlLibrary.d.ts
import { Model } from "./Model";
import { ProgramUseContext } from "./ProgramUseContext";
export interface CqlLibrary {

@@ -19,3 +18,2 @@ id: string;

experimental?: boolean;
programUseContext?: ProgramUseContext;
}
export declare enum GroupScoring {
SELECT = "Select",
COHORT = "Cohort",

@@ -3,0 +4,0 @@ CONTINUOUS_VARIABLE = "Continuous Variable",

export * from "./Measure";
export * from "./Population";
export * from "./MeasurePopulation";
export * from "./MeasureScoring";

@@ -7,6 +7,1 @@ export * from "./Model";

export * from "./CqlLibrary";
export * from "./GroupScoring";
export * from "./MeasureGroupTypes";
export * from "./AggregateFunctionType";
export * from "./Organization";
export * from "./ProgramUseContext";

@@ -26,3 +26,1 @@ "use strict";

__exportStar(require("./AggregateFunctionType"), exports);
__exportStar(require("./Organization"), exports);
__exportStar(require("./ProgramUseContext"), exports);
import { Model } from "./Model";
import { Population, PopulationType } from "./Population";
import { TestCase } from "./TestCase";
import { MeasureGroupTypes } from "./MeasureGroupTypes";
import { AggregateFunctionType } from "./AggregateFunctionType";
import { MeasureScoring } from "./MeasureScoring";
import { PopulationType } from "./MeasurePopulation";
export interface MeasureMetadata {
steward?: string;
developers?: string[];
description?: string;

@@ -13,79 +10,23 @@ copyright?: string;

rationale?: string;
author?: string;
guidance?: string;
clinicalRecommendation?: string;
draft?: boolean;
references?: Array<Reference>;
endorsements?: Array<Endorsement>;
riskAdjustment?: string;
definition?: string;
experimental?: boolean;
transmissionFormat?: string;
supplementalDataElements?: string;
}
export interface Reference {
id?: string;
referenceText?: string;
referenceType?: string;
}
export interface Endorsement {
id?: string;
endorser?: string;
endorsementId?: string;
}
export interface Stratification {
id: string;
description?: string;
cqlDefinition?: string;
association?: PopulationType;
}
export interface MeasureObservation {
id?: string;
definition?: string;
description?: string;
criteriaReference?: string;
aggregateMethod?: AggregateFunctionType;
}
export interface Group {
id: string;
scoring?: string;
populations?: Population[];
measureObservations?: MeasureObservation[];
population?: PopulationType;
groupDescription?: string;
rateAggregation?: string;
improvementNotation?: string;
scoringUnit?: string;
stratifications?: Stratification[];
measureGroupTypes: MeasureGroupTypes[];
populationBasis?: string;
}
export interface Acl {
userId: string;
roles: Array<string>;
}
export declare enum MeasureErrorType {
MISSING_ELM = "MISSING_ELM",
ERRORS_ELM_JSON = "ERRORS_ELM_JSON",
MISMATCH_CQL_POPULATION_RETURN_TYPES = "MISMATCH_CQL_POPULATION_RETURN_TYPES",
MISMATCH_CQL_RISK_ADJUSTMENT = "MISMATCH_CQL_RISK_ADJUSTMENT",
MISMATCH_CQL_SUPPLEMENTAL_DATA = "MISMATCH_CQL_SUPPLEMENTAL_DATA"
}
export interface SupplementalData {
definition: string;
description?: string;
}
export declare type RiskAdjustment = SupplementalData;
export interface Measure {
id: string;
versionId: string;
cmsId?: string;
active: boolean;
measureHumanReadableId: string;
measureSetId: string;
version: string;
version: number;
revisionNumber: number;
state: string;
measureName: string;
cqlLibraryName: string;
ecqmTitle: string;
measureScoring: MeasureScoring | "";
cqlErrors?: boolean;
errors?: MeasureErrorType[];
cql: string;

@@ -102,6 +43,2 @@ createdAt: string;

elmJson?: string;
testCases?: Array<TestCase>;
acls?: Array<Acl>;
supplementalData?: Array<SupplementalData>;
riskAdjustment?: Array<RiskAdjustment>;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MeasureErrorType = void 0;
var MeasureErrorType;
(function (MeasureErrorType) {
MeasureErrorType["MISSING_ELM"] = "MISSING_ELM";
MeasureErrorType["ERRORS_ELM_JSON"] = "ERRORS_ELM_JSON";
MeasureErrorType["MISMATCH_CQL_POPULATION_RETURN_TYPES"] = "MISMATCH_CQL_POPULATION_RETURN_TYPES";
MeasureErrorType["MISMATCH_CQL_RISK_ADJUSTMENT"] = "MISMATCH_CQL_RISK_ADJUSTMENT";
MeasureErrorType["MISMATCH_CQL_SUPPLEMENTAL_DATA"] = "MISMATCH_CQL_SUPPLEMENTAL_DATA";
})(MeasureErrorType = exports.MeasureErrorType || (exports.MeasureErrorType = {}));
export declare enum Model {
QICORE = "QI-Core v4.1.1"
QICORE = "QI-Core"
}

@@ -10,7 +10,5 @@ export declare enum PopulationType {

MEASURE_POPULATION_EXCLUSION = "measurePopulationExclusion",
MEASURE_OBSERVATION = "measureObservation",
DENOMINATOR_OBSERVATION = "denominatorObservation",
NUMERATOR_OBSERVATION = "numeratorObservation",
MEASURE_POPULATION_OBSERVATION = "measurePopulationObservation"
MEASURE_OBSERVATION = "measureObservation"
}
export declare function getPopulationCode(populationType: PopulationType): string;
export interface Population {

@@ -21,3 +19,2 @@ id?: string;

associationType?: string;
description?: string;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PopulationType = void 0;
exports.getPopulationCode = exports.PopulationType = void 0;
var PopulationType;

@@ -15,5 +15,17 @@ (function (PopulationType) {

PopulationType["MEASURE_OBSERVATION"] = "measureObservation";
PopulationType["DENOMINATOR_OBSERVATION"] = "denominatorObservation";
PopulationType["NUMERATOR_OBSERVATION"] = "numeratorObservation";
PopulationType["MEASURE_POPULATION_OBSERVATION"] = "measurePopulationObservation";
})(PopulationType = exports.PopulationType || (exports.PopulationType = {}));
const PopulationCodeMap = {
initialPopulation: "IPP",
numerator: "NUMER",
numeratorExclusion: "NUMEX",
denominator: "DENOM",
denominatorExclusion: "DENEX",
denominatorException: "DENEXCEP",
measurePopulation: "MSRPOPL",
measurePopulationExclusion: "MSRPOPLEX",
measureObservation: "OBSERV",
};
function getPopulationCode(populationType) {
return PopulationCodeMap[populationType];
}
exports.getPopulationCode = getPopulationCode;

@@ -1,2 +0,2 @@

import { PopulationType } from "./Population";
import { MeasurePopulation } from "./MeasurePopulation";
export interface TestCase {

@@ -15,3 +15,2 @@ id: string;

groupPopulations: GroupPopulation[];
validResource: boolean;
hapiOperationOutcome: HapiOperationOutcome;

@@ -22,44 +21,20 @@ }

scoring: string;
populationBasis: string;
populationValues: PopulationExpectedValue[];
stratificationValues: StratificationExpectedValue[];
}
export interface PopulationExpectedValue {
id: string;
criteriaReference?: string;
name: PopulationType;
expected: boolean | number;
actual?: boolean | number;
name: MeasurePopulation;
expected: boolean;
}
export interface StratificationExpectedValue {
id: string;
criteriaReference?: string;
name: string;
expected: boolean | number;
actual?: boolean | number;
}
export interface DisplayGroupPopulation {
groupId: string;
scoring: string;
populationBasis: string;
populationValues: DisplayPopulationValue[];
stratificationValues: DisplayStratificationValue[];
}
export interface DisplayPopulationValue {
name: PopulationType;
actual?: boolean | number;
id: string;
criteriaReference?: string;
expected: boolean | number;
name: MeasurePopulation;
expected: boolean;
actual: boolean;
}
export interface DisplayStratificationValue {
name: string;
actual?: boolean | number;
id: string;
criteriaReference?: string;
expected: boolean | number;
}
export interface HapiOperationOutcome {
code: number;
successful: boolean;
message: string;

@@ -66,0 +41,0 @@ outcomeResponse: HapiOutcomeResponse;

{
"name": "@madie/madie-models",
"version": "1.3.11",
"version": "1.3.12",
"description": "Models for MADiE Project",

@@ -5,0 +5,0 @@ "scripts": {

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