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
package/Client.d.ts CHANGED
@@ -32,6 +32,7 @@ import { ServiceLines } from "./api/resources/serviceLines/client/Client";
32
32
  import { Tasks } from "./api/resources/tasks/client/Client";
33
33
  import { WriteOffs } from "./api/resources/writeOffs/client/Client";
34
34
  import { PreEncounter } from "./api/resources/preEncounter/client/Client";
35
+ import { Diagnoses } from "./api/resources/diagnoses/client/Client";
35
36
  import { ServiceFacility } from "./api/resources/serviceFacility/client/Client";
36
37
  export declare namespace CandidApiClient {
37
38
  interface Options {
@@ -110,6 +111,8 @@ export declare class CandidApiClient {
110
111
  get writeOffs(): WriteOffs;
111
112
  protected _preEncounter: PreEncounter | undefined;
112
113
  get preEncounter(): PreEncounter;
114
+ protected _diagnoses: Diagnoses | undefined;
115
+ get diagnoses(): Diagnoses;
113
116
  protected _serviceFacility: ServiceFacility | undefined;
114
117
  get serviceFacility(): ServiceFacility;
115
118
  }
package/Client.js CHANGED
@@ -67,7 +67,8 @@ const Client_27 = require("./api/resources/serviceLines/client/Client");
67
67
  const Client_28 = require("./api/resources/tasks/client/Client");
68
68
  const Client_29 = require("./api/resources/writeOffs/client/Client");
69
69
  const Client_30 = require("./api/resources/preEncounter/client/Client");
70
- const Client_31 = require("./api/resources/serviceFacility/client/Client");
70
+ const Client_31 = require("./api/resources/diagnoses/client/Client");
71
+ const Client_32 = require("./api/resources/serviceFacility/client/Client");
71
72
  class CandidApiClient {
72
73
  constructor(_options) {
73
74
  this._options = _options;
@@ -195,9 +196,13 @@ class CandidApiClient {
195
196
  var _a;
196
197
  return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_30.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
197
198
  }
199
+ get diagnoses() {
200
+ var _a;
201
+ return ((_a = this._diagnoses) !== null && _a !== void 0 ? _a : (this._diagnoses = new Client_31.Diagnoses(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
202
+ }
198
203
  get serviceFacility() {
199
204
  var _a;
200
- return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_31.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
205
+ return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_32.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
201
206
  }
202
207
  }
203
208
  exports.CandidApiClient = CandidApiClient;
@@ -87,7 +87,7 @@ class V2 {
87
87
  Authorization: yield this._getAuthorizationHeader(),
88
88
  "X-Fern-Language": "JavaScript",
89
89
  "X-Fern-SDK-Name": "candidhealth",
90
- "X-Fern-SDK-Version": "0.34.5",
90
+ "X-Fern-SDK-Version": "0.34.6",
91
91
  "X-Fern-Runtime": core.RUNTIME.type,
92
92
  "X-Fern-Runtime-Version": core.RUNTIME.version,
93
93
  },
@@ -69,7 +69,7 @@ class V2 {
69
69
  Authorization: yield this._getAuthorizationHeader(),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "candidhealth",
72
- "X-Fern-SDK-Version": "0.34.5",
72
+ "X-Fern-SDK-Version": "0.34.6",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -72,10 +72,10 @@ import * as CandidApi from "../../../index";
72
72
  * },
73
73
  * dateOfService: "2023-01-01",
74
74
  * endDateOfService: "2023-01-03",
75
- * testResult: {
76
- * type: "hemoglobin",
77
- * value: 2.4
78
- * }
75
+ * testResults: [{
76
+ * resultType: CandidApi.serviceLines.v2.TestResultType.Hemoglobin,
77
+ * value: 51
78
+ * }]
79
79
  * }],
80
80
  * eras: [{
81
81
  * eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
@@ -66,7 +66,7 @@ class V2 {
66
66
  Authorization: yield this._getAuthorizationHeader(),
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "candidhealth",
69
- "X-Fern-SDK-Version": "0.34.5",
69
+ "X-Fern-SDK-Version": "0.34.6",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -171,7 +171,7 @@ class V2 {
171
171
  Authorization: yield this._getAuthorizationHeader(),
172
172
  "X-Fern-Language": "JavaScript",
173
173
  "X-Fern-SDK-Name": "candidhealth",
174
- "X-Fern-SDK-Version": "0.34.5",
174
+ "X-Fern-SDK-Version": "0.34.6",
175
175
  "X-Fern-Runtime": core.RUNTIME.type,
176
176
  "X-Fern-Runtime-Version": core.RUNTIME.version,
177
177
  },
@@ -246,7 +246,7 @@ class V2 {
246
246
  Authorization: yield this._getAuthorizationHeader(),
247
247
  "X-Fern-Language": "JavaScript",
248
248
  "X-Fern-SDK-Name": "candidhealth",
249
- "X-Fern-SDK-Version": "0.34.5",
249
+ "X-Fern-SDK-Version": "0.34.6",
250
250
  "X-Fern-Runtime": core.RUNTIME.type,
251
251
  "X-Fern-Runtime-Version": core.RUNTIME.version,
252
252
  },
@@ -292,7 +292,7 @@ class V2 {
292
292
  Authorization: yield this._getAuthorizationHeader(),
293
293
  "X-Fern-Language": "JavaScript",
294
294
  "X-Fern-SDK-Name": "candidhealth",
295
- "X-Fern-SDK-Version": "0.34.5",
295
+ "X-Fern-SDK-Version": "0.34.6",
296
296
  "X-Fern-Runtime": core.RUNTIME.type,
297
297
  "X-Fern-Runtime-Version": core.RUNTIME.version,
298
298
  },
@@ -380,7 +380,7 @@ class V2 {
380
380
  Authorization: yield this._getAuthorizationHeader(),
381
381
  "X-Fern-Language": "JavaScript",
382
382
  "X-Fern-SDK-Name": "candidhealth",
383
- "X-Fern-SDK-Version": "0.34.5",
383
+ "X-Fern-SDK-Version": "0.34.6",
384
384
  "X-Fern-Runtime": core.RUNTIME.type,
385
385
  "X-Fern-Runtime-Version": core.RUNTIME.version,
386
386
  },
@@ -67,7 +67,7 @@ class V1 {
67
67
  Authorization: yield this._getAuthorizationHeader(),
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "candidhealth",
70
- "X-Fern-SDK-Version": "0.34.5",
70
+ "X-Fern-SDK-Version": "0.34.6",
71
71
  "X-Fern-Runtime": core.RUNTIME.type,
72
72
  "X-Fern-Runtime-Version": core.RUNTIME.version,
73
73
  },
@@ -128,7 +128,7 @@ class V1 {
128
128
  Authorization: yield this._getAuthorizationHeader(),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "candidhealth",
131
- "X-Fern-SDK-Version": "0.34.5",
131
+ "X-Fern-SDK-Version": "0.34.6",
132
132
  "X-Fern-Runtime": core.RUNTIME.type,
133
133
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
134
  },
@@ -207,7 +207,7 @@ class V1 {
207
207
  Authorization: yield this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "candidhealth",
210
- "X-Fern-SDK-Version": "0.34.5",
210
+ "X-Fern-SDK-Version": "0.34.6",
211
211
  "X-Fern-Runtime": core.RUNTIME.type,
212
212
  "X-Fern-Runtime-Version": core.RUNTIME.version,
213
213
  },
@@ -277,7 +277,7 @@ class V1 {
277
277
  Authorization: yield this._getAuthorizationHeader(),
278
278
  "X-Fern-Language": "JavaScript",
279
279
  "X-Fern-SDK-Name": "candidhealth",
280
- "X-Fern-SDK-Version": "0.34.5",
280
+ "X-Fern-SDK-Version": "0.34.6",
281
281
  "X-Fern-Runtime": core.RUNTIME.type,
282
282
  "X-Fern-Runtime-Version": core.RUNTIME.version,
283
283
  },
@@ -0,0 +1,65 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as CandidApi from "../../../index";
7
+ export declare namespace Diagnoses {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ }
20
+ }
21
+ export declare class Diagnoses {
22
+ protected readonly _options: Diagnoses.Options;
23
+ constructor(_options?: Diagnoses.Options);
24
+ /**
25
+ * Creates a new diagnosis for an encounter
26
+ *
27
+ * @param {CandidApi.StandaloneDiagnosisCreate} request
28
+ * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @example
31
+ * await client.diagnoses.create({
32
+ * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
33
+ * name: "string",
34
+ * codeType: CandidApi.DiagnosisTypeCode.Abf,
35
+ * code: "string"
36
+ * })
37
+ */
38
+ create(request: CandidApi.StandaloneDiagnosisCreate, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.create.Error>>;
39
+ /**
40
+ * Updates the diagnosis record matching the provided `diagnosis_id`
41
+ *
42
+ * @param {CandidApi.DiagnosisId} diagnosisId
43
+ * @param {CandidApi.DiagnosisUpdate} request
44
+ * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @example
47
+ * await client.diagnoses.update(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
48
+ * name: "string",
49
+ * codeType: CandidApi.DiagnosisTypeCode.Abf,
50
+ * code: "string"
51
+ * })
52
+ */
53
+ update(diagnosisId: CandidApi.DiagnosisId, request?: CandidApi.DiagnosisUpdate, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.update.Error>>;
54
+ /**
55
+ * Deletes the diagnosis record associated with the provided `diagnosis_id`
56
+ *
57
+ * @param {CandidApi.DiagnosisId} diagnosisId
58
+ * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
59
+ *
60
+ * @example
61
+ * await client.diagnoses.delete(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
62
+ */
63
+ delete(diagnosisId: CandidApi.DiagnosisId, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<void, CandidApi.diagnoses.delete.Error>>;
64
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
65
+ }
@@ -0,0 +1,237 @@
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Diagnoses = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const CandidApi = __importStar(require("../../../index"));
45
+ const serializers = __importStar(require("../../../../serialization/index"));
46
+ const url_join_1 = __importDefault(require("url-join"));
47
+ class Diagnoses {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * Creates a new diagnosis for an encounter
53
+ *
54
+ * @param {CandidApi.StandaloneDiagnosisCreate} request
55
+ * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @example
58
+ * await client.diagnoses.create({
59
+ * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
60
+ * name: "string",
61
+ * codeType: CandidApi.DiagnosisTypeCode.Abf,
62
+ * code: "string"
63
+ * })
64
+ */
65
+ create(request, requestOptions) {
66
+ var _a;
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const _response = yield core.fetcher({
69
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
70
+ .candidApi, "/api/diagnoses/v2"),
71
+ method: "POST",
72
+ headers: {
73
+ Authorization: yield this._getAuthorizationHeader(),
74
+ "X-Fern-Language": "JavaScript",
75
+ "X-Fern-SDK-Name": "candidhealth",
76
+ "X-Fern-SDK-Version": "0.34.6",
77
+ "X-Fern-Runtime": core.RUNTIME.type,
78
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
79
+ },
80
+ contentType: "application/json",
81
+ requestType: "json",
82
+ body: serializers.StandaloneDiagnosisCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
83
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
84
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
+ });
87
+ if (_response.ok) {
88
+ return {
89
+ ok: true,
90
+ body: serializers.Diagnosis.parseOrThrow(_response.body, {
91
+ unrecognizedObjectKeys: "passthrough",
92
+ allowUnrecognizedUnionMembers: true,
93
+ allowUnrecognizedEnumValues: true,
94
+ breadcrumbsPrefix: ["response"],
95
+ }),
96
+ };
97
+ }
98
+ return {
99
+ ok: false,
100
+ error: CandidApi.diagnoses.create.Error._unknown(_response.error),
101
+ };
102
+ });
103
+ }
104
+ /**
105
+ * Updates the diagnosis record matching the provided `diagnosis_id`
106
+ *
107
+ * @param {CandidApi.DiagnosisId} diagnosisId
108
+ * @param {CandidApi.DiagnosisUpdate} request
109
+ * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @example
112
+ * await client.diagnoses.update(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
113
+ * name: "string",
114
+ * codeType: CandidApi.DiagnosisTypeCode.Abf,
115
+ * code: "string"
116
+ * })
117
+ */
118
+ update(diagnosisId, request = {}, requestOptions) {
119
+ var _a, _b;
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const _response = yield core.fetcher({
122
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
123
+ .candidApi, `/api/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
124
+ method: "PATCH",
125
+ headers: {
126
+ Authorization: yield this._getAuthorizationHeader(),
127
+ "X-Fern-Language": "JavaScript",
128
+ "X-Fern-SDK-Name": "candidhealth",
129
+ "X-Fern-SDK-Version": "0.34.6",
130
+ "X-Fern-Runtime": core.RUNTIME.type,
131
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
132
+ },
133
+ contentType: "application/json",
134
+ requestType: "json",
135
+ body: serializers.DiagnosisUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
136
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
137
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
138
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
139
+ });
140
+ if (_response.ok) {
141
+ return {
142
+ ok: true,
143
+ body: serializers.Diagnosis.parseOrThrow(_response.body, {
144
+ unrecognizedObjectKeys: "passthrough",
145
+ allowUnrecognizedUnionMembers: true,
146
+ allowUnrecognizedEnumValues: true,
147
+ breadcrumbsPrefix: ["response"],
148
+ }),
149
+ };
150
+ }
151
+ if (_response.error.reason === "status-code") {
152
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
153
+ case "DiagnosisNotFoundHTTPError":
154
+ return {
155
+ ok: false,
156
+ error: serializers.diagnoses.update.Error.parseOrThrow(_response.error.body, {
157
+ unrecognizedObjectKeys: "passthrough",
158
+ allowUnrecognizedUnionMembers: true,
159
+ allowUnrecognizedEnumValues: true,
160
+ breadcrumbsPrefix: ["response"],
161
+ }),
162
+ };
163
+ }
164
+ }
165
+ return {
166
+ ok: false,
167
+ error: CandidApi.diagnoses.update.Error._unknown(_response.error),
168
+ };
169
+ });
170
+ }
171
+ /**
172
+ * Deletes the diagnosis record associated with the provided `diagnosis_id`
173
+ *
174
+ * @param {CandidApi.DiagnosisId} diagnosisId
175
+ * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
176
+ *
177
+ * @example
178
+ * await client.diagnoses.delete(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
179
+ */
180
+ delete(diagnosisId, requestOptions) {
181
+ var _a, _b;
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const _response = yield core.fetcher({
184
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
185
+ .candidApi, `/api/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
186
+ method: "DELETE",
187
+ headers: {
188
+ Authorization: yield this._getAuthorizationHeader(),
189
+ "X-Fern-Language": "JavaScript",
190
+ "X-Fern-SDK-Name": "candidhealth",
191
+ "X-Fern-SDK-Version": "0.34.6",
192
+ "X-Fern-Runtime": core.RUNTIME.type,
193
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
194
+ },
195
+ contentType: "application/json",
196
+ requestType: "json",
197
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
198
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
199
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
200
+ });
201
+ if (_response.ok) {
202
+ return {
203
+ ok: true,
204
+ body: undefined,
205
+ };
206
+ }
207
+ if (_response.error.reason === "status-code") {
208
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
209
+ case "DiagnosisNotFoundHTTPError":
210
+ return {
211
+ ok: false,
212
+ error: serializers.diagnoses.delete.Error.parseOrThrow(_response.error.body, {
213
+ unrecognizedObjectKeys: "passthrough",
214
+ allowUnrecognizedUnionMembers: true,
215
+ allowUnrecognizedEnumValues: true,
216
+ breadcrumbsPrefix: ["response"],
217
+ }),
218
+ };
219
+ }
220
+ }
221
+ return {
222
+ ok: false,
223
+ error: CandidApi.diagnoses.delete.Error._unknown(_response.error),
224
+ };
225
+ });
226
+ }
227
+ _getAuthorizationHeader() {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ const bearer = yield core.Supplier.get(this._options.token);
230
+ if (bearer != null) {
231
+ return `Bearer ${bearer}`;
232
+ }
233
+ return undefined;
234
+ });
235
+ }
236
+ }
237
+ exports.Diagnoses = Diagnoses;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare type Error = CandidApi.diagnoses.create.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.diagnoses.create.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.diagnoses.create.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.diagnoses.create.Error, visitor: CandidApi.diagnoses.create.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
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.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../index"));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.diagnoses.create.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare type Error = CandidApi.diagnoses.delete.Error.DiagnosisNotFoundHttpError | CandidApi.diagnoses.delete.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface DiagnosisNotFoundHttpError extends _Utils {
9
+ errorName: "DiagnosisNotFoundHTTPError";
10
+ content: CandidApi.DiagnosisNotFoundError;
11
+ }
12
+ interface _Unknown extends _Utils {
13
+ errorName: void;
14
+ content: core.Fetcher.Error;
15
+ }
16
+ interface _Utils {
17
+ _visit: <_Result>(visitor: CandidApi.diagnoses.delete.Error._Visitor<_Result>) => _Result;
18
+ }
19
+ interface _Visitor<_Result> {
20
+ diagnosisNotFoundHttpError: (value: CandidApi.DiagnosisNotFoundError) => _Result;
21
+ _other: (value: core.Fetcher.Error) => _Result;
22
+ }
23
+ }
24
+ export declare const Error: {
25
+ readonly diagnosisNotFoundHttpError: (value: CandidApi.DiagnosisNotFoundError) => CandidApi.diagnoses.delete.Error.DiagnosisNotFoundHttpError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.diagnoses.delete.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.diagnoses.delete.Error, visitor: CandidApi.diagnoses.delete.Error._Visitor<_Result>) => _Result;
28
+ };
@@ -0,0 +1,58 @@
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.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../index"));
31
+ exports.Error = {
32
+ diagnosisNotFoundHttpError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "DiagnosisNotFoundHTTPError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.diagnoses.delete.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _unknown: (fetcherError) => {
42
+ return {
43
+ errorName: undefined,
44
+ content: fetcherError,
45
+ _visit: function (visitor) {
46
+ return CandidApi.diagnoses.delete.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ _visit: (value, visitor) => {
51
+ switch (value.errorName) {
52
+ case "DiagnosisNotFoundHTTPError":
53
+ return visitor.diagnosisNotFoundHttpError(value.content);
54
+ default:
55
+ return visitor._other(value);
56
+ }
57
+ },
58
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./requests";
2
+ export * as create from "./create";
3
+ export * as update from "./update";
4
+ export * as delete from "./delete";