candidhealth 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (882) hide show
  1. package/api/resources/auth/resources/default/client/Client.d.ts +3 -1
  2. package/api/resources/auth/resources/default/client/Client.js +5 -3
  3. package/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +9 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.js +76 -7
  6. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +36 -0
  7. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +42 -5
  8. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +20 -0
  9. package/api/resources/commons/types/Clearinghouse.d.ts +14 -0
  10. package/api/resources/commons/types/Clearinghouse.js +16 -0
  11. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -2
  12. package/api/resources/commons/types/ProcedureModifier.js +11 -0
  13. package/api/resources/commons/types/index.d.ts +1 -0
  14. package/api/resources/commons/types/index.js +1 -0
  15. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  16. package/api/resources/credentialing/resources/v2/client/Client.js +10 -10
  17. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  18. package/api/resources/diagnoses/client/Client.js +3 -3
  19. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  20. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  21. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  22. package/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +1 -1
  23. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +1 -1
  24. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +1 -1
  25. package/api/resources/encounters/resources/v4/client/Client.d.ts +108 -9
  26. package/api/resources/encounters/resources/v4/client/Client.js +279 -15
  27. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  28. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  29. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +70 -0
  30. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +145 -0
  31. package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +94 -0
  32. package/api/resources/encounters/resources/v4/client/createUniversal.js +189 -0
  33. package/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
  34. package/api/resources/encounters/resources/v4/client/index.js +4 -1
  35. package/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  36. package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +70 -0
  37. package/api/resources/encounters/resources/v4/client/updateUniversal.js +145 -0
  38. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +15 -29
  39. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +10 -11
  40. package/api/resources/encounters/resources/v4/types/EncounterCreate.d.ts +27 -0
  41. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +3 -36
  42. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +9 -4
  43. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +10 -16
  44. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -9
  45. package/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +5 -0
  46. package/api/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +17 -0
  47. package/api/resources/encounters/resources/v4/types/index.d.ts +7 -4
  48. package/api/resources/encounters/resources/v4/types/index.js +7 -4
  49. package/api/resources/encountersUniversal/index.d.ts +1 -0
  50. package/api/resources/encountersUniversal/index.js +17 -0
  51. package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +49 -0
  52. package/api/resources/{encounters/resources/v4/client/requests/EncounterCreate.d.ts → encountersUniversal/types/UniversalEncounterCreateBase.d.ts} +9 -70
  53. package/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +5 -0
  54. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +47 -0
  55. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +5 -0
  56. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +40 -0
  57. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +5 -0
  58. package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +39 -0
  59. package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +5 -0
  60. package/api/resources/{encounters/resources/v4/client/requests/EncounterUpdate.d.ts → encountersUniversal/types/UniversalEncounterUpdateBase.d.ts} +9 -18
  61. package/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +5 -0
  62. package/api/resources/encountersUniversal/types/index.d.ts +6 -0
  63. package/api/resources/encountersUniversal/types/index.js +22 -0
  64. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  65. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  66. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  67. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  68. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +12 -0
  69. package/api/resources/feeSchedules/resources/v3/client/Client.js +55 -11
  70. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +22 -0
  71. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +57 -0
  72. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  73. package/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  74. package/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  75. package/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +5 -0
  76. package/api/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  77. package/api/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  78. package/api/resources/financials/types/PatientTransactionSource.d.ts +2 -1
  79. package/api/resources/financials/types/PatientTransactionSource.js +1 -0
  80. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  81. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +2 -0
  82. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +2 -0
  83. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  84. package/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  85. package/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +2 -2
  86. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +11 -0
  87. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +5 -0
  88. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +11 -0
  89. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +5 -0
  90. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +11 -0
  91. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +5 -0
  92. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +12 -0
  93. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +5 -0
  94. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +19 -0
  95. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +5 -0
  96. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +12 -0
  97. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +5 -0
  98. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +12 -0
  99. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +5 -0
  100. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +12 -0
  101. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +5 -0
  102. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +12 -0
  103. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +5 -0
  104. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +11 -0
  105. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +5 -0
  106. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +12 -0
  107. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +5 -0
  108. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +12 -0
  109. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +5 -0
  110. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +11 -0
  111. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +5 -0
  112. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +12 -0
  113. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +5 -0
  114. package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  115. package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  116. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  117. package/api/resources/index.d.ts +1 -0
  118. package/api/resources/index.js +3 -2
  119. package/api/resources/individual/types/Patient.d.ts +2 -0
  120. package/api/resources/individual/types/PatientBase.d.ts +2 -2
  121. package/api/resources/individual/types/PatientCreate.d.ts +2 -0
  122. package/api/resources/individual/types/PatientUpdate.d.ts +3 -2
  123. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +3 -2
  124. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  125. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  126. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  127. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  128. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  129. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  130. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +7 -7
  131. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
  132. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  133. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  134. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  135. package/api/resources/patientAr/resources/v1/client/Client.js +2 -2
  136. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  137. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  138. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  139. package/api/resources/payers/client/Client.d.ts +3 -0
  140. package/api/resources/payers/client/Client.js +5 -0
  141. package/api/resources/payers/resources/index.d.ts +1 -0
  142. package/api/resources/payers/resources/index.js +2 -1
  143. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  144. package/api/resources/payers/resources/v4/client/Client.d.ts +45 -0
  145. package/api/resources/payers/resources/v4/client/Client.js +157 -0
  146. package/api/resources/payers/resources/v4/client/get.d.ts +22 -0
  147. package/api/resources/payers/resources/v4/client/get.js +57 -0
  148. package/api/resources/payers/resources/v4/client/getAll.d.ts +22 -0
  149. package/api/resources/payers/resources/v4/client/getAll.js +57 -0
  150. package/api/resources/payers/resources/v4/client/index.d.ts +3 -0
  151. package/api/resources/payers/resources/v4/client/index.js +42 -0
  152. package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +16 -0
  153. package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.js +5 -0
  154. package/api/resources/payers/resources/v4/client/requests/index.d.ts +1 -0
  155. package/api/resources/payers/resources/v4/client/requests/index.js +2 -0
  156. package/api/resources/payers/resources/v4/index.d.ts +2 -0
  157. package/api/resources/payers/resources/v4/index.js +18 -0
  158. package/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  159. package/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +5 -0
  160. package/api/resources/payers/resources/v4/types/Payer.d.ts +14 -0
  161. package/api/resources/payers/resources/v4/types/Payer.js +5 -0
  162. package/api/resources/payers/resources/v4/types/PayerIds.d.ts +11 -0
  163. package/api/resources/payers/resources/v4/types/PayerIds.js +5 -0
  164. package/api/resources/payers/resources/v4/types/PayerPage.d.ts +7 -0
  165. package/api/resources/payers/resources/v4/types/PayerPage.js +5 -0
  166. package/api/resources/payers/resources/v4/types/PayerUuid.d.ts +8 -0
  167. package/api/resources/payers/resources/v4/types/PayerUuid.js +9 -0
  168. package/api/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +11 -0
  169. package/api/resources/payers/resources/v4/types/PrimaryPayerIds.js +5 -0
  170. package/api/resources/payers/resources/v4/types/SupportState.d.ts +9 -0
  171. package/api/resources/payers/resources/v4/types/SupportState.js +11 -0
  172. package/api/resources/payers/resources/v4/types/index.d.ts +7 -0
  173. package/api/resources/payers/resources/v4/types/index.js +23 -0
  174. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  175. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +0 -2
  176. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -12
  177. package/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  178. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +6 -6
  179. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  180. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  181. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  182. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +10 -12
  183. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +64 -23
  184. package/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +28 -0
  185. package/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +68 -0
  186. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  187. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  188. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +0 -4
  189. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +0 -4
  190. package/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  191. package/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +7 -0
  192. package/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +5 -0
  193. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
  194. package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +2 -1
  195. package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -0
  196. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  197. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  198. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  199. package/api/resources/serviceFacility/client/Client.js +1 -1
  200. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +23 -2
  201. package/api/resources/serviceLines/resources/v2/client/Client.js +120 -5
  202. package/api/resources/serviceLines/resources/v2/client/createUniversal.d.ts +28 -0
  203. package/api/resources/serviceLines/resources/v2/client/createUniversal.js +68 -0
  204. package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  205. package/api/resources/serviceLines/resources/v2/client/index.js +3 -1
  206. package/api/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +40 -0
  207. package/api/resources/serviceLines/resources/v2/client/updateUniversal.js +90 -0
  208. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -4
  209. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -45
  210. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +7 -0
  211. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +5 -0
  212. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +47 -0
  213. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +5 -0
  214. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +9 -9
  215. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -47
  216. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +7 -0
  217. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +5 -0
  218. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +49 -0
  219. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +5 -0
  220. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -45
  221. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +45 -0
  222. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +5 -0
  223. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +11 -0
  224. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +5 -0
  225. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +13 -0
  226. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +5 -0
  227. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +12 -0
  228. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +5 -0
  229. package/api/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
  230. package/api/resources/serviceLines/resources/v2/types/index.js +8 -0
  231. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  232. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  233. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  234. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +1 -7
  235. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +12 -0
  236. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +5 -0
  237. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +30 -0
  238. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +5 -0
  239. package/api/resources/x12/resources/v1/types/index.d.ts +2 -0
  240. package/api/resources/x12/resources/v1/types/index.js +2 -0
  241. package/dist/api/resources/auth/resources/default/client/Client.d.ts +3 -1
  242. package/dist/api/resources/auth/resources/default/client/Client.js +5 -3
  243. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +9 -1
  244. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  245. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +76 -7
  246. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +36 -0
  247. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +42 -5
  248. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +20 -0
  249. package/dist/api/resources/commons/types/Clearinghouse.d.ts +14 -0
  250. package/dist/api/resources/commons/types/Clearinghouse.js +16 -0
  251. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -2
  252. package/dist/api/resources/commons/types/ProcedureModifier.js +11 -0
  253. package/dist/api/resources/commons/types/index.d.ts +1 -0
  254. package/dist/api/resources/commons/types/index.js +1 -0
  255. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  256. package/dist/api/resources/credentialing/resources/v2/client/Client.js +10 -10
  257. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  258. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  259. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  260. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  261. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  262. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +1 -1
  263. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +1 -1
  264. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +1 -1
  265. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +108 -9
  266. package/dist/api/resources/encounters/resources/v4/client/Client.js +279 -15
  267. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  268. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  269. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +70 -0
  270. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +145 -0
  271. package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +94 -0
  272. package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +189 -0
  273. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
  274. package/dist/api/resources/encounters/resources/v4/client/index.js +4 -1
  275. package/dist/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  276. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +70 -0
  277. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +145 -0
  278. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +15 -29
  279. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +10 -11
  280. package/dist/api/resources/encounters/resources/v4/types/EncounterCreate.d.ts +27 -0
  281. package/dist/api/resources/encounters/resources/v4/types/EncounterCreate.js +5 -0
  282. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +3 -36
  283. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +9 -4
  284. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +10 -16
  285. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -9
  286. package/dist/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +5 -0
  287. package/dist/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +5 -0
  288. package/dist/api/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +17 -0
  289. package/dist/api/resources/encounters/resources/v4/types/EncounterUpdate.js +5 -0
  290. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +7 -4
  291. package/dist/api/resources/encounters/resources/v4/types/index.js +7 -4
  292. package/dist/api/resources/encountersUniversal/index.d.ts +1 -0
  293. package/dist/api/resources/encountersUniversal/index.js +17 -0
  294. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +49 -0
  295. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +5 -0
  296. package/dist/api/resources/{encounters/resources/v4/client/requests/EncounterCreate.d.ts → encountersUniversal/types/UniversalEncounterCreateBase.d.ts} +9 -70
  297. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +5 -0
  298. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +47 -0
  299. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +5 -0
  300. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +40 -0
  301. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +5 -0
  302. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +39 -0
  303. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +5 -0
  304. package/dist/api/resources/{encounters/resources/v4/client/requests/EncounterUpdate.d.ts → encountersUniversal/types/UniversalEncounterUpdateBase.d.ts} +9 -18
  305. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +5 -0
  306. package/dist/api/resources/encountersUniversal/types/index.d.ts +6 -0
  307. package/dist/api/resources/encountersUniversal/types/index.js +22 -0
  308. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  309. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  310. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  311. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  312. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +12 -0
  313. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +55 -11
  314. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +22 -0
  315. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +57 -0
  316. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  317. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  318. package/dist/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  319. package/dist/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +5 -0
  320. package/dist/api/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  321. package/dist/api/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  322. package/dist/api/resources/financials/types/PatientTransactionSource.d.ts +2 -1
  323. package/dist/api/resources/financials/types/PatientTransactionSource.js +1 -0
  324. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  325. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +2 -0
  326. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +2 -0
  327. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  328. package/dist/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  329. package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +2 -2
  330. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +11 -0
  331. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +5 -0
  332. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +11 -0
  333. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +5 -0
  334. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +11 -0
  335. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +5 -0
  336. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +12 -0
  337. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +5 -0
  338. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +19 -0
  339. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +5 -0
  340. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +12 -0
  341. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +5 -0
  342. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +12 -0
  343. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +5 -0
  344. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +12 -0
  345. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +5 -0
  346. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +12 -0
  347. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +5 -0
  348. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +11 -0
  349. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +5 -0
  350. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +12 -0
  351. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +5 -0
  352. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +12 -0
  353. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +5 -0
  354. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +11 -0
  355. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +5 -0
  356. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +12 -0
  357. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +5 -0
  358. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  359. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  360. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  361. package/dist/api/resources/index.d.ts +1 -0
  362. package/dist/api/resources/index.js +3 -2
  363. package/dist/api/resources/individual/types/Patient.d.ts +2 -0
  364. package/dist/api/resources/individual/types/PatientBase.d.ts +2 -2
  365. package/dist/api/resources/individual/types/PatientCreate.d.ts +2 -0
  366. package/dist/api/resources/individual/types/PatientUpdate.d.ts +3 -2
  367. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +3 -2
  368. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  369. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  370. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  371. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  372. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  373. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  374. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +7 -7
  375. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
  376. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  377. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  378. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  379. package/dist/api/resources/patientAr/resources/v1/client/Client.js +2 -2
  380. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  381. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  382. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  383. package/dist/api/resources/payers/client/Client.d.ts +3 -0
  384. package/dist/api/resources/payers/client/Client.js +5 -0
  385. package/dist/api/resources/payers/resources/index.d.ts +1 -0
  386. package/dist/api/resources/payers/resources/index.js +2 -1
  387. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  388. package/dist/api/resources/payers/resources/v4/client/Client.d.ts +45 -0
  389. package/dist/api/resources/payers/resources/v4/client/Client.js +157 -0
  390. package/dist/api/resources/payers/resources/v4/client/get.d.ts +22 -0
  391. package/dist/api/resources/payers/resources/v4/client/get.js +57 -0
  392. package/dist/api/resources/payers/resources/v4/client/getAll.d.ts +22 -0
  393. package/dist/api/resources/payers/resources/v4/client/getAll.js +57 -0
  394. package/dist/api/resources/payers/resources/v4/client/index.d.ts +3 -0
  395. package/dist/api/resources/payers/resources/v4/client/index.js +42 -0
  396. package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +16 -0
  397. package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.js +5 -0
  398. package/dist/api/resources/payers/resources/v4/client/requests/index.d.ts +1 -0
  399. package/dist/api/resources/payers/resources/v4/client/requests/index.js +2 -0
  400. package/dist/api/resources/payers/resources/v4/index.d.ts +2 -0
  401. package/dist/api/resources/payers/resources/v4/index.js +18 -0
  402. package/dist/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  403. package/dist/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +5 -0
  404. package/dist/api/resources/payers/resources/v4/types/Payer.d.ts +14 -0
  405. package/dist/api/resources/payers/resources/v4/types/Payer.js +5 -0
  406. package/dist/api/resources/payers/resources/v4/types/PayerIds.d.ts +11 -0
  407. package/dist/api/resources/payers/resources/v4/types/PayerIds.js +5 -0
  408. package/dist/api/resources/payers/resources/v4/types/PayerPage.d.ts +7 -0
  409. package/dist/api/resources/payers/resources/v4/types/PayerPage.js +5 -0
  410. package/dist/api/resources/payers/resources/v4/types/PayerUuid.d.ts +8 -0
  411. package/dist/api/resources/payers/resources/v4/types/PayerUuid.js +9 -0
  412. package/dist/api/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +11 -0
  413. package/dist/api/resources/payers/resources/v4/types/PrimaryPayerIds.js +5 -0
  414. package/dist/api/resources/payers/resources/v4/types/SupportState.d.ts +9 -0
  415. package/dist/api/resources/payers/resources/v4/types/SupportState.js +11 -0
  416. package/dist/api/resources/payers/resources/v4/types/index.d.ts +7 -0
  417. package/dist/api/resources/payers/resources/v4/types/index.js +23 -0
  418. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  419. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +0 -2
  420. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -12
  421. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  422. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +6 -6
  423. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  424. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  425. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  426. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +10 -12
  427. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +64 -23
  428. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +28 -0
  429. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +68 -0
  430. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  431. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  432. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +0 -4
  433. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +0 -4
  434. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  435. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +7 -0
  436. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +5 -0
  437. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
  438. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +2 -1
  439. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -0
  440. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  441. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  442. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  443. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  444. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +23 -2
  445. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +120 -5
  446. package/dist/api/resources/serviceLines/resources/v2/client/createUniversal.d.ts +28 -0
  447. package/dist/api/resources/serviceLines/resources/v2/client/createUniversal.js +68 -0
  448. package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  449. package/dist/api/resources/serviceLines/resources/v2/client/index.js +3 -1
  450. package/dist/api/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +40 -0
  451. package/dist/api/resources/serviceLines/resources/v2/client/updateUniversal.js +90 -0
  452. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -4
  453. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -45
  454. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +7 -0
  455. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +5 -0
  456. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +47 -0
  457. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +5 -0
  458. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +9 -9
  459. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -47
  460. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +7 -0
  461. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +5 -0
  462. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +49 -0
  463. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +5 -0
  464. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -45
  465. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +45 -0
  466. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +5 -0
  467. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +11 -0
  468. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +5 -0
  469. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +13 -0
  470. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +5 -0
  471. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +12 -0
  472. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +5 -0
  473. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
  474. package/dist/api/resources/serviceLines/resources/v2/types/index.js +8 -0
  475. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  476. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  477. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  478. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +1 -7
  479. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +12 -0
  480. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +5 -0
  481. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +30 -0
  482. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +5 -0
  483. package/dist/api/resources/x12/resources/v1/types/index.d.ts +2 -0
  484. package/dist/api/resources/x12/resources/v1/types/index.js +2 -0
  485. package/dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +3 -0
  486. package/dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js +3 -0
  487. package/dist/serialization/resources/commons/types/Clearinghouse.d.ts +10 -0
  488. package/dist/serialization/resources/commons/types/Clearinghouse.js +50 -0
  489. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  490. package/dist/serialization/resources/commons/types/ProcedureModifier.js +11 -0
  491. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  492. package/dist/serialization/resources/commons/types/index.js +1 -0
  493. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  494. package/dist/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  495. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +49 -0
  496. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +112 -0
  497. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +69 -0
  498. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +136 -0
  499. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -1
  500. package/dist/serialization/resources/encounters/resources/v4/client/index.js +4 -5
  501. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +50 -0
  502. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +113 -0
  503. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -4
  504. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -4
  505. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -2
  506. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +2 -2
  507. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreate.d.ts +22 -0
  508. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreate.js +55 -0
  509. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +4 -28
  510. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +4 -28
  511. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
  512. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
  513. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -2
  514. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -2
  515. package/dist/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +11 -0
  516. package/dist/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +41 -0
  517. package/dist/serialization/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +16 -0
  518. package/dist/serialization/resources/encounters/resources/v4/types/EncounterUpdate.js +49 -0
  519. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -4
  520. package/dist/serialization/resources/encounters/resources/v4/types/index.js +7 -4
  521. package/dist/serialization/resources/encountersUniversal/index.d.ts +1 -0
  522. package/dist/serialization/resources/encountersUniversal/index.js +17 -0
  523. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +39 -0
  524. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +72 -0
  525. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +50 -0
  526. package/{serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js → dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js} +21 -31
  527. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +37 -0
  528. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +70 -0
  529. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +36 -0
  530. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +69 -0
  531. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +32 -0
  532. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +65 -0
  533. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +46 -0
  534. package/{serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js → dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js} +20 -22
  535. package/dist/serialization/resources/encountersUniversal/types/index.d.ts +6 -0
  536. package/dist/serialization/resources/encountersUniversal/types/index.js +22 -0
  537. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +9 -0
  538. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +41 -0
  539. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  540. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  541. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  542. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +44 -0
  543. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  544. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/index.js +3 -1
  545. package/dist/serialization/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  546. package/dist/serialization/resources/feeSchedules/resources/v3/types/ValidationError.js +1 -0
  547. package/dist/serialization/resources/financials/types/PatientTransactionSource.d.ts +1 -1
  548. package/dist/serialization/resources/financials/types/PatientTransactionSource.js +10 -1
  549. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -0
  550. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -0
  551. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +1 -0
  552. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +1 -0
  553. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  554. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +1 -0
  555. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  556. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.js +1 -0
  557. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +16 -0
  558. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +49 -0
  559. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +16 -0
  560. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +49 -0
  561. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +16 -0
  562. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +49 -0
  563. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +18 -0
  564. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +51 -0
  565. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +37 -0
  566. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +68 -0
  567. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +18 -0
  568. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +51 -0
  569. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +18 -0
  570. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +51 -0
  571. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +18 -0
  572. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +51 -0
  573. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +18 -0
  574. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +51 -0
  575. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +16 -0
  576. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +49 -0
  577. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +18 -0
  578. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +51 -0
  579. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +18 -0
  580. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +51 -0
  581. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +16 -0
  582. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +49 -0
  583. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +18 -0
  584. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +51 -0
  585. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  586. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  587. package/dist/serialization/resources/index.d.ts +1 -0
  588. package/dist/serialization/resources/index.js +3 -2
  589. package/dist/serialization/resources/individual/types/Patient.d.ts +1 -0
  590. package/dist/serialization/resources/individual/types/Patient.js +1 -0
  591. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +1 -0
  592. package/dist/serialization/resources/individual/types/PatientCreate.js +1 -0
  593. package/dist/serialization/resources/individual/types/PatientUpdate.d.ts +1 -0
  594. package/dist/serialization/resources/individual/types/PatientUpdate.js +1 -0
  595. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +1 -0
  596. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +1 -0
  597. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  598. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  599. package/dist/serialization/resources/payers/resources/index.d.ts +1 -0
  600. package/dist/serialization/resources/payers/resources/index.js +2 -1
  601. package/dist/serialization/resources/payers/resources/v4/index.d.ts +1 -0
  602. package/dist/serialization/resources/payers/resources/v4/index.js +17 -0
  603. package/dist/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  604. package/dist/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +51 -0
  605. package/dist/serialization/resources/payers/resources/v4/types/Payer.d.ts +21 -0
  606. package/dist/serialization/resources/payers/resources/v4/types/Payer.js +52 -0
  607. package/dist/serialization/resources/payers/resources/v4/types/PayerIds.d.ts +14 -0
  608. package/dist/serialization/resources/payers/resources/v4/types/PayerIds.js +45 -0
  609. package/dist/serialization/resources/payers/resources/v4/types/PayerPage.d.ts +14 -0
  610. package/dist/serialization/resources/payers/resources/v4/types/PayerPage.js +47 -0
  611. package/dist/serialization/resources/payers/resources/v4/types/PayerUuid.d.ts +10 -0
  612. package/dist/serialization/resources/payers/resources/v4/types/PayerUuid.js +45 -0
  613. package/dist/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +14 -0
  614. package/dist/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.js +45 -0
  615. package/dist/serialization/resources/payers/resources/v4/types/SupportState.d.ts +10 -0
  616. package/dist/serialization/resources/payers/resources/v4/types/SupportState.js +41 -0
  617. package/dist/serialization/resources/payers/resources/v4/types/index.d.ts +7 -0
  618. package/dist/serialization/resources/payers/resources/v4/types/index.js +23 -0
  619. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  620. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +1 -1
  621. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +15 -0
  622. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +71 -0
  623. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  624. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  625. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  626. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
  627. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +13 -0
  628. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +44 -0
  629. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
  630. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -1
  631. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +1 -1
  632. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -1
  633. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  634. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  635. package/dist/serialization/resources/serviceLines/resources/v2/client/createUniversal.d.ts +15 -0
  636. package/dist/serialization/resources/serviceLines/resources/v2/client/createUniversal.js +71 -0
  637. package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  638. package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +3 -1
  639. package/dist/serialization/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +25 -0
  640. package/dist/serialization/resources/serviceLines/resources/v2/client/updateUniversal.js +83 -0
  641. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -23
  642. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +5 -24
  643. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +13 -0
  644. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +46 -0
  645. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +32 -0
  646. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +63 -0
  647. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  648. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  649. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -27
  650. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -28
  651. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +13 -0
  652. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +46 -0
  653. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +36 -0
  654. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +67 -0
  655. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -24
  656. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -25
  657. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +34 -0
  658. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +65 -0
  659. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +15 -0
  660. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +48 -0
  661. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +19 -0
  662. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +52 -0
  663. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +18 -0
  664. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +51 -0
  665. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
  666. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +8 -0
  667. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +2 -7
  668. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -8
  669. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +17 -0
  670. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +48 -0
  671. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +18 -0
  672. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +52 -0
  673. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
  674. package/dist/serialization/resources/x12/resources/v1/types/index.js +2 -0
  675. package/dist/version.d.ts +1 -1
  676. package/dist/version.js +1 -1
  677. package/package.json +1 -1
  678. package/reference.md +682 -114
  679. package/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +3 -0
  680. package/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js +3 -0
  681. package/serialization/resources/commons/types/Clearinghouse.d.ts +10 -0
  682. package/serialization/resources/commons/types/Clearinghouse.js +50 -0
  683. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  684. package/serialization/resources/commons/types/ProcedureModifier.js +11 -0
  685. package/serialization/resources/commons/types/index.d.ts +1 -0
  686. package/serialization/resources/commons/types/index.js +1 -0
  687. package/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  688. package/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  689. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +49 -0
  690. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +112 -0
  691. package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +69 -0
  692. package/serialization/resources/encounters/resources/v4/client/createUniversal.js +136 -0
  693. package/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -1
  694. package/serialization/resources/encounters/resources/v4/client/index.js +4 -5
  695. package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +50 -0
  696. package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +113 -0
  697. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -4
  698. package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -4
  699. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -2
  700. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +2 -2
  701. package/serialization/resources/encounters/resources/v4/types/EncounterCreate.d.ts +22 -0
  702. package/serialization/resources/encounters/resources/v4/types/EncounterCreate.js +55 -0
  703. package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +4 -28
  704. package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +4 -28
  705. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
  706. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
  707. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -2
  708. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -2
  709. package/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +11 -0
  710. package/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +41 -0
  711. package/serialization/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +16 -0
  712. package/serialization/resources/encounters/resources/v4/types/EncounterUpdate.js +49 -0
  713. package/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -4
  714. package/serialization/resources/encounters/resources/v4/types/index.js +7 -4
  715. package/serialization/resources/encountersUniversal/index.d.ts +1 -0
  716. package/serialization/resources/encountersUniversal/index.js +17 -0
  717. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +39 -0
  718. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +72 -0
  719. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +50 -0
  720. package/{dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js → serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js} +21 -31
  721. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +37 -0
  722. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +70 -0
  723. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +36 -0
  724. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +69 -0
  725. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +32 -0
  726. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +65 -0
  727. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +46 -0
  728. package/{dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js → serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js} +20 -22
  729. package/serialization/resources/encountersUniversal/types/index.d.ts +6 -0
  730. package/serialization/resources/encountersUniversal/types/index.js +22 -0
  731. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +9 -0
  732. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +41 -0
  733. package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  734. package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  735. package/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  736. package/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +44 -0
  737. package/serialization/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  738. package/serialization/resources/feeSchedules/resources/v3/client/requests/index.js +3 -1
  739. package/serialization/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  740. package/serialization/resources/feeSchedules/resources/v3/types/ValidationError.js +1 -0
  741. package/serialization/resources/financials/types/PatientTransactionSource.d.ts +1 -1
  742. package/serialization/resources/financials/types/PatientTransactionSource.js +10 -1
  743. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -0
  744. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -0
  745. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +1 -0
  746. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +1 -0
  747. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  748. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +1 -0
  749. package/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  750. package/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.js +1 -0
  751. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +16 -0
  752. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +49 -0
  753. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +16 -0
  754. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +49 -0
  755. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +16 -0
  756. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +49 -0
  757. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +18 -0
  758. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +51 -0
  759. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +37 -0
  760. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +68 -0
  761. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +18 -0
  762. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +51 -0
  763. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +18 -0
  764. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +51 -0
  765. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +18 -0
  766. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +51 -0
  767. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +18 -0
  768. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +51 -0
  769. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +16 -0
  770. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +49 -0
  771. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +18 -0
  772. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +51 -0
  773. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +18 -0
  774. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +51 -0
  775. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +16 -0
  776. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +49 -0
  777. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +18 -0
  778. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +51 -0
  779. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  780. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  781. package/serialization/resources/index.d.ts +1 -0
  782. package/serialization/resources/index.js +3 -2
  783. package/serialization/resources/individual/types/Patient.d.ts +1 -0
  784. package/serialization/resources/individual/types/Patient.js +1 -0
  785. package/serialization/resources/individual/types/PatientCreate.d.ts +1 -0
  786. package/serialization/resources/individual/types/PatientCreate.js +1 -0
  787. package/serialization/resources/individual/types/PatientUpdate.d.ts +1 -0
  788. package/serialization/resources/individual/types/PatientUpdate.js +1 -0
  789. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +1 -0
  790. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +1 -0
  791. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  792. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  793. package/serialization/resources/payers/resources/index.d.ts +1 -0
  794. package/serialization/resources/payers/resources/index.js +2 -1
  795. package/serialization/resources/payers/resources/v4/index.d.ts +1 -0
  796. package/serialization/resources/payers/resources/v4/index.js +17 -0
  797. package/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  798. package/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +51 -0
  799. package/serialization/resources/payers/resources/v4/types/Payer.d.ts +21 -0
  800. package/serialization/resources/payers/resources/v4/types/Payer.js +52 -0
  801. package/serialization/resources/payers/resources/v4/types/PayerIds.d.ts +14 -0
  802. package/serialization/resources/payers/resources/v4/types/PayerIds.js +45 -0
  803. package/serialization/resources/payers/resources/v4/types/PayerPage.d.ts +14 -0
  804. package/serialization/resources/payers/resources/v4/types/PayerPage.js +47 -0
  805. package/serialization/resources/payers/resources/v4/types/PayerUuid.d.ts +10 -0
  806. package/serialization/resources/payers/resources/v4/types/PayerUuid.js +45 -0
  807. package/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +14 -0
  808. package/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.js +45 -0
  809. package/serialization/resources/payers/resources/v4/types/SupportState.d.ts +10 -0
  810. package/serialization/resources/payers/resources/v4/types/SupportState.js +41 -0
  811. package/serialization/resources/payers/resources/v4/types/index.d.ts +7 -0
  812. package/serialization/resources/payers/resources/v4/types/index.js +23 -0
  813. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  814. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +1 -1
  815. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +15 -0
  816. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +71 -0
  817. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  818. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  819. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  820. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
  821. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +13 -0
  822. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +44 -0
  823. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
  824. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -1
  825. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +1 -1
  826. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -1
  827. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  828. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  829. package/serialization/resources/serviceLines/resources/v2/client/createUniversal.d.ts +15 -0
  830. package/serialization/resources/serviceLines/resources/v2/client/createUniversal.js +71 -0
  831. package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  832. package/serialization/resources/serviceLines/resources/v2/client/index.js +3 -1
  833. package/serialization/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +25 -0
  834. package/serialization/resources/serviceLines/resources/v2/client/updateUniversal.js +83 -0
  835. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -23
  836. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +5 -24
  837. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +13 -0
  838. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +46 -0
  839. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +32 -0
  840. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +63 -0
  841. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  842. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  843. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -27
  844. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -28
  845. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +13 -0
  846. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +46 -0
  847. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +36 -0
  848. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +67 -0
  849. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -24
  850. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -25
  851. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +34 -0
  852. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +65 -0
  853. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +15 -0
  854. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +48 -0
  855. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +19 -0
  856. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +52 -0
  857. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +18 -0
  858. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +51 -0
  859. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
  860. package/serialization/resources/serviceLines/resources/v2/types/index.js +8 -0
  861. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +2 -7
  862. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -8
  863. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +17 -0
  864. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +48 -0
  865. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +18 -0
  866. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +52 -0
  867. package/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
  868. package/serialization/resources/x12/resources/v1/types/index.js +2 -0
  869. package/version.d.ts +1 -1
  870. package/version.js +1 -1
  871. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -60
  872. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +0 -48
  873. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  874. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.js +0 -7
  875. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -60
  876. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +0 -48
  877. package/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  878. package/serialization/resources/encounters/resources/v4/client/requests/index.js +0 -7
  879. /package/api/resources/encounters/resources/v4/{client/requests → types}/EncounterCreate.js +0 -0
  880. /package/api/resources/encounters/resources/v4/{client/requests/EncounterUpdate.js → types/EncounterRenderingOrAttendingProviderRequiredError.js} +0 -0
  881. /package/{dist/api/resources/encounters/resources/v4/client/requests → api/resources/encounters/resources/v4/types}/EncounterUpdate.js +0 -0
  882. /package/{dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.js → api/resources/encountersUniversal/types/UniversalEncounterCreate.js} +0 -0
@@ -106,10 +106,6 @@ class V1 {
106
106
  * postalCode: "postal_code",
107
107
  * country: "country"
108
108
  * }],
109
- * primaryTelecom: {
110
- * value: "value",
111
- * use: "HOME"
112
- * },
113
109
  * otherTelecoms: [{
114
110
  * value: "value",
115
111
  * use: "HOME"
@@ -220,7 +216,7 @@ class V1 {
220
216
  const _response = yield core.fetcher({
221
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
222
218
  method: "POST",
223
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
220
  contentType: "application/json",
225
221
  queryParameters: _queryParams,
226
222
  requestType: "json",
@@ -310,10 +306,6 @@ class V1 {
310
306
  * postalCode: "postal_code",
311
307
  * country: "country"
312
308
  * }],
313
- * primaryTelecom: {
314
- * value: "value",
315
- * use: "HOME"
316
- * },
317
309
  * otherTelecoms: [{
318
310
  * value: "value",
319
311
  * use: "HOME"
@@ -425,7 +417,7 @@ class V1 {
425
417
  const _response = yield core.fetcher({
426
418
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/with_mrn"),
427
419
  method: "POST",
428
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
420
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
429
421
  contentType: "application/json",
430
422
  queryParameters: _queryParams,
431
423
  requestType: "json",
@@ -502,7 +494,7 @@ class V1 {
502
494
  const _response = yield core.fetcher({
503
495
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/get_multi"),
504
496
  method: "GET",
505
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
497
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
506
498
  contentType: "application/json",
507
499
  queryParameters: _queryParams,
508
500
  requestType: "json",
@@ -547,7 +539,7 @@ class V1 {
547
539
  const _response = yield core.fetcher({
548
540
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/search_providers"),
549
541
  method: "GET",
550
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
542
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
551
543
  contentType: "application/json",
552
544
  queryParameters: _queryParams,
553
545
  requestType: "json",
@@ -587,7 +579,7 @@ class V1 {
587
579
  const _response = yield core.fetcher({
588
580
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}`),
589
581
  method: "GET",
590
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
582
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
591
583
  contentType: "application/json",
592
584
  requestType: "json",
593
585
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -625,6 +617,59 @@ class V1 {
625
617
  };
626
618
  });
627
619
  }
620
+ /**
621
+ * Gets a patient by mrn.
622
+ *
623
+ * @param {string} mrn
624
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
625
+ *
626
+ * @example
627
+ * await client.preEncounter.patients.v1.getByMrn("mrn")
628
+ */
629
+ getByMrn(mrn, requestOptions) {
630
+ return __awaiter(this, void 0, void 0, function* () {
631
+ var _a, _b, _c;
632
+ const _response = yield core.fetcher({
633
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/mrn/${encodeURIComponent(mrn)}`),
634
+ method: "GET",
635
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
636
+ contentType: "application/json",
637
+ requestType: "json",
638
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
639
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
640
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
641
+ });
642
+ if (_response.ok) {
643
+ return {
644
+ ok: true,
645
+ body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
646
+ unrecognizedObjectKeys: "passthrough",
647
+ allowUnrecognizedUnionMembers: true,
648
+ allowUnrecognizedEnumValues: true,
649
+ breadcrumbsPrefix: ["response"],
650
+ }),
651
+ };
652
+ }
653
+ if (_response.error.reason === "status-code") {
654
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
655
+ case "NotFoundError":
656
+ return {
657
+ ok: false,
658
+ error: serializers.preEncounter.patients.v1.getByMrn.Error.parseOrThrow(_response.error.body, {
659
+ unrecognizedObjectKeys: "passthrough",
660
+ allowUnrecognizedUnionMembers: true,
661
+ allowUnrecognizedEnumValues: true,
662
+ breadcrumbsPrefix: ["response"],
663
+ }),
664
+ };
665
+ }
666
+ }
667
+ return {
668
+ ok: false,
669
+ error: CandidApi.preEncounter.patients.v1.getByMrn.Error._unknown(_response.error),
670
+ };
671
+ });
672
+ }
628
673
  /**
629
674
  * Gets a patient along with it's full history. The return list is ordered by version ascending.
630
675
  *
@@ -640,7 +685,7 @@ class V1 {
640
685
  const _response = yield core.fetcher({
641
686
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/history`),
642
687
  method: "GET",
643
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
688
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
644
689
  contentType: "application/json",
645
690
  requestType: "json",
646
691
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -727,10 +772,6 @@ class V1 {
727
772
  * postalCode: "postal_code",
728
773
  * country: "country"
729
774
  * }],
730
- * primaryTelecom: {
731
- * value: "value",
732
- * use: "HOME"
733
- * },
734
775
  * otherTelecoms: [{
735
776
  * value: "value",
736
777
  * use: "HOME"
@@ -835,7 +876,7 @@ class V1 {
835
876
  const _response = yield core.fetcher({
836
877
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
837
878
  method: "PUT",
838
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
879
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
839
880
  contentType: "application/json",
840
881
  requestType: "json",
841
882
  body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
@@ -893,7 +934,7 @@ class V1 {
893
934
  const _response = yield core.fetcher({
894
935
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
895
936
  method: "DELETE",
896
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
937
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
897
938
  contentType: "application/json",
898
939
  requestType: "json",
899
940
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -943,7 +984,7 @@ class V1 {
943
984
  const _response = yield core.fetcher({
944
985
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
945
986
  method: "PATCH",
946
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
987
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
947
988
  contentType: "application/json",
948
989
  requestType: "json",
949
990
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1000,7 +1041,7 @@ class V1 {
1000
1041
  const _response = yield core.fetcher({
1001
1042
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
1002
1043
  method: "GET",
1003
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1044
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1004
1045
  contentType: "application/json",
1005
1046
  queryParameters: _queryParams,
1006
1047
  requestType: "json",
@@ -1045,7 +1086,7 @@ class V1 {
1045
1086
  const _response = yield core.fetcher({
1046
1087
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/updates/scan"),
1047
1088
  method: "GET",
1048
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1089
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1049
1090
  contentType: "application/json",
1050
1091
  queryParameters: _queryParams,
1051
1092
  requestType: "json",
@@ -0,0 +1,28 @@
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 type Error = CandidApi.preEncounter.patients.v1.getByMrn.Error.NotFoundError | CandidApi.preEncounter.patients.v1.getByMrn.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface NotFoundError extends _Utils {
9
+ errorName: "NotFoundError";
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
+ }
12
+ interface _Unknown extends _Utils {
13
+ errorName: void;
14
+ content: core.Fetcher.Error;
15
+ }
16
+ interface _Utils {
17
+ _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.getByMrn.Error._Visitor<_Result>) => _Result;
18
+ }
19
+ interface _Visitor<_Result> {
20
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
+ _other: (value: core.Fetcher.Error) => _Result;
22
+ }
23
+ }
24
+ export declare const Error: {
25
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.getByMrn.Error.NotFoundError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.getByMrn.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.getByMrn.Error, visitor: CandidApi.preEncounter.patients.v1.getByMrn.Error._Visitor<_Result>) => _Result;
28
+ };
@@ -0,0 +1,68 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../../../index"));
41
+ exports.Error = {
42
+ notFoundError: (value) => {
43
+ return {
44
+ content: value,
45
+ errorName: "NotFoundError",
46
+ _visit: function (visitor) {
47
+ return CandidApi.preEncounter.patients.v1.getByMrn.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _unknown: (fetcherError) => {
52
+ return {
53
+ errorName: undefined,
54
+ content: fetcherError,
55
+ _visit: function (visitor) {
56
+ return CandidApi.preEncounter.patients.v1.getByMrn.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ _visit: (value, visitor) => {
61
+ switch (value.errorName) {
62
+ case "NotFoundError":
63
+ return visitor.notFoundError(value.content);
64
+ default:
65
+ return visitor._other(value);
66
+ }
67
+ },
68
+ };
@@ -4,6 +4,7 @@ export * as createWithMrn from "./createWithMrn";
4
4
  export * as getMulti from "./getMulti";
5
5
  export * as searchProviders from "./searchProviders";
6
6
  export * as get from "./get";
7
+ export * as getByMrn from "./getByMrn";
7
8
  export * as getHistory from "./getHistory";
8
9
  export * as update from "./update";
9
10
  export * as deactivate from "./deactivate";
@@ -36,13 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.scan = exports.search = exports.reactivate = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.searchProviders = exports.getMulti = exports.createWithMrn = exports.create = void 0;
39
+ exports.scan = exports.search = exports.reactivate = exports.deactivate = exports.update = exports.getHistory = exports.getByMrn = exports.get = exports.searchProviders = exports.getMulti = exports.createWithMrn = exports.create = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.create = __importStar(require("./create"));
42
42
  exports.createWithMrn = __importStar(require("./createWithMrn"));
43
43
  exports.getMulti = __importStar(require("./getMulti"));
44
44
  exports.searchProviders = __importStar(require("./searchProviders"));
45
45
  exports.get = __importStar(require("./get"));
46
+ exports.getByMrn = __importStar(require("./getByMrn"));
46
47
  exports.getHistory = __importStar(require("./getHistory"));
47
48
  exports.update = __importStar(require("./update"));
48
49
  exports.deactivate = __importStar(require("./deactivate"));
@@ -45,10 +45,6 @@ import * as CandidApi from "../../../../../../../../index";
45
45
  * postalCode: "postal_code",
46
46
  * country: "country"
47
47
  * }],
48
- * primaryTelecom: {
49
- * value: "value",
50
- * use: "HOME"
51
- * },
52
48
  * otherTelecoms: [{
53
49
  * value: "value",
54
50
  * use: "HOME"
@@ -45,10 +45,6 @@ import * as CandidApi from "../../../../../../../../index";
45
45
  * postalCode: "postal_code",
46
46
  * country: "country"
47
47
  * }],
48
- * primaryTelecom: {
49
- * value: "value",
50
- * use: "HOME"
51
- * },
52
48
  * otherTelecoms: [{
53
49
  * value: "value",
54
50
  * use: "HOME"
@@ -6,6 +6,6 @@ export interface Guarantor {
6
6
  name: CandidApi.preEncounter.HumanName;
7
7
  telecom?: CandidApi.preEncounter.ContactPoint;
8
8
  email?: string;
9
- birthDate: string;
9
+ birthDate?: string;
10
10
  address: CandidApi.preEncounter.Address;
11
11
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface InferredPatientMetadata {
5
+ inferredEncounterId: string;
6
+ inferredEncounterLatestDateOfService: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -33,7 +33,7 @@ export interface MutablePatient {
33
33
  /** Other addresses for the patient. */
34
34
  otherAddresses: CandidApi.preEncounter.Address[];
35
35
  /** The primary phone number for the patient. */
36
- primaryTelecom: CandidApi.preEncounter.ContactPoint;
36
+ primaryTelecom?: CandidApi.preEncounter.ContactPoint;
37
37
  /** Other phone numbers for the patient. */
38
38
  otherTelecoms: CandidApi.preEncounter.ContactPoint[];
39
39
  email?: string;
@@ -59,4 +59,6 @@ export interface MutablePatient {
59
59
  tagIds?: CandidApi.preEncounter.TagId[];
60
60
  /** Information about the patient source, if applicable. */
61
61
  originationDetail?: CandidApi.preEncounter.patients.v1.OriginationDetail;
62
+ /** Metadata for the patient used for patient inference from encounters. */
63
+ inferredPatientMetadata?: CandidApi.preEncounter.patients.v1.InferredPatientMetadata;
62
64
  }
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ReferralType = "DIRECTED" | "ROTATION";
4
+ export type ReferralType = "DIRECTED" | "ROTATION" | "OVERNIGHT";
5
5
  export declare const ReferralType: {
6
6
  readonly Directed: "DIRECTED";
7
7
  readonly Rotation: "ROTATION";
8
+ readonly Overnight: "OVERNIGHT";
8
9
  };
@@ -7,4 +7,5 @@ exports.ReferralType = void 0;
7
7
  exports.ReferralType = {
8
8
  Directed: "DIRECTED",
9
9
  Rotation: "ROTATION",
10
+ Overnight: "OVERNIGHT",
10
11
  };
@@ -6,6 +6,7 @@ export * from "./FilingOrder";
6
6
  export * from "./DoNotInvoiceReason";
7
7
  export * from "./MutablePatient";
8
8
  export * from "./MutablePatientWithMrn";
9
+ export * from "./InferredPatientMetadata";
9
10
  export * from "./Patient";
10
11
  export * from "./PatientPage";
11
12
  export * from "./AuthorizationUnit";
@@ -22,6 +22,7 @@ __exportStar(require("./FilingOrder"), exports);
22
22
  __exportStar(require("./DoNotInvoiceReason"), exports);
23
23
  __exportStar(require("./MutablePatient"), exports);
24
24
  __exportStar(require("./MutablePatientWithMrn"), exports);
25
+ __exportStar(require("./InferredPatientMetadata"), exports);
25
26
  __exportStar(require("./Patient"), exports);
26
27
  __exportStar(require("./PatientPage"), exports);
27
28
  __exportStar(require("./AuthorizationUnit"), exports);
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -120,7 +120,7 @@ class V1 {
120
120
  const _response = yield core.fetcher({
121
121
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/tags/v1"),
122
122
  method: "GET",
123
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
126
126
  requestType: "json",
@@ -162,7 +162,7 @@ class V1 {
162
162
  const _response = yield core.fetcher({
163
163
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/tags/v1"),
164
164
  method: "POST",
165
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
166
  contentType: "application/json",
167
167
  requestType: "json",
168
168
  body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -206,7 +206,7 @@ class V1 {
206
206
  const _response = yield core.fetcher({
207
207
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
208
208
  method: "PUT",
209
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -247,7 +247,7 @@ class V1 {
247
247
  const _response = yield core.fetcher({
248
248
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
249
249
  method: "DELETE",
250
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
251
251
  contentType: "application/json",
252
252
  requestType: "json",
253
253
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,7 +72,7 @@ class ServiceFacility {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service_facility/v2/${encodeURIComponent(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
74
74
  method: "PATCH",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -31,13 +31,34 @@ export declare class V2 {
31
31
  *
32
32
  * @example
33
33
  * await client.serviceLines.v2.create({
34
- * procedureCode: "procedure_code",
35
34
  * quantity: CandidApi.Decimal("quantity"),
36
35
  * units: "MJ",
37
- * claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
36
+ * claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
37
+ * procedureCode: "procedure_code"
38
38
  * })
39
39
  */
40
40
  create(request: CandidApi.serviceLines.v2.ServiceLineCreateStandalone, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.create.Error>>;
41
+ /**
42
+ * @param {CandidApi.serviceLines.v2.UniversalServiceLineCreateStandalone} request
43
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @example
46
+ * await client.serviceLines.v2.createUniversal({
47
+ * quantity: CandidApi.Decimal("quantity"),
48
+ * units: "MJ",
49
+ * claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
50
+ * })
51
+ */
52
+ createUniversal(request: CandidApi.serviceLines.v2.UniversalServiceLineCreateStandalone, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.createUniversal.Error>>;
53
+ /**
54
+ * @param {CandidApi.ServiceLineId} serviceLineId
55
+ * @param {CandidApi.serviceLines.v2.UniversalServiceLineUpdate} request
56
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @example
59
+ * await client.serviceLines.v2.updateUniversal(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
60
+ */
61
+ updateUniversal(serviceLineId: CandidApi.ServiceLineId, request: CandidApi.serviceLines.v2.UniversalServiceLineUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.updateUniversal.Error>>;
41
62
  /**
42
63
  * @param {CandidApi.ServiceLineId} serviceLineId
43
64
  * @param {CandidApi.serviceLines.v2.ServiceLineUpdate} request