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
package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts
CHANGED
|
@@ -30,6 +30,17 @@ export declare class V1 {
|
|
|
30
30
|
/**
|
|
31
31
|
* Gets all Visits within a given time range. The return list is ordered by start_time ascending.
|
|
32
32
|
*
|
|
33
|
+
* **IMPORTANT:** This endpoint requires a date filter on `appointment.startTimestamp` to ensure acceptable query performance.
|
|
34
|
+
* Without date filtering, the query can take 50+ seconds on large datasets due to grouping and aggregation operations.
|
|
35
|
+
*
|
|
36
|
+
* Example filters:
|
|
37
|
+
* - `appointment.startTimestamp|gt|2024-01-01` - appointments after January 1, 2024
|
|
38
|
+
* - `appointment.startTimestamp|eq|2024-12-08` - appointments on December 8, 2024
|
|
39
|
+
* - `appointment.startTimestamp|lt|2024-12-31` - appointments before December 31, 2024
|
|
40
|
+
*
|
|
41
|
+
* You can combine the date filter with other filters using commas:
|
|
42
|
+
* - `appointment.startTimestamp|gt|2024-01-01,appointment.status|eq|PENDING`
|
|
43
|
+
*
|
|
33
44
|
* @param {CandidApi.preEncounter.appointments.v1.VisitsRequest} request
|
|
34
45
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
46
|
*
|
package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js
CHANGED
|
@@ -136,6 +136,17 @@ class V1 {
|
|
|
136
136
|
/**
|
|
137
137
|
* Gets all Visits within a given time range. The return list is ordered by start_time ascending.
|
|
138
138
|
*
|
|
139
|
+
* **IMPORTANT:** This endpoint requires a date filter on `appointment.startTimestamp` to ensure acceptable query performance.
|
|
140
|
+
* Without date filtering, the query can take 50+ seconds on large datasets due to grouping and aggregation operations.
|
|
141
|
+
*
|
|
142
|
+
* Example filters:
|
|
143
|
+
* - `appointment.startTimestamp|gt|2024-01-01` - appointments after January 1, 2024
|
|
144
|
+
* - `appointment.startTimestamp|eq|2024-12-08` - appointments on December 8, 2024
|
|
145
|
+
* - `appointment.startTimestamp|lt|2024-12-31` - appointments before December 31, 2024
|
|
146
|
+
*
|
|
147
|
+
* You can combine the date filter with other filters using commas:
|
|
148
|
+
* - `appointment.startTimestamp|gt|2024-01-01,appointment.status|eq|PENDING`
|
|
149
|
+
*
|
|
139
150
|
* @param {CandidApi.preEncounter.appointments.v1.VisitsRequest} request
|
|
140
151
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
152
|
*
|
|
@@ -10,5 +10,9 @@ export interface VisitsRequest {
|
|
|
10
10
|
sortField?: CandidApi.preEncounter.lists.v1.SortFieldString;
|
|
11
11
|
/** Defaults to ascending. */
|
|
12
12
|
sortDirection?: CandidApi.preEncounter.SortDirection;
|
|
13
|
+
/**
|
|
14
|
+
* **Required:** Must include a date filter on appointment.startTimestamp (using gt, lt, or eq operators).
|
|
15
|
+
* Example: appointment.startTimestamp|gt|2024-01-01
|
|
16
|
+
*/
|
|
13
17
|
filters?: CandidApi.preEncounter.FilterQueryString;
|
|
14
18
|
}
|
package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export interface Visit {
|
|
|
8
8
|
startTime: Date;
|
|
9
9
|
status: CandidApi.preEncounter.appointments.v1.AppointmentStatus;
|
|
10
10
|
primaryCoverageStatus?: CandidApi.preEncounter.coverages.v1.CoverageStatus;
|
|
11
|
+
secondaryCoverageStatus?: CandidApi.preEncounter.coverages.v1.CoverageStatus;
|
|
11
12
|
}
|
|
@@ -94,15 +94,17 @@ export declare class V1 {
|
|
|
94
94
|
get(id: CandidApi.preEncounter.CoverageId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage, CandidApi.preEncounter.coverages.v1.get.Error>>;
|
|
95
95
|
private __get;
|
|
96
96
|
/**
|
|
97
|
-
* Gets a coverage
|
|
97
|
+
* Gets a coverage's history. Full history is returned if no filters are
|
|
98
|
+
* defined. The return list is ordered by version, defaulting to ascending.
|
|
98
99
|
*
|
|
99
100
|
* @param {CandidApi.preEncounter.CoverageId} id
|
|
101
|
+
* @param {CandidApi.preEncounter.coverages.v1.CoveragesGetHistoryRequest} request
|
|
100
102
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
103
|
*
|
|
102
104
|
* @example
|
|
103
105
|
* await client.preEncounter.coverages.v1.getHistory(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
104
106
|
*/
|
|
105
|
-
getHistory(id: CandidApi.preEncounter.CoverageId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage[], CandidApi.preEncounter.coverages.v1.getHistory.Error>>;
|
|
107
|
+
getHistory(id: CandidApi.preEncounter.CoverageId, request?: CandidApi.preEncounter.coverages.v1.CoveragesGetHistoryRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage[], CandidApi.preEncounter.coverages.v1.getHistory.Error>>;
|
|
106
108
|
private __getHistory;
|
|
107
109
|
/**
|
|
108
110
|
* Returns a list of Coverages based on the search criteria.
|
|
@@ -358,26 +358,47 @@ class V1 {
|
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
|
-
* Gets a coverage
|
|
361
|
+
* Gets a coverage's history. Full history is returned if no filters are
|
|
362
|
+
* defined. The return list is ordered by version, defaulting to ascending.
|
|
362
363
|
*
|
|
363
364
|
* @param {CandidApi.preEncounter.CoverageId} id
|
|
365
|
+
* @param {CandidApi.preEncounter.coverages.v1.CoveragesGetHistoryRequest} request
|
|
364
366
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
365
367
|
*
|
|
366
368
|
* @example
|
|
367
369
|
* await client.preEncounter.coverages.v1.getHistory(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
368
370
|
*/
|
|
369
|
-
getHistory(id, requestOptions) {
|
|
370
|
-
return core.HttpResponsePromise.fromPromise(this.__getHistory(id, requestOptions));
|
|
371
|
+
getHistory(id, request = {}, requestOptions) {
|
|
372
|
+
return core.HttpResponsePromise.fromPromise(this.__getHistory(id, request, requestOptions));
|
|
371
373
|
}
|
|
372
|
-
__getHistory(
|
|
373
|
-
return __awaiter(this,
|
|
374
|
+
__getHistory(id_1) {
|
|
375
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
374
376
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
377
|
+
const { start, end, nonAutoUpdatedCoveragesOnly, sortDirection, limit } = request;
|
|
378
|
+
const _queryParams = {};
|
|
379
|
+
if (start != null) {
|
|
380
|
+
_queryParams.start = start;
|
|
381
|
+
}
|
|
382
|
+
if (end != null) {
|
|
383
|
+
_queryParams.end = end;
|
|
384
|
+
}
|
|
385
|
+
if (nonAutoUpdatedCoveragesOnly != null) {
|
|
386
|
+
_queryParams.non_auto_updated_coverages_only = nonAutoUpdatedCoveragesOnly.toString();
|
|
387
|
+
}
|
|
388
|
+
if (sortDirection != null) {
|
|
389
|
+
_queryParams.sort_direction = serializers.preEncounter.SortDirection.jsonOrThrow(sortDirection, {
|
|
390
|
+
unrecognizedObjectKeys: "strip",
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
if (limit != null) {
|
|
394
|
+
_queryParams.limit = limit.toString();
|
|
395
|
+
}
|
|
375
396
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
376
397
|
const _response = yield core.fetcher({
|
|
377
398
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${core.url.encodePathParam(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
|
|
378
399
|
method: "GET",
|
|
379
400
|
headers: _headers,
|
|
380
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
401
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
381
402
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
382
403
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
383
404
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -400,6 +421,7 @@ class V1 {
|
|
|
400
421
|
}
|
|
401
422
|
if (_response.error.reason === "status-code") {
|
|
402
423
|
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
424
|
+
case "BadRequestError":
|
|
403
425
|
case "NotFoundError":
|
|
404
426
|
return {
|
|
405
427
|
data: {
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type * as core from "../../../../../../../../core";
|
|
2
2
|
import * as CandidApi from "../../../../../../../index";
|
|
3
|
-
export type Error = CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError | CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
|
|
3
|
+
export type Error = CandidApi.preEncounter.coverages.v1.getHistory.Error.BadRequestError | CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError | CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
|
+
interface BadRequestError extends _Utils {
|
|
6
|
+
errorName: "BadRequestError";
|
|
7
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
8
|
+
}
|
|
5
9
|
interface NotFoundError extends _Utils {
|
|
6
10
|
errorName: "NotFoundError";
|
|
7
11
|
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
@@ -14,11 +18,13 @@ export declare namespace Error {
|
|
|
14
18
|
_visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
|
15
19
|
}
|
|
16
20
|
interface _Visitor<_Result> {
|
|
21
|
+
badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
17
22
|
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
18
23
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
26
|
export declare const Error: {
|
|
27
|
+
readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.getHistory.Error.BadRequestError;
|
|
22
28
|
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError;
|
|
23
29
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
|
|
24
30
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.getHistory.Error, visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js
CHANGED
|
@@ -37,6 +37,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Error = void 0;
|
|
38
38
|
const CandidApi = __importStar(require("../../../../../../../index"));
|
|
39
39
|
exports.Error = {
|
|
40
|
+
badRequestError: (value) => {
|
|
41
|
+
return {
|
|
42
|
+
content: value,
|
|
43
|
+
errorName: "BadRequestError",
|
|
44
|
+
_visit: function (visitor) {
|
|
45
|
+
return CandidApi.preEncounter.coverages.v1.getHistory.Error._visit(this, visitor);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
40
49
|
notFoundError: (value) => {
|
|
41
50
|
return {
|
|
42
51
|
content: value,
|
|
@@ -57,6 +66,8 @@ exports.Error = {
|
|
|
57
66
|
},
|
|
58
67
|
_visit: (value, visitor) => {
|
|
59
68
|
switch (value.errorName) {
|
|
69
|
+
case "BadRequestError":
|
|
70
|
+
return visitor.badRequestError(value.content);
|
|
60
71
|
case "NotFoundError":
|
|
61
72
|
return visitor.notFoundError(value.content);
|
|
62
73
|
default:
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface CoveragesGetHistoryRequest {
|
|
7
|
+
start?: string;
|
|
8
|
+
end?: string;
|
|
9
|
+
/** If true, only returns coverages that have NOT been auto-updated by the system. */
|
|
10
|
+
nonAutoUpdatedCoveragesOnly?: boolean;
|
|
11
|
+
/** Defaults to ascending. Sorts by version. */
|
|
12
|
+
sortDirection?: CandidApi.preEncounter.SortDirection;
|
|
13
|
+
/** Must be between 0 and 1000. No default. */
|
|
14
|
+
limit?: number;
|
|
15
|
+
}
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export type { CheckEligibilityRequest } from "./CheckEligibilityRequest";
|
|
|
2
2
|
export type { CoverageGetMultiPaginatedRequest } from "./CoverageGetMultiPaginatedRequest";
|
|
3
3
|
export type { CoverageGetMultiRequest } from "./CoverageGetMultiRequest";
|
|
4
4
|
export type { CoverageScanRequest } from "./CoverageScanRequest";
|
|
5
|
+
export type { CoveragesGetHistoryRequest } from "./CoveragesGetHistoryRequest";
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface MutableCoverage {
|
|
|
17
17
|
latestEligibilityCheck?: CandidApi.preEncounter.coverages.v1.LatestEligibilityCheck;
|
|
18
18
|
/** The eligibility of the patient for the coverage, manually verified by users. */
|
|
19
19
|
benefits?: CandidApi.preEncounter.coverages.v1.CoverageBenefits;
|
|
20
|
-
/** ORCON (Originator Controlled) - When set to true, the Candid system will hide this coverage from downstream integrations. Defaults to false. */
|
|
20
|
+
/** ORCON (Originator Controlled) - When set to true, the Candid system will hide this coverage from downstream integrations. Updates made in the Candid UI will unset this flag. Defaults to false. */
|
|
21
21
|
orcon?: boolean;
|
|
22
|
+
/** Default to true. When set to true, the Candid system will automatically update this coverage with the latest eligibility check benefits information. Auto update behavior is also set at the eligibilityConfig org level configuration. */
|
|
23
|
+
autoUpdateEnabled?: boolean;
|
|
22
24
|
}
|
|
@@ -68,7 +68,7 @@ class V1 {
|
|
|
68
68
|
__getPatientList() {
|
|
69
69
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
70
70
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
71
|
-
const { pageToken, limit, sortField, sortDirection, filters } = request;
|
|
71
|
+
const { pageToken, limit, sortField, sortDirection, filters, includeDeactivated } = request;
|
|
72
72
|
const _queryParams = {};
|
|
73
73
|
if (pageToken != null) {
|
|
74
74
|
_queryParams.page_token = pageToken;
|
|
@@ -87,6 +87,9 @@ class V1 {
|
|
|
87
87
|
if (filters != null) {
|
|
88
88
|
_queryParams.filters = filters;
|
|
89
89
|
}
|
|
90
|
+
if (includeDeactivated != null) {
|
|
91
|
+
_queryParams.include_deactivated = includeDeactivated.toString();
|
|
92
|
+
}
|
|
90
93
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
91
94
|
const _response = yield core.fetcher({
|
|
92
95
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/patient"),
|
|
@@ -156,7 +159,7 @@ class V1 {
|
|
|
156
159
|
__getAppointmentList() {
|
|
157
160
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
158
161
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
159
|
-
const { sortField, sortDirection, limit, pageToken, filters } = request;
|
|
162
|
+
const { sortField, sortDirection, limit, pageToken, filters, includeDeactivated } = request;
|
|
160
163
|
const _queryParams = {};
|
|
161
164
|
if (sortField != null) {
|
|
162
165
|
_queryParams.sort_field = sortField;
|
|
@@ -175,6 +178,9 @@ class V1 {
|
|
|
175
178
|
if (filters != null) {
|
|
176
179
|
_queryParams.filters = filters;
|
|
177
180
|
}
|
|
181
|
+
if (includeDeactivated != null) {
|
|
182
|
+
_queryParams.include_deactivated = includeDeactivated.toString();
|
|
183
|
+
}
|
|
178
184
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
179
185
|
const _response = yield core.fetcher({
|
|
180
186
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/appointment"),
|
|
@@ -12,4 +12,6 @@ export interface AppointmentsGetListRequest {
|
|
|
12
12
|
limit?: number;
|
|
13
13
|
pageToken?: CandidApi.preEncounter.PageToken;
|
|
14
14
|
filters?: CandidApi.preEncounter.FilterQueryString;
|
|
15
|
+
/** If true, includes deactivated appointments in the results. Defaults to false. */
|
|
16
|
+
includeDeactivated?: boolean;
|
|
15
17
|
}
|
|
@@ -11,4 +11,6 @@ export interface PatientListRequest {
|
|
|
11
11
|
/** Defaults to ascending. */
|
|
12
12
|
sortDirection?: CandidApi.preEncounter.SortDirection;
|
|
13
13
|
filters?: CandidApi.preEncounter.FilterQueryString;
|
|
14
|
+
/** If true, includes deactivated patients in the results. Defaults to false. */
|
|
15
|
+
includeDeactivated?: boolean;
|
|
14
16
|
}
|
package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export interface AppointmentListItem {
|
|
|
3
3
|
appointment: CandidApi.preEncounter.appointments.v1.Appointment;
|
|
4
4
|
patient: CandidApi.preEncounter.patients.v1.MutablePatientWithMrn;
|
|
5
5
|
primaryCoverage?: CandidApi.preEncounter.coverages.v1.MutableCoverage;
|
|
6
|
+
secondaryCoverage?: CandidApi.preEncounter.coverages.v1.MutableCoverage;
|
|
6
7
|
primaryServiceType?: CandidApi.preEncounter.appointments.v1.UniversalServiceIdentifier;
|
|
7
8
|
}
|
package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ export interface PatientListItem {
|
|
|
5
5
|
secondaryCoverage?: CandidApi.preEncounter.coverages.v1.MutableCoverage;
|
|
6
6
|
tertiaryCoverage?: CandidApi.preEncounter.coverages.v1.MutableCoverage;
|
|
7
7
|
nextAppointment?: CandidApi.preEncounter.appointments.v1.MutableAppointment;
|
|
8
|
+
primaryMrn?: string;
|
|
9
|
+
alternativeMrns: string[];
|
|
8
10
|
}
|
|
@@ -367,6 +367,18 @@ export declare class V1 {
|
|
|
367
367
|
*/
|
|
368
368
|
getHistory(id: CandidApi.preEncounter.PatientId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient[], CandidApi.preEncounter.patients.v1.getHistory.Error>>;
|
|
369
369
|
private __getHistory;
|
|
370
|
+
/**
|
|
371
|
+
* Gets a patient along with their coverages at a specific point in time. Note that the date passed in is only used to determine what the filing order was for that patient during that time. The actual data returned will always be the latest version of the patient and coverages.
|
|
372
|
+
*
|
|
373
|
+
* @param {CandidApi.preEncounter.PatientId} id
|
|
374
|
+
* @param {CandidApi.preEncounter.patients.v1.GetCoverageSnapshotRequest} request
|
|
375
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* await client.preEncounter.patients.v1.getCoverageSnapshot(CandidApi.preEncounter.PatientId("id"))
|
|
379
|
+
*/
|
|
380
|
+
getCoverageSnapshot(id: CandidApi.preEncounter.PatientId, request?: CandidApi.preEncounter.patients.v1.GetCoverageSnapshotRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.patients.v1.PatientCoverageSnapshot, CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error>>;
|
|
381
|
+
private __getCoverageSnapshot;
|
|
370
382
|
/**
|
|
371
383
|
* Updates a patient. The path must contain the next version number to prevent race conditions. For example, if the current version of the patient is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the patient. Updating historic versions is not supported.
|
|
372
384
|
*
|
|
@@ -822,6 +822,82 @@ class V1 {
|
|
|
822
822
|
};
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
+
/**
|
|
826
|
+
* Gets a patient along with their coverages at a specific point in time. Note that the date passed in is only used to determine what the filing order was for that patient during that time. The actual data returned will always be the latest version of the patient and coverages.
|
|
827
|
+
*
|
|
828
|
+
* @param {CandidApi.preEncounter.PatientId} id
|
|
829
|
+
* @param {CandidApi.preEncounter.patients.v1.GetCoverageSnapshotRequest} request
|
|
830
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
831
|
+
*
|
|
832
|
+
* @example
|
|
833
|
+
* await client.preEncounter.patients.v1.getCoverageSnapshot(CandidApi.preEncounter.PatientId("id"))
|
|
834
|
+
*/
|
|
835
|
+
getCoverageSnapshot(id, request = {}, requestOptions) {
|
|
836
|
+
return core.HttpResponsePromise.fromPromise(this.__getCoverageSnapshot(id, request, requestOptions));
|
|
837
|
+
}
|
|
838
|
+
__getCoverageSnapshot(id_1) {
|
|
839
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
840
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
841
|
+
const { date } = request;
|
|
842
|
+
const _queryParams = {};
|
|
843
|
+
if (date != null) {
|
|
844
|
+
_queryParams.date = date.toISOString();
|
|
845
|
+
}
|
|
846
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
847
|
+
const _response = yield core.fetcher({
|
|
848
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${core.url.encodePathParam(serializers.preEncounter.PatientId.jsonOrThrow(id))}/snapshot`),
|
|
849
|
+
method: "GET",
|
|
850
|
+
headers: _headers,
|
|
851
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
852
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
853
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
854
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
855
|
+
});
|
|
856
|
+
if (_response.ok) {
|
|
857
|
+
return {
|
|
858
|
+
data: {
|
|
859
|
+
ok: true,
|
|
860
|
+
body: serializers.preEncounter.patients.v1.PatientCoverageSnapshot.parseOrThrow(_response.body, {
|
|
861
|
+
unrecognizedObjectKeys: "passthrough",
|
|
862
|
+
allowUnrecognizedUnionMembers: true,
|
|
863
|
+
allowUnrecognizedEnumValues: true,
|
|
864
|
+
breadcrumbsPrefix: ["response"],
|
|
865
|
+
}),
|
|
866
|
+
headers: _response.headers,
|
|
867
|
+
rawResponse: _response.rawResponse,
|
|
868
|
+
},
|
|
869
|
+
rawResponse: _response.rawResponse,
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
if (_response.error.reason === "status-code") {
|
|
873
|
+
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
874
|
+
case "NotFoundError":
|
|
875
|
+
return {
|
|
876
|
+
data: {
|
|
877
|
+
ok: false,
|
|
878
|
+
error: serializers.preEncounter.patients.v1.getCoverageSnapshot.Error.parseOrThrow(_response.error
|
|
879
|
+
.body, {
|
|
880
|
+
unrecognizedObjectKeys: "passthrough",
|
|
881
|
+
allowUnrecognizedUnionMembers: true,
|
|
882
|
+
allowUnrecognizedEnumValues: true,
|
|
883
|
+
breadcrumbsPrefix: ["response"],
|
|
884
|
+
}),
|
|
885
|
+
rawResponse: _response.rawResponse,
|
|
886
|
+
},
|
|
887
|
+
rawResponse: _response.rawResponse,
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
return {
|
|
892
|
+
data: {
|
|
893
|
+
ok: false,
|
|
894
|
+
error: CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error._unknown(_response.error),
|
|
895
|
+
rawResponse: _response.rawResponse,
|
|
896
|
+
},
|
|
897
|
+
rawResponse: _response.rawResponse,
|
|
898
|
+
};
|
|
899
|
+
});
|
|
900
|
+
}
|
|
825
901
|
/**
|
|
826
902
|
* Updates a patient. The path must contain the next version number to prevent race conditions. For example, if the current version of the patient is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the patient. Updating historic versions is not supported.
|
|
827
903
|
*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as core from "../../../../../../../../core";
|
|
2
|
+
import * as CandidApi from "../../../../../../../index";
|
|
3
|
+
export type Error = CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error.NotFoundError | CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error._Unknown;
|
|
4
|
+
export declare namespace Error {
|
|
5
|
+
interface NotFoundError extends _Utils {
|
|
6
|
+
errorName: "NotFoundError";
|
|
7
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
8
|
+
}
|
|
9
|
+
interface _Unknown extends _Utils {
|
|
10
|
+
errorName: void;
|
|
11
|
+
content: core.Fetcher.Error;
|
|
12
|
+
}
|
|
13
|
+
interface _Utils {
|
|
14
|
+
_visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error._Visitor<_Result>) => _Result;
|
|
15
|
+
}
|
|
16
|
+
interface _Visitor<_Result> {
|
|
17
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
18
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare const Error: {
|
|
22
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error.NotFoundError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error, visitor: CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error._Visitor<_Result>) => _Result;
|
|
25
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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.Error = void 0;
|
|
38
|
+
const CandidApi = __importStar(require("../../../../../../../index"));
|
|
39
|
+
exports.Error = {
|
|
40
|
+
notFoundError: (value) => {
|
|
41
|
+
return {
|
|
42
|
+
content: value,
|
|
43
|
+
errorName: "NotFoundError",
|
|
44
|
+
_visit: function (visitor) {
|
|
45
|
+
return CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error._visit(this, visitor);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
_unknown: (fetcherError) => {
|
|
50
|
+
return {
|
|
51
|
+
errorName: undefined,
|
|
52
|
+
content: fetcherError,
|
|
53
|
+
_visit: function (visitor) {
|
|
54
|
+
return CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error._visit(this, visitor);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
_visit: (value, visitor) => {
|
|
59
|
+
switch (value.errorName) {
|
|
60
|
+
case "NotFoundError":
|
|
61
|
+
return visitor.notFoundError(value.content);
|
|
62
|
+
default:
|
|
63
|
+
return visitor._other(value);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
};
|
|
@@ -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 getMulti from "./getMulti";
|
|
8
9
|
export * as reactivate from "./reactivate";
|
|
@@ -36,12 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.update = exports.searchProviders = exports.search = exports.scan = exports.reactivate = exports.getMulti = exports.getHistory = exports.getByMrn = exports.get = exports.deactivate = exports.createWithMrn = exports.create = void 0;
|
|
39
|
+
exports.update = exports.searchProviders = exports.search = exports.scan = exports.reactivate = exports.getMulti = exports.getHistory = exports.getCoverageSnapshot = exports.getByMrn = exports.get = exports.deactivate = exports.createWithMrn = exports.create = void 0;
|
|
40
40
|
exports.create = __importStar(require("./create"));
|
|
41
41
|
exports.createWithMrn = __importStar(require("./createWithMrn"));
|
|
42
42
|
exports.deactivate = __importStar(require("./deactivate"));
|
|
43
43
|
exports.get = __importStar(require("./get"));
|
|
44
44
|
exports.getByMrn = __importStar(require("./getByMrn"));
|
|
45
|
+
exports.getCoverageSnapshot = __importStar(require("./getCoverageSnapshot"));
|
|
45
46
|
exports.getHistory = __importStar(require("./getHistory"));
|
|
46
47
|
exports.getMulti = __importStar(require("./getMulti"));
|
|
47
48
|
exports.reactivate = __importStar(require("./reactivate"));
|
package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CreatePatientRequest } from "./CreatePatientRequest";
|
|
2
2
|
export type { CreatePatientWithMrnRequest } from "./CreatePatientWithMrnRequest";
|
|
3
|
+
export type { GetCoverageSnapshotRequest } from "./GetCoverageSnapshotRequest";
|
|
3
4
|
export type { PatientGetMultiRequest } from "./PatientGetMultiRequest";
|
|
4
5
|
export type { PatientScanRequest } from "./PatientScanRequest";
|
|
5
6
|
export type { PatientsSearchRequestPaginated } from "./PatientsSearchRequestPaginated";
|
package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts
CHANGED
|
@@ -60,6 +60,6 @@ export interface MutablePatient {
|
|
|
60
60
|
originationDetail?: CandidApi.preEncounter.patients.v1.OriginationDetail;
|
|
61
61
|
/** Metadata for the patient used for patient inference from encounters. */
|
|
62
62
|
inferredPatientMetadata?: CandidApi.preEncounter.patients.v1.InferredPatientMetadata;
|
|
63
|
-
/** ORCON (Originator Controlled) - When set to true, the Candid system will hide this patient from downstream integrations. Defaults to false. */
|
|
63
|
+
/** ORCON (Originator Controlled) - When set to true, the Candid system will hide this patient from downstream integrations. Updates made in the Candid UI will unset this flag. Defaults to false. */
|
|
64
64
|
orcon?: boolean;
|
|
65
65
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../../../../index";
|
|
2
|
+
export interface PatientCoverageSnapshot {
|
|
3
|
+
patient: CandidApi.preEncounter.patients.v1.Patient;
|
|
4
|
+
primaryCoverage?: CandidApi.preEncounter.coverages.v1.Coverage;
|
|
5
|
+
secondaryCoverage?: CandidApi.preEncounter.coverages.v1.Coverage;
|
|
6
|
+
tertiaryCoverage?: CandidApi.preEncounter.coverages.v1.Coverage;
|
|
7
|
+
}
|
|
@@ -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);
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type * as CandidApi from "../../../../../index";
|
|
2
2
|
export interface ServiceLineEraData {
|
|
3
|
+
/**
|
|
4
|
+
* Deprecated. This field aggregates all CARCs across a service line's history
|
|
5
|
+
* without granular context
|
|
6
|
+
* (e.g., which CARCs relate to denials vs. payments vs. reversals), making it
|
|
7
|
+
* unsuitable for denial analysis or operational workflows.
|
|
8
|
+
*/
|
|
3
9
|
serviceLineAdjustments: CandidApi.serviceLines.v2.ServiceLineAdjustment[];
|
|
4
10
|
remittanceAdviceRemarkCodes: string[];
|
|
5
11
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const EmrPayerCrosswalk: core.serialization.Schema<serializers.EmrPayerCrosswalk.Raw, CandidApi.EmrPayerCrosswalk>;
|
|
5
5
|
export declare namespace EmrPayerCrosswalk {
|
|
6
|
-
type Raw = "HEALTHIE" | "CANVAS";
|
|
6
|
+
type Raw = "HEALTHIE" | "CANVAS" | "HL7_WEBPT_E34_EPIC";
|
|
7
7
|
}
|