candidhealth 0.39.1 → 0.39.3

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 (194) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  4. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  5. package/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  6. package/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +12 -0
  7. package/api/resources/commons/types/index.d.ts +1 -0
  8. package/api/resources/commons/types/index.js +1 -0
  9. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  10. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  11. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  12. package/api/resources/diagnoses/client/Client.js +3 -3
  13. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  14. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  15. package/api/resources/encounters/resources/v4/client/Client.d.ts +231 -83
  16. package/api/resources/encounters/resources/v4/client/Client.js +297 -89
  17. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +58 -0
  18. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +113 -0
  19. package/api/resources/encounters/resources/v4/client/index.d.ts +1 -0
  20. package/api/resources/encounters/resources/v4/client/index.js +2 -1
  21. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -43
  22. package/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  23. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  24. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +58 -0
  25. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  26. package/api/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +9 -0
  27. package/api/resources/encounters/resources/v4/types/index.d.ts +2 -0
  28. package/api/resources/encounters/resources/v4/types/index.js +2 -0
  29. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  30. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  31. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  32. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  33. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  34. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  35. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  36. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  37. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  38. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  39. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  40. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  41. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  42. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  43. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  44. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  45. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  46. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  47. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  48. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  49. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  50. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  51. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  52. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  53. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  54. package/api/resources/serviceFacility/client/Client.js +1 -1
  55. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -2
  56. package/api/resources/serviceLines/resources/v2/client/Client.js +9 -5
  57. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +10 -0
  58. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +10 -0
  59. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +10 -0
  60. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +10 -0
  61. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  62. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  63. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  64. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  65. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  66. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  67. package/dist/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  68. package/dist/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +12 -0
  69. package/dist/api/resources/commons/types/index.d.ts +1 -0
  70. package/dist/api/resources/commons/types/index.js +1 -0
  71. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  72. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  73. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  74. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  75. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  76. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  77. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +231 -83
  78. package/dist/api/resources/encounters/resources/v4/client/Client.js +297 -89
  79. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +58 -0
  80. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +113 -0
  81. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +1 -0
  82. package/dist/api/resources/encounters/resources/v4/client/index.js +2 -1
  83. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -43
  84. package/dist/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  85. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  86. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +58 -0
  87. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +5 -0
  88. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  89. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +9 -0
  90. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferral.js +5 -0
  91. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +2 -0
  92. package/dist/api/resources/encounters/resources/v4/types/index.js +2 -0
  93. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  94. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  95. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  96. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  97. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  98. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  99. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  100. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  101. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  102. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  103. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  104. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  105. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  106. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  107. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  108. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  109. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  110. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  111. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  112. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  113. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  114. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  115. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  116. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  117. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  118. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  119. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -2
  120. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +9 -5
  121. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +10 -0
  122. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +10 -0
  123. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +10 -0
  124. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +10 -0
  125. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  126. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  127. package/dist/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  128. package/dist/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +31 -0
  129. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  130. package/dist/serialization/resources/commons/types/index.js +1 -0
  131. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +39 -0
  132. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +90 -0
  133. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  134. package/dist/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  135. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  136. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
  137. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  138. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.js +1 -3
  139. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  140. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  141. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +44 -0
  142. package/dist/serialization/resources/encounters/resources/v4/{client/requests → types}/EncounterCreateFromPreEncounter.js +18 -18
  143. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  144. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +2 -0
  145. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +15 -0
  146. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferral.js +36 -0
  147. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +2 -0
  148. package/dist/serialization/resources/encounters/resources/v4/types/index.js +2 -0
  149. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  150. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  151. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  152. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
  153. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  154. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  155. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  156. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
  157. package/package.json +1 -1
  158. package/reference.md +2177 -4574
  159. package/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  160. package/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +31 -0
  161. package/serialization/resources/commons/types/index.d.ts +1 -0
  162. package/serialization/resources/commons/types/index.js +1 -0
  163. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +39 -0
  164. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +90 -0
  165. package/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  166. package/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  167. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  168. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
  169. package/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  170. package/serialization/resources/encounters/resources/v4/client/requests/index.js +1 -3
  171. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  172. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  173. package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +44 -0
  174. package/serialization/resources/encounters/resources/v4/{client/requests → types}/EncounterCreateFromPreEncounter.js +18 -18
  175. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  176. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +2 -0
  177. package/serialization/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +15 -0
  178. package/serialization/resources/encounters/resources/v4/types/EpsdtReferral.js +36 -0
  179. package/serialization/resources/encounters/resources/v4/types/index.d.ts +2 -0
  180. package/serialization/resources/encounters/resources/v4/types/index.js +2 -0
  181. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  182. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  183. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  184. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
  185. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  186. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  187. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  188. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
  189. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -319
  190. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -319
  191. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -44
  192. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -44
  193. /package/api/resources/encounters/resources/v4/{client/requests → types}/EncounterCreateFromPreEncounter.js +0 -0
  194. /package/{dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.js → api/resources/encounters/resources/v4/types/EpsdtReferral.js} +0 -0
@@ -132,7 +132,7 @@ class V4 {
132
132
  Authorization: yield this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.39.1",
135
+ "X-Fern-SDK-Version": "0.39.3",
136
136
  "X-Fern-Runtime": core.RUNTIME.type,
137
137
  "X-Fern-Runtime-Version": core.RUNTIME.version,
138
138
  },
@@ -178,7 +178,7 @@ class V4 {
178
178
  Authorization: yield this._getAuthorizationHeader(),
179
179
  "X-Fern-Language": "JavaScript",
180
180
  "X-Fern-SDK-Name": "candidhealth",
181
- "X-Fern-SDK-Version": "0.39.1",
181
+ "X-Fern-SDK-Version": "0.39.3",
182
182
  "X-Fern-Runtime": core.RUNTIME.type,
183
183
  "X-Fern-Runtime-Version": core.RUNTIME.version,
184
184
  },
@@ -396,12 +396,7 @@ class V4 {
396
396
  * }],
397
397
  * clinicalNotes: [{
398
398
  * category: CandidApi.encounters.v4.NoteCategory.Clinical,
399
- * notes: [{
400
- * text: "string",
401
- * authorName: "string",
402
- * authorNpi: CandidApi.Npi("string"),
403
- * timestamp: new Date("2024-01-15T09:30:00.000Z")
404
- * }]
399
+ * notes: []
405
400
  * }],
406
401
  * billingNotes: [{
407
402
  * text: "string"
@@ -423,45 +418,10 @@ class V4 {
423
418
  * }]
424
419
  * }],
425
420
  * serviceLines: [{
426
- * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
427
421
  * procedureCode: "string",
428
422
  * quantity: CandidApi.Decimal("string"),
429
423
  * units: CandidApi.ServiceLineUnits.Mj,
430
- * chargeAmountCents: 1,
431
- * diagnosisPointers: [1],
432
- * drugIdentification: {
433
- * serviceIdQualifier: CandidApi.serviceLines.v2.ServiceIdQualifier.EanUcc13,
434
- * nationalDrugCode: "string",
435
- * nationalDrugUnitCount: "string",
436
- * measurementUnitCode: CandidApi.serviceLines.v2.MeasurementUnitCode.Milliliters,
437
- * linkSequenceNumber: "string",
438
- * pharmacyPrescriptionNumber: "string",
439
- * conversionFormula: "string",
440
- * drugDescription: "string"
441
- * },
442
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
443
- * description: "string",
444
- * dateOfService: "2023-01-15",
445
- * endDateOfService: "2023-01-15",
446
- * orderingProvider: {
447
- * npi: "string",
448
- * taxonomyCode: "string",
449
- * address: {
450
- * address1: "123 Main St",
451
- * address2: "Apt 1",
452
- * city: "New York",
453
- * state: CandidApi.State.Ny,
454
- * zipCode: "10001",
455
- * zipPlusFourCode: "1234"
456
- * },
457
- * firstName: "string",
458
- * lastName: "string",
459
- * organizationName: "string"
460
- * },
461
- * testResults: [{
462
- * value: 1.1,
463
- * resultType: CandidApi.serviceLines.v2.TestResultType.Hematocrit
464
- * }]
424
+ * diagnosisPointers: []
465
425
  * }],
466
426
  * guarantor: {
467
427
  * phoneNumbers: [{
@@ -510,6 +470,11 @@ class V4 {
510
470
  * }
511
471
  * }],
512
472
  * referralNumber: "string",
473
+ * epsdtReferral: {
474
+ * conditionIndicator1: CandidApi.EpsdtReferralConditionIndicatorCode.Av,
475
+ * conditionIndicator2: CandidApi.EpsdtReferralConditionIndicatorCode.Av,
476
+ * conditionIndicator3: CandidApi.EpsdtReferralConditionIndicatorCode.Av
477
+ * },
513
478
  * externalId: CandidApi.EncounterExternalId("string"),
514
479
  * dateOfService: "2023-01-15",
515
480
  * endDateOfService: "2023-01-15",
@@ -582,7 +547,7 @@ class V4 {
582
547
  Authorization: yield this._getAuthorizationHeader(),
583
548
  "X-Fern-Language": "JavaScript",
584
549
  "X-Fern-SDK-Name": "candidhealth",
585
- "X-Fern-SDK-Version": "0.39.1",
550
+ "X-Fern-SDK-Version": "0.39.3",
586
551
  "X-Fern-Runtime": core.RUNTIME.type,
587
552
  "X-Fern-Runtime-Version": core.RUNTIME.version,
588
553
  },
@@ -741,12 +706,7 @@ class V4 {
741
706
  * }],
742
707
  * clinicalNotes: [{
743
708
  * category: CandidApi.encounters.v4.NoteCategory.Clinical,
744
- * notes: [{
745
- * text: "string",
746
- * authorName: "string",
747
- * authorNpi: CandidApi.Npi("string"),
748
- * timestamp: new Date("2024-01-15T09:30:00.000Z")
749
- * }]
709
+ * notes: []
750
710
  * }],
751
711
  * billingNotes: [{
752
712
  * text: "string"
@@ -768,45 +728,10 @@ class V4 {
768
728
  * }]
769
729
  * }],
770
730
  * serviceLines: [{
771
- * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
772
731
  * procedureCode: "string",
773
732
  * quantity: CandidApi.Decimal("string"),
774
733
  * units: CandidApi.ServiceLineUnits.Mj,
775
- * chargeAmountCents: 1,
776
- * diagnosisPointers: [1],
777
- * drugIdentification: {
778
- * serviceIdQualifier: CandidApi.serviceLines.v2.ServiceIdQualifier.EanUcc13,
779
- * nationalDrugCode: "string",
780
- * nationalDrugUnitCount: "string",
781
- * measurementUnitCode: CandidApi.serviceLines.v2.MeasurementUnitCode.Milliliters,
782
- * linkSequenceNumber: "string",
783
- * pharmacyPrescriptionNumber: "string",
784
- * conversionFormula: "string",
785
- * drugDescription: "string"
786
- * },
787
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
788
- * description: "string",
789
- * dateOfService: "2023-01-15",
790
- * endDateOfService: "2023-01-15",
791
- * orderingProvider: {
792
- * npi: "string",
793
- * taxonomyCode: "string",
794
- * address: {
795
- * address1: "123 Main St",
796
- * address2: "Apt 1",
797
- * city: "New York",
798
- * state: CandidApi.State.Ny,
799
- * zipCode: "10001",
800
- * zipPlusFourCode: "1234"
801
- * },
802
- * firstName: "string",
803
- * lastName: "string",
804
- * organizationName: "string"
805
- * },
806
- * testResults: [{
807
- * value: 1.1,
808
- * resultType: CandidApi.serviceLines.v2.TestResultType.Hematocrit
809
- * }]
734
+ * diagnosisPointers: []
810
735
  * }],
811
736
  * externalClaimSubmission: {
812
737
  * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
@@ -905,7 +830,7 @@ class V4 {
905
830
  Authorization: yield this._getAuthorizationHeader(),
906
831
  "X-Fern-Language": "JavaScript",
907
832
  "X-Fern-SDK-Name": "candidhealth",
908
- "X-Fern-SDK-Version": "0.39.1",
833
+ "X-Fern-SDK-Version": "0.39.3",
909
834
  "X-Fern-Runtime": core.RUNTIME.type,
910
835
  "X-Fern-Runtime-Version": core.RUNTIME.version,
911
836
  },
@@ -954,6 +879,289 @@ class V4 {
954
879
  };
955
880
  });
956
881
  }
882
+ /**
883
+ * Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
884
+ * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
885
+ * of the pre-encounter service should use the standard create endpoint.
886
+ *
887
+ * The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
888
+ * where applicable. In particular, the following fields are populated from the patient and appointment objects:
889
+ *
890
+ * - Patient
891
+ * - Referring Provider
892
+ * - Subscriber Primary
893
+ * - Subscriber Secondary
894
+ * - Referral Number
895
+ * - Responsible Party
896
+ * - Guarantor
897
+ *
898
+ * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
899
+ * encounter has not already been submitted or adjudicated.
900
+ *
901
+ * @param {CandidApi.encounters.v4.EncounterCreateFromPreEncounter} request
902
+ * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
903
+ *
904
+ * @example
905
+ * await client.encounters.v4.createFromPreEncounterPatientInternal({
906
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
907
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
908
+ * billingProvider: {
909
+ * address: {
910
+ * address1: "123 Main St",
911
+ * address2: "Apt 1",
912
+ * city: "New York",
913
+ * state: CandidApi.State.Ny,
914
+ * zipCode: "10001",
915
+ * zipPlusFourCode: "1234"
916
+ * },
917
+ * taxId: "string",
918
+ * npi: "string",
919
+ * taxonomyCode: "string",
920
+ * providerCommercialLicenseType: CandidApi.BillingProviderCommercialLicenseType.LicensedClinicalSocialWorker,
921
+ * firstName: "string",
922
+ * lastName: "string",
923
+ * organizationName: "string"
924
+ * },
925
+ * renderingProvider: {
926
+ * npi: "string",
927
+ * taxonomyCode: "string",
928
+ * address: {
929
+ * address1: "123 Main St",
930
+ * address2: "Apt 1",
931
+ * city: "New York",
932
+ * state: CandidApi.State.Ny,
933
+ * zipCode: "10001",
934
+ * zipPlusFourCode: "1234"
935
+ * },
936
+ * firstName: "string",
937
+ * lastName: "string",
938
+ * organizationName: "string"
939
+ * },
940
+ * initialReferringProvider: {
941
+ * npi: "string",
942
+ * taxonomyCode: "string",
943
+ * address: {
944
+ * address1: "123 Main St",
945
+ * address2: "Apt 1",
946
+ * city: "New York",
947
+ * state: CandidApi.State.Ny,
948
+ * zipCode: "10001",
949
+ * zipPlusFourCode: "1234"
950
+ * },
951
+ * qualifier: CandidApi.QualifierCode.Dq,
952
+ * firstName: "string",
953
+ * lastName: "string",
954
+ * organizationName: "string"
955
+ * },
956
+ * supervisingProvider: {
957
+ * npi: "string",
958
+ * taxonomyCode: "string",
959
+ * address: {
960
+ * address1: "123 Main St",
961
+ * address2: "Apt 1",
962
+ * city: "New York",
963
+ * state: CandidApi.State.Ny,
964
+ * zipCode: "10001",
965
+ * zipPlusFourCode: "1234"
966
+ * },
967
+ * firstName: "string",
968
+ * lastName: "string",
969
+ * organizationName: "string"
970
+ * },
971
+ * serviceFacility: {
972
+ * organizationName: "string",
973
+ * npi: "string",
974
+ * address: {
975
+ * address1: "123 Main St",
976
+ * address2: "Apt 1",
977
+ * city: "New York",
978
+ * state: CandidApi.State.Ny,
979
+ * zipCode: "10001",
980
+ * zipPlusFourCode: "1234"
981
+ * },
982
+ * secondaryIdentification: "string"
983
+ * },
984
+ * diagnoses: [{
985
+ * name: "string",
986
+ * codeType: CandidApi.DiagnosisTypeCode.Abf,
987
+ * code: "string"
988
+ * }],
989
+ * clinicalNotes: [{
990
+ * category: CandidApi.encounters.v4.NoteCategory.Clinical,
991
+ * notes: []
992
+ * }],
993
+ * billingNotes: [{
994
+ * text: "string"
995
+ * }],
996
+ * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
997
+ * patientHistories: [{
998
+ * category: CandidApi.encounters.v4.PatientHistoryCategoryEnum.PresentIllness,
999
+ * questions: [{
1000
+ * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
1001
+ * text: "Do you have any allergies?",
1002
+ * responses: [{
1003
+ * response: "No allergies",
1004
+ * followUps: [{
1005
+ * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
1006
+ * text: "Do you have any allergies?",
1007
+ * response: "No allergies"
1008
+ * }]
1009
+ * }]
1010
+ * }]
1011
+ * }],
1012
+ * serviceLines: [{
1013
+ * procedureCode: "string",
1014
+ * quantity: CandidApi.Decimal("string"),
1015
+ * units: CandidApi.ServiceLineUnits.Mj,
1016
+ * diagnosisPointers: []
1017
+ * }],
1018
+ * externalClaimSubmission: {
1019
+ * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
1020
+ * patientControlNumber: "PATIENT_CONTROL_NUMBER",
1021
+ * submissionRecords: [{
1022
+ * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
1023
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
1024
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
1025
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
1026
+ * }, {
1027
+ * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
1028
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
1029
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
1030
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
1031
+ * }]
1032
+ * },
1033
+ * tagIds: [CandidApi.TagId("string")],
1034
+ * schemaInstances: [{
1035
+ * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
1036
+ * content: {
1037
+ * "provider_category": "internist",
1038
+ * "is_urgent_care": true,
1039
+ * "bmi": 24.2,
1040
+ * "age": 38
1041
+ * }
1042
+ * }],
1043
+ * externalId: CandidApi.EncounterExternalId("string"),
1044
+ * dateOfService: "2023-01-15",
1045
+ * endDateOfService: "2023-01-15",
1046
+ * patientAuthorizedRelease: true,
1047
+ * benefitsAssignedToProvider: true,
1048
+ * providerAcceptsAssignment: true,
1049
+ * appointmentType: "string",
1050
+ * existingMedications: [{
1051
+ * name: "Lisinopril",
1052
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
1053
+ * dosage: "10mg",
1054
+ * dosageForm: "Tablet",
1055
+ * frequency: "Once Daily",
1056
+ * asNeeded: true
1057
+ * }],
1058
+ * vitals: {
1059
+ * heightIn: 70,
1060
+ * weightLbs: 165,
1061
+ * bloodPressureSystolicMmhg: 115,
1062
+ * bloodPressureDiastolicMmhg: 85,
1063
+ * bodyTemperatureF: 98,
1064
+ * hemoglobinGdl: 15.1,
1065
+ * hematocritPct: 51.2
1066
+ * },
1067
+ * interventions: [{
1068
+ * name: "Physical Therapy Session",
1069
+ * category: CandidApi.encounters.v4.InterventionCategory.Lifestyle,
1070
+ * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
1071
+ * medication: {
1072
+ * name: "Lisinopril",
1073
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
1074
+ * dosage: "10mg",
1075
+ * dosageForm: "Tablet",
1076
+ * frequency: "Once Daily",
1077
+ * asNeeded: true
1078
+ * },
1079
+ * labs: [{
1080
+ * name: "Genetic Health Labs",
1081
+ * code: "GH12345",
1082
+ * codeType: CandidApi.encounters.v4.LabCodeType.Quest
1083
+ * }]
1084
+ * }],
1085
+ * payToAddress: {
1086
+ * address1: "123 Main St",
1087
+ * address2: "Apt 1",
1088
+ * city: "New York",
1089
+ * state: CandidApi.State.Ny,
1090
+ * zipCode: "10001",
1091
+ * zipPlusFourCode: "1234"
1092
+ * },
1093
+ * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
1094
+ * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
1095
+ * additionalInformation: "string",
1096
+ * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
1097
+ * admissionDate: "2023-01-15",
1098
+ * dischargeDate: "2023-01-15",
1099
+ * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
1100
+ * lastMenstrualPeriodDate: "2023-01-15",
1101
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
1102
+ * })
1103
+ */
1104
+ createFromPreEncounterPatientInternal(request, requestOptions) {
1105
+ var _a, _b;
1106
+ return __awaiter(this, void 0, void 0, function* () {
1107
+ const _response = yield core.fetcher({
1108
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
1109
+ .candidApi, "/api/encounters/v4/create-from-pre-encounter-internal"),
1110
+ method: "POST",
1111
+ headers: {
1112
+ Authorization: yield this._getAuthorizationHeader(),
1113
+ "X-Fern-Language": "JavaScript",
1114
+ "X-Fern-SDK-Name": "candidhealth",
1115
+ "X-Fern-SDK-Version": "0.39.3",
1116
+ "X-Fern-Runtime": core.RUNTIME.type,
1117
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1118
+ },
1119
+ contentType: "application/json",
1120
+ requestType: "json",
1121
+ body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
1122
+ unrecognizedObjectKeys: "strip",
1123
+ }),
1124
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1125
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1126
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1127
+ });
1128
+ if (_response.ok) {
1129
+ return {
1130
+ ok: true,
1131
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
1132
+ unrecognizedObjectKeys: "passthrough",
1133
+ allowUnrecognizedUnionMembers: true,
1134
+ allowUnrecognizedEnumValues: true,
1135
+ breadcrumbsPrefix: ["response"],
1136
+ }),
1137
+ };
1138
+ }
1139
+ if (_response.error.reason === "status-code") {
1140
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
1141
+ case "EncounterExternalIdUniquenessError":
1142
+ case "EncounterPatientControlNumberUniquenessError":
1143
+ case "EntityNotFoundError":
1144
+ case "HttpRequestValidationsError":
1145
+ case "SchemaInstanceValidationHttpFailure":
1146
+ case "HttpRequestValidationError":
1147
+ return {
1148
+ ok: false,
1149
+ error: serializers.encounters.v4.createFromPreEncounterPatientInternal.Error.parseOrThrow(_response.error
1150
+ .body, {
1151
+ unrecognizedObjectKeys: "passthrough",
1152
+ allowUnrecognizedUnionMembers: true,
1153
+ allowUnrecognizedEnumValues: true,
1154
+ breadcrumbsPrefix: ["response"],
1155
+ }),
1156
+ };
1157
+ }
1158
+ }
1159
+ return {
1160
+ ok: false,
1161
+ error: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._unknown(_response.error),
1162
+ };
1163
+ });
1164
+ }
957
1165
  /**
958
1166
  * @param {CandidApi.EncounterId} encounterId
959
1167
  * @param {CandidApi.encounters.v4.EncounterUpdate} request
@@ -976,7 +1184,7 @@ class V4 {
976
1184
  Authorization: yield this._getAuthorizationHeader(),
977
1185
  "X-Fern-Language": "JavaScript",
978
1186
  "X-Fern-SDK-Name": "candidhealth",
979
- "X-Fern-SDK-Version": "0.39.1",
1187
+ "X-Fern-SDK-Version": "0.39.3",
980
1188
  "X-Fern-Runtime": core.RUNTIME.type,
981
1189
  "X-Fern-Runtime-Version": core.RUNTIME.version,
982
1190
  },
@@ -0,0 +1,58 @@
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.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EntityNotFoundError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationsError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EncounterExternalIdUniquenessError extends _Utils {
9
+ errorName: "EncounterExternalIdUniquenessError";
10
+ content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
11
+ }
12
+ interface EncounterPatientControlNumberUniquenessError extends _Utils {
13
+ errorName: "EncounterPatientControlNumberUniquenessError";
14
+ content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
15
+ }
16
+ interface EntityNotFoundError extends _Utils {
17
+ errorName: "EntityNotFoundError";
18
+ content: CandidApi.EntityNotFoundErrorMessage;
19
+ }
20
+ interface HttpRequestValidationsError extends _Utils {
21
+ errorName: "HttpRequestValidationsError";
22
+ content: CandidApi.RequestValidationError[];
23
+ }
24
+ interface SchemaInstanceValidationHttpFailure extends _Utils {
25
+ errorName: "SchemaInstanceValidationHttpFailure";
26
+ content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
27
+ }
28
+ interface HttpRequestValidationError extends _Utils {
29
+ errorName: "HttpRequestValidationError";
30
+ content: CandidApi.RequestValidationError;
31
+ }
32
+ interface _Unknown extends _Utils {
33
+ errorName: void;
34
+ content: core.Fetcher.Error;
35
+ }
36
+ interface _Utils {
37
+ _visit: <_Result>(visitor: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Visitor<_Result>) => _Result;
38
+ }
39
+ interface _Visitor<_Result> {
40
+ encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
41
+ encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
42
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
43
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
44
+ schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
45
+ httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
46
+ _other: (value: core.Fetcher.Error) => _Result;
47
+ }
48
+ }
49
+ export declare const Error: {
50
+ readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterExternalIdUniquenessError;
51
+ readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterPatientControlNumberUniquenessError;
52
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EntityNotFoundError;
53
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationsError;
54
+ readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.SchemaInstanceValidationHttpFailure;
55
+ readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationError;
56
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Unknown;
57
+ readonly _visit: <_Result>(value: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error, visitor: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Visitor<_Result>) => _Result;
58
+ };
@@ -0,0 +1,113 @@
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
+ encounterExternalIdUniquenessError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EncounterExternalIdUniquenessError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ encounterPatientControlNumberUniquenessError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "EncounterPatientControlNumberUniquenessError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ entityNotFoundError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "EntityNotFoundError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ httpRequestValidationsError: (value) => {
60
+ return {
61
+ content: value,
62
+ errorName: "HttpRequestValidationsError",
63
+ _visit: function (visitor) {
64
+ return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
65
+ },
66
+ };
67
+ },
68
+ schemaInstanceValidationHttpFailure: (value) => {
69
+ return {
70
+ content: value,
71
+ errorName: "SchemaInstanceValidationHttpFailure",
72
+ _visit: function (visitor) {
73
+ return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
74
+ },
75
+ };
76
+ },
77
+ httpRequestValidationError: (value) => {
78
+ return {
79
+ content: value,
80
+ errorName: "HttpRequestValidationError",
81
+ _visit: function (visitor) {
82
+ return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
83
+ },
84
+ };
85
+ },
86
+ _unknown: (fetcherError) => {
87
+ return {
88
+ errorName: undefined,
89
+ content: fetcherError,
90
+ _visit: function (visitor) {
91
+ return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
92
+ },
93
+ };
94
+ },
95
+ _visit: (value, visitor) => {
96
+ switch (value.errorName) {
97
+ case "EncounterExternalIdUniquenessError":
98
+ return visitor.encounterExternalIdUniquenessError(value.content);
99
+ case "EncounterPatientControlNumberUniquenessError":
100
+ return visitor.encounterPatientControlNumberUniquenessError(value.content);
101
+ case "EntityNotFoundError":
102
+ return visitor.entityNotFoundError(value.content);
103
+ case "HttpRequestValidationsError":
104
+ return visitor.httpRequestValidationsError(value.content);
105
+ case "SchemaInstanceValidationHttpFailure":
106
+ return visitor.schemaInstanceValidationHttpFailure(value.content);
107
+ case "HttpRequestValidationError":
108
+ return visitor.httpRequestValidationError(value.content);
109
+ default:
110
+ return visitor._other(value);
111
+ }
112
+ },
113
+ };
@@ -3,4 +3,5 @@ export * as getAll from "./getAll";
3
3
  export * as get from "./get";
4
4
  export * as create from "./create";
5
5
  export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
6
+ export * as createFromPreEncounterPatientInternal from "./createFromPreEncounterPatientInternal";
6
7
  export * as update from "./update";
@@ -26,10 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.update = exports.createFromPreEncounterPatient = exports.create = exports.get = exports.getAll = void 0;
29
+ exports.update = exports.createFromPreEncounterPatientInternal = exports.createFromPreEncounterPatient = exports.create = exports.get = exports.getAll = void 0;
30
30
  __exportStar(require("./requests"), exports);
31
31
  exports.getAll = __importStar(require("./getAll"));
32
32
  exports.get = __importStar(require("./get"));
33
33
  exports.create = __importStar(require("./create"));
34
34
  exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
35
+ exports.createFromPreEncounterPatientInternal = __importStar(require("./createFromPreEncounterPatientInternal"));
35
36
  exports.update = __importStar(require("./update"));