candidhealth 0.24.3 → 0.24.5

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 (554) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +6 -6
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/commons/types/ProcedureModifier.d.ts +4 -0
  6. package/api/resources/commons/types/ProcedureModifier.js +1 -0
  7. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  8. package/api/resources/customSchemas/resources/v1/client/Client.d.ts +19 -10
  9. package/api/resources/customSchemas/resources/v1/client/Client.js +23 -14
  10. package/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +12 -3
  11. package/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +4 -4
  12. package/api/resources/customSchemas/resources/v1/types/Schema.d.ts +44 -0
  13. package/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +31 -0
  14. package/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +23 -0
  15. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  16. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  17. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  18. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  19. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  20. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  21. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  22. package/api/resources/financials/types/AccountType.d.ts +2 -1
  23. package/api/resources/financials/types/AccountType.js +1 -0
  24. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  25. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  26. package/api/resources/index.d.ts +1 -1
  27. package/api/resources/index.js +2 -2
  28. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  29. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  30. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  31. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  32. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  33. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  34. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  35. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  36. package/api/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +8 -0
  37. package/api/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/DisabilityStatus.js} +4 -4
  38. package/api/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
  39. package/api/resources/preEncounter/resources/common/types/Ethnicity.js +12 -0
  40. package/api/resources/preEncounter/resources/common/types/Gender.d.ts +6 -3
  41. package/api/resources/preEncounter/resources/common/types/Gender.js +5 -2
  42. package/api/resources/preEncounter/resources/common/types/Race.d.ts +15 -0
  43. package/api/resources/preEncounter/resources/common/types/Race.js +17 -0
  44. package/api/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
  45. package/api/resources/preEncounter/resources/common/types/Sex.js +12 -0
  46. package/api/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +13 -0
  47. package/api/resources/preEncounter/resources/common/types/SexualOrientation.js +15 -0
  48. package/api/resources/preEncounter/resources/common/types/index.d.ts +5 -0
  49. package/api/resources/preEncounter/resources/common/types/index.js +5 -0
  50. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +108 -3
  51. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +420 -3
  52. package/api/resources/preEncounter/resources/coverages/resources/v1/client/create.d.ts +22 -0
  53. package/api/resources/preEncounter/resources/coverages/resources/v1/client/create.js +47 -0
  54. package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/get.d.ts +6 -6
  55. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/client/get.js +2 -2
  56. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/client/getHistory.d.ts +7 -7
  57. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/coverages/resources/v1}/client/getHistory.js +3 -3
  58. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +22 -0
  59. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.js +47 -0
  60. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +7 -1
  61. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +34 -0
  62. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/client/scan.d.ts +6 -6
  63. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/coverages/resources/v1}/client/scan.js +2 -2
  64. package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/update.d.ts +8 -8
  65. package/api/resources/preEncounter/resources/{patients/resources/v1/resources/patients → coverages/resources/v1}/client/update.js +4 -4
  66. package/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -1
  67. package/api/resources/preEncounter/resources/coverages/resources/v1/index.js +1 -1
  68. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +1 -1
  69. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.d.ts +1 -1
  70. package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +2 -2
  71. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.d.ts +1 -1
  72. package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +82 -0
  73. package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +27 -0
  74. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/Subscriber.d.ts +1 -1
  75. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
  76. package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.js +1 -1
  77. package/api/resources/preEncounter/resources/index.d.ts +2 -2
  78. package/api/resources/preEncounter/resources/index.js +3 -3
  79. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +167 -3
  80. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +554 -3
  81. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.d.ts +7 -7
  82. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +3 -3
  83. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/deactivate.d.ts +8 -8
  84. package/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +69 -0
  85. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/get.d.ts +7 -7
  86. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/get.js +3 -3
  87. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.d.ts +7 -7
  88. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.js +3 -3
  89. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +8 -1
  90. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +35 -0
  91. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/scan.d.ts +6 -6
  92. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/scan.js +2 -2
  93. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/search.d.ts +6 -6
  94. package/api/resources/preEncounter/resources/patients/resources/v1/client/search.js +47 -0
  95. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/update.d.ts +8 -8
  96. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/update.js +4 -4
  97. package/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -1
  98. package/api/resources/preEncounter/resources/patients/resources/v1/index.js +1 -1
  99. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/Contact.d.ts +1 -1
  100. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/ExternalProvider.d.ts +2 -1
  101. package/api/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +10 -0
  102. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.d.ts +12 -1
  103. package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/Patient.d.ts +4 -1
  104. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +1 -1
  105. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
  106. package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
  107. package/api/resources/serviceFacility/client/Client.js +1 -1
  108. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  109. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  110. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  111. package/dist/Client.d.ts +3 -3
  112. package/dist/Client.js +6 -6
  113. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  114. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  115. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +4 -0
  116. package/dist/api/resources/commons/types/ProcedureModifier.js +1 -0
  117. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  118. package/dist/api/resources/customSchemas/resources/v1/client/Client.d.ts +19 -10
  119. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +23 -14
  120. package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +12 -3
  121. package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +4 -4
  122. package/dist/api/resources/customSchemas/resources/v1/types/Schema.d.ts +44 -0
  123. package/dist/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +31 -0
  124. package/dist/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +23 -0
  125. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  126. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  127. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  128. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  129. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  130. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  131. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  132. package/dist/api/resources/financials/types/AccountType.d.ts +2 -1
  133. package/dist/api/resources/financials/types/AccountType.js +1 -0
  134. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  135. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  136. package/dist/api/resources/index.d.ts +1 -1
  137. package/dist/api/resources/index.js +2 -2
  138. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  139. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  140. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  141. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  142. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  143. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  144. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  145. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  146. package/dist/api/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +8 -0
  147. package/dist/api/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/DisabilityStatus.js} +4 -4
  148. package/dist/api/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
  149. package/dist/api/resources/preEncounter/resources/common/types/Ethnicity.js +12 -0
  150. package/dist/api/resources/preEncounter/resources/common/types/Gender.d.ts +6 -3
  151. package/dist/api/resources/preEncounter/resources/common/types/Gender.js +5 -2
  152. package/dist/api/resources/preEncounter/resources/common/types/Race.d.ts +15 -0
  153. package/dist/api/resources/preEncounter/resources/common/types/Race.js +17 -0
  154. package/dist/api/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
  155. package/dist/api/resources/preEncounter/resources/common/types/Sex.js +12 -0
  156. package/dist/api/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +13 -0
  157. package/dist/api/resources/preEncounter/resources/common/types/SexualOrientation.js +15 -0
  158. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +5 -0
  159. package/dist/api/resources/preEncounter/resources/common/types/index.js +5 -0
  160. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +108 -3
  161. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +420 -3
  162. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/create.d.ts +22 -0
  163. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/create.js +47 -0
  164. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/get.d.ts +6 -6
  165. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/get.js +2 -2
  166. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/getHistory.d.ts +7 -7
  167. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +58 -0
  168. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +22 -0
  169. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.js +47 -0
  170. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +7 -1
  171. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +34 -0
  172. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/scan.d.ts +6 -6
  173. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/scan.js +47 -0
  174. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/update.d.ts +8 -8
  175. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/update.js +4 -4
  176. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -1
  177. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.js +1 -1
  178. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +1 -1
  179. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.d.ts +1 -1
  180. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +2 -2
  181. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.d.ts +1 -1
  182. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +82 -0
  183. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +27 -0
  184. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/Subscriber.d.ts +1 -1
  185. package/dist/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
  186. package/dist/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.js +1 -1
  187. package/dist/api/resources/preEncounter/resources/index.d.ts +2 -2
  188. package/dist/api/resources/preEncounter/resources/index.js +3 -3
  189. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +167 -3
  190. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +554 -3
  191. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.d.ts +7 -7
  192. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +3 -3
  193. package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/deactivate.d.ts +8 -8
  194. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +69 -0
  195. package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/get.d.ts +7 -7
  196. package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/get.js +3 -3
  197. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.d.ts +7 -7
  198. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +58 -0
  199. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +8 -1
  200. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +35 -0
  201. package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/scan.d.ts +6 -6
  202. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/scan.js +47 -0
  203. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/search.d.ts +6 -6
  204. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/search.js +47 -0
  205. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/update.d.ts +8 -8
  206. package/dist/api/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages → patients/resources/v1}/client/update.js +4 -4
  207. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -1
  208. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.js +1 -1
  209. package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/types/Contact.d.ts +1 -1
  210. package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/types/ExternalProvider.d.ts +2 -1
  211. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +10 -0
  212. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.d.ts +12 -1
  213. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +5 -0
  214. package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/types/Patient.d.ts +4 -1
  215. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.js +5 -0
  216. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +1 -1
  217. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
  218. package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
  219. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  220. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  221. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  222. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  223. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  224. package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  225. package/dist/serialization/resources/financials/types/AccountType.d.ts +1 -1
  226. package/dist/serialization/resources/financials/types/AccountType.js +1 -1
  227. package/dist/serialization/resources/index.d.ts +1 -1
  228. package/dist/serialization/resources/index.js +2 -2
  229. package/dist/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +10 -0
  230. package/dist/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.js +31 -0
  231. package/dist/serialization/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
  232. package/dist/serialization/resources/preEncounter/resources/common/types/Ethnicity.js +31 -0
  233. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  234. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.js +1 -1
  235. package/dist/serialization/resources/preEncounter/resources/common/types/Race.d.ts +10 -0
  236. package/dist/serialization/resources/preEncounter/resources/common/types/Race.js +41 -0
  237. package/dist/serialization/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
  238. package/dist/serialization/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/Sex.js} +3 -3
  239. package/dist/serialization/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +10 -0
  240. package/dist/serialization/resources/preEncounter/resources/common/types/SexualOrientation.js +31 -0
  241. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +5 -0
  242. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +5 -0
  243. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +20 -0
  244. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getHistory.js +4 -4
  245. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +11 -0
  246. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getMulti.js +1 -1
  247. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/scan.d.ts +11 -0
  248. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/scan.js +1 -1
  249. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +20 -0
  250. package/dist/serialization/resources/preEncounter/resources/{patients/resources/v1/resources/patients → coverages/resources/v1}/client/update.js +6 -6
  251. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -1
  252. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +2 -1
  253. package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +5 -5
  254. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +3 -3
  255. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.d.ts +3 -3
  256. package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.js +2 -2
  257. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +3 -3
  258. package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageStatus.js +1 -1
  259. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +7 -7
  260. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +5 -5
  261. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.d.ts +5 -5
  262. package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.js +3 -3
  263. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +10 -0
  264. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +51 -0
  265. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.d.ts +5 -5
  266. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +3 -3
  267. package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
  268. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/index.js +1 -1
  269. package/dist/serialization/resources/preEncounter/resources/index.d.ts +2 -2
  270. package/dist/serialization/resources/preEncounter/resources/index.js +3 -3
  271. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +15 -0
  272. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +4 -4
  273. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +20 -0
  274. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +67 -0
  275. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +15 -0
  276. package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/get.js +4 -4
  277. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +20 -0
  278. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.js +4 -4
  279. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/scan.d.ts +11 -0
  280. package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/scan.js +1 -1
  281. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/search.d.ts +11 -0
  282. package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/search.js +1 -1
  283. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +20 -0
  284. package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/update.js +6 -6
  285. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -1
  286. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +2 -1
  287. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +23 -0
  288. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +7 -7
  289. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +3 -3
  290. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +1 -1
  291. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +20 -0
  292. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +6 -5
  293. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +13 -0
  294. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.js +34 -0
  295. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +3 -3
  296. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +1 -1
  297. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +50 -0
  298. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.js +20 -5
  299. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.d.ts +6 -5
  300. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.js +4 -3
  301. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +3 -3
  302. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +2 -2
  303. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
  304. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
  305. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  306. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +3 -0
  307. package/package.json +1 -1
  308. package/reference.md +215 -401
  309. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  310. package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  311. package/serialization/resources/financials/types/AccountType.d.ts +1 -1
  312. package/serialization/resources/financials/types/AccountType.js +1 -1
  313. package/serialization/resources/index.d.ts +1 -1
  314. package/serialization/resources/index.js +2 -2
  315. package/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +10 -0
  316. package/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.js +31 -0
  317. package/serialization/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
  318. package/serialization/resources/preEncounter/resources/common/types/Ethnicity.js +31 -0
  319. package/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  320. package/serialization/resources/preEncounter/resources/common/types/Gender.js +1 -1
  321. package/serialization/resources/preEncounter/resources/common/types/Race.d.ts +10 -0
  322. package/serialization/resources/preEncounter/resources/common/types/Race.js +41 -0
  323. package/serialization/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
  324. package/serialization/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/Sex.js} +3 -3
  325. package/serialization/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +10 -0
  326. package/serialization/resources/preEncounter/resources/common/types/SexualOrientation.js +31 -0
  327. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +5 -0
  328. package/serialization/resources/preEncounter/resources/common/types/index.js +5 -0
  329. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +20 -0
  330. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getHistory.js +4 -4
  331. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +11 -0
  332. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getMulti.js +1 -1
  333. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/scan.d.ts +11 -0
  334. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/scan.js +1 -1
  335. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +20 -0
  336. package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/client/update.js +6 -6
  337. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -1
  338. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +2 -1
  339. package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +5 -5
  340. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +3 -3
  341. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.d.ts +3 -3
  342. package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.js +2 -2
  343. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +3 -3
  344. package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageStatus.js +1 -1
  345. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +7 -7
  346. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +5 -5
  347. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.d.ts +5 -5
  348. package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.js +3 -3
  349. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +10 -0
  350. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +51 -0
  351. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.d.ts +5 -5
  352. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +3 -3
  353. package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
  354. package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/index.js +1 -1
  355. package/serialization/resources/preEncounter/resources/index.d.ts +2 -2
  356. package/serialization/resources/preEncounter/resources/index.js +3 -3
  357. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +15 -0
  358. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +4 -4
  359. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +20 -0
  360. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +67 -0
  361. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +15 -0
  362. package/{dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → serialization/resources/preEncounter/resources/patients/resources/v1}/client/get.js +4 -4
  363. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +20 -0
  364. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.js +4 -4
  365. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/scan.d.ts +11 -0
  366. package/{dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → serialization/resources/preEncounter/resources/patients/resources/v1}/client/scan.js +1 -1
  367. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/search.d.ts +11 -0
  368. package/{dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → serialization/resources/preEncounter/resources/patients/resources/v1}/client/search.js +1 -1
  369. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +20 -0
  370. package/serialization/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages → patients/resources/v1}/client/update.js +6 -6
  371. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -1
  372. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +2 -1
  373. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +23 -0
  374. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +7 -7
  375. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +3 -3
  376. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +1 -1
  377. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +20 -0
  378. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +6 -5
  379. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +13 -0
  380. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.js +34 -0
  381. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +3 -3
  382. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +1 -1
  383. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +50 -0
  384. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.js +20 -5
  385. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.d.ts +6 -5
  386. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.js +4 -3
  387. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +3 -3
  388. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +2 -2
  389. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
  390. package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
  391. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  392. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +3 -0
  393. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +0 -147
  394. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +0 -451
  395. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.d.ts +0 -22
  396. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.js +0 -47
  397. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +0 -58
  398. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -22
  399. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +0 -47
  400. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +0 -7
  401. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +0 -36
  402. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +0 -47
  403. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
  404. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
  405. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -8
  406. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -3
  407. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -32
  408. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -3
  409. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -32
  410. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +0 -338
  411. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +0 -716
  412. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -69
  413. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +0 -8
  414. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +0 -37
  415. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +0 -47
  416. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
  417. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
  418. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +0 -147
  419. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +0 -451
  420. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.d.ts +0 -22
  421. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.js +0 -47
  422. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +0 -58
  423. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -22
  424. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +0 -47
  425. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +0 -7
  426. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +0 -36
  427. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +0 -47
  428. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
  429. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
  430. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -8
  431. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -3
  432. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -32
  433. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -3
  434. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -32
  435. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +0 -338
  436. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +0 -716
  437. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -69
  438. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +0 -8
  439. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +0 -37
  440. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +0 -47
  441. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
  442. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
  443. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +0 -20
  444. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -11
  445. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +0 -11
  446. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +0 -20
  447. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
  448. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
  449. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -10
  450. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -2
  451. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -31
  452. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -2
  453. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -31
  454. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +0 -15
  455. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +0 -20
  456. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -67
  457. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +0 -15
  458. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +0 -20
  459. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +0 -11
  460. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +0 -11
  461. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +0 -20
  462. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
  463. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
  464. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +0 -23
  465. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +0 -19
  466. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +0 -35
  467. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +0 -20
  468. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -11
  469. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +0 -11
  470. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +0 -20
  471. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
  472. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
  473. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -10
  474. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -2
  475. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -31
  476. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -2
  477. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -31
  478. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +0 -15
  479. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +0 -20
  480. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -67
  481. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +0 -15
  482. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +0 -20
  483. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +0 -11
  484. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +0 -11
  485. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +0 -20
  486. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
  487. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
  488. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +0 -23
  489. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +0 -19
  490. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +0 -35
  491. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.d.ts +0 -0
  492. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.js +0 -0
  493. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.d.ts +0 -0
  494. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.js +0 -0
  495. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.d.ts +0 -0
  496. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.js +0 -0
  497. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +0 -0
  498. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.js +0 -0
  499. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +0 -0
  500. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.js +0 -0
  501. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +0 -0
  502. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.js +0 -0
  503. /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +0 -0
  504. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.d.ts +0 -0
  505. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.js +0 -0
  506. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.d.ts +0 -0
  507. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.js +0 -0
  508. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.d.ts +0 -0
  509. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.js +0 -0
  510. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +0 -0
  511. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +0 -0
  512. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +0 -0
  513. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +0 -0
  514. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types/MutablePatient.js → types/FilingOrder.js} +0 -0
  515. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +0 -0
  516. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +0 -0
  517. /package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/MutablePatient.js +0 -0
  518. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.js +0 -0
  519. /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +0 -0
  520. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.d.ts +0 -0
  521. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.js +0 -0
  522. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.d.ts +0 -0
  523. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.js +0 -0
  524. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.d.ts +0 -0
  525. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.js +0 -0
  526. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +0 -0
  527. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.js +0 -0
  528. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +0 -0
  529. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.js +0 -0
  530. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +0 -0
  531. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.js +0 -0
  532. /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +0 -0
  533. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.d.ts +0 -0
  534. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.js +0 -0
  535. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.d.ts +0 -0
  536. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.js +0 -0
  537. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.d.ts +0 -0
  538. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.js +0 -0
  539. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +0 -0
  540. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +0 -0
  541. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +0 -0
  542. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +0 -0
  543. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types/Patient.js → types/FilingOrder.js} +0 -0
  544. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +0 -0
  545. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +0 -0
  546. /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +0 -0
  547. /package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.d.ts +0 -0
  548. /package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.js +0 -0
  549. /package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.d.ts +0 -0
  550. /package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.js +0 -0
  551. /package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.d.ts +0 -0
  552. /package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.js +0 -0
  553. /package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.d.ts +0 -0
  554. /package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.js +0 -0
@@ -2,16 +2,567 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
5
40
  Object.defineProperty(exports, "__esModule", { value: true });
6
41
  exports.V1 = void 0;
7
- const Client_1 = require("../resources/patients/client/Client");
42
+ const environments = __importStar(require("../../../../../../../../environments"));
43
+ const core = __importStar(require("../../../../../../../../core"));
44
+ const CandidApi = __importStar(require("../../../../../../../index"));
45
+ const serializers = __importStar(require("../../../../../../../../serialization/index"));
46
+ const url_join_1 = __importDefault(require("url-join"));
8
47
  class V1 {
9
48
  constructor(_options = {}) {
10
49
  this._options = _options;
11
50
  }
12
- get patients() {
51
+ /**
52
+ * Adds a patient. VersionConflictError is returned when the patient's external ID is already in use.
53
+ *
54
+ * @param {CandidApi.preEncounter.patients.v1.MutablePatient} request
55
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @example
58
+ * await client.preEncounter.patients.v1.create({
59
+ * name: {},
60
+ * otherNames: [{}],
61
+ * gender: CandidApi.preEncounter.Gender.Man,
62
+ * birthDate: "2023-01-15",
63
+ * socialSecurityNumber: "string",
64
+ * biologicalSex: CandidApi.preEncounter.Sex.Female,
65
+ * sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
66
+ * race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
67
+ * ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
68
+ * disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
69
+ * maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
70
+ * deceased: new Date("2024-01-15T09:30:00.000Z"),
71
+ * multipleBirth: 1,
72
+ * primaryAddress: {},
73
+ * otherAddresses: [{}],
74
+ * primaryTelecom: {},
75
+ * otherTelecoms: [{}],
76
+ * email: "string",
77
+ * electronicCommunicationOptIn: true,
78
+ * photo: "string",
79
+ * language: "string",
80
+ * externalProvenance: {
81
+ * externalId: "string",
82
+ * systemName: "string"
83
+ * },
84
+ * contacts: [{
85
+ * relationship: [CandidApi.preEncounter.Relationship.Self],
86
+ * name: {},
87
+ * gender: CandidApi.preEncounter.Gender.Man,
88
+ * telecoms: [{}],
89
+ * addresses: [{}],
90
+ * period: {}
91
+ * }],
92
+ * generalPractitioners: [{
93
+ * name: {},
94
+ * npi: "string",
95
+ * telecoms: [{}],
96
+ * addresses: [{}],
97
+ * period: {}
98
+ * }],
99
+ * filingOrder: {
100
+ * coverages: [CandidApi.preEncounter.coverages.v1.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
101
+ * }
102
+ * })
103
+ */
104
+ create(request, requestOptions) {
105
+ var _a, _b;
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const _response = yield core.fetcher({
108
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
109
+ .preEncounter, "/patients/v1"),
110
+ method: "POST",
111
+ headers: {
112
+ Authorization: yield this._getAuthorizationHeader(),
113
+ "X-Fern-Language": "JavaScript",
114
+ "X-Fern-SDK-Name": "candidhealth",
115
+ "X-Fern-SDK-Version": "0.24.5",
116
+ "X-Fern-Runtime": core.RUNTIME.type,
117
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
118
+ },
119
+ contentType: "application/json",
120
+ requestType: "json",
121
+ body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
122
+ unrecognizedObjectKeys: "strip",
123
+ }),
124
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
125
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
126
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
127
+ });
128
+ if (_response.ok) {
129
+ return {
130
+ ok: true,
131
+ body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
132
+ unrecognizedObjectKeys: "passthrough",
133
+ allowUnrecognizedUnionMembers: true,
134
+ allowUnrecognizedEnumValues: true,
135
+ breadcrumbsPrefix: ["response"],
136
+ }),
137
+ };
138
+ }
139
+ if (_response.error.reason === "status-code") {
140
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
141
+ case "VersionConflictError":
142
+ return {
143
+ ok: false,
144
+ error: serializers.preEncounter.patients.v1.create.Error.parseOrThrow(_response.error.body, {
145
+ unrecognizedObjectKeys: "passthrough",
146
+ allowUnrecognizedUnionMembers: true,
147
+ allowUnrecognizedEnumValues: true,
148
+ breadcrumbsPrefix: ["response"],
149
+ }),
150
+ };
151
+ }
152
+ }
153
+ return {
154
+ ok: false,
155
+ error: CandidApi.preEncounter.patients.v1.create.Error._unknown(_response.error),
156
+ };
157
+ });
158
+ }
159
+ /**
160
+ * Gets a patient.
161
+ *
162
+ * @param {CandidApi.preEncounter.patients.v1.PatientId} id
163
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
164
+ *
165
+ * @example
166
+ * await client.preEncounter.patients.v1.get(CandidApi.preEncounter.patients.v1.PatientId("string"))
167
+ */
168
+ get(id, requestOptions) {
169
+ var _a, _b;
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ const _response = yield core.fetcher({
172
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
173
+ .preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}`),
174
+ method: "GET",
175
+ headers: {
176
+ Authorization: yield this._getAuthorizationHeader(),
177
+ "X-Fern-Language": "JavaScript",
178
+ "X-Fern-SDK-Name": "candidhealth",
179
+ "X-Fern-SDK-Version": "0.24.5",
180
+ "X-Fern-Runtime": core.RUNTIME.type,
181
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
182
+ },
183
+ contentType: "application/json",
184
+ requestType: "json",
185
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
186
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
187
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
188
+ });
189
+ if (_response.ok) {
190
+ return {
191
+ ok: true,
192
+ body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
193
+ unrecognizedObjectKeys: "passthrough",
194
+ allowUnrecognizedUnionMembers: true,
195
+ allowUnrecognizedEnumValues: true,
196
+ breadcrumbsPrefix: ["response"],
197
+ }),
198
+ };
199
+ }
200
+ if (_response.error.reason === "status-code") {
201
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
202
+ case "NotFoundError":
203
+ return {
204
+ ok: false,
205
+ error: serializers.preEncounter.patients.v1.get.Error.parseOrThrow(_response.error.body, {
206
+ unrecognizedObjectKeys: "passthrough",
207
+ allowUnrecognizedUnionMembers: true,
208
+ allowUnrecognizedEnumValues: true,
209
+ breadcrumbsPrefix: ["response"],
210
+ }),
211
+ };
212
+ }
213
+ }
214
+ return {
215
+ ok: false,
216
+ error: CandidApi.preEncounter.patients.v1.get.Error._unknown(_response.error),
217
+ };
218
+ });
219
+ }
220
+ /**
221
+ * Gets a patient along with it's full history. The return list is ordered by version ascending.
222
+ *
223
+ * @param {CandidApi.preEncounter.patients.v1.PatientId} id
224
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
225
+ *
226
+ * @example
227
+ * await client.preEncounter.patients.v1.getHistory(CandidApi.preEncounter.patients.v1.PatientId("string"))
228
+ */
229
+ getHistory(id, requestOptions) {
230
+ var _a, _b;
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ const _response = yield core.fetcher({
233
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
234
+ .preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}/history`),
235
+ method: "GET",
236
+ headers: {
237
+ Authorization: yield this._getAuthorizationHeader(),
238
+ "X-Fern-Language": "JavaScript",
239
+ "X-Fern-SDK-Name": "candidhealth",
240
+ "X-Fern-SDK-Version": "0.24.5",
241
+ "X-Fern-Runtime": core.RUNTIME.type,
242
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
243
+ },
244
+ contentType: "application/json",
245
+ requestType: "json",
246
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
247
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
248
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
+ });
250
+ if (_response.ok) {
251
+ return {
252
+ ok: true,
253
+ body: serializers.preEncounter.patients.v1.getHistory.Response.parseOrThrow(_response.body, {
254
+ unrecognizedObjectKeys: "passthrough",
255
+ allowUnrecognizedUnionMembers: true,
256
+ allowUnrecognizedEnumValues: true,
257
+ breadcrumbsPrefix: ["response"],
258
+ }),
259
+ };
260
+ }
261
+ if (_response.error.reason === "status-code") {
262
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
263
+ case "NotFoundError":
264
+ return {
265
+ ok: false,
266
+ error: serializers.preEncounter.patients.v1.getHistory.Error.parseOrThrow(_response.error.body, {
267
+ unrecognizedObjectKeys: "passthrough",
268
+ allowUnrecognizedUnionMembers: true,
269
+ allowUnrecognizedEnumValues: true,
270
+ breadcrumbsPrefix: ["response"],
271
+ }),
272
+ };
273
+ }
274
+ }
275
+ return {
276
+ ok: false,
277
+ error: CandidApi.preEncounter.patients.v1.getHistory.Error._unknown(_response.error),
278
+ };
279
+ });
280
+ }
281
+ /**
282
+ * Updates a patient. The path must contain the most recent version to prevent races. Updating historic versions is not supported.
283
+ *
284
+ * @param {CandidApi.preEncounter.patients.v1.PatientId} id
285
+ * @param {string} version
286
+ * @param {CandidApi.preEncounter.patients.v1.MutablePatient} request
287
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
288
+ *
289
+ * @example
290
+ * await client.preEncounter.patients.v1.update(CandidApi.preEncounter.patients.v1.PatientId("string"), "string", {
291
+ * name: {},
292
+ * otherNames: [{}],
293
+ * gender: CandidApi.preEncounter.Gender.Man,
294
+ * birthDate: "2023-01-15",
295
+ * socialSecurityNumber: "string",
296
+ * biologicalSex: CandidApi.preEncounter.Sex.Female,
297
+ * sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
298
+ * race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
299
+ * ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
300
+ * disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
301
+ * maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
302
+ * deceased: new Date("2024-01-15T09:30:00.000Z"),
303
+ * multipleBirth: 1,
304
+ * primaryAddress: {},
305
+ * otherAddresses: [{}],
306
+ * primaryTelecom: {},
307
+ * otherTelecoms: [{}],
308
+ * email: "string",
309
+ * electronicCommunicationOptIn: true,
310
+ * photo: "string",
311
+ * language: "string",
312
+ * externalProvenance: {
313
+ * externalId: "string",
314
+ * systemName: "string"
315
+ * },
316
+ * contacts: [{
317
+ * relationship: [CandidApi.preEncounter.Relationship.Self],
318
+ * name: {},
319
+ * gender: CandidApi.preEncounter.Gender.Man,
320
+ * telecoms: [{}],
321
+ * addresses: [{}],
322
+ * period: {}
323
+ * }],
324
+ * generalPractitioners: [{
325
+ * name: {},
326
+ * npi: "string",
327
+ * telecoms: [{}],
328
+ * addresses: [{}],
329
+ * period: {}
330
+ * }],
331
+ * filingOrder: {
332
+ * coverages: [CandidApi.preEncounter.coverages.v1.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
333
+ * }
334
+ * })
335
+ */
336
+ update(id, version, request, requestOptions) {
337
+ var _a, _b;
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ const _response = yield core.fetcher({
340
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
341
+ .preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
342
+ method: "PUT",
343
+ headers: {
344
+ Authorization: yield this._getAuthorizationHeader(),
345
+ "X-Fern-Language": "JavaScript",
346
+ "X-Fern-SDK-Name": "candidhealth",
347
+ "X-Fern-SDK-Version": "0.24.5",
348
+ "X-Fern-Runtime": core.RUNTIME.type,
349
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
350
+ },
351
+ contentType: "application/json",
352
+ requestType: "json",
353
+ body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
354
+ unrecognizedObjectKeys: "strip",
355
+ }),
356
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
357
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
358
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
359
+ });
360
+ if (_response.ok) {
361
+ return {
362
+ ok: true,
363
+ body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
364
+ unrecognizedObjectKeys: "passthrough",
365
+ allowUnrecognizedUnionMembers: true,
366
+ allowUnrecognizedEnumValues: true,
367
+ breadcrumbsPrefix: ["response"],
368
+ }),
369
+ };
370
+ }
371
+ if (_response.error.reason === "status-code") {
372
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
373
+ case "NotFoundError":
374
+ case "VersionConflictError":
375
+ return {
376
+ ok: false,
377
+ error: serializers.preEncounter.patients.v1.update.Error.parseOrThrow(_response.error.body, {
378
+ unrecognizedObjectKeys: "passthrough",
379
+ allowUnrecognizedUnionMembers: true,
380
+ allowUnrecognizedEnumValues: true,
381
+ breadcrumbsPrefix: ["response"],
382
+ }),
383
+ };
384
+ }
385
+ }
386
+ return {
387
+ ok: false,
388
+ error: CandidApi.preEncounter.patients.v1.update.Error._unknown(_response.error),
389
+ };
390
+ });
391
+ }
392
+ /**
393
+ * Sets a patient as deactivated. The path must contain the most recent version to prevent races. Dactivating historic versions is not supported. Subsequent updates via PUT to the patient will "reactivate" the patient and set the deactivated flag to false.
394
+ *
395
+ * @param {CandidApi.preEncounter.patients.v1.PatientId} id
396
+ * @param {string} version
397
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
398
+ *
399
+ * @example
400
+ * await client.preEncounter.patients.v1.deactivate(CandidApi.preEncounter.patients.v1.PatientId("string"), "string")
401
+ */
402
+ deactivate(id, version, requestOptions) {
403
+ var _a, _b;
404
+ return __awaiter(this, void 0, void 0, function* () {
405
+ const _response = yield core.fetcher({
406
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
407
+ .preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
408
+ method: "DELETE",
409
+ headers: {
410
+ Authorization: yield this._getAuthorizationHeader(),
411
+ "X-Fern-Language": "JavaScript",
412
+ "X-Fern-SDK-Name": "candidhealth",
413
+ "X-Fern-SDK-Version": "0.24.5",
414
+ "X-Fern-Runtime": core.RUNTIME.type,
415
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
416
+ },
417
+ contentType: "application/json",
418
+ requestType: "json",
419
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
420
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
421
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
422
+ });
423
+ if (_response.ok) {
424
+ return {
425
+ ok: true,
426
+ body: undefined,
427
+ };
428
+ }
429
+ if (_response.error.reason === "status-code") {
430
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
431
+ case "NotFoundError":
432
+ case "VersionConflictError":
433
+ return {
434
+ ok: false,
435
+ error: serializers.preEncounter.patients.v1.deactivate.Error.parseOrThrow(_response.error.body, {
436
+ unrecognizedObjectKeys: "passthrough",
437
+ allowUnrecognizedUnionMembers: true,
438
+ allowUnrecognizedEnumValues: true,
439
+ breadcrumbsPrefix: ["response"],
440
+ }),
441
+ };
442
+ }
443
+ }
444
+ return {
445
+ ok: false,
446
+ error: CandidApi.preEncounter.patients.v1.deactivate.Error._unknown(_response.error),
447
+ };
448
+ });
449
+ }
450
+ /**
451
+ * Searches for patients that match the query parameters.
452
+ *
453
+ * @param {CandidApi.preEncounter.patients.v1.PatientsSearchRequest} request
454
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
455
+ *
456
+ * @example
457
+ * await client.preEncounter.patients.v1.search({
458
+ * nameContains: "string"
459
+ * })
460
+ */
461
+ search(request = {}, requestOptions) {
462
+ var _a;
463
+ return __awaiter(this, void 0, void 0, function* () {
464
+ const { nameContains } = request;
465
+ const _queryParams = {};
466
+ if (nameContains != null) {
467
+ _queryParams["name_contains"] = nameContains;
468
+ }
469
+ const _response = yield core.fetcher({
470
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
471
+ .preEncounter, "/patients/v1"),
472
+ method: "GET",
473
+ headers: {
474
+ Authorization: yield this._getAuthorizationHeader(),
475
+ "X-Fern-Language": "JavaScript",
476
+ "X-Fern-SDK-Name": "candidhealth",
477
+ "X-Fern-SDK-Version": "0.24.5",
478
+ "X-Fern-Runtime": core.RUNTIME.type,
479
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
480
+ },
481
+ contentType: "application/json",
482
+ queryParameters: _queryParams,
483
+ requestType: "json",
484
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
485
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
486
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
487
+ });
488
+ if (_response.ok) {
489
+ return {
490
+ ok: true,
491
+ body: serializers.preEncounter.patients.v1.search.Response.parseOrThrow(_response.body, {
492
+ unrecognizedObjectKeys: "passthrough",
493
+ allowUnrecognizedUnionMembers: true,
494
+ allowUnrecognizedEnumValues: true,
495
+ breadcrumbsPrefix: ["response"],
496
+ }),
497
+ };
498
+ }
499
+ return {
500
+ ok: false,
501
+ error: CandidApi.preEncounter.patients.v1.search.Error._unknown(_response.error),
502
+ };
503
+ });
504
+ }
505
+ /**
506
+ * Scans up to 100 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt descending.
507
+ *
508
+ * @param {CandidApi.preEncounter.patients.v1.PatientScanRequest} request
509
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
510
+ *
511
+ * @example
512
+ * await client.preEncounter.patients.v1.scan({
513
+ * since: new Date("2024-01-15T09:30:00.000Z")
514
+ * })
515
+ */
516
+ scan(request, requestOptions) {
13
517
  var _a;
14
- return ((_a = this._patients) !== null && _a !== void 0 ? _a : (this._patients = new Client_1.Patients(this._options)));
518
+ return __awaiter(this, void 0, void 0, function* () {
519
+ const { since } = request;
520
+ const _queryParams = {};
521
+ _queryParams["since"] = since.toISOString();
522
+ const _response = yield core.fetcher({
523
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
524
+ .preEncounter, "/patients/v1/updates/scan"),
525
+ method: "GET",
526
+ headers: {
527
+ Authorization: yield this._getAuthorizationHeader(),
528
+ "X-Fern-Language": "JavaScript",
529
+ "X-Fern-SDK-Name": "candidhealth",
530
+ "X-Fern-SDK-Version": "0.24.5",
531
+ "X-Fern-Runtime": core.RUNTIME.type,
532
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
533
+ },
534
+ contentType: "application/json",
535
+ queryParameters: _queryParams,
536
+ requestType: "json",
537
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
538
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
539
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
540
+ });
541
+ if (_response.ok) {
542
+ return {
543
+ ok: true,
544
+ body: serializers.preEncounter.patients.v1.scan.Response.parseOrThrow(_response.body, {
545
+ unrecognizedObjectKeys: "passthrough",
546
+ allowUnrecognizedUnionMembers: true,
547
+ allowUnrecognizedEnumValues: true,
548
+ breadcrumbsPrefix: ["response"],
549
+ }),
550
+ };
551
+ }
552
+ return {
553
+ ok: false,
554
+ error: CandidApi.preEncounter.patients.v1.scan.Error._unknown(_response.error),
555
+ };
556
+ });
557
+ }
558
+ _getAuthorizationHeader() {
559
+ return __awaiter(this, void 0, void 0, function* () {
560
+ const bearer = yield core.Supplier.get(this._options.token);
561
+ if (bearer != null) {
562
+ return `Bearer ${bearer}`;
563
+ }
564
+ return undefined;
565
+ });
15
566
  }
16
567
  }
17
568
  exports.V1 = V1;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as CandidApi from "../../../../../../../../../index";
5
- import * as core from "../../../../../../../../../../core";
6
- export declare type Error = CandidApi.preEncounter.patients.v1.patients.create.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.patients.create.Error._Unknown;
4
+ import * as CandidApi from "../../../../../../../index";
5
+ import * as core from "../../../../../../../../core";
6
+ export declare type Error = CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface VersionConflictError extends _Utils {
9
9
  errorName: "VersionConflictError";
@@ -14,7 +14,7 @@ export declare namespace Error {
14
14
  content: core.Fetcher.Error;
15
15
  }
16
16
  interface _Utils {
17
- _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.patients.create.Error._Visitor<_Result>) => _Result;
17
+ _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.create.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
20
  versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
@@ -22,7 +22,7 @@ export declare namespace Error {
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.patients.create.Error.VersionConflictError;
26
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.patients.create.Error._Unknown;
27
- readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.patients.create.Error, visitor: CandidApi.preEncounter.patients.v1.patients.create.Error._Visitor<_Result>) => _Result;
25
+ readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.create.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.create.Error, visitor: CandidApi.preEncounter.patients.v1.create.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -27,14 +27,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
- const CandidApi = __importStar(require("../../../../../../../../../index"));
30
+ const CandidApi = __importStar(require("../../../../../../../index"));
31
31
  exports.Error = {
32
32
  versionConflictError: (value) => {
33
33
  return {
34
34
  content: value,
35
35
  errorName: "VersionConflictError",
36
36
  _visit: function (visitor) {
37
- return CandidApi.preEncounter.patients.v1.patients.create.Error._visit(this, visitor);
37
+ return CandidApi.preEncounter.patients.v1.create.Error._visit(this, visitor);
38
38
  },
39
39
  };
40
40
  },
@@ -43,7 +43,7 @@ exports.Error = {
43
43
  errorName: undefined,
44
44
  content: fetcherError,
45
45
  _visit: function (visitor) {
46
- return CandidApi.preEncounter.patients.v1.patients.create.Error._visit(this, visitor);
46
+ return CandidApi.preEncounter.patients.v1.create.Error._visit(this, visitor);
47
47
  },
48
48
  };
49
49
  },
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as CandidApi from "../../../../../../../../../index";
5
- import * as core from "../../../../../../../../../../core";
6
- export declare type Error = CandidApi.preEncounter.patients.v1.patients.deactivate.Error.NotFoundError | CandidApi.preEncounter.patients.v1.patients.deactivate.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.patients.deactivate.Error._Unknown;
4
+ import * as CandidApi from "../../../../../../../index";
5
+ import * as core from "../../../../../../../../core";
6
+ export declare type Error = CandidApi.preEncounter.patients.v1.deactivate.Error.NotFoundError | CandidApi.preEncounter.patients.v1.deactivate.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.deactivate.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
@@ -18,7 +18,7 @@ export declare namespace Error {
18
18
  content: core.Fetcher.Error;
19
19
  }
20
20
  interface _Utils {
21
- _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.patients.deactivate.Error._Visitor<_Result>) => _Result;
21
+ _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.deactivate.Error._Visitor<_Result>) => _Result;
22
22
  }
23
23
  interface _Visitor<_Result> {
24
24
  notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
@@ -27,8 +27,8 @@ export declare namespace Error {
27
27
  }
28
28
  }
29
29
  export declare const Error: {
30
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.patients.v1.patients.deactivate.Error.NotFoundError;
31
- readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.patients.deactivate.Error.VersionConflictError;
32
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.patients.deactivate.Error._Unknown;
33
- readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.patients.deactivate.Error, visitor: CandidApi.preEncounter.patients.v1.patients.deactivate.Error._Visitor<_Result>) => _Result;
30
+ readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.patients.v1.deactivate.Error.NotFoundError;
31
+ readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.deactivate.Error.VersionConflictError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.deactivate.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.deactivate.Error, visitor: CandidApi.preEncounter.patients.v1.deactivate.Error._Visitor<_Result>) => _Result;
34
34
  };