candidhealth 1.13.0 → 1.14.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 (559) hide show
  1. package/Client.d.ts +0 -6
  2. package/Client.js +38 -48
  3. package/api/resources/commons/types/ProcedureModifier.d.ts +3 -0
  4. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  5. package/api/resources/commons/types/index.d.ts +0 -2
  6. package/api/resources/commons/types/index.js +0 -2
  7. package/api/resources/encounters/resources/v4/client/Client.d.ts +97 -0
  8. package/api/resources/encounters/resources/v4/client/Client.js +312 -0
  9. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
  10. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
  11. package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
  12. package/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
  13. package/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
  14. package/api/resources/encounters/resources/v4/client/index.js +4 -1
  15. package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
  16. package/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
  17. package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
  18. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
  19. package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
  20. package/api/resources/encountersUniversal/types/index.d.ts +3 -0
  21. package/api/resources/encountersUniversal/types/index.js +3 -0
  22. package/api/resources/era/types/index.d.ts +0 -1
  23. package/api/resources/era/types/index.js +0 -1
  24. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
  25. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
  26. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
  27. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
  28. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
  29. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
  30. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
  31. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
  32. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
  33. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
  34. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
  35. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
  36. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
  37. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
  38. package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  39. package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  40. package/api/resources/index.d.ts +0 -5
  41. package/api/resources/index.js +2 -7
  42. package/api/resources/serviceFacility/index.d.ts +0 -1
  43. package/api/resources/serviceFacility/index.js +0 -1
  44. package/api/resources/serviceLines/resources/v2/client/Client.js +1 -0
  45. package/api/resources/serviceLines/resources/v2/client/delete.d.ts +7 -1
  46. package/api/resources/serviceLines/resources/v2/client/delete.js +11 -0
  47. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
  48. package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  49. package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  50. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
  51. package/api/resources/x12/resources/v1/types/index.d.ts +1 -4
  52. package/api/resources/x12/resources/v1/types/index.js +1 -4
  53. package/dist/Client.d.ts +0 -6
  54. package/dist/Client.js +38 -48
  55. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +3 -0
  56. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  57. package/dist/api/resources/commons/types/index.d.ts +0 -2
  58. package/dist/api/resources/commons/types/index.js +0 -2
  59. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +97 -0
  60. package/dist/api/resources/encounters/resources/v4/client/Client.js +312 -0
  61. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
  62. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
  63. package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
  64. package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
  65. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
  66. package/dist/api/resources/encounters/resources/v4/client/index.js +4 -1
  67. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
  68. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
  69. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
  70. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
  71. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
  72. package/dist/api/resources/encountersUniversal/types/index.d.ts +3 -0
  73. package/dist/api/resources/encountersUniversal/types/index.js +3 -0
  74. package/dist/api/resources/era/types/index.d.ts +0 -1
  75. package/dist/api/resources/era/types/index.js +0 -1
  76. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
  77. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +3 -0
  78. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
  79. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +3 -0
  80. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
  81. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +3 -0
  82. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
  83. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +3 -0
  84. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
  85. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +3 -0
  86. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
  87. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +3 -0
  88. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
  89. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +3 -0
  90. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
  91. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +3 -0
  92. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
  93. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +3 -0
  94. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
  95. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +3 -0
  96. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
  97. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +3 -0
  98. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
  99. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +3 -0
  100. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
  101. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +3 -0
  102. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
  103. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +3 -0
  104. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  105. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  106. package/dist/api/resources/index.d.ts +0 -5
  107. package/dist/api/resources/index.js +2 -7
  108. package/dist/api/resources/serviceFacility/index.d.ts +0 -1
  109. package/dist/api/resources/serviceFacility/index.js +0 -1
  110. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +1 -0
  111. package/dist/api/resources/serviceLines/resources/v2/client/delete.d.ts +7 -1
  112. package/dist/api/resources/serviceLines/resources/v2/client/delete.js +11 -0
  113. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
  114. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +3 -0
  115. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  116. package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  117. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
  118. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +3 -0
  119. package/dist/api/resources/x12/resources/v1/types/index.d.ts +1 -4
  120. package/dist/api/resources/x12/resources/v1/types/index.js +1 -4
  121. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  122. package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  123. package/dist/serialization/resources/commons/types/index.d.ts +0 -2
  124. package/dist/serialization/resources/commons/types/index.js +0 -2
  125. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
  126. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
  127. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
  128. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
  129. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
  130. package/dist/serialization/resources/encounters/resources/v4/client/index.js +4 -1
  131. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
  132. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
  133. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
  134. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
  135. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
  136. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
  137. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
  138. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
  139. package/dist/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
  140. package/dist/serialization/resources/encountersUniversal/types/index.js +3 -0
  141. package/dist/serialization/resources/era/types/index.d.ts +0 -1
  142. package/dist/serialization/resources/era/types/index.js +0 -1
  143. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +13 -0
  144. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +47 -0
  145. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +13 -0
  146. package/dist/serialization/resources/{insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js → healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js} +10 -6
  147. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +13 -0
  148. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +47 -0
  149. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +15 -0
  150. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +49 -0
  151. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +34 -0
  152. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +66 -0
  153. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
  154. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +49 -0
  155. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +15 -0
  156. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +49 -0
  157. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +15 -0
  158. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +49 -0
  159. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
  160. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +49 -0
  161. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +13 -0
  162. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +47 -0
  163. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +15 -0
  164. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +49 -0
  165. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
  166. package/dist/serialization/resources/{x12/resources/v1/types/RemittanceAdviceRemarkCode.js → healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js} +12 -5
  167. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +13 -0
  168. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +47 -0
  169. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +15 -0
  170. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +49 -0
  171. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  172. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  173. package/dist/serialization/resources/index.d.ts +0 -5
  174. package/dist/serialization/resources/index.js +2 -7
  175. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +6 -1
  176. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.js +6 -0
  177. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
  178. package/dist/serialization/resources/{remitDrafts/resources/v1/types/RemitDraftId.js → serviceLines/resources/v2/types/UniversalServiceLineCreate.js} +9 -6
  179. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  180. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
  181. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
  182. package/{serialization/resources/remits/resources/v1/types/PayeeIdentifier.js → dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js} +5 -11
  183. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +1 -4
  184. package/dist/serialization/resources/x12/resources/v1/types/index.js +1 -4
  185. package/dist/version.d.ts +1 -1
  186. package/dist/version.js +1 -1
  187. package/package.json +1 -1
  188. package/reference.md +236 -353
  189. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  190. package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  191. package/serialization/resources/commons/types/index.d.ts +0 -2
  192. package/serialization/resources/commons/types/index.js +0 -2
  193. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
  194. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
  195. package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
  196. package/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
  197. package/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
  198. package/serialization/resources/encounters/resources/v4/client/index.js +4 -1
  199. package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
  200. package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
  201. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
  202. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
  203. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
  204. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
  205. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
  206. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
  207. package/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
  208. package/serialization/resources/encountersUniversal/types/index.js +3 -0
  209. package/serialization/resources/era/types/index.d.ts +0 -1
  210. package/serialization/resources/era/types/index.js +0 -1
  211. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +13 -0
  212. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +47 -0
  213. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +13 -0
  214. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +47 -0
  215. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +13 -0
  216. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +47 -0
  217. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +15 -0
  218. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +49 -0
  219. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +34 -0
  220. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +66 -0
  221. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
  222. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +49 -0
  223. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +15 -0
  224. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +49 -0
  225. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +15 -0
  226. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +49 -0
  227. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
  228. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +49 -0
  229. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +13 -0
  230. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +47 -0
  231. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +15 -0
  232. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +49 -0
  233. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
  234. package/serialization/resources/{x12/resources/v1/types/RemittanceAdviceRemarkCode.js → healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js} +12 -5
  235. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +13 -0
  236. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +47 -0
  237. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +15 -0
  238. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +49 -0
  239. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  240. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  241. package/serialization/resources/index.d.ts +0 -5
  242. package/serialization/resources/index.js +2 -7
  243. package/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +6 -1
  244. package/serialization/resources/serviceLines/resources/v2/client/delete.js +6 -0
  245. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
  246. package/{dist/serialization/resources/remits/resources/v1/types/Payee.js → serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js} +9 -6
  247. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  248. package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
  249. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
  250. package/{dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.js → serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js} +5 -11
  251. package/serialization/resources/x12/resources/v1/types/index.d.ts +1 -4
  252. package/serialization/resources/x12/resources/v1/types/index.js +1 -4
  253. package/version.d.ts +1 -1
  254. package/version.js +1 -1
  255. package/api/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -13
  256. package/api/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -16
  257. package/api/resources/commons/types/TaxId.d.ts +0 -5
  258. package/api/resources/commons/types/TaxId.js +0 -7
  259. package/api/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -5
  260. package/api/resources/eraCommons/index.d.ts +0 -1
  261. package/api/resources/eraCommons/index.js +0 -17
  262. package/api/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -13
  263. package/api/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -16
  264. package/api/resources/eraCommons/types/index.d.ts +0 -1
  265. package/api/resources/eraCommons/types/index.js +0 -17
  266. package/api/resources/insuranceAdjudications/client/Client.d.ts +0 -14
  267. package/api/resources/insuranceAdjudications/client/Client.js +0 -15
  268. package/api/resources/insuranceAdjudications/client/index.d.ts +0 -1
  269. package/api/resources/insuranceAdjudications/client/index.js +0 -2
  270. package/api/resources/insuranceAdjudications/index.d.ts +0 -2
  271. package/api/resources/insuranceAdjudications/index.js +0 -18
  272. package/api/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  273. package/api/resources/insuranceAdjudications/resources/index.js +0 -37
  274. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +0 -153
  275. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +0 -342
  276. package/api/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -25
  277. package/api/resources/insuranceAdjudications/resources/v1/client/create.js +0 -66
  278. package/api/resources/insuranceAdjudications/resources/v1/client/delete.d.ts +0 -19
  279. package/api/resources/insuranceAdjudications/resources/v1/client/delete.js +0 -55
  280. package/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +0 -19
  281. package/api/resources/insuranceAdjudications/resources/v1/client/get.js +0 -55
  282. package/api/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -3
  283. package/api/resources/insuranceAdjudications/resources/v1/client/index.js +0 -39
  284. package/api/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  285. package/api/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  286. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -10
  287. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -9
  288. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -10
  289. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -12
  290. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -5
  291. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -7
  292. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -13
  293. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -12
  294. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -5
  295. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js +0 -7
  296. package/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  297. package/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  298. package/api/resources/remitDrafts/index.d.ts +0 -1
  299. package/api/resources/remitDrafts/index.js +0 -17
  300. package/api/resources/remitDrafts/resources/index.d.ts +0 -1
  301. package/api/resources/remitDrafts/resources/index.js +0 -37
  302. package/api/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  303. package/api/resources/remitDrafts/resources/v1/index.js +0 -17
  304. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -5
  305. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +0 -7
  306. package/api/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  307. package/api/resources/remitDrafts/resources/v1/types/index.js +0 -17
  308. package/api/resources/remits/index.d.ts +0 -1
  309. package/api/resources/remits/index.js +0 -17
  310. package/api/resources/remits/resources/index.d.ts +0 -1
  311. package/api/resources/remits/resources/index.js +0 -37
  312. package/api/resources/remits/resources/v1/index.d.ts +0 -1
  313. package/api/resources/remits/resources/v1/index.js +0 -17
  314. package/api/resources/remits/resources/v1/types/Payee.d.ts +0 -5
  315. package/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -16
  316. package/api/resources/remits/resources/v1/types/index.d.ts +0 -2
  317. package/api/resources/remits/resources/v1/types/index.js +0 -18
  318. package/api/resources/serviceFacility/client/Client.d.ts +0 -25
  319. package/api/resources/serviceFacility/client/Client.js +0 -119
  320. package/api/resources/serviceFacility/client/index.d.ts +0 -1
  321. package/api/resources/serviceFacility/client/index.js +0 -37
  322. package/api/resources/serviceFacility/client/update.d.ts +0 -19
  323. package/api/resources/serviceFacility/client/update.js +0 -55
  324. package/api/resources/x12/resources/v1/types/Carc.d.ts +0 -407
  325. package/api/resources/x12/resources/v1/types/Carc.js +0 -410
  326. package/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -6
  327. package/api/resources/x12/resources/v1/types/Rarc.d.ts +0 -1190
  328. package/api/resources/x12/resources/v1/types/Rarc.js +0 -1193
  329. package/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -4
  330. package/dist/api/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -13
  331. package/dist/api/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -16
  332. package/dist/api/resources/commons/types/TaxId.d.ts +0 -5
  333. package/dist/api/resources/commons/types/TaxId.js +0 -7
  334. package/dist/api/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -5
  335. package/dist/api/resources/eraCommons/index.d.ts +0 -1
  336. package/dist/api/resources/eraCommons/index.js +0 -17
  337. package/dist/api/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -13
  338. package/dist/api/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -16
  339. package/dist/api/resources/eraCommons/types/index.d.ts +0 -1
  340. package/dist/api/resources/eraCommons/types/index.js +0 -17
  341. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +0 -14
  342. package/dist/api/resources/insuranceAdjudications/client/Client.js +0 -15
  343. package/dist/api/resources/insuranceAdjudications/client/index.d.ts +0 -1
  344. package/dist/api/resources/insuranceAdjudications/client/index.js +0 -2
  345. package/dist/api/resources/insuranceAdjudications/index.d.ts +0 -2
  346. package/dist/api/resources/insuranceAdjudications/index.js +0 -18
  347. package/dist/api/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  348. package/dist/api/resources/insuranceAdjudications/resources/index.js +0 -37
  349. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +0 -153
  350. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +0 -342
  351. package/dist/api/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -25
  352. package/dist/api/resources/insuranceAdjudications/resources/v1/client/create.js +0 -66
  353. package/dist/api/resources/insuranceAdjudications/resources/v1/client/delete.d.ts +0 -19
  354. package/dist/api/resources/insuranceAdjudications/resources/v1/client/delete.js +0 -55
  355. package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +0 -19
  356. package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.js +0 -55
  357. package/dist/api/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -3
  358. package/dist/api/resources/insuranceAdjudications/resources/v1/client/index.js +0 -39
  359. package/dist/api/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  360. package/dist/api/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  361. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -10
  362. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -9
  363. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -10
  364. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -12
  365. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -5
  366. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -7
  367. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -13
  368. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -12
  369. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -5
  370. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js +0 -7
  371. package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  372. package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  373. package/dist/api/resources/remitDrafts/index.d.ts +0 -1
  374. package/dist/api/resources/remitDrafts/index.js +0 -17
  375. package/dist/api/resources/remitDrafts/resources/index.d.ts +0 -1
  376. package/dist/api/resources/remitDrafts/resources/index.js +0 -37
  377. package/dist/api/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  378. package/dist/api/resources/remitDrafts/resources/v1/index.js +0 -17
  379. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -5
  380. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +0 -7
  381. package/dist/api/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  382. package/dist/api/resources/remitDrafts/resources/v1/types/index.js +0 -17
  383. package/dist/api/resources/remits/index.d.ts +0 -1
  384. package/dist/api/resources/remits/index.js +0 -17
  385. package/dist/api/resources/remits/resources/index.d.ts +0 -1
  386. package/dist/api/resources/remits/resources/index.js +0 -37
  387. package/dist/api/resources/remits/resources/v1/index.d.ts +0 -1
  388. package/dist/api/resources/remits/resources/v1/index.js +0 -17
  389. package/dist/api/resources/remits/resources/v1/types/Payee.d.ts +0 -5
  390. package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -16
  391. package/dist/api/resources/remits/resources/v1/types/index.d.ts +0 -2
  392. package/dist/api/resources/remits/resources/v1/types/index.js +0 -18
  393. package/dist/api/resources/serviceFacility/client/Client.d.ts +0 -25
  394. package/dist/api/resources/serviceFacility/client/Client.js +0 -119
  395. package/dist/api/resources/serviceFacility/client/index.d.ts +0 -1
  396. package/dist/api/resources/serviceFacility/client/index.js +0 -37
  397. package/dist/api/resources/serviceFacility/client/update.d.ts +0 -19
  398. package/dist/api/resources/serviceFacility/client/update.js +0 -55
  399. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +0 -407
  400. package/dist/api/resources/x12/resources/v1/types/Carc.js +0 -410
  401. package/dist/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -6
  402. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +0 -1190
  403. package/dist/api/resources/x12/resources/v1/types/Rarc.js +0 -1193
  404. package/dist/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -4
  405. package/dist/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -7
  406. package/dist/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -39
  407. package/dist/serialization/resources/commons/types/TaxId.d.ts +0 -7
  408. package/dist/serialization/resources/commons/types/TaxId.js +0 -45
  409. package/dist/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -11
  410. package/dist/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.js +0 -43
  411. package/dist/serialization/resources/eraCommons/index.d.ts +0 -1
  412. package/dist/serialization/resources/eraCommons/index.js +0 -17
  413. package/dist/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -7
  414. package/dist/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -39
  415. package/dist/serialization/resources/eraCommons/types/index.d.ts +0 -1
  416. package/dist/serialization/resources/eraCommons/types/index.js +0 -17
  417. package/dist/serialization/resources/insuranceAdjudications/index.d.ts +0 -1
  418. package/dist/serialization/resources/insuranceAdjudications/index.js +0 -17
  419. package/dist/serialization/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  420. package/dist/serialization/resources/insuranceAdjudications/resources/index.js +0 -37
  421. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -12
  422. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/create.js +0 -69
  423. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -1
  424. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +0 -37
  425. package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  426. package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  427. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -19
  428. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +0 -51
  429. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -18
  430. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +0 -50
  431. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -19
  432. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -51
  433. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -22
  434. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +0 -54
  435. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -7
  436. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -43
  437. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -21
  438. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +0 -53
  439. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -19
  440. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +0 -51
  441. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -7
  442. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  443. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  444. package/dist/serialization/resources/remitDrafts/index.d.ts +0 -1
  445. package/dist/serialization/resources/remitDrafts/index.js +0 -17
  446. package/dist/serialization/resources/remitDrafts/resources/index.d.ts +0 -1
  447. package/dist/serialization/resources/remitDrafts/resources/index.js +0 -37
  448. package/dist/serialization/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  449. package/dist/serialization/resources/remitDrafts/resources/v1/index.js +0 -17
  450. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -7
  451. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  452. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.js +0 -17
  453. package/dist/serialization/resources/remits/index.d.ts +0 -1
  454. package/dist/serialization/resources/remits/index.js +0 -17
  455. package/dist/serialization/resources/remits/resources/index.d.ts +0 -1
  456. package/dist/serialization/resources/remits/resources/index.js +0 -37
  457. package/dist/serialization/resources/remits/resources/v1/index.d.ts +0 -1
  458. package/dist/serialization/resources/remits/resources/v1/index.js +0 -17
  459. package/dist/serialization/resources/remits/resources/v1/types/Payee.d.ts +0 -11
  460. package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -21
  461. package/dist/serialization/resources/remits/resources/v1/types/index.d.ts +0 -2
  462. package/dist/serialization/resources/remits/resources/v1/types/index.js +0 -18
  463. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +0 -7
  464. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +0 -444
  465. package/dist/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -13
  466. package/dist/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -45
  467. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +0 -7
  468. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +0 -1227
  469. package/dist/serialization/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -10
  470. package/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -7
  471. package/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -39
  472. package/serialization/resources/commons/types/TaxId.d.ts +0 -7
  473. package/serialization/resources/commons/types/TaxId.js +0 -45
  474. package/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -11
  475. package/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.js +0 -43
  476. package/serialization/resources/eraCommons/index.d.ts +0 -1
  477. package/serialization/resources/eraCommons/index.js +0 -17
  478. package/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -7
  479. package/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -39
  480. package/serialization/resources/eraCommons/types/index.d.ts +0 -1
  481. package/serialization/resources/eraCommons/types/index.js +0 -17
  482. package/serialization/resources/insuranceAdjudications/index.d.ts +0 -1
  483. package/serialization/resources/insuranceAdjudications/index.js +0 -17
  484. package/serialization/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  485. package/serialization/resources/insuranceAdjudications/resources/index.js +0 -37
  486. package/serialization/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -12
  487. package/serialization/resources/insuranceAdjudications/resources/v1/client/create.js +0 -69
  488. package/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -1
  489. package/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +0 -37
  490. package/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  491. package/serialization/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  492. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -19
  493. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +0 -51
  494. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -18
  495. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +0 -50
  496. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -19
  497. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -51
  498. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -22
  499. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +0 -54
  500. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -7
  501. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -43
  502. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -21
  503. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +0 -53
  504. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -19
  505. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +0 -51
  506. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -7
  507. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js +0 -43
  508. package/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  509. package/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  510. package/serialization/resources/remitDrafts/index.d.ts +0 -1
  511. package/serialization/resources/remitDrafts/index.js +0 -17
  512. package/serialization/resources/remitDrafts/resources/index.d.ts +0 -1
  513. package/serialization/resources/remitDrafts/resources/index.js +0 -37
  514. package/serialization/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  515. package/serialization/resources/remitDrafts/resources/v1/index.js +0 -17
  516. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -7
  517. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.js +0 -43
  518. package/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  519. package/serialization/resources/remitDrafts/resources/v1/types/index.js +0 -17
  520. package/serialization/resources/remits/index.d.ts +0 -1
  521. package/serialization/resources/remits/index.js +0 -17
  522. package/serialization/resources/remits/resources/index.d.ts +0 -1
  523. package/serialization/resources/remits/resources/index.js +0 -37
  524. package/serialization/resources/remits/resources/v1/index.d.ts +0 -1
  525. package/serialization/resources/remits/resources/v1/index.js +0 -17
  526. package/serialization/resources/remits/resources/v1/types/Payee.d.ts +0 -11
  527. package/serialization/resources/remits/resources/v1/types/Payee.js +0 -43
  528. package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -21
  529. package/serialization/resources/remits/resources/v1/types/index.d.ts +0 -2
  530. package/serialization/resources/remits/resources/v1/types/index.js +0 -18
  531. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +0 -7
  532. package/serialization/resources/x12/resources/v1/types/Carc.js +0 -444
  533. package/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -13
  534. package/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -45
  535. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +0 -7
  536. package/serialization/resources/x12/resources/v1/types/Rarc.js +0 -1227
  537. package/serialization/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -10
  538. /package/api/resources/{era/types/EraNotFullyProcessedErrorMessage.js → encountersUniversal/types/UniversalEncounterCreate.js} +0 -0
  539. /package/api/resources/{insuranceAdjudications/resources/v1/types/ClaimAdjudication.js → encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js} +0 -0
  540. /package/api/resources/{insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js → encountersUniversal/types/UniversalEncounterUpdate.js} +0 -0
  541. /package/api/resources/{insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js → healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js} +0 -0
  542. /package/api/resources/{insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js → healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js} +0 -0
  543. /package/api/resources/{insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js → healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js} +0 -0
  544. /package/api/resources/{insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js → healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js} +0 -0
  545. /package/api/resources/{remits/resources/v1/types/Payee.js → healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js} +0 -0
  546. /package/api/resources/{remits/resources/v1/types/PayeeIdentifier.js → healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js} +0 -0
  547. /package/api/resources/{x12/resources/v1/types/ClaimAdjustmentReasonCode.js → healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js} +0 -0
  548. /package/api/resources/{x12/resources/v1/types/RemittanceAdviceRemarkCode.js → healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js} +0 -0
  549. /package/{dist/api/resources/era/types/EraNotFullyProcessedErrorMessage.js → api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js} +0 -0
  550. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js → api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js} +0 -0
  551. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js → api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js} +0 -0
  552. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js → api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js} +0 -0
  553. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js → api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js} +0 -0
  554. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js → api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js} +0 -0
  555. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js → api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js} +0 -0
  556. /package/{dist/api/resources/remits/resources/v1/types/Payee.js → api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js} +0 -0
  557. /package/dist/api/resources/{remits/resources/v1/types/PayeeIdentifier.js → encountersUniversal/types/UniversalEncounterCreate.js} +0 -0
  558. /package/dist/api/resources/{x12/resources/v1/types/ClaimAdjustmentReasonCode.js → encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js} +0 -0
  559. /package/dist/api/resources/{x12/resources/v1/types/RemittanceAdviceRemarkCode.js → encountersUniversal/types/UniversalEncounterUpdate.js} +0 -0
@@ -1,153 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
2
- import * as core from "../../../../../../core";
3
- import * as CandidApi from "../../../../../index";
4
- export declare namespace V1 {
5
- interface Options extends BaseClientOptions {
6
- token?: core.Supplier<core.BearerToken | undefined>;
7
- }
8
- interface RequestOptions extends BaseRequestOptions {
9
- }
10
- }
11
- export declare class V1 {
12
- protected readonly _options: V1.Options;
13
- constructor(_options?: V1.Options);
14
- /**
15
- * Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
16
- *
17
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId} insuranceAdjudicationId
18
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
19
- *
20
- * @example
21
- * await client.insuranceAdjudications.v1.get(CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
22
- */
23
- get(insuranceAdjudicationId: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.insuranceAdjudications.v1.InsuranceAdjudication, CandidApi.insuranceAdjudications.v1.get.Error>>;
24
- private __get;
25
- /**
26
- * Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
27
- *
28
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationCreate} request
29
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
30
- *
31
- * @example
32
- * await client.insuranceAdjudications.v1.create({
33
- * payerIdentifier: {
34
- * type: "payer_info",
35
- * payerId: CandidApi.payers.v3.PayerId("payer_id"),
36
- * payerName: CandidApi.payers.v3.PayerName("payer_name")
37
- * },
38
- * payee: {
39
- * payeeName: "payee_name",
40
- * payeeIdentifier: {
41
- * type: "npi",
42
- * value: CandidApi.Npi("payee_identifier")
43
- * }
44
- * },
45
- * checkDate: "2023-01-15",
46
- * claims: {
47
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
48
- * claimStatusCode: "1",
49
- * serviceLines: {
50
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
51
- * carcs: [{
52
- * groupCode: "CO",
53
- * reasonCode: "1",
54
- * amountCents: 1
55
- * }, {
56
- * groupCode: "CO",
57
- * reasonCode: "1",
58
- * amountCents: 1
59
- * }],
60
- * rarcs: [{
61
- * reasonCode: "M1"
62
- * }, {
63
- * reasonCode: "M1"
64
- * }]
65
- * }, {
66
- * carcs: [{
67
- * groupCode: "CO",
68
- * reasonCode: "1",
69
- * amountCents: 1
70
- * }, {
71
- * groupCode: "CO",
72
- * reasonCode: "1",
73
- * amountCents: 1
74
- * }],
75
- * rarcs: [{
76
- * reasonCode: "M1"
77
- * }, {
78
- * reasonCode: "M1"
79
- * }]
80
- * }]
81
- * },
82
- * carcs: [{
83
- * groupCode: "CO",
84
- * reasonCode: "1",
85
- * amountCents: 1
86
- * }, {
87
- * groupCode: "CO",
88
- * reasonCode: "1",
89
- * amountCents: 1
90
- * }]
91
- * }, {
92
- * claimStatusCode: "1",
93
- * serviceLines: {
94
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
95
- * carcs: [{
96
- * groupCode: "CO",
97
- * reasonCode: "1",
98
- * amountCents: 1
99
- * }, {
100
- * groupCode: "CO",
101
- * reasonCode: "1",
102
- * amountCents: 1
103
- * }],
104
- * rarcs: [{
105
- * reasonCode: "M1"
106
- * }, {
107
- * reasonCode: "M1"
108
- * }]
109
- * }, {
110
- * carcs: [{
111
- * groupCode: "CO",
112
- * reasonCode: "1",
113
- * amountCents: 1
114
- * }, {
115
- * groupCode: "CO",
116
- * reasonCode: "1",
117
- * amountCents: 1
118
- * }],
119
- * rarcs: [{
120
- * reasonCode: "M1"
121
- * }, {
122
- * reasonCode: "M1"
123
- * }]
124
- * }]
125
- * },
126
- * carcs: [{
127
- * groupCode: "CO",
128
- * reasonCode: "1",
129
- * amountCents: 1
130
- * }, {
131
- * groupCode: "CO",
132
- * reasonCode: "1",
133
- * amountCents: 1
134
- * }]
135
- * }]
136
- * }
137
- * })
138
- */
139
- create(request: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationCreate, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.insuranceAdjudications.v1.InsuranceAdjudication, CandidApi.insuranceAdjudications.v1.create.Error>>;
140
- private __create;
141
- /**
142
- * Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
143
- *
144
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId} insuranceAdjudicationId
145
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
146
- *
147
- * @example
148
- * await client.insuranceAdjudications.v1.delete(CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
149
- */
150
- delete(insuranceAdjudicationId: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, CandidApi.insuranceAdjudications.v1.delete.Error>>;
151
- private __delete;
152
- protected _getAuthorizationHeader(): Promise<string | undefined>;
153
- }
@@ -1,342 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.V1 = void 0;
47
- const core = __importStar(require("../../../../../../core"));
48
- const headers_1 = require("../../../../../../core/headers");
49
- const environments = __importStar(require("../../../../../../environments"));
50
- const serializers = __importStar(require("../../../../../../serialization/index"));
51
- const CandidApi = __importStar(require("../../../../../index"));
52
- class V1 {
53
- constructor(_options = {}) {
54
- this._options = _options;
55
- }
56
- /**
57
- * Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
58
- *
59
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId} insuranceAdjudicationId
60
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
61
- *
62
- * @example
63
- * await client.insuranceAdjudications.v1.get(CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
64
- */
65
- get(insuranceAdjudicationId, requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__get(insuranceAdjudicationId, requestOptions));
67
- }
68
- __get(insuranceAdjudicationId, requestOptions) {
69
- return __awaiter(this, void 0, void 0, function* () {
70
- var _a, _b, _c, _d, _e, _f, _g, _h;
71
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
72
- const _response = yield core.fetcher({
73
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-adjudications/v1/${core.url.encodePathParam(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
74
- method: "GET",
75
- headers: _headers,
76
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
77
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
78
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
79
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
- });
81
- if (_response.ok) {
82
- return {
83
- data: {
84
- ok: true,
85
- body: serializers.insuranceAdjudications.v1.InsuranceAdjudication.parseOrThrow(_response.body, {
86
- unrecognizedObjectKeys: "passthrough",
87
- allowUnrecognizedUnionMembers: true,
88
- allowUnrecognizedEnumValues: true,
89
- breadcrumbsPrefix: ["response"],
90
- }),
91
- headers: _response.headers,
92
- rawResponse: _response.rawResponse,
93
- },
94
- rawResponse: _response.rawResponse,
95
- };
96
- }
97
- return {
98
- data: {
99
- ok: false,
100
- error: CandidApi.insuranceAdjudications.v1.get.Error._unknown(_response.error),
101
- rawResponse: _response.rawResponse,
102
- },
103
- rawResponse: _response.rawResponse,
104
- };
105
- });
106
- }
107
- /**
108
- * Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
109
- *
110
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationCreate} request
111
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
112
- *
113
- * @example
114
- * await client.insuranceAdjudications.v1.create({
115
- * payerIdentifier: {
116
- * type: "payer_info",
117
- * payerId: CandidApi.payers.v3.PayerId("payer_id"),
118
- * payerName: CandidApi.payers.v3.PayerName("payer_name")
119
- * },
120
- * payee: {
121
- * payeeName: "payee_name",
122
- * payeeIdentifier: {
123
- * type: "npi",
124
- * value: CandidApi.Npi("payee_identifier")
125
- * }
126
- * },
127
- * checkDate: "2023-01-15",
128
- * claims: {
129
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
130
- * claimStatusCode: "1",
131
- * serviceLines: {
132
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
133
- * carcs: [{
134
- * groupCode: "CO",
135
- * reasonCode: "1",
136
- * amountCents: 1
137
- * }, {
138
- * groupCode: "CO",
139
- * reasonCode: "1",
140
- * amountCents: 1
141
- * }],
142
- * rarcs: [{
143
- * reasonCode: "M1"
144
- * }, {
145
- * reasonCode: "M1"
146
- * }]
147
- * }, {
148
- * carcs: [{
149
- * groupCode: "CO",
150
- * reasonCode: "1",
151
- * amountCents: 1
152
- * }, {
153
- * groupCode: "CO",
154
- * reasonCode: "1",
155
- * amountCents: 1
156
- * }],
157
- * rarcs: [{
158
- * reasonCode: "M1"
159
- * }, {
160
- * reasonCode: "M1"
161
- * }]
162
- * }]
163
- * },
164
- * carcs: [{
165
- * groupCode: "CO",
166
- * reasonCode: "1",
167
- * amountCents: 1
168
- * }, {
169
- * groupCode: "CO",
170
- * reasonCode: "1",
171
- * amountCents: 1
172
- * }]
173
- * }, {
174
- * claimStatusCode: "1",
175
- * serviceLines: {
176
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
177
- * carcs: [{
178
- * groupCode: "CO",
179
- * reasonCode: "1",
180
- * amountCents: 1
181
- * }, {
182
- * groupCode: "CO",
183
- * reasonCode: "1",
184
- * amountCents: 1
185
- * }],
186
- * rarcs: [{
187
- * reasonCode: "M1"
188
- * }, {
189
- * reasonCode: "M1"
190
- * }]
191
- * }, {
192
- * carcs: [{
193
- * groupCode: "CO",
194
- * reasonCode: "1",
195
- * amountCents: 1
196
- * }, {
197
- * groupCode: "CO",
198
- * reasonCode: "1",
199
- * amountCents: 1
200
- * }],
201
- * rarcs: [{
202
- * reasonCode: "M1"
203
- * }, {
204
- * reasonCode: "M1"
205
- * }]
206
- * }]
207
- * },
208
- * carcs: [{
209
- * groupCode: "CO",
210
- * reasonCode: "1",
211
- * amountCents: 1
212
- * }, {
213
- * groupCode: "CO",
214
- * reasonCode: "1",
215
- * amountCents: 1
216
- * }]
217
- * }]
218
- * }
219
- * })
220
- */
221
- create(request, requestOptions) {
222
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
223
- }
224
- __create(request, requestOptions) {
225
- return __awaiter(this, void 0, void 0, function* () {
226
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
227
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
228
- const _response = yield core.fetcher({
229
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/insurance-adjudications/v1"),
230
- method: "POST",
231
- headers: _headers,
232
- contentType: "application/json",
233
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
234
- requestType: "json",
235
- body: serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
236
- unrecognizedObjectKeys: "strip",
237
- }),
238
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
239
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
240
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
241
- });
242
- if (_response.ok) {
243
- return {
244
- data: {
245
- ok: true,
246
- body: serializers.insuranceAdjudications.v1.InsuranceAdjudication.parseOrThrow(_response.body, {
247
- unrecognizedObjectKeys: "passthrough",
248
- allowUnrecognizedUnionMembers: true,
249
- allowUnrecognizedEnumValues: true,
250
- breadcrumbsPrefix: ["response"],
251
- }),
252
- headers: _response.headers,
253
- rawResponse: _response.rawResponse,
254
- },
255
- rawResponse: _response.rawResponse,
256
- };
257
- }
258
- if (_response.error.reason === "status-code") {
259
- switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
260
- case "EraNotFullyProcessedError":
261
- return {
262
- data: {
263
- ok: false,
264
- error: serializers.insuranceAdjudications.v1.create.Error.parseOrThrow(_response.error.body, {
265
- unrecognizedObjectKeys: "passthrough",
266
- allowUnrecognizedUnionMembers: true,
267
- allowUnrecognizedEnumValues: true,
268
- breadcrumbsPrefix: ["response"],
269
- }),
270
- rawResponse: _response.rawResponse,
271
- },
272
- rawResponse: _response.rawResponse,
273
- };
274
- }
275
- }
276
- return {
277
- data: {
278
- ok: false,
279
- error: CandidApi.insuranceAdjudications.v1.create.Error._unknown(_response.error),
280
- rawResponse: _response.rawResponse,
281
- },
282
- rawResponse: _response.rawResponse,
283
- };
284
- });
285
- }
286
- /**
287
- * Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
288
- *
289
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId} insuranceAdjudicationId
290
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
291
- *
292
- * @example
293
- * await client.insuranceAdjudications.v1.delete(CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
294
- */
295
- delete(insuranceAdjudicationId, requestOptions) {
296
- return core.HttpResponsePromise.fromPromise(this.__delete(insuranceAdjudicationId, requestOptions));
297
- }
298
- __delete(insuranceAdjudicationId, requestOptions) {
299
- return __awaiter(this, void 0, void 0, function* () {
300
- var _a, _b, _c, _d, _e, _f, _g, _h;
301
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
302
- const _response = yield core.fetcher({
303
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-adjudications/v1/${core.url.encodePathParam(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
304
- method: "DELETE",
305
- headers: _headers,
306
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
307
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
308
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
309
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
310
- });
311
- if (_response.ok) {
312
- return {
313
- data: {
314
- ok: true,
315
- body: undefined,
316
- headers: _response.headers,
317
- rawResponse: _response.rawResponse,
318
- },
319
- rawResponse: _response.rawResponse,
320
- };
321
- }
322
- return {
323
- data: {
324
- ok: false,
325
- error: CandidApi.insuranceAdjudications.v1.delete.Error._unknown(_response.error),
326
- rawResponse: _response.rawResponse,
327
- },
328
- rawResponse: _response.rawResponse,
329
- };
330
- });
331
- }
332
- _getAuthorizationHeader() {
333
- return __awaiter(this, void 0, void 0, function* () {
334
- const bearer = yield core.Supplier.get(this._options.token);
335
- if (bearer != null) {
336
- return `Bearer ${bearer}`;
337
- }
338
- return undefined;
339
- });
340
- }
341
- }
342
- exports.V1 = V1;
@@ -1,25 +0,0 @@
1
- import type * as core from "../../../../../../core";
2
- import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.insuranceAdjudications.v1.create.Error.EraNotFullyProcessedError | CandidApi.insuranceAdjudications.v1.create.Error._Unknown;
4
- export declare namespace Error {
5
- interface EraNotFullyProcessedError extends _Utils {
6
- errorName: "EraNotFullyProcessedError";
7
- content: CandidApi.EraNotFullyProcessedErrorMessage;
8
- }
9
- interface _Unknown extends _Utils {
10
- errorName: void;
11
- content: core.Fetcher.Error;
12
- }
13
- interface _Utils {
14
- _visit: <_Result>(visitor: CandidApi.insuranceAdjudications.v1.create.Error._Visitor<_Result>) => _Result;
15
- }
16
- interface _Visitor<_Result> {
17
- eraNotFullyProcessedError: (value: CandidApi.EraNotFullyProcessedErrorMessage) => _Result;
18
- _other: (value: core.Fetcher.Error) => _Result;
19
- }
20
- }
21
- export declare const Error: {
22
- readonly eraNotFullyProcessedError: (value: CandidApi.EraNotFullyProcessedErrorMessage) => CandidApi.insuranceAdjudications.v1.create.Error.EraNotFullyProcessedError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceAdjudications.v1.create.Error._Unknown;
24
- readonly _visit: <_Result>(value: CandidApi.insuranceAdjudications.v1.create.Error, visitor: CandidApi.insuranceAdjudications.v1.create.Error._Visitor<_Result>) => _Result;
25
- };
@@ -1,66 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Error = void 0;
38
- const CandidApi = __importStar(require("../../../../../index"));
39
- exports.Error = {
40
- eraNotFullyProcessedError: (value) => {
41
- return {
42
- content: value,
43
- errorName: "EraNotFullyProcessedError",
44
- _visit: function (visitor) {
45
- return CandidApi.insuranceAdjudications.v1.create.Error._visit(this, visitor);
46
- },
47
- };
48
- },
49
- _unknown: (fetcherError) => {
50
- return {
51
- errorName: undefined,
52
- content: fetcherError,
53
- _visit: function (visitor) {
54
- return CandidApi.insuranceAdjudications.v1.create.Error._visit(this, visitor);
55
- },
56
- };
57
- },
58
- _visit: (value, visitor) => {
59
- switch (value.errorName) {
60
- case "EraNotFullyProcessedError":
61
- return visitor.eraNotFullyProcessedError(value.content);
62
- default:
63
- return visitor._other(value);
64
- }
65
- },
66
- };
@@ -1,19 +0,0 @@
1
- import type * as core from "../../../../../../core";
2
- import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.insuranceAdjudications.v1.delete.Error._Unknown;
4
- export declare namespace Error {
5
- interface _Unknown extends _Utils {
6
- errorName: void;
7
- content: core.Fetcher.Error;
8
- }
9
- interface _Utils {
10
- _visit: <_Result>(visitor: CandidApi.insuranceAdjudications.v1.delete.Error._Visitor<_Result>) => _Result;
11
- }
12
- interface _Visitor<_Result> {
13
- _other: (value: core.Fetcher.Error) => _Result;
14
- }
15
- }
16
- export declare const Error: {
17
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceAdjudications.v1.delete.Error._Unknown;
18
- readonly _visit: <_Result>(value: CandidApi.insuranceAdjudications.v1.delete.Error, visitor: CandidApi.insuranceAdjudications.v1.delete.Error._Visitor<_Result>) => _Result;
19
- };
@@ -1,55 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Error = void 0;
38
- const CandidApi = __importStar(require("../../../../../index"));
39
- exports.Error = {
40
- _unknown: (fetcherError) => {
41
- return {
42
- errorName: undefined,
43
- content: fetcherError,
44
- _visit: function (visitor) {
45
- return CandidApi.insuranceAdjudications.v1.delete.Error._visit(this, visitor);
46
- },
47
- };
48
- },
49
- _visit: (value, visitor) => {
50
- switch (value.errorName) {
51
- default:
52
- return visitor._other(value);
53
- }
54
- },
55
- };