candidhealth 0.24.3 → 0.24.4

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