UNPKG

@careevolution/orchestrate

Version:

A TypeScript client for the Orchestrate API

45 lines (44 loc) 2.13 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.IdentityMonitoringApi = void 0; class IdentityMonitoringApi { constructor(httpHandler) { this.httpHandler = httpHandler; } toString() { return `IdentityMonitoringApi(${this.httpHandler.toString()})`; } /** * Queries identifier metrics. The identifier metrics help you understand: * - How many records you have stored. * - How often different kinds of demographic identifiers are found in your records. * - What kind and how many demographic identifiers different data sources provide. * @returns The identifier metrics. * @link https://orchestrate.docs.careevolution.com/identity/metrics/identifier.html */ identifierMetrics() { return __awaiter(this, void 0, void 0, function* () { return this.httpHandler.get("/monitoring/v1/identifierMetrics"); }); } /** * Queries overlap metrics. The overlap metrics help you understand how many patients have records in multiple source systems. * @returns The overlap metrics. * @link https://orchestrate.docs.careevolution.com/identity/metrics/overlap.html */ overlapMetrics() { return __awaiter(this, void 0, void 0, function* () { return this.httpHandler.get("/monitoring/v1/overlapMetrics"); }); } } exports.IdentityMonitoringApi = IdentityMonitoringApi;