candidhealth 1.17.3 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +2 -2
- package/api/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -0
- package/api/resources/commons/types/EmrPayerCrosswalk.js +1 -0
- package/api/resources/encounters/resources/v4/client/Client.js +25 -2
- package/api/resources/encounters/resources/v4/client/getAll.d.ts +19 -1
- package/api/resources/encounters/resources/v4/client/getAll.js +33 -0
- package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -0
- package/api/resources/financials/types/Allocation.d.ts +2 -0
- package/api/resources/financials/types/AllocationCreate.d.ts +1 -1
- package/api/resources/financials/types/AllocationEarmarkType.d.ts +2 -2
- package/api/resources/financials/types/BalanceEarmark.d.ts +11 -0
- package/api/resources/financials/types/BalanceEarmark.js +3 -0
- package/api/resources/financials/types/index.d.ts +1 -0
- package/api/resources/financials/types/index.js +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +7 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/get.js +11 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +11 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +4 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +28 -6
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +7 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +11 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.d.ts +15 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.js +3 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +3 -1
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +8 -2
- package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +2 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +12 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +76 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +25 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +66 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.d.ts +7 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.js +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +7 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +6 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -0
- package/dist/api/resources/commons/types/EmrPayerCrosswalk.js +1 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.js +25 -2
- package/dist/api/resources/encounters/resources/v4/client/getAll.d.ts +19 -1
- package/dist/api/resources/encounters/resources/v4/client/getAll.js +33 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -0
- package/dist/api/resources/financials/types/Allocation.d.ts +2 -0
- package/dist/api/resources/financials/types/AllocationCreate.d.ts +1 -1
- package/dist/api/resources/financials/types/AllocationEarmarkType.d.ts +2 -2
- package/dist/api/resources/financials/types/BalanceEarmark.d.ts +11 -0
- package/dist/api/resources/financials/types/BalanceEarmark.js +3 -0
- package/dist/api/resources/financials/types/index.d.ts +1 -0
- package/dist/api/resources/financials/types/index.js +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +7 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.js +11 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +4 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +28 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +7 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +11 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.d.ts +15 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.js +3 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +3 -1
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +8 -2
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +12 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +76 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +25 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +66 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.js +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +6 -0
- package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/getAll.d.ts +22 -0
- package/dist/serialization/resources/encounters/resources/v4/client/getAll.js +81 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.js +2 -1
- package/dist/serialization/resources/financials/types/Allocation.d.ts +2 -0
- package/dist/serialization/resources/financials/types/Allocation.js +2 -0
- package/dist/serialization/resources/financials/types/BalanceEarmark.d.ts +11 -0
- package/dist/serialization/resources/financials/types/BalanceEarmark.js +43 -0
- package/dist/serialization/resources/financials/types/index.d.ts +1 -0
- package/dist/serialization/resources/financials/types/index.js +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/get.d.ts +12 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/get.js +69 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +37 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +5 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +5 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +12 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +69 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +46 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +93 -2
- package/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -1
- package/serialization/resources/commons/types/EmrPayerCrosswalk.js +1 -1
- package/serialization/resources/encounters/resources/v4/client/getAll.d.ts +22 -0
- package/serialization/resources/encounters/resources/v4/client/getAll.js +81 -0
- package/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/client/index.js +2 -1
- package/serialization/resources/financials/types/Allocation.d.ts +2 -0
- package/serialization/resources/financials/types/Allocation.js +2 -0
- package/serialization/resources/financials/types/BalanceEarmark.d.ts +11 -0
- package/serialization/resources/financials/types/BalanceEarmark.js +43 -0
- package/serialization/resources/financials/types/index.d.ts +1 -0
- package/serialization/resources/financials/types/index.js +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/client/get.d.ts +12 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/client/get.js +69 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +37 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/index.js +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +5 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +5 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +1 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +12 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +69 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +46 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -44,4 +44,5 @@ exports.CoverageBenefits = core.serialization.object({
|
|
|
44
44
|
serviceSpecificCoverage: core.serialization.property("service_specific_coverage", core.serialization.list(ServiceCoverage_1.ServiceCoverage).optional()),
|
|
45
45
|
benefitsRelatedEntities: core.serialization.property("benefits_related_entities", core.serialization.list(BenefitsRelatedEntity_1.BenefitsRelatedEntity).optional()),
|
|
46
46
|
notes: core.serialization.string().optional(),
|
|
47
|
+
autoUpdatedEligibilityCheckId: core.serialization.string().optional(),
|
|
47
48
|
});
|
|
@@ -55,4 +55,5 @@ exports.MutableCoverage = core.serialization.object({
|
|
|
55
55
|
latestEligibilityCheck: core.serialization.property("latest_eligibility_check", LatestEligibilityCheck_1.LatestEligibilityCheck.optional()),
|
|
56
56
|
benefits: CoverageBenefits_1.CoverageBenefits.optional(),
|
|
57
57
|
orcon: core.serialization.boolean().optional(),
|
|
58
|
+
autoUpdateEnabled: core.serialization.property("auto_update_enabled", core.serialization.boolean().optional()),
|
|
58
59
|
});
|
|
@@ -11,6 +11,7 @@ export declare namespace AppointmentListItem {
|
|
|
11
11
|
appointment: Appointment.Raw;
|
|
12
12
|
patient: MutablePatientWithMrn.Raw;
|
|
13
13
|
primary_coverage?: MutableCoverage.Raw | null;
|
|
14
|
+
secondary_coverage?: MutableCoverage.Raw | null;
|
|
14
15
|
primary_service_type?: UniversalServiceIdentifier.Raw | null;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -44,5 +44,6 @@ exports.AppointmentListItem = core.serialization.object({
|
|
|
44
44
|
appointment: Appointment_1.Appointment,
|
|
45
45
|
patient: MutablePatientWithMrn_1.MutablePatientWithMrn,
|
|
46
46
|
primaryCoverage: core.serialization.property("primary_coverage", MutableCoverage_1.MutableCoverage.optional()),
|
|
47
|
+
secondaryCoverage: core.serialization.property("secondary_coverage", MutableCoverage_1.MutableCoverage.optional()),
|
|
47
48
|
primaryServiceType: core.serialization.property("primary_service_type", UniversalServiceIdentifier_1.UniversalServiceIdentifier.optional()),
|
|
48
49
|
});
|
package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts
CHANGED
|
@@ -12,5 +12,7 @@ export declare namespace PatientListItem {
|
|
|
12
12
|
secondary_coverage?: MutableCoverage.Raw | null;
|
|
13
13
|
tertiary_coverage?: MutableCoverage.Raw | null;
|
|
14
14
|
next_appointment?: MutableAppointment.Raw | null;
|
|
15
|
+
primary_mrn?: string | null;
|
|
16
|
+
alternative_mrns: string[];
|
|
15
17
|
}
|
|
16
18
|
}
|
package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js
CHANGED
|
@@ -45,4 +45,6 @@ exports.PatientListItem = core.serialization.object({
|
|
|
45
45
|
secondaryCoverage: core.serialization.property("secondary_coverage", MutableCoverage_1.MutableCoverage.optional()),
|
|
46
46
|
tertiaryCoverage: core.serialization.property("tertiary_coverage", MutableCoverage_1.MutableCoverage.optional()),
|
|
47
47
|
nextAppointment: core.serialization.property("next_appointment", MutableAppointment_1.MutableAppointment.optional()),
|
|
48
|
+
primaryMrn: core.serialization.property("primary_mrn", core.serialization.string().optional()),
|
|
49
|
+
alternativeMrns: core.serialization.property("alternative_mrns", core.serialization.list(core.serialization.string())),
|
|
48
50
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as CandidApi from "../../../../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../../../../index";
|
|
4
|
+
import { ErrorBase4Xx } from "../../../../common/types/ErrorBase4Xx";
|
|
5
|
+
export declare const Error: core.serialization.Schema<serializers.preEncounter.patients.v1.getCoverageSnapshot.Error.Raw, CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error>;
|
|
6
|
+
export declare namespace Error {
|
|
7
|
+
type Raw = Error.NotFoundError;
|
|
8
|
+
interface NotFoundError {
|
|
9
|
+
errorName: "NotFoundError";
|
|
10
|
+
content: ErrorBase4Xx.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Error = void 0;
|
|
49
|
+
const CandidApi = __importStar(require("../../../../../../../../api/index"));
|
|
50
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
51
|
+
const ErrorBase4Xx_1 = require("../../../../common/types/ErrorBase4Xx");
|
|
52
|
+
exports.Error = core.serialization
|
|
53
|
+
.union("errorName", {
|
|
54
|
+
NotFoundError: core.serialization.object({
|
|
55
|
+
content: ErrorBase4Xx_1.ErrorBase4Xx,
|
|
56
|
+
}),
|
|
57
|
+
})
|
|
58
|
+
.transform({
|
|
59
|
+
transform: (value) => {
|
|
60
|
+
switch (value.errorName) {
|
|
61
|
+
case "NotFoundError":
|
|
62
|
+
return CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error.notFoundError(value.content);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
untransform: (_a) => {
|
|
66
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
67
|
+
return value;
|
|
68
|
+
},
|
|
69
|
+
});
|
package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * as createWithMrn from "./createWithMrn";
|
|
|
3
3
|
export * as deactivate from "./deactivate";
|
|
4
4
|
export * as get from "./get";
|
|
5
5
|
export * as getByMrn from "./getByMrn";
|
|
6
|
+
export * as getCoverageSnapshot from "./getCoverageSnapshot";
|
|
6
7
|
export * as getHistory from "./getHistory";
|
|
7
8
|
export * as reactivate from "./reactivate";
|
|
8
9
|
export * as scan from "./scan";
|
package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js
CHANGED
|
@@ -33,12 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.update = exports.searchProviders = exports.search = exports.scan = exports.reactivate = exports.getHistory = exports.getByMrn = exports.get = exports.deactivate = exports.createWithMrn = exports.create = void 0;
|
|
36
|
+
exports.update = exports.searchProviders = exports.search = exports.scan = exports.reactivate = exports.getHistory = exports.getCoverageSnapshot = exports.getByMrn = exports.get = exports.deactivate = exports.createWithMrn = exports.create = void 0;
|
|
37
37
|
exports.create = __importStar(require("./create"));
|
|
38
38
|
exports.createWithMrn = __importStar(require("./createWithMrn"));
|
|
39
39
|
exports.deactivate = __importStar(require("./deactivate"));
|
|
40
40
|
exports.get = __importStar(require("./get"));
|
|
41
41
|
exports.getByMrn = __importStar(require("./getByMrn"));
|
|
42
|
+
exports.getCoverageSnapshot = __importStar(require("./getCoverageSnapshot"));
|
|
42
43
|
exports.getHistory = __importStar(require("./getHistory"));
|
|
43
44
|
exports.reactivate = __importStar(require("./reactivate"));
|
|
44
45
|
exports.scan = __importStar(require("./scan"));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../../../../index";
|
|
4
|
+
import { Coverage } from "../../../../coverages/resources/v1/types/Coverage";
|
|
5
|
+
import { Patient } from "./Patient";
|
|
6
|
+
export declare const PatientCoverageSnapshot: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.PatientCoverageSnapshot.Raw, CandidApi.preEncounter.patients.v1.PatientCoverageSnapshot>;
|
|
7
|
+
export declare namespace PatientCoverageSnapshot {
|
|
8
|
+
interface Raw {
|
|
9
|
+
patient: Patient.Raw;
|
|
10
|
+
primary_coverage?: Coverage.Raw | null;
|
|
11
|
+
secondary_coverage?: Coverage.Raw | null;
|
|
12
|
+
tertiary_coverage?: Coverage.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PatientCoverageSnapshot = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
39
|
+
const Coverage_1 = require("../../../../coverages/resources/v1/types/Coverage");
|
|
40
|
+
const Patient_1 = require("./Patient");
|
|
41
|
+
exports.PatientCoverageSnapshot = core.serialization.object({
|
|
42
|
+
patient: Patient_1.Patient,
|
|
43
|
+
primaryCoverage: core.serialization.property("primary_coverage", Coverage_1.Coverage.optional()),
|
|
44
|
+
secondaryCoverage: core.serialization.property("secondary_coverage", Coverage_1.Coverage.optional()),
|
|
45
|
+
tertiaryCoverage: core.serialization.property("tertiary_coverage", Coverage_1.Coverage.optional()),
|
|
46
|
+
});
|
package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./MutablePatient";
|
|
|
11
11
|
export * from "./MutablePatientWithMrn";
|
|
12
12
|
export * from "./OriginationDetail";
|
|
13
13
|
export * from "./Patient";
|
|
14
|
+
export * from "./PatientCoverageSnapshot";
|
|
14
15
|
export * from "./PatientPage";
|
|
15
16
|
export * from "./PatientSortField";
|
|
16
17
|
export * from "./Referral";
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./MutablePatient"), exports);
|
|
|
27
27
|
__exportStar(require("./MutablePatientWithMrn"), exports);
|
|
28
28
|
__exportStar(require("./OriginationDetail"), exports);
|
|
29
29
|
__exportStar(require("./Patient"), exports);
|
|
30
|
+
__exportStar(require("./PatientCoverageSnapshot"), exports);
|
|
30
31
|
__exportStar(require("./PatientPage"), exports);
|
|
31
32
|
__exportStar(require("./PatientSortField"), exports);
|
|
32
33
|
__exportStar(require("./Referral"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.18.0";
|
package/version.js
CHANGED