New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@madie/madie-models

Package Overview
Dependencies
Maintainers
7
Versions
108
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.12 to 1.3.13

dist/Organization.d.ts

7

dist/AggregateFunctionType.d.ts

@@ -7,10 +7,5 @@ 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" | "MODE" | "POPULATION_STANDARD_DEVIATION" | "POPULATION_VARIANCE" | "SAMPLE_STANDARD_DEVIATION" | "SAMPLE_VARIANCE" | "SUM">;
export declare const AGGREGATE_FUNCTION_KEYS: Map<AggregateFunctionType, "AVERAGE" | "COUNT" | "MAXIMUM" | "MEDIAN" | "MINIMUM" | "SUM">;

@@ -11,7 +11,2 @@ "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";

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

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

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

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

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

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

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

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

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

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

@@ -10,23 +13,80 @@ 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;
endorserSystemId?: 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;
population?: PopulationType;
populations?: Population[];
measureObservations?: MeasureObservation[];
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: number;
revisionNumber: number;
version: string;
state: string;
measureName: string;
cqlLibraryName: string;
measureScoring: MeasureScoring | "";
ecqmTitle: string;
cqlErrors?: boolean;
errors?: MeasureErrorType[];
cql: string;

@@ -43,2 +103,6 @@ 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"
QICORE = "QI-Core v4.1.1"
}

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

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

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

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

@@ -15,17 +15,5 @@ (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 { MeasurePopulation } from "./MeasurePopulation";
import { PopulationType } from "./Population";
export interface TestCase {

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

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

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

scoring: string;
populationBasis: string;
populationValues: PopulationExpectedValue[];
stratificationValues: StratificationExpectedValue[];
}
export interface PopulationExpectedValue {
name: MeasurePopulation;
expected: boolean;
id: string;
criteriaReference?: string;
name: PopulationType;
expected: boolean | number;
actual?: boolean | number;
}
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: MeasurePopulation;
expected: boolean;
actual: boolean;
name: PopulationType;
actual?: boolean | number;
id: string;
criteriaReference?: string;
expected: boolean | number;
}
export interface DisplayStratificationValue {
name: string;
actual?: boolean | number;
id: string;
criteriaReference?: string;
expected: boolean | number;
}
export interface HapiOperationOutcome {
code: number;
successful: boolean;
message: string;

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

{
"name": "@madie/madie-models",
"version": "1.3.12",
"version": "1.3.13",
"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