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.
Files changed (182) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -0
  3. package/api/resources/commons/types/EmrPayerCrosswalk.js +1 -0
  4. package/api/resources/encounters/resources/v4/client/Client.js +25 -2
  5. package/api/resources/encounters/resources/v4/client/getAll.d.ts +19 -1
  6. package/api/resources/encounters/resources/v4/client/getAll.js +33 -0
  7. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -0
  8. package/api/resources/financials/types/Allocation.d.ts +2 -0
  9. package/api/resources/financials/types/AllocationCreate.d.ts +1 -1
  10. package/api/resources/financials/types/AllocationEarmarkType.d.ts +2 -2
  11. package/api/resources/financials/types/BalanceEarmark.d.ts +11 -0
  12. package/api/resources/financials/types/BalanceEarmark.js +3 -0
  13. package/api/resources/financials/types/index.d.ts +1 -0
  14. package/api/resources/financials/types/index.js +1 -0
  15. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -1
  16. package/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +7 -1
  17. package/api/resources/insuranceAdjudications/resources/v1/client/get.js +11 -0
  18. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +11 -0
  19. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -0
  20. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +4 -0
  21. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  22. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
  23. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +28 -6
  24. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +7 -1
  25. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +11 -0
  26. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.d.ts +15 -0
  27. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.js +3 -0
  28. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
  29. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  30. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +3 -1
  31. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +8 -2
  32. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +2 -0
  33. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -0
  34. package/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  35. package/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  36. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +12 -0
  37. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +76 -0
  38. package/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +25 -0
  39. package/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +66 -0
  40. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  41. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  42. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.d.ts +7 -0
  43. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.js +3 -0
  44. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  45. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
  46. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +7 -0
  47. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +3 -0
  48. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  49. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  50. package/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +6 -0
  51. package/dist/Client.js +2 -2
  52. package/dist/api/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -0
  53. package/dist/api/resources/commons/types/EmrPayerCrosswalk.js +1 -0
  54. package/dist/api/resources/encounters/resources/v4/client/Client.js +25 -2
  55. package/dist/api/resources/encounters/resources/v4/client/getAll.d.ts +19 -1
  56. package/dist/api/resources/encounters/resources/v4/client/getAll.js +33 -0
  57. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -0
  58. package/dist/api/resources/financials/types/Allocation.d.ts +2 -0
  59. package/dist/api/resources/financials/types/AllocationCreate.d.ts +1 -1
  60. package/dist/api/resources/financials/types/AllocationEarmarkType.d.ts +2 -2
  61. package/dist/api/resources/financials/types/BalanceEarmark.d.ts +11 -0
  62. package/dist/api/resources/financials/types/BalanceEarmark.js +3 -0
  63. package/dist/api/resources/financials/types/index.d.ts +1 -0
  64. package/dist/api/resources/financials/types/index.js +1 -0
  65. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -1
  66. package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +7 -1
  67. package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.js +11 -0
  68. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +11 -0
  69. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -0
  70. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +4 -0
  71. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  72. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
  73. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +28 -6
  74. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +7 -1
  75. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +11 -0
  76. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.d.ts +15 -0
  77. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.js +3 -0
  78. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
  79. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  80. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +3 -1
  81. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +8 -2
  82. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +2 -0
  83. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -0
  84. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  85. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  86. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +12 -0
  87. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +76 -0
  88. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +25 -0
  89. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +66 -0
  90. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  91. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  92. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.d.ts +7 -0
  93. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.js +3 -0
  94. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  95. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
  96. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +7 -0
  97. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +3 -0
  98. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  99. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  100. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +6 -0
  101. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -1
  102. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.js +1 -1
  103. package/dist/serialization/resources/encounters/resources/v4/client/getAll.d.ts +22 -0
  104. package/dist/serialization/resources/encounters/resources/v4/client/getAll.js +81 -0
  105. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  106. package/dist/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  107. package/dist/serialization/resources/financials/types/Allocation.d.ts +2 -0
  108. package/dist/serialization/resources/financials/types/Allocation.js +2 -0
  109. package/dist/serialization/resources/financials/types/BalanceEarmark.d.ts +11 -0
  110. package/dist/serialization/resources/financials/types/BalanceEarmark.js +43 -0
  111. package/dist/serialization/resources/financials/types/index.d.ts +1 -0
  112. package/dist/serialization/resources/financials/types/index.js +1 -0
  113. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/get.d.ts +12 -0
  114. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/get.js +69 -0
  115. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +1 -0
  116. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +37 -0
  117. package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +1 -0
  118. package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.js +1 -0
  119. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  120. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +1 -0
  121. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +5 -1
  122. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +5 -0
  123. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  124. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  125. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -0
  126. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -0
  127. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  128. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +1 -0
  129. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  130. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  131. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +12 -0
  132. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +69 -0
  133. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  134. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  135. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +14 -0
  136. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +46 -0
  137. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  138. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  139. package/dist/version.d.ts +1 -1
  140. package/dist/version.js +1 -1
  141. package/package.json +1 -1
  142. package/reference.md +93 -2
  143. package/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -1
  144. package/serialization/resources/commons/types/EmrPayerCrosswalk.js +1 -1
  145. package/serialization/resources/encounters/resources/v4/client/getAll.d.ts +22 -0
  146. package/serialization/resources/encounters/resources/v4/client/getAll.js +81 -0
  147. package/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  148. package/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  149. package/serialization/resources/financials/types/Allocation.d.ts +2 -0
  150. package/serialization/resources/financials/types/Allocation.js +2 -0
  151. package/serialization/resources/financials/types/BalanceEarmark.d.ts +11 -0
  152. package/serialization/resources/financials/types/BalanceEarmark.js +43 -0
  153. package/serialization/resources/financials/types/index.d.ts +1 -0
  154. package/serialization/resources/financials/types/index.js +1 -0
  155. package/serialization/resources/insuranceAdjudications/resources/v1/client/get.d.ts +12 -0
  156. package/serialization/resources/insuranceAdjudications/resources/v1/client/get.js +69 -0
  157. package/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +1 -0
  158. package/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +37 -0
  159. package/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +1 -0
  160. package/serialization/resources/insuranceAdjudications/resources/v1/index.js +1 -0
  161. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  162. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +1 -0
  163. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +5 -1
  164. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +5 -0
  165. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  166. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  167. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -0
  168. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -0
  169. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  170. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +1 -0
  171. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  172. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  173. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +12 -0
  174. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +69 -0
  175. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  176. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  177. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +14 -0
  178. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +46 -0
  179. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  180. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  181. package/version.d.ts +1 -1
  182. package/version.js +1 -1
@@ -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
+ });
@@ -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/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.17.3";
1
+ export declare const SDK_VERSION = "1.18.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.17.3";
4
+ exports.SDK_VERSION = "1.18.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "1.17.3",
3
+ "version": "1.18.0",
4
4
  "private": false,
5
5
  "repository": "github:candidhealth/candid-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -10361,6 +10361,17 @@ await client.preEncounter.appointments.v1.create({
10361
10361
  <dd>
10362
10362
 
10363
10363
  Gets all Visits within a given time range. The return list is ordered by start_time ascending.
10364
+
10365
+ **IMPORTANT:** This endpoint requires a date filter on `appointment.startTimestamp` to ensure acceptable query performance.
10366
+ Without date filtering, the query can take 50+ seconds on large datasets due to grouping and aggregation operations.
10367
+
10368
+ Example filters:
10369
+ - `appointment.startTimestamp|gt|2024-01-01` - appointments after January 1, 2024
10370
+ - `appointment.startTimestamp|eq|2024-12-08` - appointments on December 8, 2024
10371
+ - `appointment.startTimestamp|lt|2024-12-31` - appointments before December 31, 2024
10372
+
10373
+ You can combine the date filter with other filters using commas:
10374
+ - `appointment.startTimestamp|gt|2024-01-01,appointment.status|eq|PENDING`
10364
10375
  </dd>
10365
10376
  </dl>
10366
10377
  </dd>
@@ -11062,7 +11073,7 @@ await client.preEncounter.coverages.v1.get(CandidApi.CoverageId("d5e9c84f-c2b2-4
11062
11073
  </dl>
11063
11074
  </details>
11064
11075
 
11065
- <details><summary><code>client.preEncounter.coverages.v1.<a href="/src/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.ts">getHistory</a>(id) -> core.APIResponse&lt;CandidApi.Coverage[], CandidApi.preEncounter.coverages.v1.getHistory.Error&gt;</code></summary>
11076
+ <details><summary><code>client.preEncounter.coverages.v1.<a href="/src/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.ts">getHistory</a>(id, { ...params }) -> core.APIResponse&lt;CandidApi.Coverage[], CandidApi.preEncounter.coverages.v1.getHistory.Error&gt;</code></summary>
11066
11077
  <dl>
11067
11078
  <dd>
11068
11079
 
@@ -11074,7 +11085,8 @@ await client.preEncounter.coverages.v1.get(CandidApi.CoverageId("d5e9c84f-c2b2-4
11074
11085
  <dl>
11075
11086
  <dd>
11076
11087
 
11077
- Gets a coverage along with it's full history. The return list is ordered by version ascending.
11088
+ Gets a coverage's history. Full history is returned if no filters are
11089
+ defined. The return list is ordered by version, defaulting to ascending.
11078
11090
  </dd>
11079
11091
  </dl>
11080
11092
  </dd>
@@ -11113,6 +11125,14 @@ await client.preEncounter.coverages.v1.getHistory(CandidApi.CoverageId("d5e9c84f
11113
11125
  <dl>
11114
11126
  <dd>
11115
11127
 
11128
+ **request:** `CandidApi.preEncounter.coverages.v1.CoveragesGetHistoryRequest`
11129
+
11130
+ </dd>
11131
+ </dl>
11132
+
11133
+ <dl>
11134
+ <dd>
11135
+
11116
11136
  **requestOptions:** `V1.RequestOptions`
11117
11137
 
11118
11138
  </dd>
@@ -13384,6 +13404,77 @@ await client.preEncounter.patients.v1.getHistory(CandidApi.PatientId("id"));
13384
13404
  </dl>
13385
13405
 
13386
13406
 
13407
+ </dd>
13408
+ </dl>
13409
+ </details>
13410
+
13411
+ <details><summary><code>client.preEncounter.patients.v1.<a href="/src/api/resources/preEncounter/resources/patients/resources/v1/client/Client.ts">getCoverageSnapshot</a>(id, { ...params }) -> core.APIResponse&lt;CandidApi.PatientCoverageSnapshot, CandidApi.preEncounter.patients.v1.getCoverageSnapshot.Error&gt;</code></summary>
13412
+ <dl>
13413
+ <dd>
13414
+
13415
+ #### 📝 Description
13416
+
13417
+ <dl>
13418
+ <dd>
13419
+
13420
+ <dl>
13421
+ <dd>
13422
+
13423
+ 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.
13424
+ </dd>
13425
+ </dl>
13426
+ </dd>
13427
+ </dl>
13428
+
13429
+ #### 🔌 Usage
13430
+
13431
+ <dl>
13432
+ <dd>
13433
+
13434
+ <dl>
13435
+ <dd>
13436
+
13437
+ ```typescript
13438
+ await client.preEncounter.patients.v1.getCoverageSnapshot(CandidApi.PatientId("id"));
13439
+
13440
+ ```
13441
+ </dd>
13442
+ </dl>
13443
+ </dd>
13444
+ </dl>
13445
+
13446
+ #### ⚙️ Parameters
13447
+
13448
+ <dl>
13449
+ <dd>
13450
+
13451
+ <dl>
13452
+ <dd>
13453
+
13454
+ **id:** `CandidApi.PatientId`
13455
+
13456
+ </dd>
13457
+ </dl>
13458
+
13459
+ <dl>
13460
+ <dd>
13461
+
13462
+ **request:** `CandidApi.preEncounter.patients.v1.GetCoverageSnapshotRequest`
13463
+
13464
+ </dd>
13465
+ </dl>
13466
+
13467
+ <dl>
13468
+ <dd>
13469
+
13470
+ **requestOptions:** `V1.RequestOptions`
13471
+
13472
+ </dd>
13473
+ </dl>
13474
+ </dd>
13475
+ </dl>
13476
+
13477
+
13387
13478
  </dd>
13388
13479
  </dl>
13389
13480
  </details>
@@ -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
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.EmrPayerCrosswalk = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.EmrPayerCrosswalk = core.serialization.enum_(["HEALTHIE", "CANVAS"]);
39
+ exports.EmrPayerCrosswalk = core.serialization.enum_(["HEALTHIE", "CANVAS", "HL7_WEBPT_E34_EPIC"]);
@@ -0,0 +1,22 @@
1
+ import * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { InternalErrorMessage } from "../../../../commons/types/InternalErrorMessage";
5
+ import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
6
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
7
+ export declare const Error: core.serialization.Schema<serializers.encounters.v4.getAll.Error.Raw, CandidApi.encounters.v4.getAll.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.UnprocessableEntityError | Error.HttpRequestValidationsError | Error.InternalError;
10
+ interface UnprocessableEntityError {
11
+ errorName: "UnprocessableEntityError";
12
+ content: UnprocessableEntityErrorMessage.Raw;
13
+ }
14
+ interface HttpRequestValidationsError {
15
+ errorName: "HttpRequestValidationsError";
16
+ content: RequestValidationError.Raw[];
17
+ }
18
+ interface InternalError {
19
+ errorName: "InternalError";
20
+ content: InternalErrorMessage.Raw;
21
+ }
22
+ }
@@ -0,0 +1,81 @@
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 InternalErrorMessage_1 = require("../../../../commons/types/InternalErrorMessage");
52
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
53
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
54
+ exports.Error = core.serialization
55
+ .union("errorName", {
56
+ UnprocessableEntityError: core.serialization.object({
57
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
58
+ }),
59
+ HttpRequestValidationsError: core.serialization.object({
60
+ content: core.serialization.list(RequestValidationError_1.RequestValidationError),
61
+ }),
62
+ InternalError: core.serialization.object({
63
+ content: InternalErrorMessage_1.InternalErrorMessage,
64
+ }),
65
+ })
66
+ .transform({
67
+ transform: (value) => {
68
+ switch (value.errorName) {
69
+ case "UnprocessableEntityError":
70
+ return CandidApi.encounters.v4.getAll.Error.unprocessableEntityError(value.content);
71
+ case "HttpRequestValidationsError":
72
+ return CandidApi.encounters.v4.getAll.Error.httpRequestValidationsError(value.content);
73
+ case "InternalError":
74
+ return CandidApi.encounters.v4.getAll.Error.internalError(value.content);
75
+ }
76
+ },
77
+ untransform: (_a) => {
78
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
79
+ return value;
80
+ },
81
+ });
@@ -2,5 +2,6 @@ export * as create from "./create";
2
2
  export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
3
3
  export * as createFromPreEncounterPatientUniversal from "./createFromPreEncounterPatientUniversal";
4
4
  export * as createUniversal from "./createUniversal";
5
+ export * as getAll from "./getAll";
5
6
  export * as update from "./update";
6
7
  export * as updateUniversal from "./updateUniversal";
@@ -33,10 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.updateUniversal = exports.update = exports.createUniversal = exports.createFromPreEncounterPatientUniversal = exports.createFromPreEncounterPatient = exports.create = void 0;
36
+ exports.updateUniversal = exports.update = exports.getAll = exports.createUniversal = exports.createFromPreEncounterPatientUniversal = exports.createFromPreEncounterPatient = exports.create = void 0;
37
37
  exports.create = __importStar(require("./create"));
38
38
  exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
39
39
  exports.createFromPreEncounterPatientUniversal = __importStar(require("./createFromPreEncounterPatientUniversal"));
40
40
  exports.createUniversal = __importStar(require("./createUniversal"));
41
+ exports.getAll = __importStar(require("./getAll"));
41
42
  exports.update = __importStar(require("./update"));
42
43
  exports.updateUniversal = __importStar(require("./updateUniversal"));
@@ -2,10 +2,12 @@ import type * as CandidApi from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { AllocationTarget } from "./AllocationTarget";
5
+ import { BalanceEarmark } from "./BalanceEarmark";
5
6
  export declare const Allocation: core.serialization.ObjectSchema<serializers.Allocation.Raw, CandidApi.Allocation>;
6
7
  export declare namespace Allocation {
7
8
  interface Raw {
8
9
  amount_cents: number;
9
10
  target: AllocationTarget.Raw;
11
+ earmark?: BalanceEarmark.Raw | null;
10
12
  }
11
13
  }
@@ -37,7 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Allocation = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const AllocationTarget_1 = require("./AllocationTarget");
40
+ const BalanceEarmark_1 = require("./BalanceEarmark");
40
41
  exports.Allocation = core.serialization.object({
41
42
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
42
43
  target: AllocationTarget_1.AllocationTarget,
44
+ earmark: BalanceEarmark_1.BalanceEarmark.optional(),
43
45
  });
@@ -0,0 +1,11 @@
1
+ import type * as CandidApi from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { AllocationEarmarkType } from "./AllocationEarmarkType";
5
+ export declare const BalanceEarmark: core.serialization.ObjectSchema<serializers.BalanceEarmark.Raw, CandidApi.BalanceEarmark>;
6
+ export declare namespace BalanceEarmark {
7
+ interface Raw {
8
+ id: string;
9
+ target: AllocationEarmarkType.Raw;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
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.BalanceEarmark = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const AllocationEarmarkType_1 = require("./AllocationEarmarkType");
40
+ exports.BalanceEarmark = core.serialization.object({
41
+ id: core.serialization.string(),
42
+ target: AllocationEarmarkType_1.AllocationEarmarkType,
43
+ });
@@ -6,6 +6,7 @@ export * from "./AllocationTarget";
6
6
  export * from "./AllocationTargetCreate";
7
7
  export * from "./AppointmentAllocationTarget";
8
8
  export * from "./AppointmentByIdAndPatientExternalId";
9
+ export * from "./BalanceEarmark";
9
10
  export * from "./BillingProviderAllocationTarget";
10
11
  export * from "./ClaimAllocationTarget";
11
12
  export * from "./InvoiceUpdate";
@@ -22,6 +22,7 @@ __exportStar(require("./AllocationTarget"), exports);
22
22
  __exportStar(require("./AllocationTargetCreate"), exports);
23
23
  __exportStar(require("./AppointmentAllocationTarget"), exports);
24
24
  __exportStar(require("./AppointmentByIdAndPatientExternalId"), exports);
25
+ __exportStar(require("./BalanceEarmark"), exports);
25
26
  __exportStar(require("./BillingProviderAllocationTarget"), exports);
26
27
  __exportStar(require("./ClaimAllocationTarget"), exports);
27
28
  __exportStar(require("./InvoiceUpdate"), exports);
@@ -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 { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
5
+ export declare const Error: core.serialization.Schema<serializers.insuranceAdjudications.v1.get.Error.Raw, CandidApi.insuranceAdjudications.v1.get.Error>;
6
+ export declare namespace Error {
7
+ type Raw = Error.UnauthorizedError;
8
+ interface UnauthorizedError {
9
+ errorName: "UnauthorizedError";
10
+ content: UnauthorizedErrorMessage.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 UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
52
+ exports.Error = core.serialization
53
+ .union("errorName", {
54
+ UnauthorizedError: core.serialization.object({
55
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
56
+ }),
57
+ })
58
+ .transform({
59
+ transform: (value) => {
60
+ switch (value.errorName) {
61
+ case "UnauthorizedError":
62
+ return CandidApi.insuranceAdjudications.v1.get.Error.unauthorizedError(value.content);
63
+ }
64
+ },
65
+ untransform: (_a) => {
66
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
67
+ return value;
68
+ },
69
+ });
@@ -0,0 +1 @@
1
+ export * as get from "./get";
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.get = void 0;
37
+ exports.get = __importStar(require("./get"));
@@ -1 +1,2 @@
1
+ export * from "./client";
1
2
  export * from "./types";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
17
18
  __exportStar(require("./types"), exports);
@@ -13,5 +13,6 @@ export declare namespace Visit {
13
13
  start_time: string;
14
14
  status: AppointmentStatus.Raw;
15
15
  primary_coverage_status?: CoverageStatus.Raw | null;
16
+ secondary_coverage_status?: CoverageStatus.Raw | null;
16
17
  }
17
18
  }
@@ -46,4 +46,5 @@ exports.Visit = core.serialization.object({
46
46
  startTime: core.serialization.property("start_time", core.serialization.date()),
47
47
  status: AppointmentStatus_1.AppointmentStatus,
48
48
  primaryCoverageStatus: core.serialization.property("primary_coverage_status", CoverageStatus_1.CoverageStatus.optional()),
49
+ secondaryCoverageStatus: core.serialization.property("secondary_coverage_status", CoverageStatus_1.CoverageStatus.optional()),
49
50
  });
@@ -9,7 +9,11 @@ export declare namespace Response {
9
9
  }
10
10
  export declare const Error: core.serialization.Schema<serializers.preEncounter.coverages.v1.getHistory.Error.Raw, CandidApi.preEncounter.coverages.v1.getHistory.Error>;
11
11
  export declare namespace Error {
12
- type Raw = Error.NotFoundError;
12
+ type Raw = Error.BadRequestError | Error.NotFoundError;
13
+ interface BadRequestError {
14
+ errorName: "BadRequestError";
15
+ content: ErrorBase4Xx.Raw;
16
+ }
13
17
  interface NotFoundError {
14
18
  errorName: "NotFoundError";
15
19
  content: ErrorBase4Xx.Raw;
@@ -53,6 +53,9 @@ const Coverage_1 = require("../types/Coverage");
53
53
  exports.Response = core.serialization.list(Coverage_1.Coverage);
54
54
  exports.Error = core.serialization
55
55
  .union("errorName", {
56
+ BadRequestError: core.serialization.object({
57
+ content: ErrorBase4Xx_1.ErrorBase4Xx,
58
+ }),
56
59
  NotFoundError: core.serialization.object({
57
60
  content: ErrorBase4Xx_1.ErrorBase4Xx,
58
61
  }),
@@ -60,6 +63,8 @@ exports.Error = core.serialization
60
63
  .transform({
61
64
  transform: (value) => {
62
65
  switch (value.errorName) {
66
+ case "BadRequestError":
67
+ return CandidApi.preEncounter.coverages.v1.getHistory.Error.badRequestError(value.content);
63
68
  case "NotFoundError":
64
69
  return CandidApi.preEncounter.coverages.v1.getHistory.Error.notFoundError(value.content);
65
70
  }
@@ -11,5 +11,6 @@ export declare namespace CoverageBenefits {
11
11
  service_specific_coverage?: ServiceCoverage.Raw[] | null;
12
12
  benefits_related_entities?: BenefitsRelatedEntity.Raw[] | null;
13
13
  notes?: string | null;
14
+ autoUpdatedEligibilityCheckId?: string | null;
14
15
  }
15
16
  }