candidhealth 0.37.0 → 0.38.1

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 (238) 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.d.ts +7 -4
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +19 -28
  5. package/api/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -7
  6. package/api/resources/chargeCapture/resources/v1/client/delete.js +0 -11
  7. package/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +1 -7
  8. package/api/resources/chargeCapture/resources/v1/client/getAll.js +0 -11
  9. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +10 -3
  10. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +9 -2
  11. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +8 -2
  12. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +6 -1
  13. package/api/resources/commons/types/index.d.ts +0 -1
  14. package/api/resources/commons/types/index.js +0 -1
  15. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  16. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  17. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  18. package/api/resources/diagnoses/client/Client.js +3 -3
  19. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  20. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  21. package/api/resources/encounters/resources/v4/client/Client.d.ts +4 -2
  22. package/api/resources/encounters/resources/v4/client/Client.js +11 -7
  23. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  24. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  25. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -1
  26. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +2 -1
  27. package/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
  28. package/api/resources/encounters/resources/v4/client/update.js +11 -0
  29. package/api/resources/{commons/types/NotImplementedErrorMessage.d.ts → encounters/resources/v4/types/InvalidTagNamesErrorType.d.ts} +2 -2
  30. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  31. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  32. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  33. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  34. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  35. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  36. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  37. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  38. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  39. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  40. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  41. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  42. package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -1
  43. package/api/resources/medicationDispense/resources/v1/client/create.d.ts +7 -1
  44. package/api/resources/medicationDispense/resources/v1/client/create.js +11 -0
  45. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  46. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  47. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  48. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  49. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  50. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  51. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  52. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  53. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  54. package/api/resources/preEncounter/resources/common/types/ResourcePage.d.ts +1 -0
  55. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  56. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +3 -1
  57. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +2 -0
  58. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +2 -1
  59. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -0
  60. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  61. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +2 -0
  62. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  63. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  64. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  65. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  66. package/api/resources/serviceFacility/client/Client.js +1 -1
  67. package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +6 -0
  68. package/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +6 -0
  69. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +6 -0
  70. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  71. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  72. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  73. package/api/resources/x12/resources/v1/types/Rarc.d.ts +4 -1
  74. package/api/resources/x12/resources/v1/types/Rarc.js +3 -0
  75. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  76. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  77. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +7 -4
  78. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +19 -28
  79. package/dist/api/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -7
  80. package/dist/api/resources/chargeCapture/resources/v1/client/delete.js +0 -11
  81. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +1 -7
  82. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.js +0 -11
  83. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +10 -3
  84. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +9 -2
  85. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +8 -2
  86. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +6 -1
  87. package/dist/api/resources/commons/types/index.d.ts +0 -1
  88. package/dist/api/resources/commons/types/index.js +0 -1
  89. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  90. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  91. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  92. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  93. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  94. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  95. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +4 -2
  96. package/dist/api/resources/encounters/resources/v4/client/Client.js +11 -7
  97. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  98. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  99. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -1
  100. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +2 -1
  101. package/dist/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
  102. package/dist/api/resources/encounters/resources/v4/client/update.js +11 -0
  103. package/dist/api/resources/{commons/types/NotImplementedErrorMessage.d.ts → encounters/resources/v4/types/InvalidTagNamesErrorType.d.ts} +2 -2
  104. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  105. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  106. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  107. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  108. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  109. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  110. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  111. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  112. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  113. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  114. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  115. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  116. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -1
  117. package/dist/api/resources/medicationDispense/resources/v1/client/create.d.ts +7 -1
  118. package/dist/api/resources/medicationDispense/resources/v1/client/create.js +11 -0
  119. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  120. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  121. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  122. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  123. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  124. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  125. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  126. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  127. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  128. package/dist/api/resources/preEncounter/resources/common/types/ResourcePage.d.ts +1 -0
  129. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  130. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +3 -1
  131. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +2 -0
  132. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +2 -1
  133. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -0
  134. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  135. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +2 -0
  136. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  137. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  138. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  139. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  140. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  141. package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +6 -0
  142. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +6 -0
  143. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +6 -0
  144. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  145. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  146. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  147. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +4 -1
  148. package/dist/api/resources/x12/resources/v1/types/Rarc.js +3 -0
  149. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -6
  150. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.js +0 -6
  151. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  152. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
  153. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -2
  154. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -2
  155. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -2
  156. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -2
  157. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -2
  158. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -2
  159. package/dist/serialization/resources/commons/types/index.d.ts +0 -1
  160. package/dist/serialization/resources/commons/types/index.js +0 -1
  161. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  162. package/dist/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  163. package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +6 -1
  164. package/dist/serialization/resources/encounters/resources/v4/client/update.js +6 -0
  165. package/dist/serialization/resources/encounters/resources/v4/types/InvalidTagNamesErrorType.d.ts +12 -0
  166. package/dist/serialization/resources/{commons/types/NotImplementedErrorMessage.js → encounters/resources/v4/types/InvalidTagNamesErrorType.js} +4 -4
  167. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  168. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  169. package/dist/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +6 -1
  170. package/dist/serialization/resources/medicationDispense/resources/v1/client/create.js +6 -0
  171. package/dist/serialization/resources/preEncounter/resources/common/types/ResourcePage.d.ts +1 -0
  172. package/dist/serialization/resources/preEncounter/resources/common/types/ResourcePage.js +1 -0
  173. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +1 -1
  174. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +2 -0
  175. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +1 -1
  176. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -1
  177. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  178. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +1 -0
  179. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +2 -0
  180. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +2 -0
  181. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacility.d.ts +1 -0
  182. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacility.js +1 -0
  183. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +1 -0
  184. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.js +1 -0
  185. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +1 -0
  186. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.js +1 -0
  187. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  188. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +3 -0
  189. package/package.json +1 -1
  190. package/reference.md +8 -3
  191. package/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -6
  192. package/serialization/resources/chargeCapture/resources/v1/client/delete.js +0 -6
  193. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  194. package/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
  195. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -2
  196. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -2
  197. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -2
  198. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -2
  199. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -2
  200. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -2
  201. package/serialization/resources/commons/types/index.d.ts +0 -1
  202. package/serialization/resources/commons/types/index.js +0 -1
  203. package/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  204. package/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  205. package/serialization/resources/encounters/resources/v4/client/update.d.ts +6 -1
  206. package/serialization/resources/encounters/resources/v4/client/update.js +6 -0
  207. package/serialization/resources/encounters/resources/v4/types/InvalidTagNamesErrorType.d.ts +12 -0
  208. package/serialization/resources/{commons/types/NotImplementedErrorMessage.js → encounters/resources/v4/types/InvalidTagNamesErrorType.js} +4 -4
  209. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  210. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  211. package/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +6 -1
  212. package/serialization/resources/medicationDispense/resources/v1/client/create.js +6 -0
  213. package/serialization/resources/preEncounter/resources/common/types/ResourcePage.d.ts +1 -0
  214. package/serialization/resources/preEncounter/resources/common/types/ResourcePage.js +1 -0
  215. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +1 -1
  216. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +2 -0
  217. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +1 -1
  218. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -1
  219. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  220. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +1 -0
  221. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +2 -0
  222. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +2 -0
  223. package/serialization/resources/serviceFacility/types/EncounterServiceFacility.d.ts +1 -0
  224. package/serialization/resources/serviceFacility/types/EncounterServiceFacility.js +1 -0
  225. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +1 -0
  226. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.js +1 -0
  227. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +1 -0
  228. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.js +1 -0
  229. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  230. package/serialization/resources/x12/resources/v1/types/Rarc.js +3 -0
  231. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +0 -15
  232. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.js +0 -61
  233. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -12
  234. package/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +0 -15
  235. package/serialization/resources/chargeCapture/resources/v1/client/getAll.js +0 -61
  236. package/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -12
  237. /package/api/resources/{commons/types/NotImplementedErrorMessage.js → encounters/resources/v4/types/InvalidTagNamesErrorType.js} +0 -0
  238. /package/dist/api/resources/{commons/types/NotImplementedErrorMessage.js → encounters/resources/v4/types/InvalidTagNamesErrorType.js} +0 -0
package/reference.md CHANGED
@@ -364,8 +364,9 @@ await client.chargeCapture.v1.create({
364
364
  initialReferringProvider: {},
365
365
  referralNumber: "string",
366
366
  },
367
- encounterExternalId: CandidApi.EncounterExternalId("string"),
367
+ chargeExternalId: "string",
368
368
  ehrSourceUrl: "string",
369
+ dateOfService: "2023-01-15",
369
370
  patientExternalId: "string",
370
371
  status: CandidApi.ChargeCaptureStatus.Planned,
371
372
  });
@@ -571,10 +572,11 @@ await client.chargeCapture.v1.update(CandidApi.ChargeCaptureId("d5e9c84f-c2b2-4b
571
572
  initialReferringProvider: {},
572
573
  referralNumber: "string",
573
574
  },
574
- encounterExternalId: CandidApi.EncounterExternalId("string"),
575
+ chargeExternalId: "string",
575
576
  ehrSourceUrl: "string",
576
577
  patientExternalId: "string",
577
578
  status: CandidApi.ChargeCaptureStatus.Planned,
579
+ dateOfService: "2023-01-15",
578
580
  });
579
581
  ```
580
582
 
@@ -684,7 +686,8 @@ await client.chargeCapture.v1.getAll({
684
686
  pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
685
687
  patientExternalId: "string",
686
688
  status: CandidApi.ChargeCaptureStatus.Planned,
687
- externalId: CandidApi.EncounterExternalId("string"),
689
+ chargeExternalId: "string",
690
+ dateOfService: "2023-01-15",
688
691
  });
689
692
  ```
690
693
 
@@ -2819,6 +2822,7 @@ await client.encounters.v4.create({
2819
2822
  zipCode: "10001",
2820
2823
  zipPlusFourCode: "1234",
2821
2824
  },
2825
+ secondaryIdentification: "string",
2822
2826
  },
2823
2827
  subscriberPrimary: {
2824
2828
  insuranceCard: {
@@ -3199,6 +3203,7 @@ await client.encounters.v4.createFromPreEncounterPatient({
3199
3203
  zipCode: "10001",
3200
3204
  zipPlusFourCode: "1234",
3201
3205
  },
3206
+ secondaryIdentification: "string",
3202
3207
  },
3203
3208
  diagnoses: [
3204
3209
  {
@@ -6,10 +6,9 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
8
  import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
- import { NotImplementedErrorMessage } from "../../../../commons/types/NotImplementedErrorMessage";
10
9
  export declare const Error: core.serialization.Schema<serializers.chargeCapture.v1.delete.Error.Raw, CandidApi.chargeCapture.v1.delete.Error>;
11
10
  export declare namespace Error {
12
- type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.NotImplementedError;
11
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
13
12
  interface EntityNotFoundError {
14
13
  errorName: "EntityNotFoundError";
15
14
  content: EntityNotFoundErrorMessage.Raw;
@@ -18,8 +17,4 @@ export declare namespace Error {
18
17
  errorName: "UnauthorizedError";
19
18
  content: UnauthorizedErrorMessage.Raw;
20
19
  }
21
- interface NotImplementedError {
22
- errorName: "NotImplementedError";
23
- content: NotImplementedErrorMessage.Raw;
24
- }
25
20
  }
@@ -42,7 +42,6 @@ const CandidApi = __importStar(require("../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../core"));
43
43
  const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
44
44
  const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
45
- const NotImplementedErrorMessage_1 = require("../../../../commons/types/NotImplementedErrorMessage");
46
45
  exports.Error = core.serialization
47
46
  .union("errorName", {
48
47
  EntityNotFoundError: core.serialization.object({
@@ -51,9 +50,6 @@ exports.Error = core.serialization
51
50
  UnauthorizedError: core.serialization.object({
52
51
  content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
53
52
  }),
54
- NotImplementedError: core.serialization.object({
55
- content: NotImplementedErrorMessage_1.NotImplementedErrorMessage,
56
- }),
57
53
  })
58
54
  .transform({
59
55
  transform: (value) => {
@@ -62,8 +58,6 @@ exports.Error = core.serialization
62
58
  return CandidApi.chargeCapture.v1.delete.Error.entityNotFoundError(value.content);
63
59
  case "UnauthorizedError":
64
60
  return CandidApi.chargeCapture.v1.delete.Error.unauthorizedError(value.content);
65
- case "NotImplementedError":
66
- return CandidApi.chargeCapture.v1.delete.Error.notImplementedError(value.content);
67
61
  }
68
62
  },
69
63
  untransform: (_a) => {
@@ -1,5 +1,4 @@
1
1
  export * as create from "./create";
2
2
  export * as delete from "./delete";
3
3
  export * as update from "./update";
4
- export * as getAll from "./getAll";
5
4
  export * from "./requests";
@@ -26,9 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.getAll = exports.update = exports.delete = exports.create = void 0;
29
+ exports.update = exports.delete = exports.create = void 0;
30
30
  exports.create = __importStar(require("./create"));
31
31
  exports.delete = __importStar(require("./delete"));
32
32
  exports.update = __importStar(require("./update"));
33
- exports.getAll = __importStar(require("./getAll"));
34
33
  __exportStar(require("./requests"), exports);
@@ -5,15 +5,15 @@ import * as serializers from "../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
7
  import { ChargeCaptureData } from "../../types/ChargeCaptureData";
8
- import { EncounterExternalId } from "../../../../../commons/types/EncounterExternalId";
9
8
  import { ChargeCaptureStatus } from "../../types/ChargeCaptureStatus";
10
9
  export declare const ChargeCaptureUpdate: core.serialization.Schema<serializers.chargeCapture.v1.ChargeCaptureUpdate.Raw, CandidApi.chargeCapture.v1.ChargeCaptureUpdate>;
11
10
  export declare namespace ChargeCaptureUpdate {
12
11
  interface Raw {
13
12
  data?: ChargeCaptureData.Raw | null;
14
- encounter_external_id?: EncounterExternalId.Raw | null;
13
+ charge_external_id?: string | null;
15
14
  ehr_source_url?: string | null;
16
15
  patient_external_id?: string | null;
17
16
  status?: ChargeCaptureStatus.Raw | null;
17
+ date_of_service?: string | null;
18
18
  }
19
19
  }
@@ -29,12 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ChargeCaptureUpdate = void 0;
30
30
  const core = __importStar(require("../../../../../../../core"));
31
31
  const ChargeCaptureData_1 = require("../../types/ChargeCaptureData");
32
- const EncounterExternalId_1 = require("../../../../../commons/types/EncounterExternalId");
33
32
  const ChargeCaptureStatus_1 = require("../../types/ChargeCaptureStatus");
34
33
  exports.ChargeCaptureUpdate = core.serialization.object({
35
34
  data: ChargeCaptureData_1.ChargeCaptureData.optional(),
36
- encounterExternalId: core.serialization.property("encounter_external_id", EncounterExternalId_1.EncounterExternalId.optional()),
35
+ chargeExternalId: core.serialization.property("charge_external_id", core.serialization.string().optional()),
37
36
  ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
38
37
  patientExternalId: core.serialization.property("patient_external_id", core.serialization.string().optional()),
39
38
  status: ChargeCaptureStatus_1.ChargeCaptureStatus.optional(),
39
+ dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
40
40
  });
@@ -5,14 +5,14 @@ import * as serializers from "../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
7
  import { ChargeCaptureData } from "../../types/ChargeCaptureData";
8
- import { EncounterExternalId } from "../../../../../commons/types/EncounterExternalId";
9
8
  import { ChargeCaptureStatus } from "../../types/ChargeCaptureStatus";
10
9
  export declare const CreateChargeCaptureRequest: core.serialization.Schema<serializers.chargeCapture.v1.CreateChargeCaptureRequest.Raw, CandidApi.chargeCapture.v1.CreateChargeCaptureRequest>;
11
10
  export declare namespace CreateChargeCaptureRequest {
12
11
  interface Raw {
13
12
  data: ChargeCaptureData.Raw;
14
- encounter_external_id: EncounterExternalId.Raw;
13
+ charge_external_id: string;
15
14
  ehr_source_url?: string | null;
15
+ date_of_service?: string | null;
16
16
  patient_external_id: string;
17
17
  status: ChargeCaptureStatus.Raw;
18
18
  }
@@ -29,12 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateChargeCaptureRequest = void 0;
30
30
  const core = __importStar(require("../../../../../../../core"));
31
31
  const ChargeCaptureData_1 = require("../../types/ChargeCaptureData");
32
- const EncounterExternalId_1 = require("../../../../../commons/types/EncounterExternalId");
33
32
  const ChargeCaptureStatus_1 = require("../../types/ChargeCaptureStatus");
34
33
  exports.CreateChargeCaptureRequest = core.serialization.object({
35
34
  data: ChargeCaptureData_1.ChargeCaptureData,
36
- encounterExternalId: core.serialization.property("encounter_external_id", EncounterExternalId_1.EncounterExternalId),
35
+ chargeExternalId: core.serialization.property("charge_external_id", core.serialization.string()),
37
36
  ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
37
+ dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
38
38
  patientExternalId: core.serialization.property("patient_external_id", core.serialization.string()),
39
39
  status: ChargeCaptureStatus_1.ChargeCaptureStatus,
40
40
  });
@@ -8,7 +8,6 @@ import { ChargeCaptureId } from "../../../../commons/types/ChargeCaptureId";
8
8
  import { ChargeCaptureStatus } from "./ChargeCaptureStatus";
9
9
  import { ChargeCaptureData } from "./ChargeCaptureData";
10
10
  import { PatientExternalId } from "../../../../commons/types/PatientExternalId";
11
- import { EncounterExternalId } from "../../../../commons/types/EncounterExternalId";
12
11
  export declare const ChargeCapture: core.serialization.ObjectSchema<serializers.chargeCapture.v1.ChargeCapture.Raw, CandidApi.chargeCapture.v1.ChargeCapture>;
13
12
  export declare namespace ChargeCapture {
14
13
  interface Raw {
@@ -16,7 +15,8 @@ export declare namespace ChargeCapture {
16
15
  status: ChargeCaptureStatus.Raw;
17
16
  charge_capture_data: ChargeCaptureData.Raw;
18
17
  patient_external_id: PatientExternalId.Raw;
19
- encounter_external_id: EncounterExternalId.Raw;
18
+ charge_external_id: string;
20
19
  ehr_source_url?: string | null;
20
+ date_of_service?: string | null;
21
21
  }
22
22
  }
@@ -32,12 +32,12 @@ const ChargeCaptureId_1 = require("../../../../commons/types/ChargeCaptureId");
32
32
  const ChargeCaptureStatus_1 = require("./ChargeCaptureStatus");
33
33
  const ChargeCaptureData_1 = require("./ChargeCaptureData");
34
34
  const PatientExternalId_1 = require("../../../../commons/types/PatientExternalId");
35
- const EncounterExternalId_1 = require("../../../../commons/types/EncounterExternalId");
36
35
  exports.ChargeCapture = core.serialization.object({
37
36
  id: ChargeCaptureId_1.ChargeCaptureId,
38
37
  status: ChargeCaptureStatus_1.ChargeCaptureStatus,
39
38
  chargeCaptureData: core.serialization.property("charge_capture_data", ChargeCaptureData_1.ChargeCaptureData),
40
39
  patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
41
- encounterExternalId: core.serialization.property("encounter_external_id", EncounterExternalId_1.EncounterExternalId),
40
+ chargeExternalId: core.serialization.property("charge_external_id", core.serialization.string()),
42
41
  ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
42
+ dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
43
43
  });
@@ -56,7 +56,6 @@ export * from "./HttpServiceUnavailableErrorMessage";
56
56
  export * from "./RequestValidationError";
57
57
  export * from "./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage";
58
58
  export * from "./OrganizationNotAuthorizedErrorMessage";
59
- export * from "./NotImplementedErrorMessage";
60
59
  export * from "./PhoneNumber";
61
60
  export * from "./PhoneNumberType";
62
61
  export * from "./Email";
@@ -72,7 +72,6 @@ __exportStar(require("./HttpServiceUnavailableErrorMessage"), exports);
72
72
  __exportStar(require("./RequestValidationError"), exports);
73
73
  __exportStar(require("./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage"), exports);
74
74
  __exportStar(require("./OrganizationNotAuthorizedErrorMessage"), exports);
75
- __exportStar(require("./NotImplementedErrorMessage"), exports);
76
75
  __exportStar(require("./PhoneNumber"), exports);
77
76
  __exportStar(require("./PhoneNumberType"), exports);
78
77
  __exportStar(require("./Email"), exports);
@@ -11,9 +11,10 @@ import { EncounterGuarantorMissingContactInfoErrorType } from "../types/Encounte
11
11
  import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
12
12
  import { CashPayPayerErrorMessage } from "../types/CashPayPayerErrorMessage";
13
13
  import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
14
+ import { InvalidTagNamesErrorType } from "../types/InvalidTagNamesErrorType";
14
15
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
15
16
  export declare namespace Error {
16
- type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError | Error.CashPayPayerError | Error.SchemaInstanceValidationHttpFailure;
17
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError | Error.CashPayPayerError | Error.SchemaInstanceValidationHttpFailure | Error.InvalidTagNamesError;
17
18
  interface EncounterExternalIdUniquenessError {
18
19
  errorName: "EncounterExternalIdUniquenessError";
19
20
  content: EncounterExternalIdUniquenessErrorType.Raw;
@@ -42,4 +43,8 @@ export declare namespace Error {
42
43
  errorName: "SchemaInstanceValidationHttpFailure";
43
44
  content: SchemaInstanceValidationFailure.Raw;
44
45
  }
46
+ interface InvalidTagNamesError {
47
+ errorName: "InvalidTagNamesError";
48
+ content: InvalidTagNamesErrorType.Raw;
49
+ }
45
50
  }
@@ -47,6 +47,7 @@ const EncounterGuarantorMissingContactInfoErrorType_1 = require("../types/Encoun
47
47
  const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
48
48
  const CashPayPayerErrorMessage_1 = require("../types/CashPayPayerErrorMessage");
49
49
  const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
50
+ const InvalidTagNamesErrorType_1 = require("../types/InvalidTagNamesErrorType");
50
51
  exports.Error = core.serialization
51
52
  .union("errorName", {
52
53
  EncounterExternalIdUniquenessError: core.serialization.object({
@@ -70,6 +71,9 @@ exports.Error = core.serialization
70
71
  SchemaInstanceValidationHttpFailure: core.serialization.object({
71
72
  content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
72
73
  }),
74
+ InvalidTagNamesError: core.serialization.object({
75
+ content: InvalidTagNamesErrorType_1.InvalidTagNamesErrorType,
76
+ }),
73
77
  })
74
78
  .transform({
75
79
  transform: (value) => {
@@ -88,6 +92,8 @@ exports.Error = core.serialization
88
92
  return CandidApi.encounters.v4.create.Error.cashPayPayerError(value.content);
89
93
  case "SchemaInstanceValidationHttpFailure":
90
94
  return CandidApi.encounters.v4.create.Error.schemaInstanceValidationHttpFailure(value.content);
95
+ case "InvalidTagNamesError":
96
+ return CandidApi.encounters.v4.create.Error.invalidTagNamesError(value.content);
91
97
  }
92
98
  },
93
99
  untransform: (_a) => {
@@ -10,9 +10,10 @@ import { UnauthorizedErrorMessage } from "../../../../commons/types/Unauthorized
10
10
  import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
11
11
  import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
12
12
  import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
13
+ import { InvalidTagNamesErrorType } from "../types/InvalidTagNamesErrorType";
13
14
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.update.Error.Raw, CandidApi.encounters.v4.update.Error>;
14
15
  export declare namespace Error {
15
- type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.UnprocessableEntityError;
16
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.UnprocessableEntityError | Error.InvalidTagNamesError;
16
17
  interface EncounterExternalIdUniquenessError {
17
18
  errorName: "EncounterExternalIdUniquenessError";
18
19
  content: EncounterExternalIdUniquenessErrorType.Raw;
@@ -37,4 +38,8 @@ export declare namespace Error {
37
38
  errorName: "UnprocessableEntityError";
38
39
  content: UnprocessableEntityErrorMessage.Raw;
39
40
  }
41
+ interface InvalidTagNamesError {
42
+ errorName: "InvalidTagNamesError";
43
+ content: InvalidTagNamesErrorType.Raw;
44
+ }
40
45
  }
@@ -46,6 +46,7 @@ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/Unauthoriz
46
46
  const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
47
47
  const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
48
48
  const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
49
+ const InvalidTagNamesErrorType_1 = require("../types/InvalidTagNamesErrorType");
49
50
  exports.Error = core.serialization
50
51
  .union("errorName", {
51
52
  EncounterExternalIdUniquenessError: core.serialization.object({
@@ -66,6 +67,9 @@ exports.Error = core.serialization
66
67
  UnprocessableEntityError: core.serialization.object({
67
68
  content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
68
69
  }),
70
+ InvalidTagNamesError: core.serialization.object({
71
+ content: InvalidTagNamesErrorType_1.InvalidTagNamesErrorType,
72
+ }),
69
73
  })
70
74
  .transform({
71
75
  transform: (value) => {
@@ -82,6 +86,8 @@ exports.Error = core.serialization
82
86
  return CandidApi.encounters.v4.update.Error.schemaInstanceValidationHttpFailure(value.content);
83
87
  case "UnprocessableEntityError":
84
88
  return CandidApi.encounters.v4.update.Error.unprocessableEntityError(value.content);
89
+ case "InvalidTagNamesError":
90
+ return CandidApi.encounters.v4.update.Error.invalidTagNamesError(value.content);
85
91
  }
86
92
  },
87
93
  untransform: (_a) => {
@@ -0,0 +1,12 @@
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 InvalidTagNamesErrorType: core.serialization.ObjectSchema<serializers.encounters.v4.InvalidTagNamesErrorType.Raw, CandidApi.encounters.v4.InvalidTagNamesErrorType>;
8
+ export declare namespace InvalidTagNamesErrorType {
9
+ interface Raw {
10
+ invalid_tag_names: string[];
11
+ }
12
+ }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.NotImplementedErrorMessage = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- exports.NotImplementedErrorMessage = core.serialization.object({
32
- message: core.serialization.string().optional(),
29
+ exports.InvalidTagNamesErrorType = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.InvalidTagNamesErrorType = core.serialization.object({
32
+ invalidTagNames: core.serialization.property("invalid_tag_names", core.serialization.list(core.serialization.string())),
33
33
  });
@@ -33,6 +33,7 @@ export * from "./EncounterExternalIdUniquenessErrorType";
33
33
  export * from "./EncounterPatientControlNumberUniquenessErrorType";
34
34
  export * from "./EncounterGuarantorMissingContactInfoErrorType";
35
35
  export * from "./CashPayPayerErrorMessage";
36
+ export * from "./InvalidTagNamesErrorType";
36
37
  export * from "./ServiceAuthorizationExceptionCode";
37
38
  export * from "./SchemaInstanceValidationFailure";
38
39
  export * from "./KeyDoesNotExistError";
@@ -49,6 +49,7 @@ __exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
49
49
  __exportStar(require("./EncounterPatientControlNumberUniquenessErrorType"), exports);
50
50
  __exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
51
51
  __exportStar(require("./CashPayPayerErrorMessage"), exports);
52
+ __exportStar(require("./InvalidTagNamesErrorType"), exports);
52
53
  __exportStar(require("./ServiceAuthorizationExceptionCode"), exports);
53
54
  __exportStar(require("./SchemaInstanceValidationFailure"), exports);
54
55
  __exportStar(require("./KeyDoesNotExistError"), exports);
@@ -9,9 +9,10 @@ import { EncounterExternalIdUniquenessErrorType } from "../../../../encounters/r
9
9
  import { EncounterPatientControlNumberUniquenessErrorType } from "../../../../encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType";
10
10
  import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
11
11
  import { SchemaInstanceValidationFailure } from "../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure";
12
+ import { InvalidTagNamesErrorType } from "../../../../encounters/resources/v4/types/InvalidTagNamesErrorType";
12
13
  export declare const Error: core.serialization.Schema<serializers.medicationDispense.v1.create.Error.Raw, CandidApi.medicationDispense.v1.create.Error>;
13
14
  export declare namespace Error {
14
- type Raw = Error.HttpRequestValidationError | Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.SchemaInstanceValidationHttpFailure;
15
+ type Raw = Error.HttpRequestValidationError | Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.SchemaInstanceValidationHttpFailure | Error.InvalidTagNamesError;
15
16
  interface HttpRequestValidationError {
16
17
  errorName: "HttpRequestValidationError";
17
18
  content: RequestValidationError.Raw;
@@ -32,4 +33,8 @@ export declare namespace Error {
32
33
  errorName: "SchemaInstanceValidationHttpFailure";
33
34
  content: SchemaInstanceValidationFailure.Raw;
34
35
  }
36
+ interface InvalidTagNamesError {
37
+ errorName: "InvalidTagNamesError";
38
+ content: InvalidTagNamesErrorType.Raw;
39
+ }
35
40
  }
@@ -45,6 +45,7 @@ const EncounterExternalIdUniquenessErrorType_1 = require("../../../../encounters
45
45
  const EncounterPatientControlNumberUniquenessErrorType_1 = require("../../../../encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType");
46
46
  const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
47
47
  const SchemaInstanceValidationFailure_1 = require("../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure");
48
+ const InvalidTagNamesErrorType_1 = require("../../../../encounters/resources/v4/types/InvalidTagNamesErrorType");
48
49
  exports.Error = core.serialization
49
50
  .union("errorName", {
50
51
  HttpRequestValidationError: core.serialization.object({
@@ -62,6 +63,9 @@ exports.Error = core.serialization
62
63
  SchemaInstanceValidationHttpFailure: core.serialization.object({
63
64
  content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
64
65
  }),
66
+ InvalidTagNamesError: core.serialization.object({
67
+ content: InvalidTagNamesErrorType_1.InvalidTagNamesErrorType,
68
+ }),
65
69
  })
66
70
  .transform({
67
71
  transform: (value) => {
@@ -76,6 +80,8 @@ exports.Error = core.serialization
76
80
  return CandidApi.medicationDispense.v1.create.Error.entityNotFoundError(value.content);
77
81
  case "SchemaInstanceValidationHttpFailure":
78
82
  return CandidApi.medicationDispense.v1.create.Error.schemaInstanceValidationHttpFailure(value.content);
83
+ case "InvalidTagNamesError":
84
+ return CandidApi.medicationDispense.v1.create.Error.invalidTagNamesError(value.content);
79
85
  }
80
86
  },
81
87
  untransform: (_a) => {
@@ -10,5 +10,6 @@ export declare namespace ResourcePage {
10
10
  interface Raw {
11
11
  next_page_token?: PageToken.Raw | null;
12
12
  prev_page_token?: PageToken.Raw | null;
13
+ total: number;
13
14
  }
14
15
  }
@@ -32,4 +32,5 @@ const PageToken_1 = require("./PageToken");
32
32
  exports.ResourcePage = core.serialization.object({
33
33
  nextPageToken: core.serialization.property("next_page_token", PageToken_1.PageToken.optional()),
34
34
  prevPageToken: core.serialization.property("prev_page_token", PageToken_1.PageToken.optional()),
35
+ total: core.serialization.number(),
35
36
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  export declare const BenefitType: core.serialization.Schema<serializers.preEncounter.coverages.v1.BenefitType.Raw, CandidApi.preEncounter.coverages.v1.BenefitType>;
8
8
  export declare namespace BenefitType {
9
- type Raw = "DEDUCTIBLE" | "DEDUCTIBLE_REMAINING" | "OOP_MAX" | "OOP_MAX_REMAINING" | "COPAY" | "COINSURANCE";
9
+ type Raw = "DEDUCTIBLE" | "DEDUCTIBLE_REMAINING" | "DEDUCTIBLE_YEAR_TO_DATE" | "OOP_MAX" | "OOP_MAX_REMAINING" | "OOP_YEAR_TO_DATE" | "COPAY" | "COINSURANCE";
10
10
  }
@@ -31,8 +31,10 @@ const core = __importStar(require("../../../../../../../../core"));
31
31
  exports.BenefitType = core.serialization.enum_([
32
32
  "DEDUCTIBLE",
33
33
  "DEDUCTIBLE_REMAINING",
34
+ "DEDUCTIBLE_YEAR_TO_DATE",
34
35
  "OOP_MAX",
35
36
  "OOP_MAX_REMAINING",
37
+ "OOP_YEAR_TO_DATE",
36
38
  "COPAY",
37
39
  "COINSURANCE",
38
40
  ]);
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  export declare const CoverageLevel: core.serialization.Schema<serializers.preEncounter.coverages.v1.CoverageLevel.Raw, CandidApi.preEncounter.coverages.v1.CoverageLevel>;
8
8
  export declare namespace CoverageLevel {
9
- type Raw = "INDIVIDUAL" | "FAMILY" | "EMPLOYEE_ONLY";
9
+ type Raw = "INDIVIDUAL" | "FAMILY" | "EMPLOYEE_ONLY" | "EMPLOYEE_AND_SPOUSE";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CoverageLevel = void 0;
30
30
  const core = __importStar(require("../../../../../../../../core"));
31
- exports.CoverageLevel = core.serialization.enum_(["INDIVIDUAL", "FAMILY", "EMPLOYEE_ONLY"]);
31
+ exports.CoverageLevel = core.serialization.enum_(["INDIVIDUAL", "FAMILY", "EMPLOYEE_ONLY", "EMPLOYEE_AND_SPOUSE"]);
@@ -9,5 +9,6 @@ export declare namespace CoverageValue {
9
9
  interface Raw {
10
10
  family?: number | null;
11
11
  individual?: number | null;
12
+ employeeAndSpouse?: number | null;
12
13
  }
13
14
  }
@@ -31,4 +31,5 @@ const core = __importStar(require("../../../../../../../../core"));
31
31
  exports.CoverageValue = core.serialization.object({
32
32
  family: core.serialization.number().optional(),
33
33
  individual: core.serialization.number().optional(),
34
+ employeeAndSpouse: core.serialization.number().optional(),
34
35
  });
@@ -10,8 +10,10 @@ export declare namespace PlanCoverageDetails {
10
10
  interface Raw {
11
11
  deductible?: CoverageValue.Raw | null;
12
12
  deductible_remaining?: CoverageValue.Raw | null;
13
+ deductible_year_to_date?: CoverageValue.Raw | null;
13
14
  oop_max?: CoverageValue.Raw | null;
14
15
  oop_max_remaining?: CoverageValue.Raw | null;
16
+ oop_year_to_date?: CoverageValue.Raw | null;
15
17
  additional_notes?: string | null;
16
18
  }
17
19
  }
@@ -32,7 +32,9 @@ const CoverageValue_1 = require("./CoverageValue");
32
32
  exports.PlanCoverageDetails = core.serialization.object({
33
33
  deductible: CoverageValue_1.CoverageValue.optional(),
34
34
  deductibleRemaining: core.serialization.property("deductible_remaining", CoverageValue_1.CoverageValue.optional()),
35
+ deductibleYearToDate: core.serialization.property("deductible_year_to_date", CoverageValue_1.CoverageValue.optional()),
35
36
  oopMax: core.serialization.property("oop_max", CoverageValue_1.CoverageValue.optional()),
36
37
  oopMaxRemaining: core.serialization.property("oop_max_remaining", CoverageValue_1.CoverageValue.optional()),
38
+ oopYearToDate: core.serialization.property("oop_year_to_date", CoverageValue_1.CoverageValue.optional()),
37
39
  additionalNotes: core.serialization.property("additional_notes", core.serialization.string().optional()),
38
40
  });
@@ -13,5 +13,6 @@ export declare namespace EncounterServiceFacility {
13
13
  organization_name: string;
14
14
  npi?: string | null;
15
15
  address: StreetAddressLongZip.Raw;
16
+ secondary_identification?: string | null;
16
17
  }
17
18
  }
@@ -35,4 +35,5 @@ exports.EncounterServiceFacility = core.serialization.object({
35
35
  organizationName: core.serialization.property("organization_name", core.serialization.string()),
36
36
  npi: core.serialization.string().optional(),
37
37
  address: StreetAddressLongZip_1.StreetAddressLongZip,
38
+ secondaryIdentification: core.serialization.property("secondary_identification", core.serialization.string().optional()),
38
39
  });
@@ -11,5 +11,6 @@ export declare namespace EncounterServiceFacilityBase {
11
11
  organization_name: string;
12
12
  npi?: string | null;
13
13
  address: StreetAddressLongZip.Raw;
14
+ secondary_identification?: string | null;
14
15
  }
15
16
  }
@@ -33,4 +33,5 @@ exports.EncounterServiceFacilityBase = core.serialization.object({
33
33
  organizationName: core.serialization.property("organization_name", core.serialization.string()),
34
34
  npi: core.serialization.string().optional(),
35
35
  address: StreetAddressLongZip_1.StreetAddressLongZip,
36
+ secondaryIdentification: core.serialization.property("secondary_identification", core.serialization.string().optional()),
36
37
  });
@@ -11,5 +11,6 @@ export declare namespace EncounterServiceFacilityUpdate {
11
11
  organization_name?: string | null;
12
12
  npi?: string | null;
13
13
  address?: StreetAddressLongZip.Raw | null;
14
+ secondary_identification?: string | null;
14
15
  }
15
16
  }
@@ -33,4 +33,5 @@ exports.EncounterServiceFacilityUpdate = core.serialization.object({
33
33
  organizationName: core.serialization.property("organization_name", core.serialization.string().optional()),
34
34
  npi: core.serialization.string().optional(),
35
35
  address: StreetAddressLongZip_1.StreetAddressLongZip.optional(),
36
+ secondaryIdentification: core.serialization.property("secondary_identification", core.serialization.string().optional()),
36
37
  });