@careevolution/orchestrate
Version:
A TypeScript client for the Orchestrate API
25 lines (24 loc) • 1.31 kB
TypeScript
import { Bundle, MeasureReport, Measure, Patient, RiskAssessment, OperationOutcome } from "fhir/r4.js";
import { IHttpHandler } from "./httpHandler.js";
declare const raSegments: readonly ["community nondual aged", "community full benefit dual aged", "community full benefit dual disabled", "community nondual disabled", "long term institutional"];
declare const hccVersions: readonly ["22", "23", "24"];
export type InsightRiskProfileRequest = {
content: Bundle;
hccVersion?: (typeof hccVersions)[number];
periodEndDate?: string;
raSegment?: (typeof raSegments)[number];
};
export type InsightRiskProfileResource = Patient | MeasureReport | Measure | RiskAssessment | OperationOutcome;
export type InsightRiskProfileResponse = Bundle<InsightRiskProfileResource>;
export declare class InsightApi {
private httpHandler;
constructor(httpHandler: IHttpHandler);
/**
* Computes an HCC Risk Adjustment Profile for the provided patient
* @param request A FHIR R4 Bundle containing data for a single patient
* @returns A new FHIR R4 Bundle containing measure and assessment resources
* @link https://rosetta-api.docs.careevolution.com/insight/risk_profile.html
*/
riskProfile(request: InsightRiskProfileRequest): Promise<InsightRiskProfileResponse>;
}
export {};