candidhealth 0.22.2-15e24b1 → 0.24.0-2a6d412

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 (775) hide show
  1. package/Client.d.ts +4 -1
  2. package/Client.js +5 -0
  3. package/api/resources/auth/client/Client.d.ts +1 -1
  4. package/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  5. package/api/resources/auth/resources/v2/client/Client.js +3 -2
  6. package/api/resources/billingNotes/client/Client.d.ts +1 -1
  7. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +1 -1
  8. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -2
  9. package/api/resources/commons/types/QualifierCode.d.ts +14 -0
  10. package/api/resources/commons/types/QualifierCode.js +12 -0
  11. package/api/resources/commons/types/index.d.ts +1 -0
  12. package/api/resources/commons/types/index.js +1 -0
  13. package/api/resources/contracts/client/Client.d.ts +1 -1
  14. package/api/resources/contracts/resources/v2/client/Client.d.ts +1 -1
  15. package/api/resources/contracts/resources/v2/client/Client.js +15 -10
  16. package/api/resources/eligibility/client/Client.d.ts +1 -1
  17. package/api/resources/eligibility/resources/v2/client/Client.d.ts +1 -1
  18. package/api/resources/eligibility/resources/v2/client/Client.js +9 -6
  19. package/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +1 -0
  20. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProvider.d.ts +14 -0
  21. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProvider.js +5 -0
  22. package/api/resources/encounterProviders/resources/v2/types/OrderingProvider.d.ts +13 -0
  23. package/api/resources/encounterProviders/resources/v2/types/OrderingProvider.js +5 -0
  24. package/api/resources/encounterProviders/resources/v2/types/SupervisingProvider.d.ts +13 -0
  25. package/api/resources/encounterProviders/resources/v2/types/SupervisingProvider.js +5 -0
  26. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +3 -0
  27. package/api/resources/encounterProviders/resources/v2/types/index.js +3 -0
  28. package/api/resources/encounters/client/Client.d.ts +1 -1
  29. package/api/resources/encounters/resources/v4/client/Client.d.ts +109 -2
  30. package/api/resources/encounters/resources/v4/client/Client.js +120 -9
  31. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +128 -4
  32. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -0
  33. package/api/resources/expectedNetworkStatus/client/Client.d.ts +1 -1
  34. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +1 -1
  35. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +3 -2
  36. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +1 -1
  37. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +6 -4
  38. package/api/resources/exports/client/Client.d.ts +1 -1
  39. package/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
  40. package/api/resources/exports/resources/v3/client/Client.js +3 -2
  41. package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +1 -1
  42. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -1
  43. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +3 -2
  44. package/api/resources/feeSchedules/client/Client.d.ts +1 -1
  45. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  46. package/api/resources/feeSchedules/resources/v3/client/Client.js +30 -20
  47. package/api/resources/guarantor/client/Client.d.ts +1 -1
  48. package/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -1
  49. package/api/resources/guarantor/resources/v1/client/Client.js +9 -6
  50. package/api/resources/importInvoice/client/Client.d.ts +1 -1
  51. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +1 -1
  52. package/api/resources/importInvoice/resources/v1/client/Client.js +12 -8
  53. package/api/resources/index.d.ts +1 -0
  54. package/api/resources/index.js +2 -1
  55. package/api/resources/insuranceAdjudications/client/Client.d.ts +1 -1
  56. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +1 -1
  57. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +9 -6
  58. package/api/resources/insurancePayments/client/Client.d.ts +1 -1
  59. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -1
  60. package/api/resources/insurancePayments/resources/v1/client/Client.js +15 -10
  61. package/api/resources/insuranceRefunds/client/Client.d.ts +1 -1
  62. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +1 -1
  63. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +15 -10
  64. package/api/resources/organizationProviders/client/Client.d.ts +1 -1
  65. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +1 -1
  66. package/api/resources/organizationProviders/resources/v3/client/Client.js +12 -8
  67. package/api/resources/organizationServiceFacilities/client/Client.d.ts +1 -1
  68. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  69. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +15 -10
  70. package/api/resources/patientPayments/client/Client.d.ts +1 -1
  71. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +1 -1
  72. package/api/resources/patientPayments/resources/v4/client/Client.js +15 -10
  73. package/api/resources/patientRefunds/client/Client.d.ts +1 -1
  74. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +1 -1
  75. package/api/resources/patientRefunds/resources/v1/client/Client.js +15 -10
  76. package/api/resources/payers/client/Client.d.ts +1 -1
  77. package/api/resources/payers/resources/v3/client/Client.d.ts +1 -1
  78. package/api/resources/payers/resources/v3/client/Client.js +6 -4
  79. package/api/resources/preEncounter/client/Client.d.ts +26 -0
  80. package/api/resources/preEncounter/client/Client.js +22 -0
  81. package/api/resources/preEncounter/client/index.d.ts +1 -0
  82. package/api/resources/preEncounter/client/index.js +2 -0
  83. package/api/resources/preEncounter/index.d.ts +2 -0
  84. package/api/resources/preEncounter/index.js +18 -0
  85. package/api/resources/preEncounter/resources/common/index.d.ts +1 -0
  86. package/api/resources/preEncounter/resources/common/index.js +17 -0
  87. package/api/resources/preEncounter/resources/common/types/Address.d.ts +13 -0
  88. package/api/resources/preEncounter/resources/common/types/Address.js +5 -0
  89. package/api/resources/preEncounter/resources/common/types/AddressUse.d.ts +11 -0
  90. package/api/resources/preEncounter/resources/common/types/AddressUse.js +13 -0
  91. package/api/resources/preEncounter/resources/common/types/ContactPoint.d.ts +9 -0
  92. package/api/resources/preEncounter/resources/common/types/ContactPoint.js +5 -0
  93. package/api/resources/preEncounter/resources/common/types/ContactPointUse.d.ts +11 -0
  94. package/api/resources/preEncounter/resources/common/types/ContactPointUse.js +13 -0
  95. package/api/resources/preEncounter/resources/common/types/ErrorBase.d.ts +6 -0
  96. package/api/resources/preEncounter/resources/common/types/ErrorBase.js +5 -0
  97. package/api/resources/preEncounter/resources/common/types/Gender.d.ts +10 -0
  98. package/api/resources/preEncounter/resources/common/types/Gender.js +12 -0
  99. package/api/resources/preEncounter/resources/common/types/HumanName.d.ts +10 -0
  100. package/api/resources/preEncounter/resources/common/types/HumanName.js +5 -0
  101. package/api/resources/preEncounter/resources/common/types/NameUse.d.ts +13 -0
  102. package/api/resources/preEncounter/resources/common/types/NameUse.js +15 -0
  103. package/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +7 -0
  104. package/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +5 -0
  105. package/api/resources/preEncounter/resources/common/types/OrganizationId.d.ts +11 -0
  106. package/api/resources/preEncounter/resources/common/types/OrganizationId.js +10 -0
  107. package/api/resources/preEncounter/resources/common/types/PayerId.d.ts +11 -0
  108. package/api/resources/preEncounter/resources/common/types/PayerId.js +10 -0
  109. package/api/resources/preEncounter/resources/common/types/Period.d.ts +7 -0
  110. package/api/resources/preEncounter/resources/common/types/Period.js +5 -0
  111. package/api/resources/preEncounter/resources/common/types/Relationship.d.ts +11 -0
  112. package/api/resources/preEncounter/resources/common/types/Relationship.js +13 -0
  113. package/api/resources/preEncounter/resources/common/types/UserId.d.ts +11 -0
  114. package/api/resources/preEncounter/resources/common/types/UserId.js +10 -0
  115. package/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +8 -0
  116. package/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +5 -0
  117. package/api/resources/preEncounter/resources/common/types/index.d.ts +15 -0
  118. package/api/resources/preEncounter/resources/common/types/index.js +31 -0
  119. package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +23 -0
  120. package/api/resources/preEncounter/resources/coverages/client/Client.js +17 -0
  121. package/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -0
  122. package/api/resources/preEncounter/resources/coverages/client/index.js +2 -0
  123. package/api/resources/preEncounter/resources/coverages/index.d.ts +2 -0
  124. package/api/resources/preEncounter/resources/coverages/index.js +18 -0
  125. package/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  126. package/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  127. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +23 -0
  128. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
  129. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  130. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -0
  131. package/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
  132. package/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
  133. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +144 -0
  134. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +445 -0
  135. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.d.ts +22 -0
  136. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.js +47 -0
  137. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/get.d.ts +22 -0
  138. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/get.js +47 -0
  139. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +28 -0
  140. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +58 -0
  141. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +22 -0
  142. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +47 -0
  143. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
  144. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
  145. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/CoverageScanRequest.d.ts +12 -0
  146. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/CoverageScanRequest.js +5 -0
  147. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/GetAllCoveragesRequest.d.ts +12 -0
  148. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/GetAllCoveragesRequest.js +5 -0
  149. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.d.ts +2 -0
  150. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.js +2 -0
  151. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +22 -0
  152. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +47 -0
  153. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +34 -0
  154. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.js +69 -0
  155. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  156. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  157. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +19 -0
  158. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.js +5 -0
  159. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +11 -0
  160. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.js +10 -0
  161. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +13 -0
  162. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.js +12 -0
  163. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +8 -0
  164. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.js +10 -0
  165. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +14 -0
  166. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.js +5 -0
  167. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +17 -0
  168. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.js +5 -0
  169. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +9 -0
  170. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.js +5 -0
  171. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.d.ts +7 -0
  172. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.js +23 -0
  173. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
  174. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
  175. package/api/resources/preEncounter/resources/index.d.ts +4 -0
  176. package/api/resources/preEncounter/resources/index.js +33 -0
  177. package/api/resources/preEncounter/resources/patients/client/Client.d.ts +23 -0
  178. package/api/resources/preEncounter/resources/patients/client/Client.js +17 -0
  179. package/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -0
  180. package/api/resources/preEncounter/resources/patients/client/index.js +2 -0
  181. package/api/resources/preEncounter/resources/patients/index.d.ts +2 -0
  182. package/api/resources/preEncounter/resources/patients/index.js +18 -0
  183. package/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  184. package/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
  185. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +23 -0
  186. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
  187. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  188. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -0
  189. package/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
  190. package/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
  191. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
  192. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
  193. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +335 -0
  194. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +709 -0
  195. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +28 -0
  196. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.js +58 -0
  197. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +34 -0
  198. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +69 -0
  199. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +28 -0
  200. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.js +58 -0
  201. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +28 -0
  202. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.js +58 -0
  203. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
  204. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
  205. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientScanRequest.d.ts +12 -0
  206. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientScanRequest.js +5 -0
  207. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientsSearchRequest.d.ts +12 -0
  208. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientsSearchRequest.js +5 -0
  209. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.d.ts +2 -0
  210. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.js +2 -0
  211. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +22 -0
  212. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.js +47 -0
  213. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +22 -0
  214. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +47 -0
  215. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +34 -0
  216. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.js +69 -0
  217. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  218. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  219. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +12 -0
  220. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.js +5 -0
  221. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +10 -0
  222. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.js +5 -0
  223. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +10 -0
  224. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.js +5 -0
  225. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.d.ts +18 -0
  226. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.js +20 -0
  227. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +34 -0
  228. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.js +5 -0
  229. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +19 -0
  230. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.js +5 -0
  231. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +11 -0
  232. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.js +10 -0
  233. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.d.ts +7 -0
  234. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.js +23 -0
  235. package/api/resources/serviceFacility/client/Client.d.ts +1 -1
  236. package/api/resources/serviceFacility/client/Client.js +3 -2
  237. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +4 -0
  238. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +22 -0
  239. package/api/resources/tasks/client/Client.d.ts +1 -1
  240. package/api/resources/tasks/resources/v3/client/Client.d.ts +1 -1
  241. package/api/resources/tasks/resources/v3/client/Client.js +15 -10
  242. package/api/resources/writeOffs/client/Client.d.ts +1 -1
  243. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +1 -1
  244. package/api/resources/writeOffs/resources/v1/client/Client.js +12 -8
  245. package/dist/Client.d.ts +4 -1
  246. package/dist/Client.js +5 -0
  247. package/dist/api/resources/auth/client/Client.d.ts +1 -1
  248. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  249. package/dist/api/resources/auth/resources/v2/client/Client.js +3 -2
  250. package/dist/api/resources/billingNotes/client/Client.d.ts +1 -1
  251. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +1 -1
  252. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -2
  253. package/dist/api/resources/commons/types/QualifierCode.d.ts +14 -0
  254. package/dist/api/resources/commons/types/QualifierCode.js +12 -0
  255. package/dist/api/resources/commons/types/index.d.ts +1 -0
  256. package/dist/api/resources/commons/types/index.js +1 -0
  257. package/dist/api/resources/contracts/client/Client.d.ts +1 -1
  258. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +1 -1
  259. package/dist/api/resources/contracts/resources/v2/client/Client.js +15 -10
  260. package/dist/api/resources/eligibility/client/Client.d.ts +1 -1
  261. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +1 -1
  262. package/dist/api/resources/eligibility/resources/v2/client/Client.js +9 -6
  263. package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +1 -0
  264. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProvider.d.ts +14 -0
  265. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProvider.js +5 -0
  266. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProvider.d.ts +13 -0
  267. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProvider.js +5 -0
  268. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProvider.d.ts +13 -0
  269. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProvider.js +5 -0
  270. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +3 -0
  271. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +3 -0
  272. package/dist/api/resources/encounters/client/Client.d.ts +1 -1
  273. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +109 -2
  274. package/dist/api/resources/encounters/resources/v4/client/Client.js +120 -9
  275. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +128 -4
  276. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -0
  277. package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +1 -1
  278. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +1 -1
  279. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +3 -2
  280. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +1 -1
  281. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +6 -4
  282. package/dist/api/resources/exports/client/Client.d.ts +1 -1
  283. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
  284. package/dist/api/resources/exports/resources/v3/client/Client.js +3 -2
  285. package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +1 -1
  286. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -1
  287. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +3 -2
  288. package/dist/api/resources/feeSchedules/client/Client.d.ts +1 -1
  289. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  290. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +30 -20
  291. package/dist/api/resources/guarantor/client/Client.d.ts +1 -1
  292. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -1
  293. package/dist/api/resources/guarantor/resources/v1/client/Client.js +9 -6
  294. package/dist/api/resources/importInvoice/client/Client.d.ts +1 -1
  295. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +1 -1
  296. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +12 -8
  297. package/dist/api/resources/index.d.ts +1 -0
  298. package/dist/api/resources/index.js +2 -1
  299. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +1 -1
  300. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +1 -1
  301. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +9 -6
  302. package/dist/api/resources/insurancePayments/client/Client.d.ts +1 -1
  303. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -1
  304. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +15 -10
  305. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +1 -1
  306. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +1 -1
  307. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +15 -10
  308. package/dist/api/resources/organizationProviders/client/Client.d.ts +1 -1
  309. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +1 -1
  310. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +12 -8
  311. package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +1 -1
  312. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  313. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +15 -10
  314. package/dist/api/resources/patientPayments/client/Client.d.ts +1 -1
  315. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +1 -1
  316. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +15 -10
  317. package/dist/api/resources/patientRefunds/client/Client.d.ts +1 -1
  318. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +1 -1
  319. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +15 -10
  320. package/dist/api/resources/payers/client/Client.d.ts +1 -1
  321. package/dist/api/resources/payers/resources/v3/client/Client.d.ts +1 -1
  322. package/dist/api/resources/payers/resources/v3/client/Client.js +6 -4
  323. package/dist/api/resources/preEncounter/client/Client.d.ts +26 -0
  324. package/dist/api/resources/preEncounter/client/Client.js +22 -0
  325. package/dist/api/resources/preEncounter/client/index.d.ts +1 -0
  326. package/dist/api/resources/preEncounter/client/index.js +2 -0
  327. package/dist/api/resources/preEncounter/index.d.ts +2 -0
  328. package/dist/api/resources/preEncounter/index.js +18 -0
  329. package/dist/api/resources/preEncounter/resources/common/index.d.ts +1 -0
  330. package/dist/api/resources/preEncounter/resources/common/index.js +17 -0
  331. package/dist/api/resources/preEncounter/resources/common/types/Address.d.ts +13 -0
  332. package/dist/api/resources/preEncounter/resources/common/types/Address.js +5 -0
  333. package/dist/api/resources/preEncounter/resources/common/types/AddressUse.d.ts +11 -0
  334. package/dist/api/resources/preEncounter/resources/common/types/AddressUse.js +13 -0
  335. package/dist/api/resources/preEncounter/resources/common/types/ContactPoint.d.ts +9 -0
  336. package/dist/api/resources/preEncounter/resources/common/types/ContactPoint.js +5 -0
  337. package/dist/api/resources/preEncounter/resources/common/types/ContactPointUse.d.ts +11 -0
  338. package/dist/api/resources/preEncounter/resources/common/types/ContactPointUse.js +13 -0
  339. package/dist/api/resources/preEncounter/resources/common/types/ErrorBase.d.ts +6 -0
  340. package/dist/api/resources/preEncounter/resources/common/types/ErrorBase.js +5 -0
  341. package/dist/api/resources/preEncounter/resources/common/types/Gender.d.ts +10 -0
  342. package/dist/api/resources/preEncounter/resources/common/types/Gender.js +12 -0
  343. package/dist/api/resources/preEncounter/resources/common/types/HumanName.d.ts +10 -0
  344. package/dist/api/resources/preEncounter/resources/common/types/HumanName.js +5 -0
  345. package/dist/api/resources/preEncounter/resources/common/types/NameUse.d.ts +13 -0
  346. package/dist/api/resources/preEncounter/resources/common/types/NameUse.js +15 -0
  347. package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +7 -0
  348. package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +5 -0
  349. package/dist/api/resources/preEncounter/resources/common/types/OrganizationId.d.ts +11 -0
  350. package/dist/api/resources/preEncounter/resources/common/types/OrganizationId.js +10 -0
  351. package/dist/api/resources/preEncounter/resources/common/types/PayerId.d.ts +11 -0
  352. package/dist/api/resources/preEncounter/resources/common/types/PayerId.js +10 -0
  353. package/dist/api/resources/preEncounter/resources/common/types/Period.d.ts +7 -0
  354. package/dist/api/resources/preEncounter/resources/common/types/Period.js +5 -0
  355. package/dist/api/resources/preEncounter/resources/common/types/Relationship.d.ts +11 -0
  356. package/dist/api/resources/preEncounter/resources/common/types/Relationship.js +13 -0
  357. package/dist/api/resources/preEncounter/resources/common/types/UserId.d.ts +11 -0
  358. package/dist/api/resources/preEncounter/resources/common/types/UserId.js +10 -0
  359. package/dist/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +8 -0
  360. package/dist/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +5 -0
  361. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +15 -0
  362. package/dist/api/resources/preEncounter/resources/common/types/index.js +31 -0
  363. package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +23 -0
  364. package/dist/api/resources/preEncounter/resources/coverages/client/Client.js +17 -0
  365. package/dist/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -0
  366. package/dist/api/resources/preEncounter/resources/coverages/client/index.js +2 -0
  367. package/dist/api/resources/preEncounter/resources/coverages/index.d.ts +2 -0
  368. package/dist/api/resources/preEncounter/resources/coverages/index.js +18 -0
  369. package/dist/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  370. package/dist/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  371. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +23 -0
  372. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
  373. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  374. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -0
  375. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
  376. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
  377. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +144 -0
  378. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +445 -0
  379. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.d.ts +22 -0
  380. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.js +47 -0
  381. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/get.d.ts +22 -0
  382. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/get.js +47 -0
  383. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +28 -0
  384. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +58 -0
  385. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +22 -0
  386. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +47 -0
  387. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
  388. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
  389. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/CoverageScanRequest.d.ts +12 -0
  390. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/CoverageScanRequest.js +5 -0
  391. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/GetAllCoveragesRequest.d.ts +12 -0
  392. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/GetAllCoveragesRequest.js +5 -0
  393. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.d.ts +2 -0
  394. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.js +2 -0
  395. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +22 -0
  396. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +47 -0
  397. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +34 -0
  398. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.js +69 -0
  399. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  400. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  401. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +19 -0
  402. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.js +5 -0
  403. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +11 -0
  404. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.js +10 -0
  405. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +13 -0
  406. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.js +12 -0
  407. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +8 -0
  408. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.js +10 -0
  409. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +14 -0
  410. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.js +5 -0
  411. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +17 -0
  412. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.js +5 -0
  413. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +9 -0
  414. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.js +5 -0
  415. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.d.ts +7 -0
  416. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.js +23 -0
  417. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
  418. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
  419. package/dist/api/resources/preEncounter/resources/index.d.ts +4 -0
  420. package/dist/api/resources/preEncounter/resources/index.js +33 -0
  421. package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +23 -0
  422. package/dist/api/resources/preEncounter/resources/patients/client/Client.js +17 -0
  423. package/dist/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -0
  424. package/dist/api/resources/preEncounter/resources/patients/client/index.js +2 -0
  425. package/dist/api/resources/preEncounter/resources/patients/index.d.ts +2 -0
  426. package/dist/api/resources/preEncounter/resources/patients/index.js +18 -0
  427. package/dist/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  428. package/dist/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
  429. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +23 -0
  430. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
  431. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  432. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -0
  433. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
  434. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
  435. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
  436. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
  437. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +335 -0
  438. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +709 -0
  439. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +28 -0
  440. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.js +58 -0
  441. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +34 -0
  442. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +69 -0
  443. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +28 -0
  444. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.js +58 -0
  445. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +28 -0
  446. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.js +58 -0
  447. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
  448. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
  449. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientScanRequest.d.ts +12 -0
  450. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientScanRequest.js +5 -0
  451. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientsSearchRequest.d.ts +12 -0
  452. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/PatientsSearchRequest.js +5 -0
  453. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.d.ts +2 -0
  454. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.js +2 -0
  455. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +22 -0
  456. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.js +47 -0
  457. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +22 -0
  458. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +47 -0
  459. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +34 -0
  460. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.js +69 -0
  461. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  462. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  463. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +12 -0
  464. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.js +5 -0
  465. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +10 -0
  466. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.js +5 -0
  467. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +10 -0
  468. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.js +5 -0
  469. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.d.ts +18 -0
  470. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.js +20 -0
  471. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +34 -0
  472. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.js +5 -0
  473. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +19 -0
  474. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.js +5 -0
  475. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +11 -0
  476. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.js +10 -0
  477. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.d.ts +7 -0
  478. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.js +23 -0
  479. package/dist/api/resources/serviceFacility/client/Client.d.ts +1 -1
  480. package/dist/api/resources/serviceFacility/client/Client.js +3 -2
  481. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +4 -0
  482. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +22 -0
  483. package/dist/api/resources/tasks/client/Client.d.ts +1 -1
  484. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +1 -1
  485. package/dist/api/resources/tasks/resources/v3/client/Client.js +15 -10
  486. package/dist/api/resources/writeOffs/client/Client.d.ts +1 -1
  487. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +1 -1
  488. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +12 -8
  489. package/dist/environments.d.ts +12 -2
  490. package/dist/environments.js +8 -2
  491. package/dist/index.d.ts +1 -1
  492. package/dist/serialization/resources/commons/types/QualifierCode.d.ts +10 -0
  493. package/dist/serialization/resources/commons/types/QualifierCode.js +31 -0
  494. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  495. package/dist/serialization/resources/commons/types/index.js +1 -0
  496. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  497. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  498. package/dist/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProvider.d.ts +18 -0
  499. package/dist/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProvider.js +41 -0
  500. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProvider.d.ts +16 -0
  501. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProvider.js +39 -0
  502. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProvider.d.ts +16 -0
  503. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProvider.js +39 -0
  504. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +3 -0
  505. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +3 -0
  506. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
  507. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +6 -0
  508. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -0
  509. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  510. package/dist/serialization/resources/index.d.ts +1 -0
  511. package/dist/serialization/resources/index.js +2 -1
  512. package/dist/serialization/resources/preEncounter/index.d.ts +1 -0
  513. package/dist/serialization/resources/preEncounter/index.js +17 -0
  514. package/dist/serialization/resources/preEncounter/resources/common/index.d.ts +1 -0
  515. package/dist/serialization/resources/preEncounter/resources/common/index.js +17 -0
  516. package/dist/serialization/resources/preEncounter/resources/common/types/Address.d.ts +20 -0
  517. package/dist/serialization/resources/preEncounter/resources/common/types/Address.js +41 -0
  518. package/dist/serialization/resources/preEncounter/resources/common/types/AddressUse.d.ts +10 -0
  519. package/dist/serialization/resources/preEncounter/resources/common/types/AddressUse.js +31 -0
  520. package/dist/serialization/resources/preEncounter/resources/common/types/ContactPoint.d.ts +16 -0
  521. package/dist/serialization/resources/preEncounter/resources/common/types/ContactPoint.js +37 -0
  522. package/dist/serialization/resources/preEncounter/resources/common/types/ContactPointUse.d.ts +10 -0
  523. package/dist/serialization/resources/preEncounter/resources/common/types/ContactPointUse.js +31 -0
  524. package/dist/serialization/resources/preEncounter/resources/common/types/ErrorBase.d.ts +12 -0
  525. package/dist/serialization/resources/preEncounter/resources/common/types/ErrorBase.js +33 -0
  526. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +10 -0
  527. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.js +31 -0
  528. package/dist/serialization/resources/preEncounter/resources/common/types/HumanName.d.ts +17 -0
  529. package/dist/serialization/resources/preEncounter/resources/common/types/HumanName.js +38 -0
  530. package/dist/serialization/resources/preEncounter/resources/common/types/NameUse.d.ts +10 -0
  531. package/dist/serialization/resources/preEncounter/resources/common/types/NameUse.js +31 -0
  532. package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +13 -0
  533. package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +36 -0
  534. package/dist/serialization/resources/preEncounter/resources/common/types/OrganizationId.d.ts +10 -0
  535. package/dist/serialization/resources/preEncounter/resources/common/types/OrganizationId.js +35 -0
  536. package/dist/serialization/resources/preEncounter/resources/common/types/PayerId.d.ts +10 -0
  537. package/dist/serialization/resources/preEncounter/resources/common/types/PayerId.js +35 -0
  538. package/dist/serialization/resources/preEncounter/resources/common/types/Period.d.ts +13 -0
  539. package/dist/serialization/resources/preEncounter/resources/common/types/Period.js +34 -0
  540. package/dist/serialization/resources/preEncounter/resources/common/types/Relationship.d.ts +10 -0
  541. package/dist/serialization/resources/preEncounter/resources/common/types/Relationship.js +31 -0
  542. package/dist/serialization/resources/preEncounter/resources/common/types/UserId.d.ts +10 -0
  543. package/dist/serialization/resources/preEncounter/resources/common/types/UserId.js +35 -0
  544. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +14 -0
  545. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +37 -0
  546. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +15 -0
  547. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +31 -0
  548. package/dist/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -0
  549. package/dist/serialization/resources/preEncounter/resources/coverages/index.js +17 -0
  550. package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  551. package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  552. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
  553. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
  554. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
  555. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +63 -0
  556. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
  557. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +32 -0
  558. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +4 -0
  559. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +30 -0
  560. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
  561. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +32 -0
  562. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
  563. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.js +67 -0
  564. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  565. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  566. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
  567. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.js +44 -0
  568. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
  569. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.js +35 -0
  570. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
  571. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.js +31 -0
  572. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
  573. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.js +31 -0
  574. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
  575. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.js +43 -0
  576. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
  577. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.js +43 -0
  578. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
  579. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.js +37 -0
  580. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.d.ts +7 -0
  581. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.js +23 -0
  582. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
  583. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
  584. package/dist/serialization/resources/preEncounter/resources/index.d.ts +4 -0
  585. package/dist/serialization/resources/preEncounter/resources/index.js +33 -0
  586. package/dist/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -0
  587. package/dist/serialization/resources/preEncounter/resources/patients/index.js +17 -0
  588. package/dist/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  589. package/dist/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
  590. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
  591. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
  592. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
  593. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
  594. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
  595. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.js +61 -0
  596. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
  597. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +67 -0
  598. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
  599. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.js +61 -0
  600. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
  601. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.js +63 -0
  602. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +7 -0
  603. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +33 -0
  604. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
  605. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.js +32 -0
  606. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
  607. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +32 -0
  608. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
  609. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.js +67 -0
  610. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  611. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  612. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
  613. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.js +44 -0
  614. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
  615. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.js +34 -0
  616. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
  617. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.js +40 -0
  618. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.d.ts +10 -0
  619. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.js +44 -0
  620. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
  621. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.js +56 -0
  622. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
  623. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.js +44 -0
  624. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
  625. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.js +35 -0
  626. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.d.ts +7 -0
  627. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.js +23 -0
  628. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -0
  629. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +5 -0
  630. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +8 -0
  631. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +8 -0
  632. package/environments.d.ts +12 -2
  633. package/environments.js +8 -2
  634. package/index.d.ts +1 -1
  635. package/package.json +1 -1
  636. package/serialization/resources/commons/types/QualifierCode.d.ts +10 -0
  637. package/serialization/resources/commons/types/QualifierCode.js +31 -0
  638. package/serialization/resources/commons/types/index.d.ts +1 -0
  639. package/serialization/resources/commons/types/index.js +1 -0
  640. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  641. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  642. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProvider.d.ts +18 -0
  643. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProvider.js +41 -0
  644. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProvider.d.ts +16 -0
  645. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProvider.js +39 -0
  646. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProvider.d.ts +16 -0
  647. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProvider.js +39 -0
  648. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +3 -0
  649. package/serialization/resources/encounterProviders/resources/v2/types/index.js +3 -0
  650. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
  651. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +6 -0
  652. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -0
  653. package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  654. package/serialization/resources/index.d.ts +1 -0
  655. package/serialization/resources/index.js +2 -1
  656. package/serialization/resources/preEncounter/index.d.ts +1 -0
  657. package/serialization/resources/preEncounter/index.js +17 -0
  658. package/serialization/resources/preEncounter/resources/common/index.d.ts +1 -0
  659. package/serialization/resources/preEncounter/resources/common/index.js +17 -0
  660. package/serialization/resources/preEncounter/resources/common/types/Address.d.ts +20 -0
  661. package/serialization/resources/preEncounter/resources/common/types/Address.js +41 -0
  662. package/serialization/resources/preEncounter/resources/common/types/AddressUse.d.ts +10 -0
  663. package/serialization/resources/preEncounter/resources/common/types/AddressUse.js +31 -0
  664. package/serialization/resources/preEncounter/resources/common/types/ContactPoint.d.ts +16 -0
  665. package/serialization/resources/preEncounter/resources/common/types/ContactPoint.js +37 -0
  666. package/serialization/resources/preEncounter/resources/common/types/ContactPointUse.d.ts +10 -0
  667. package/serialization/resources/preEncounter/resources/common/types/ContactPointUse.js +31 -0
  668. package/serialization/resources/preEncounter/resources/common/types/ErrorBase.d.ts +12 -0
  669. package/serialization/resources/preEncounter/resources/common/types/ErrorBase.js +33 -0
  670. package/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +10 -0
  671. package/serialization/resources/preEncounter/resources/common/types/Gender.js +31 -0
  672. package/serialization/resources/preEncounter/resources/common/types/HumanName.d.ts +17 -0
  673. package/serialization/resources/preEncounter/resources/common/types/HumanName.js +38 -0
  674. package/serialization/resources/preEncounter/resources/common/types/NameUse.d.ts +10 -0
  675. package/serialization/resources/preEncounter/resources/common/types/NameUse.js +31 -0
  676. package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +13 -0
  677. package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +36 -0
  678. package/serialization/resources/preEncounter/resources/common/types/OrganizationId.d.ts +10 -0
  679. package/serialization/resources/preEncounter/resources/common/types/OrganizationId.js +35 -0
  680. package/serialization/resources/preEncounter/resources/common/types/PayerId.d.ts +10 -0
  681. package/serialization/resources/preEncounter/resources/common/types/PayerId.js +35 -0
  682. package/serialization/resources/preEncounter/resources/common/types/Period.d.ts +13 -0
  683. package/serialization/resources/preEncounter/resources/common/types/Period.js +34 -0
  684. package/serialization/resources/preEncounter/resources/common/types/Relationship.d.ts +10 -0
  685. package/serialization/resources/preEncounter/resources/common/types/Relationship.js +31 -0
  686. package/serialization/resources/preEncounter/resources/common/types/UserId.d.ts +10 -0
  687. package/serialization/resources/preEncounter/resources/common/types/UserId.js +35 -0
  688. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +14 -0
  689. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +37 -0
  690. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +15 -0
  691. package/serialization/resources/preEncounter/resources/common/types/index.js +31 -0
  692. package/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -0
  693. package/serialization/resources/preEncounter/resources/coverages/index.js +17 -0
  694. package/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  695. package/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  696. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
  697. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
  698. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
  699. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +63 -0
  700. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
  701. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +32 -0
  702. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +4 -0
  703. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +30 -0
  704. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
  705. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +32 -0
  706. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
  707. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.js +67 -0
  708. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  709. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  710. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
  711. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.js +44 -0
  712. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
  713. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.js +35 -0
  714. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
  715. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.js +31 -0
  716. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
  717. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.js +31 -0
  718. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
  719. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.js +43 -0
  720. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
  721. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.js +43 -0
  722. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
  723. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.js +37 -0
  724. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.d.ts +7 -0
  725. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/index.js +23 -0
  726. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
  727. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
  728. package/serialization/resources/preEncounter/resources/index.d.ts +4 -0
  729. package/serialization/resources/preEncounter/resources/index.js +33 -0
  730. package/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -0
  731. package/serialization/resources/preEncounter/resources/patients/index.js +17 -0
  732. package/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  733. package/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
  734. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
  735. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
  736. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
  737. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
  738. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
  739. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.js +61 -0
  740. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
  741. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +67 -0
  742. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
  743. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.js +61 -0
  744. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
  745. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.js +63 -0
  746. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +7 -0
  747. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +33 -0
  748. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
  749. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.js +32 -0
  750. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
  751. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +32 -0
  752. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
  753. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.js +67 -0
  754. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  755. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  756. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
  757. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.js +44 -0
  758. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
  759. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.js +34 -0
  760. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
  761. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.js +40 -0
  762. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.d.ts +10 -0
  763. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MaritalStatus.js +44 -0
  764. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
  765. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.js +56 -0
  766. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
  767. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.js +44 -0
  768. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
  769. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.js +35 -0
  770. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.d.ts +7 -0
  771. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/index.js +23 -0
  772. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -0
  773. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +5 -0
  774. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +8 -0
  775. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +8 -0
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../../../../index"));
31
+ exports.Error = {
32
+ notFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "NotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.preEncounter.patients.v1.patients.update.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ versionConflictError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "VersionConflictError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.preEncounter.patients.v1.patients.update.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ _unknown: (fetcherError) => {
51
+ return {
52
+ errorName: undefined,
53
+ content: fetcherError,
54
+ _visit: function (visitor) {
55
+ return CandidApi.preEncounter.patients.v1.patients.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ _visit: (value, visitor) => {
60
+ switch (value.errorName) {
61
+ case "NotFoundError":
62
+ return visitor.notFoundError(value.content);
63
+ case "VersionConflictError":
64
+ return visitor.versionConflictError(value.content);
65
+ default:
66
+ return visitor._other(value);
67
+ }
68
+ },
69
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../../../index";
5
+ export interface Contact {
6
+ relationship: CandidApi.preEncounter.Relationship[];
7
+ name: CandidApi.preEncounter.HumanName;
8
+ gender?: CandidApi.preEncounter.Gender;
9
+ telecoms: CandidApi.preEncounter.ContactPoint[];
10
+ addresses: CandidApi.preEncounter.Address[];
11
+ period?: CandidApi.preEncounter.Period;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Information about the upstream system that owns this patient data.
6
+ */
7
+ export interface ExternalProvenance {
8
+ externalId: string;
9
+ systemName: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../../../index";
5
+ export interface ExternalProvider {
6
+ name: CandidApi.preEncounter.HumanName;
7
+ telecoms: CandidApi.preEncounter.ContactPoint[];
8
+ addresses: CandidApi.preEncounter.Address[];
9
+ period?: CandidApi.preEncounter.Period;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type MaritalStatus = "ANNULLED" | "DIVORCED" | "INTERLOCUTORY" | "SEPARATED" | "MARRIED" | "COMMON_LAW" | "POLYGAMOUS" | "DOMESTIC_PARTNER" | "UNMARRIED" | "NEVER_MARRIED" | "WIDOWED" | "UNKNOWN";
5
+ export declare const MaritalStatus: {
6
+ readonly Annulled: "ANNULLED";
7
+ readonly Divorced: "DIVORCED";
8
+ readonly Interlocutory: "INTERLOCUTORY";
9
+ readonly Separated: "SEPARATED";
10
+ readonly Married: "MARRIED";
11
+ readonly CommonLaw: "COMMON_LAW";
12
+ readonly Polygamous: "POLYGAMOUS";
13
+ readonly DomesticPartner: "DOMESTIC_PARTNER";
14
+ readonly Unmarried: "UNMARRIED";
15
+ readonly NeverMarried: "NEVER_MARRIED";
16
+ readonly Widowed: "WIDOWED";
17
+ readonly Unknown: "UNKNOWN";
18
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MaritalStatus = void 0;
7
+ exports.MaritalStatus = {
8
+ Annulled: "ANNULLED",
9
+ Divorced: "DIVORCED",
10
+ Interlocutory: "INTERLOCUTORY",
11
+ Separated: "SEPARATED",
12
+ Married: "MARRIED",
13
+ CommonLaw: "COMMON_LAW",
14
+ Polygamous: "POLYGAMOUS",
15
+ DomesticPartner: "DOMESTIC_PARTNER",
16
+ Unmarried: "UNMARRIED",
17
+ NeverMarried: "NEVER_MARRIED",
18
+ Widowed: "WIDOWED",
19
+ Unknown: "UNKNOWN",
20
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../../../index";
5
+ /**
6
+ * An object representing patient demographics information.
7
+ */
8
+ export interface MutablePatient {
9
+ name: CandidApi.preEncounter.HumanName;
10
+ /** Other names for the patient. */
11
+ otherNames: CandidApi.preEncounter.HumanName[];
12
+ gender: CandidApi.preEncounter.Gender;
13
+ birthDate: string;
14
+ maritalStatus?: CandidApi.preEncounter.patients.v1.MaritalStatus;
15
+ /** Time of death for the patient. Leave unset if the patient is not deceased. */
16
+ deceased?: Date;
17
+ /** The number of siblings the patient was born with. Leave unset if the patient was not part of a multiple birth. */
18
+ multipleBirth?: number;
19
+ /** The primary address for the patient. */
20
+ primaryAddress: CandidApi.preEncounter.Address;
21
+ /** Other addresses for the patient. */
22
+ otherAddresses: CandidApi.preEncounter.Address[];
23
+ /** The primary phone number for the patient. */
24
+ primaryTelecom: CandidApi.preEncounter.ContactPoint;
25
+ /** Other phone numbers for the patient. */
26
+ otherTelecoms: CandidApi.preEncounter.ContactPoint[];
27
+ photo?: string;
28
+ language?: string;
29
+ /** Information about the upstream system that owns this patient data. Leave unset if Candid owns patient data. */
30
+ externalProvenance?: CandidApi.preEncounter.patients.v1.ExternalProvenance;
31
+ /** Contacts for the patient. */
32
+ contacts: CandidApi.preEncounter.patients.v1.Contact[];
33
+ generalPractitioners: CandidApi.preEncounter.patients.v1.ExternalProvider[];
34
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../../../index";
5
+ /**
6
+ * A patient object with immutable server-owned properties.
7
+ */
8
+ export interface Patient extends CandidApi.preEncounter.patients.v1.MutablePatient {
9
+ id: CandidApi.preEncounter.patients.v1.PatientId;
10
+ /** The organization that owns this patient. */
11
+ organizationId: CandidApi.preEncounter.OrganizationId;
12
+ /** True if the patient is deactivated. Deactivated patients are not returned in search results but are returned in all other endpoints including scan. */
13
+ deactivated: boolean;
14
+ /** The version of the patient. Any update to any property of a patient object will create a new version. */
15
+ version: number;
16
+ updatedAt: Date;
17
+ /** The user ID of the user who last updated the patient. */
18
+ updatingUserId: CandidApi.preEncounter.UserId;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../../../index";
5
+ /**
6
+ * The unique identifier for a Patient
7
+ */
8
+ export declare type PatientId = string & {
9
+ preEncounter_patients_v1_PatientId: void;
10
+ };
11
+ export declare function PatientId(value: string): CandidApi.preEncounter.patients.v1.PatientId;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PatientId = void 0;
7
+ function PatientId(value) {
8
+ return value;
9
+ }
10
+ exports.PatientId = PatientId;
@@ -0,0 +1,7 @@
1
+ export * from "./PatientId";
2
+ export * from "./MaritalStatus";
3
+ export * from "./ExternalProvenance";
4
+ export * from "./Contact";
5
+ export * from "./ExternalProvider";
6
+ export * from "./MutablePatient";
7
+ export * from "./Patient";
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PatientId"), exports);
18
+ __exportStar(require("./MaritalStatus"), exports);
19
+ __exportStar(require("./ExternalProvenance"), exports);
20
+ __exportStar(require("./Contact"), exports);
21
+ __exportStar(require("./ExternalProvider"), exports);
22
+ __exportStar(require("./MutablePatient"), exports);
23
+ __exportStar(require("./Patient"), exports);
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
6
6
  import * as CandidApi from "../../../index";
7
7
  export declare namespace ServiceFacility {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
@@ -71,13 +71,14 @@ class ServiceFacility {
71
71
  var _a;
72
72
  return __awaiter(this, void 0, void 0, function* () {
73
73
  const _response = yield core.fetcher({
74
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/service_facility/v2/${encodeURIComponent(yield serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
74
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
75
+ .candidApi, `/api/service_facility/v2/${encodeURIComponent(yield serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
75
76
  method: "PATCH",
76
77
  headers: {
77
78
  Authorization: yield this._getAuthorizationHeader(),
78
79
  "X-Fern-Language": "JavaScript",
79
80
  "X-Fern-SDK-Name": "candidhealth",
80
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
81
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
81
82
  "X-Fern-Runtime": core.RUNTIME.type,
82
83
  "X-Fern-Runtime-Version": core.RUNTIME.version,
83
84
  },
@@ -89,6 +89,10 @@ export interface ServiceLine {
89
89
  placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
90
90
  serviceLineId: CandidApi.ServiceLineId;
91
91
  procedureCode: string;
92
+ referringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
93
+ initialReferringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
94
+ supervisingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
95
+ orderingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
92
96
  /**
93
97
  * String representation of a Decimal that can be parsed by most libraries.
94
98
  * A ServiceLine quantity cannot contain more than one digit of precision.
@@ -26,4 +26,26 @@ export interface ServiceLineCreate {
26
26
  description?: string;
27
27
  dateOfService?: string;
28
28
  endDateOfService?: string;
29
+ /**
30
+ * The final provider who referred the services that were rendered.
31
+ * All physicians who order services or refer Medicare beneficiaries must
32
+ * report this data.
33
+ */
34
+ referringProvider?: CandidApi.encounterProviders.v2.ReferringProvider;
35
+ /**
36
+ * The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in this loop to
37
+ * indicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.
38
+ * Information in Loop ID-2310 applies to the entire claim unless overridden on a service line by the presence of Loop ID-2420 with the same value in NM101.
39
+ */
40
+ initialReferringProvider?: CandidApi.encounterProviders.v2.InitialReferringProvider;
41
+ /**
42
+ * Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send.
43
+ * Information in Loop ID-2310 applies to the entire claim unless overridden on a service line by the presence of Loop ID-2420 with the same value in NM101.
44
+ */
45
+ supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProvider;
46
+ /**
47
+ * Required when the service or supply was ordered by a provider who is different than the rendering provider for this service line.
48
+ * If not required by this implementation guide, do not send.
49
+ */
50
+ orderingProvider?: CandidApi.encounterProviders.v2.OrderingProvider;
29
51
  }
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
6
6
  import { V3 } from "../resources/v3/client/Client";
7
7
  export declare namespace Tasks {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as CandidApi from "../../../../../index";
7
7
  export declare namespace V3 {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
@@ -59,13 +59,14 @@ class V3 {
59
59
  var _a;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  const _response = yield core.fetcher({
62
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/tasks/v3/${encodeURIComponent(yield serializers.TaskId.jsonOrThrow(taskId))}/actions`),
62
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
63
+ .candidApi, `/api/tasks/v3/${encodeURIComponent(yield serializers.TaskId.jsonOrThrow(taskId))}/actions`),
63
64
  method: "GET",
64
65
  headers: {
65
66
  Authorization: yield this._getAuthorizationHeader(),
66
67
  "X-Fern-Language": "JavaScript",
67
68
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
69
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
69
70
  "X-Fern-Runtime": core.RUNTIME.type,
70
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
72
  },
@@ -157,13 +158,14 @@ class V3 {
157
158
  _queryParams["sort"] = sort;
158
159
  }
159
160
  const _response = yield core.fetcher({
160
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/tasks/v3"),
161
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
162
+ .candidApi, "/api/tasks/v3"),
161
163
  method: "GET",
162
164
  headers: {
163
165
  Authorization: yield this._getAuthorizationHeader(),
164
166
  "X-Fern-Language": "JavaScript",
165
167
  "X-Fern-SDK-Name": "candidhealth",
166
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
168
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
167
169
  "X-Fern-Runtime": core.RUNTIME.type,
168
170
  "X-Fern-Runtime-Version": core.RUNTIME.version,
169
171
  },
@@ -215,13 +217,14 @@ class V3 {
215
217
  var _a, _b;
216
218
  return __awaiter(this, void 0, void 0, function* () {
217
219
  const _response = yield core.fetcher({
218
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/tasks/v3/${encodeURIComponent(yield serializers.TaskId.jsonOrThrow(taskId))}`),
220
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
221
+ .candidApi, `/api/tasks/v3/${encodeURIComponent(yield serializers.TaskId.jsonOrThrow(taskId))}`),
219
222
  method: "GET",
220
223
  headers: {
221
224
  Authorization: yield this._getAuthorizationHeader(),
222
225
  "X-Fern-Language": "JavaScript",
223
226
  "X-Fern-SDK-Name": "candidhealth",
224
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
227
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
225
228
  "X-Fern-Runtime": core.RUNTIME.type,
226
229
  "X-Fern-Runtime-Version": core.RUNTIME.version,
227
230
  },
@@ -281,13 +284,14 @@ class V3 {
281
284
  var _a;
282
285
  return __awaiter(this, void 0, void 0, function* () {
283
286
  const _response = yield core.fetcher({
284
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/tasks/v3"),
287
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
288
+ .candidApi, "/api/tasks/v3"),
285
289
  method: "POST",
286
290
  headers: {
287
291
  Authorization: yield this._getAuthorizationHeader(),
288
292
  "X-Fern-Language": "JavaScript",
289
293
  "X-Fern-SDK-Name": "candidhealth",
290
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
294
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
291
295
  "X-Fern-Runtime": core.RUNTIME.type,
292
296
  "X-Fern-Runtime-Version": core.RUNTIME.version,
293
297
  },
@@ -330,13 +334,14 @@ class V3 {
330
334
  var _a, _b;
331
335
  return __awaiter(this, void 0, void 0, function* () {
332
336
  const _response = yield core.fetcher({
333
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/tasks/v3/${encodeURIComponent(yield serializers.TaskId.jsonOrThrow(taskId))}`),
337
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
338
+ .candidApi, `/api/tasks/v3/${encodeURIComponent(yield serializers.TaskId.jsonOrThrow(taskId))}`),
334
339
  method: "PATCH",
335
340
  headers: {
336
341
  Authorization: yield this._getAuthorizationHeader(),
337
342
  "X-Fern-Language": "JavaScript",
338
343
  "X-Fern-SDK-Name": "candidhealth",
339
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
344
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
340
345
  "X-Fern-Runtime": core.RUNTIME.type,
341
346
  "X-Fern-Runtime-Version": core.RUNTIME.version,
342
347
  },
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
6
6
  import { V1 } from "../resources/v1/client/Client";
7
7
  export declare namespace WriteOffs {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as CandidApi from "../../../../../index";
7
7
  export declare namespace V1 {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
@@ -109,13 +109,14 @@ class V1 {
109
109
  }
110
110
  }
111
111
  const _response = yield core.fetcher({
112
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/write-offs/v1"),
112
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
113
+ .candidApi, "/api/write-offs/v1"),
113
114
  method: "GET",
114
115
  headers: {
115
116
  Authorization: yield this._getAuthorizationHeader(),
116
117
  "X-Fern-Language": "JavaScript",
117
118
  "X-Fern-SDK-Name": "candidhealth",
118
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
119
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
119
120
  "X-Fern-Runtime": core.RUNTIME.type,
120
121
  "X-Fern-Runtime-Version": core.RUNTIME.version,
121
122
  },
@@ -155,13 +156,14 @@ class V1 {
155
156
  var _a;
156
157
  return __awaiter(this, void 0, void 0, function* () {
157
158
  const _response = yield core.fetcher({
158
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/write-offs/v1/${encodeURIComponent(yield serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
159
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
160
+ .candidApi, `/api/write-offs/v1/${encodeURIComponent(yield serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
159
161
  method: "GET",
160
162
  headers: {
161
163
  Authorization: yield this._getAuthorizationHeader(),
162
164
  "X-Fern-Language": "JavaScript",
163
165
  "X-Fern-SDK-Name": "candidhealth",
164
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
166
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
165
167
  "X-Fern-Runtime": core.RUNTIME.type,
166
168
  "X-Fern-Runtime-Version": core.RUNTIME.version,
167
169
  },
@@ -210,13 +212,14 @@ class V1 {
210
212
  var _a;
211
213
  return __awaiter(this, void 0, void 0, function* () {
212
214
  const _response = yield core.fetcher({
213
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/write-offs/v1"),
215
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
216
+ .candidApi, "/api/write-offs/v1"),
214
217
  method: "POST",
215
218
  headers: {
216
219
  Authorization: yield this._getAuthorizationHeader(),
217
220
  "X-Fern-Language": "JavaScript",
218
221
  "X-Fern-SDK-Name": "candidhealth",
219
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
222
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
220
223
  "X-Fern-Runtime": core.RUNTIME.type,
221
224
  "X-Fern-Runtime-Version": core.RUNTIME.version,
222
225
  },
@@ -258,13 +261,14 @@ class V1 {
258
261
  var _a;
259
262
  return __awaiter(this, void 0, void 0, function* () {
260
263
  const _response = yield core.fetcher({
261
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/write-offs/v1/${encodeURIComponent(yield serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
264
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
265
+ .candidApi, `/api/write-offs/v1/${encodeURIComponent(yield serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
262
266
  method: "POST",
263
267
  headers: {
264
268
  Authorization: yield this._getAuthorizationHeader(),
265
269
  "X-Fern-Language": "JavaScript",
266
270
  "X-Fern-SDK-Name": "candidhealth",
267
- "X-Fern-SDK-Version": "0.22.2-15e24b1",
271
+ "X-Fern-SDK-Version": "0.24.0-2a6d412",
268
272
  "X-Fern-Runtime": core.RUNTIME.type,
269
273
  "X-Fern-Runtime-Version": core.RUNTIME.version,
270
274
  },
@@ -1,8 +1,18 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ export interface CandidApiEnvironmentUrls {
5
+ candidApi: string;
6
+ preEncounter: string;
7
+ }
4
8
  export declare const CandidApiEnvironment: {
5
- readonly Production: "https://api.joincandidhealth.com";
6
- readonly Staging: "https://api-staging.joincandidhealth.com";
9
+ readonly Production: {
10
+ readonly candidApi: "https://api.joincandidhealth.com";
11
+ readonly preEncounter: "https://pre-api.joincandidhealth.com";
12
+ };
13
+ readonly Staging: {
14
+ readonly candidApi: "https://api-staging.joincandidhealth.com";
15
+ readonly preEncounter: "https://pre-api-staging.joincandidhealth.com";
16
+ };
7
17
  };
8
18
  export declare type CandidApiEnvironment = typeof CandidApiEnvironment.Production | typeof CandidApiEnvironment.Staging;
@@ -5,6 +5,12 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CandidApiEnvironment = void 0;
7
7
  exports.CandidApiEnvironment = {
8
- Production: "https://api.joincandidhealth.com",
9
- Staging: "https://api-staging.joincandidhealth.com",
8
+ Production: {
9
+ candidApi: "https://api.joincandidhealth.com",
10
+ preEncounter: "https://pre-api.joincandidhealth.com",
11
+ },
12
+ Staging: {
13
+ candidApi: "https://api-staging.joincandidhealth.com",
14
+ preEncounter: "https://pre-api-staging.joincandidhealth.com",
15
+ },
10
16
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * as CandidApi from "./api";
2
2
  export { CandidApiClient } from "./Client";
3
- export { CandidApiEnvironment } from "./environments";
3
+ export { CandidApiEnvironment, CandidApiEnvironmentUrls } from "./environments";
4
4
  export { CandidApiError, CandidApiTimeoutError } from "./errors";