gcp-nrces-fhir
Version:
Google cloud healthcare api NRCES FHIR implimenataion
130 lines • 3.95 kB
TypeScript
import { CODEABLE_CONCEPT, IDENTTIFIER, MULTI_RESOURCE, PERIOD } from "../config";
import { ResourceMaster } from "../Interfaces";
import ResourceMain from "./ResourceMai";
declare const CoverageStatus: readonly ["active", "cancelled", "draft", "entered-in-error"];
declare type CoverageStatus = typeof CoverageStatus[number];
declare const CoverageKind: readonly ["insurance", "self-pay", "other"];
declare type CoverageKind = typeof CoverageKind[number];
interface party extends MULTI_RESOURCE {
resource: "Patient" | "RelatedPerson" | "Organization";
}
interface policyHolder extends MULTI_RESOURCE {
resource: "Patient" | "RelatedPerson" | "Organization";
}
interface subscriber extends MULTI_RESOURCE {
resource: "Patient" | "RelatedPerson";
}
interface payer extends MULTI_RESOURCE {
resource: "Patient" | "RelatedPerson" | "Organization";
}
interface SAMPLE_QUANTITY {
value: number;
unit: string;
system: string;
code: string;
}
interface MONEY {
value: number;
currency: string;
}
interface costToBeneficiary {
type?: CODEABLE_CONCEPT;
category?: CODEABLE_CONCEPT;
network?: CODEABLE_CONCEPT;
unit?: CODEABLE_CONCEPT;
term?: CODEABLE_CONCEPT;
value?: SAMPLE_QUANTITY | MONEY;
exception?: {
type: CODEABLE_CONCEPT;
period?: PERIOD;
}[];
}
export interface COVERAGE {
id?: string;
identifier: IDENTTIFIER[];
text: string;
status: CoverageStatus;
kind: CoverageKind;
paymentBy?: {
party: party;
responsibility?: string;
}[];
type?: CODEABLE_CONCEPT;
policyHolder?: policyHolder;
subscriber?: subscriber;
subscriberId?: IDENTTIFIER[];
beneficiaryPatientId: string;
dependent: string;
relationship?: CODEABLE_CONCEPT;
period?: PERIOD;
insurerOrganizationId?: string;
payer: payer[];
class?: {
type: CODEABLE_CONCEPT;
value: IDENTTIFIER;
name: string;
}[];
order?: number;
network?: string;
costToBeneficiary?: costToBeneficiary[];
subrogation?: boolean;
contractId?: string[];
insurancePlanId?: string;
}
export declare class Coverage extends ResourceMain implements ResourceMaster {
getFHIR(options: COVERAGE): {
id: string | undefined;
identifier: IDENTTIFIER[];
meta: {
lastUpdated: string;
profile: string[];
};
text: {
status: string;
div: string;
};
status: "active" | "entered-in-error" | "cancelled" | "draft";
kind: "other" | "insurance" | "self-pay";
paymentBy: {
party: {
reference: string;
};
responsibility: string | undefined;
}[] | undefined;
policyHolder: {
reference: string;
} | undefined;
subscriber: {
reference: string;
} | undefined;
beneficiary: {
reference: string;
};
dependent: string;
relationship: CODEABLE_CONCEPT | undefined;
payer: any[];
period: PERIOD | undefined;
insurer: {
reference: string;
} | undefined;
class: {
type: CODEABLE_CONCEPT;
value: IDENTTIFIER;
name: string;
}[] | undefined;
order: number | undefined;
network: string | undefined;
costToBeneficiary: costToBeneficiary[] | undefined;
subrogation: boolean | undefined;
contract: {
reference: string;
}[] | undefined;
insurancePlan: {
reference: string;
} | undefined;
};
convertFhirToObject(options: any): void;
statusArray?: Function | undefined;
}
export {};
//# sourceMappingURL=Coverage%20copy.d.ts.map