candidhealth 0.34.5 → 0.34.6

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 (216) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/claims/types/Claim.d.ts +4 -4
  6. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  7. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  8. package/api/resources/diagnoses/client/Client.d.ts +65 -0
  9. package/api/resources/diagnoses/client/Client.js +237 -0
  10. package/api/resources/diagnoses/client/create.d.ts +22 -0
  11. package/api/resources/diagnoses/client/create.js +47 -0
  12. package/api/resources/diagnoses/client/delete.d.ts +28 -0
  13. package/api/resources/diagnoses/client/delete.js +58 -0
  14. package/api/resources/diagnoses/client/index.d.ts +4 -0
  15. package/api/resources/diagnoses/client/index.js +33 -0
  16. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
  17. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
  18. package/api/resources/diagnoses/client/requests/index.d.ts +1 -0
  19. package/api/resources/diagnoses/client/requests/index.js +2 -0
  20. package/api/resources/diagnoses/client/update.d.ts +28 -0
  21. package/api/resources/diagnoses/client/update.js +58 -0
  22. package/api/resources/diagnoses/index.d.ts +1 -0
  23. package/api/resources/diagnoses/index.js +1 -0
  24. package/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
  25. package/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
  26. package/api/resources/diagnoses/types/index.d.ts +1 -0
  27. package/api/resources/diagnoses/types/index.js +1 -0
  28. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  29. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  30. package/api/resources/encounters/resources/v4/client/Client.d.ts +12 -10
  31. package/api/resources/encounters/resources/v4/client/Client.js +17 -15
  32. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -5
  33. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -5
  34. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -4
  35. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +4 -4
  36. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  37. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  38. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  39. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  40. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  41. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  42. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  43. package/api/resources/index.d.ts +1 -0
  44. package/api/resources/index.js +1 -0
  45. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  46. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  47. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  48. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +2 -1
  49. package/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
  50. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  51. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  52. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  53. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  54. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  55. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  56. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  57. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  58. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  59. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  60. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  61. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
  62. package/api/resources/serviceFacility/client/Client.js +1 -1
  63. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -5
  64. package/api/resources/serviceLines/resources/v2/client/Client.js +9 -8
  65. package/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  66. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
  67. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
  68. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
  69. package/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
  70. package/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
  71. package/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
  72. package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  73. package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  74. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  75. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  76. package/dist/Client.d.ts +3 -0
  77. package/dist/Client.js +7 -2
  78. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  79. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  80. package/dist/api/resources/claims/types/Claim.d.ts +4 -4
  81. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  82. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  83. package/dist/api/resources/diagnoses/client/Client.d.ts +65 -0
  84. package/dist/api/resources/diagnoses/client/Client.js +237 -0
  85. package/dist/api/resources/diagnoses/client/create.d.ts +22 -0
  86. package/dist/api/resources/diagnoses/client/create.js +47 -0
  87. package/dist/api/resources/diagnoses/client/delete.d.ts +28 -0
  88. package/dist/api/resources/diagnoses/client/delete.js +58 -0
  89. package/dist/api/resources/diagnoses/client/index.d.ts +4 -0
  90. package/dist/api/resources/diagnoses/client/index.js +33 -0
  91. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
  92. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
  93. package/dist/api/resources/diagnoses/client/requests/index.d.ts +1 -0
  94. package/dist/api/resources/diagnoses/client/requests/index.js +2 -0
  95. package/dist/api/resources/diagnoses/client/update.d.ts +28 -0
  96. package/dist/api/resources/diagnoses/client/update.js +58 -0
  97. package/dist/api/resources/diagnoses/index.d.ts +1 -0
  98. package/dist/api/resources/diagnoses/index.js +1 -0
  99. package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
  100. package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
  101. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  102. package/dist/api/resources/diagnoses/types/index.js +1 -0
  103. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  104. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  105. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +12 -10
  106. package/dist/api/resources/encounters/resources/v4/client/Client.js +17 -15
  107. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -5
  108. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -5
  109. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -4
  110. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +4 -4
  111. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  112. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  113. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  114. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  115. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  116. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  117. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  118. package/dist/api/resources/index.d.ts +1 -0
  119. package/dist/api/resources/index.js +1 -0
  120. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  121. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  122. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  123. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +2 -1
  124. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
  125. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  126. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  127. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  128. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  129. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  130. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  131. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  132. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  133. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  134. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  135. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  136. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
  137. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  138. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -5
  139. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +9 -8
  140. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  141. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
  142. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
  143. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
  144. package/dist/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
  145. package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
  146. package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
  147. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  148. package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  149. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  150. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  151. package/dist/serialization/resources/diagnoses/client/delete.d.ts +15 -0
  152. package/dist/serialization/resources/diagnoses/client/delete.js +61 -0
  153. package/dist/serialization/resources/diagnoses/client/index.d.ts +3 -0
  154. package/dist/serialization/resources/diagnoses/client/index.js +32 -0
  155. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
  156. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
  157. package/dist/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
  158. package/dist/serialization/resources/diagnoses/client/requests/index.js +5 -0
  159. package/dist/serialization/resources/diagnoses/client/update.d.ts +15 -0
  160. package/dist/serialization/resources/diagnoses/client/update.js +61 -0
  161. package/dist/serialization/resources/diagnoses/index.d.ts +1 -0
  162. package/dist/serialization/resources/diagnoses/index.js +1 -0
  163. package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
  164. package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
  165. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  166. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  167. package/dist/serialization/resources/index.d.ts +1 -0
  168. package/dist/serialization/resources/index.js +1 -0
  169. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  170. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
  171. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
  172. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
  173. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
  174. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
  175. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
  176. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
  177. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
  178. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
  179. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
  180. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
  181. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  182. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
  183. package/package.json +1 -1
  184. package/reference.md +15 -5260
  185. package/serialization/resources/diagnoses/client/delete.d.ts +15 -0
  186. package/serialization/resources/diagnoses/client/delete.js +61 -0
  187. package/serialization/resources/diagnoses/client/index.d.ts +3 -0
  188. package/serialization/resources/diagnoses/client/index.js +32 -0
  189. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
  190. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
  191. package/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
  192. package/serialization/resources/diagnoses/client/requests/index.js +5 -0
  193. package/serialization/resources/diagnoses/client/update.d.ts +15 -0
  194. package/serialization/resources/diagnoses/client/update.js +61 -0
  195. package/serialization/resources/diagnoses/index.d.ts +1 -0
  196. package/serialization/resources/diagnoses/index.js +1 -0
  197. package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
  198. package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
  199. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  200. package/serialization/resources/diagnoses/types/index.js +1 -0
  201. package/serialization/resources/index.d.ts +1 -0
  202. package/serialization/resources/index.js +1 -0
  203. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  204. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
  205. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
  206. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
  207. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
  208. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
  209. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
  210. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
  211. package/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
  212. package/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
  213. package/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
  214. package/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
  215. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  216. package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as CandidApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
8
+ export declare const Error: core.serialization.Schema<serializers.diagnoses.delete.Error.Raw, CandidApi.diagnoses.delete.Error>;
9
+ export declare namespace Error {
10
+ type Raw = Error.DiagnosisNotFoundHttpError;
11
+ interface DiagnosisNotFoundHttpError {
12
+ errorName: "DiagnosisNotFoundHTTPError";
13
+ content: DiagnosisNotFoundError.Raw;
14
+ }
15
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../api/index"));
42
+ const core = __importStar(require("../../../../core"));
43
+ const DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
44
+ exports.Error = core.serialization
45
+ .union("errorName", {
46
+ DiagnosisNotFoundHTTPError: core.serialization.object({
47
+ content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
48
+ }),
49
+ })
50
+ .transform({
51
+ transform: (value) => {
52
+ switch (value.errorName) {
53
+ case "DiagnosisNotFoundHTTPError":
54
+ return CandidApi.diagnoses.delete.Error.diagnosisNotFoundHttpError(value.content);
55
+ }
56
+ },
57
+ untransform: (_a) => {
58
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
59
+ return value;
60
+ },
61
+ });
@@ -0,0 +1,3 @@
1
+ export * as update from "./update";
2
+ export * as delete from "./delete";
3
+ export * from "./requests";
@@ -0,0 +1,32 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.delete = exports.update = void 0;
30
+ exports.update = __importStar(require("./update"));
31
+ exports.delete = __importStar(require("./delete"));
32
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as CandidApi from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { DiagnosisTypeCode } from "../../types/DiagnosisTypeCode";
8
+ export declare const DiagnosisUpdate: core.serialization.Schema<serializers.DiagnosisUpdate.Raw, CandidApi.DiagnosisUpdate>;
9
+ export declare namespace DiagnosisUpdate {
10
+ interface Raw {
11
+ name?: string | null;
12
+ code_type?: DiagnosisTypeCode.Raw | null;
13
+ code?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DiagnosisUpdate = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const DiagnosisTypeCode_1 = require("../../types/DiagnosisTypeCode");
32
+ exports.DiagnosisUpdate = core.serialization.object({
33
+ name: core.serialization.string().optional(),
34
+ codeType: core.serialization.property("code_type", DiagnosisTypeCode_1.DiagnosisTypeCode.optional()),
35
+ code: core.serialization.string().optional(),
36
+ });
@@ -0,0 +1 @@
1
+ export { DiagnosisUpdate } from "./DiagnosisUpdate";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiagnosisUpdate = void 0;
4
+ var DiagnosisUpdate_1 = require("./DiagnosisUpdate");
5
+ Object.defineProperty(exports, "DiagnosisUpdate", { enumerable: true, get: function () { return DiagnosisUpdate_1.DiagnosisUpdate; } });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as CandidApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
8
+ export declare const Error: core.serialization.Schema<serializers.diagnoses.update.Error.Raw, CandidApi.diagnoses.update.Error>;
9
+ export declare namespace Error {
10
+ type Raw = Error.DiagnosisNotFoundHttpError;
11
+ interface DiagnosisNotFoundHttpError {
12
+ errorName: "DiagnosisNotFoundHTTPError";
13
+ content: DiagnosisNotFoundError.Raw;
14
+ }
15
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../api/index"));
42
+ const core = __importStar(require("../../../../core"));
43
+ const DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
44
+ exports.Error = core.serialization
45
+ .union("errorName", {
46
+ DiagnosisNotFoundHTTPError: core.serialization.object({
47
+ content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
48
+ }),
49
+ })
50
+ .transform({
51
+ transform: (value) => {
52
+ switch (value.errorName) {
53
+ case "DiagnosisNotFoundHTTPError":
54
+ return CandidApi.diagnoses.update.Error.diagnosisNotFoundHttpError(value.content);
55
+ }
56
+ },
57
+ untransform: (_a) => {
58
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
59
+ return value;
60
+ },
61
+ });
@@ -1 +1,2 @@
1
1
  export * from "./types";
2
+ export * from "./client";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as CandidApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { DiagnosisId } from "./DiagnosisId";
8
+ export declare const DiagnosisNotFoundError: core.serialization.ObjectSchema<serializers.DiagnosisNotFoundError.Raw, CandidApi.DiagnosisNotFoundError>;
9
+ export declare namespace DiagnosisNotFoundError {
10
+ interface Raw {
11
+ diagnosis_id?: DiagnosisId.Raw | null;
12
+ message: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DiagnosisNotFoundError = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const DiagnosisId_1 = require("./DiagnosisId");
32
+ exports.DiagnosisNotFoundError = core.serialization.object({
33
+ diagnosisId: core.serialization.property("diagnosis_id", DiagnosisId_1.DiagnosisId.optional()),
34
+ message: core.serialization.string(),
35
+ });
@@ -3,3 +3,4 @@ export * from "./DiagnosisCreate";
3
3
  export * from "./StandaloneDiagnosisCreate";
4
4
  export * from "./DiagnosisTypeCode";
5
5
  export * from "./Diagnosis";
6
+ export * from "./DiagnosisNotFoundError";
@@ -19,3 +19,4 @@ __exportStar(require("./DiagnosisCreate"), exports);
19
19
  __exportStar(require("./StandaloneDiagnosisCreate"), exports);
20
20
  __exportStar(require("./DiagnosisTypeCode"), exports);
21
21
  __exportStar(require("./Diagnosis"), exports);
22
+ __exportStar(require("./DiagnosisNotFoundError"), exports);
@@ -56,3 +56,4 @@ export * from "./serviceFacility/types";
56
56
  export * as tags from "./tags";
57
57
  export * from "./tags/types";
58
58
  export * as eligibility from "./eligibility";
59
+ export * from "./diagnoses/client/requests";
@@ -85,3 +85,4 @@ __exportStar(require("./serviceFacility/types"), exports);
85
85
  exports.tags = __importStar(require("./tags"));
86
86
  __exportStar(require("./tags/types"), exports);
87
87
  exports.eligibility = __importStar(require("./eligibility"));
88
+ __exportStar(require("./diagnoses/client/requests"), exports);
@@ -16,5 +16,6 @@ export declare namespace DrugIdentification {
16
16
  link_sequence_number?: string | null;
17
17
  pharmacy_prescription_number?: string | null;
18
18
  conversion_formula?: string | null;
19
+ drug_description?: string | null;
19
20
  }
20
21
  }
@@ -38,4 +38,5 @@ exports.DrugIdentification = core.serialization.object({
38
38
  linkSequenceNumber: core.serialization.property("link_sequence_number", core.serialization.string().optional()),
39
39
  pharmacyPrescriptionNumber: core.serialization.property("pharmacy_prescription_number", core.serialization.string().optional()),
40
40
  conversionFormula: core.serialization.property("conversion_formula", core.serialization.string().optional()),
41
+ drugDescription: core.serialization.property("drug_description", core.serialization.string().optional()),
41
42
  });
@@ -55,6 +55,6 @@ export declare namespace ServiceLine {
55
55
  description?: string | null;
56
56
  date_of_service: string;
57
57
  end_date_of_service?: string | null;
58
- test_result?: TestResult.Raw | null;
58
+ test_results?: TestResult.Raw[] | null;
59
59
  }
60
60
  }
@@ -77,5 +77,5 @@ exports.ServiceLine = core.serialization.object({
77
77
  description: core.serialization.string().optional(),
78
78
  dateOfService: core.serialization.property("date_of_service", core.serialization.string()),
79
79
  endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
80
- testResult: core.serialization.property("test_result", TestResult_1.TestResult.optional()),
80
+ testResults: core.serialization.property("test_results", core.serialization.list(TestResult_1.TestResult).optional()),
81
81
  });
@@ -26,6 +26,6 @@ export declare namespace ServiceLineCreate {
26
26
  date_of_service?: string | null;
27
27
  end_date_of_service?: string | null;
28
28
  ordering_provider?: OrderingProvider.Raw | null;
29
- test_result?: TestResult.Raw | null;
29
+ test_results?: TestResult.Raw[] | null;
30
30
  }
31
31
  }
@@ -48,5 +48,5 @@ exports.ServiceLineCreate = core.serialization.object({
48
48
  dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
49
49
  endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
50
50
  orderingProvider: core.serialization.property("ordering_provider", OrderingProvider_1.OrderingProvider.optional()),
51
- testResult: core.serialization.property("test_result", TestResult_1.TestResult.optional()),
51
+ testResults: core.serialization.property("test_results", core.serialization.list(TestResult_1.TestResult).optional()),
52
52
  });
@@ -31,6 +31,6 @@ export declare namespace ServiceLineUpdate {
31
31
  description?: string | null;
32
32
  date_of_service?: string | null;
33
33
  end_date_of_service?: string | null;
34
- test_result?: TestResult.Raw | null;
34
+ test_results?: TestResult.Raw[] | null;
35
35
  }
36
36
  }
@@ -53,5 +53,5 @@ exports.ServiceLineUpdate = core.serialization.object({
53
53
  description: core.serialization.string().optional(),
54
54
  dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
55
55
  endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
56
- testResult: core.serialization.property("test_result", TestResult_1.TestResult.optional()),
56
+ testResults: core.serialization.property("test_results", core.serialization.list(TestResult_1.TestResult).optional()),
57
57
  });
@@ -4,15 +4,11 @@
4
4
  import * as serializers from "../../../../../index";
5
5
  import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
- export declare const TestResult: core.serialization.Schema<serializers.serviceLines.v2.TestResult.Raw, CandidApi.serviceLines.v2.TestResult>;
7
+ import { TestResultType } from "./TestResultType";
8
+ export declare const TestResult: core.serialization.ObjectSchema<serializers.serviceLines.v2.TestResult.Raw, CandidApi.serviceLines.v2.TestResult>;
8
9
  export declare namespace TestResult {
9
- type Raw = TestResult.Hematocrit | TestResult.Hemoglobin;
10
- interface Hematocrit {
11
- type: "hematocrit";
12
- value: number;
13
- }
14
- interface Hemoglobin {
15
- type: "hemoglobin";
10
+ interface Raw {
16
11
  value: number;
12
+ result_type: TestResultType.Raw;
17
13
  }
18
14
  }
@@ -28,16 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.TestResult = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
- exports.TestResult = core.serialization
32
- .union("type", {
33
- hematocrit: core.serialization.object({
34
- value: core.serialization.number(),
35
- }),
36
- hemoglobin: core.serialization.object({
37
- value: core.serialization.number(),
38
- }),
39
- })
40
- .transform({
41
- transform: (value) => value,
42
- untransform: (value) => value,
31
+ const TestResultType_1 = require("./TestResultType");
32
+ exports.TestResult = core.serialization.object({
33
+ value: core.serialization.number(),
34
+ resultType: core.serialization.property("result_type", TestResultType_1.TestResultType),
43
35
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const TestResultType: core.serialization.Schema<serializers.serviceLines.v2.TestResultType.Raw, CandidApi.serviceLines.v2.TestResultType>;
8
+ export declare namespace TestResultType {
9
+ type Raw = "HEMATOCRIT" | "HEMOGLOBIN";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TestResultType = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.TestResultType = core.serialization.enum_(["HEMATOCRIT", "HEMOGLOBIN"]);
@@ -7,6 +7,7 @@ export * from "./ServiceLineAdjustment";
7
7
  export * from "./ServiceLineDenialReason";
8
8
  export * from "./DenialReasonContent";
9
9
  export * from "./DrugIdentification";
10
+ export * from "./TestResultType";
10
11
  export * from "./TestResult";
11
12
  export * from "./ServiceIdQualifier";
12
13
  export * from "./MeasurementUnitCode";
@@ -23,6 +23,7 @@ __exportStar(require("./ServiceLineAdjustment"), exports);
23
23
  __exportStar(require("./ServiceLineDenialReason"), exports);
24
24
  __exportStar(require("./DenialReasonContent"), exports);
25
25
  __exportStar(require("./DrugIdentification"), exports);
26
+ __exportStar(require("./TestResultType"), exports);
26
27
  __exportStar(require("./TestResult"), exports);
27
28
  __exportStar(require("./ServiceIdQualifier"), exports);
28
29
  __exportStar(require("./MeasurementUnitCode"), exports);