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
@@ -0,0 +1,46 @@
1
+ import * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
5
+ import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
6
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
7
+ import { EncounterExternalIdUniquenessErrorType } from "../types/EncounterExternalIdUniquenessErrorType";
8
+ import { EncounterPatientControlNumberUniquenessErrorType } from "../types/EncounterPatientControlNumberUniquenessErrorType";
9
+ import { PayerPlanGroupPayerDoesNotMatchInsuranceCardError } from "../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError";
10
+ import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
11
+ export declare const Error: core.serialization.Schema<serializers.encounters.v4.createFromPreEncounterPatientUniversal.Error.Raw, CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error>;
12
+ export declare namespace Error {
13
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.HttpRequestValidationError | Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError;
14
+ interface EncounterExternalIdUniquenessError {
15
+ errorName: "EncounterExternalIdUniquenessError";
16
+ content: EncounterExternalIdUniquenessErrorType.Raw;
17
+ }
18
+ interface EncounterPatientControlNumberUniquenessError {
19
+ errorName: "EncounterPatientControlNumberUniquenessError";
20
+ content: EncounterPatientControlNumberUniquenessErrorType.Raw;
21
+ }
22
+ interface EntityNotFoundError {
23
+ errorName: "EntityNotFoundError";
24
+ content: EntityNotFoundErrorMessage.Raw;
25
+ }
26
+ interface UnauthorizedError {
27
+ errorName: "UnauthorizedError";
28
+ content: UnauthorizedErrorMessage.Raw;
29
+ }
30
+ interface HttpRequestValidationsError {
31
+ errorName: "HttpRequestValidationsError";
32
+ content: RequestValidationError.Raw[];
33
+ }
34
+ interface SchemaInstanceValidationHttpFailure {
35
+ errorName: "SchemaInstanceValidationHttpFailure";
36
+ content: SchemaInstanceValidationFailure.Raw;
37
+ }
38
+ interface HttpRequestValidationError {
39
+ errorName: "HttpRequestValidationError";
40
+ content: RequestValidationError.Raw;
41
+ }
42
+ interface PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError {
43
+ errorName: "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError";
44
+ content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError.Raw;
45
+ }
46
+ }
@@ -0,0 +1,110 @@
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 __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Error = void 0;
49
+ const CandidApi = __importStar(require("../../../../../../api/index"));
50
+ const core = __importStar(require("../../../../../../core"));
51
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
52
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
53
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
54
+ const EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExternalIdUniquenessErrorType");
55
+ const EncounterPatientControlNumberUniquenessErrorType_1 = require("../types/EncounterPatientControlNumberUniquenessErrorType");
56
+ const PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1 = require("../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError");
57
+ const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
58
+ exports.Error = core.serialization
59
+ .union("errorName", {
60
+ EncounterExternalIdUniquenessError: core.serialization.object({
61
+ content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
62
+ }),
63
+ EncounterPatientControlNumberUniquenessError: core.serialization.object({
64
+ content: EncounterPatientControlNumberUniquenessErrorType_1.EncounterPatientControlNumberUniquenessErrorType,
65
+ }),
66
+ EntityNotFoundError: core.serialization.object({
67
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
68
+ }),
69
+ UnauthorizedError: core.serialization.object({
70
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
71
+ }),
72
+ HttpRequestValidationsError: core.serialization.object({
73
+ content: core.serialization.list(RequestValidationError_1.RequestValidationError),
74
+ }),
75
+ SchemaInstanceValidationHttpFailure: core.serialization.object({
76
+ content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
77
+ }),
78
+ HttpRequestValidationError: core.serialization.object({
79
+ content: RequestValidationError_1.RequestValidationError,
80
+ }),
81
+ PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: core.serialization.object({
82
+ content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1.PayerPlanGroupPayerDoesNotMatchInsuranceCardError,
83
+ }),
84
+ })
85
+ .transform({
86
+ transform: (value) => {
87
+ switch (value.errorName) {
88
+ case "EncounterExternalIdUniquenessError":
89
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.encounterExternalIdUniquenessError(value.content);
90
+ case "EncounterPatientControlNumberUniquenessError":
91
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.encounterPatientControlNumberUniquenessError(value.content);
92
+ case "EntityNotFoundError":
93
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.entityNotFoundError(value.content);
94
+ case "UnauthorizedError":
95
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.unauthorizedError(value.content);
96
+ case "HttpRequestValidationsError":
97
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.httpRequestValidationsError(value.content);
98
+ case "SchemaInstanceValidationHttpFailure":
99
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.schemaInstanceValidationHttpFailure(value.content);
100
+ case "HttpRequestValidationError":
101
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.httpRequestValidationError(value.content);
102
+ case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
103
+ return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError(value.content);
104
+ }
105
+ },
106
+ untransform: (_a) => {
107
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
108
+ return value;
109
+ },
110
+ });
@@ -0,0 +1,66 @@
1
+ import * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
5
+ import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
6
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
7
+ import { CashPayPayerErrorMessage } from "../types/CashPayPayerErrorMessage";
8
+ import { EncounterExternalIdUniquenessErrorType } from "../types/EncounterExternalIdUniquenessErrorType";
9
+ import { EncounterGuarantorMissingContactInfoErrorType } from "../types/EncounterGuarantorMissingContactInfoErrorType";
10
+ import { EncounterPatientControlNumberUniquenessErrorType } from "../types/EncounterPatientControlNumberUniquenessErrorType";
11
+ import { EncounterRenderingOrAttendingProviderRequiredError } from "../types/EncounterRenderingOrAttendingProviderRequiredError";
12
+ import { InvalidTagNamesErrorType } from "../types/InvalidTagNamesErrorType";
13
+ import { PayerPlanGroupPayerDoesNotMatchInsuranceCardError } from "../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError";
14
+ import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
15
+ export declare const Error: core.serialization.Schema<serializers.encounters.v4.createUniversal.Error.Raw, CandidApi.encounters.v4.createUniversal.Error>;
16
+ export declare namespace Error {
17
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError | Error.CashPayPayerError | Error.SchemaInstanceValidationHttpFailure | Error.InvalidTagNamesError | Error.HttpRequestValidationError | Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError | Error.EncounterRenderingOrAttendingProviderRequired;
18
+ interface EncounterExternalIdUniquenessError {
19
+ errorName: "EncounterExternalIdUniquenessError";
20
+ content: EncounterExternalIdUniquenessErrorType.Raw;
21
+ }
22
+ interface EncounterPatientControlNumberUniquenessError {
23
+ errorName: "EncounterPatientControlNumberUniquenessError";
24
+ content: EncounterPatientControlNumberUniquenessErrorType.Raw;
25
+ }
26
+ interface EntityNotFoundError {
27
+ errorName: "EntityNotFoundError";
28
+ content: EntityNotFoundErrorMessage.Raw;
29
+ }
30
+ interface UnauthorizedError {
31
+ errorName: "UnauthorizedError";
32
+ content: UnauthorizedErrorMessage.Raw;
33
+ }
34
+ interface EncounterGuarantorMissingContactInfoError {
35
+ errorName: "EncounterGuarantorMissingContactInfoError";
36
+ content: EncounterGuarantorMissingContactInfoErrorType.Raw;
37
+ }
38
+ interface HttpRequestValidationsError {
39
+ errorName: "HttpRequestValidationsError";
40
+ content: RequestValidationError.Raw[];
41
+ }
42
+ interface CashPayPayerError {
43
+ errorName: "CashPayPayerError";
44
+ content: CashPayPayerErrorMessage.Raw;
45
+ }
46
+ interface SchemaInstanceValidationHttpFailure {
47
+ errorName: "SchemaInstanceValidationHttpFailure";
48
+ content: SchemaInstanceValidationFailure.Raw;
49
+ }
50
+ interface InvalidTagNamesError {
51
+ errorName: "InvalidTagNamesError";
52
+ content: InvalidTagNamesErrorType.Raw;
53
+ }
54
+ interface HttpRequestValidationError {
55
+ errorName: "HttpRequestValidationError";
56
+ content: RequestValidationError.Raw;
57
+ }
58
+ interface PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError {
59
+ errorName: "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError";
60
+ content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError.Raw;
61
+ }
62
+ interface EncounterRenderingOrAttendingProviderRequired {
63
+ errorName: "EncounterRenderingOrAttendingProviderRequired";
64
+ content: EncounterRenderingOrAttendingProviderRequiredError.Raw;
65
+ }
66
+ }
@@ -0,0 +1,134 @@
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 __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Error = void 0;
49
+ const CandidApi = __importStar(require("../../../../../../api/index"));
50
+ const core = __importStar(require("../../../../../../core"));
51
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
52
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
53
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
54
+ const CashPayPayerErrorMessage_1 = require("../types/CashPayPayerErrorMessage");
55
+ const EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExternalIdUniquenessErrorType");
56
+ const EncounterGuarantorMissingContactInfoErrorType_1 = require("../types/EncounterGuarantorMissingContactInfoErrorType");
57
+ const EncounterPatientControlNumberUniquenessErrorType_1 = require("../types/EncounterPatientControlNumberUniquenessErrorType");
58
+ const EncounterRenderingOrAttendingProviderRequiredError_1 = require("../types/EncounterRenderingOrAttendingProviderRequiredError");
59
+ const InvalidTagNamesErrorType_1 = require("../types/InvalidTagNamesErrorType");
60
+ const PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1 = require("../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError");
61
+ const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
62
+ exports.Error = core.serialization
63
+ .union("errorName", {
64
+ EncounterExternalIdUniquenessError: core.serialization.object({
65
+ content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
66
+ }),
67
+ EncounterPatientControlNumberUniquenessError: core.serialization.object({
68
+ content: EncounterPatientControlNumberUniquenessErrorType_1.EncounterPatientControlNumberUniquenessErrorType,
69
+ }),
70
+ EntityNotFoundError: core.serialization.object({
71
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
72
+ }),
73
+ UnauthorizedError: core.serialization.object({
74
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
75
+ }),
76
+ EncounterGuarantorMissingContactInfoError: core.serialization.object({
77
+ content: EncounterGuarantorMissingContactInfoErrorType_1.EncounterGuarantorMissingContactInfoErrorType,
78
+ }),
79
+ HttpRequestValidationsError: core.serialization.object({
80
+ content: core.serialization.list(RequestValidationError_1.RequestValidationError),
81
+ }),
82
+ CashPayPayerError: core.serialization.object({
83
+ content: CashPayPayerErrorMessage_1.CashPayPayerErrorMessage,
84
+ }),
85
+ SchemaInstanceValidationHttpFailure: core.serialization.object({
86
+ content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
87
+ }),
88
+ InvalidTagNamesError: core.serialization.object({
89
+ content: InvalidTagNamesErrorType_1.InvalidTagNamesErrorType,
90
+ }),
91
+ HttpRequestValidationError: core.serialization.object({
92
+ content: RequestValidationError_1.RequestValidationError,
93
+ }),
94
+ PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: core.serialization.object({
95
+ content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1.PayerPlanGroupPayerDoesNotMatchInsuranceCardError,
96
+ }),
97
+ EncounterRenderingOrAttendingProviderRequired: core.serialization.object({
98
+ content: EncounterRenderingOrAttendingProviderRequiredError_1.EncounterRenderingOrAttendingProviderRequiredError,
99
+ }),
100
+ })
101
+ .transform({
102
+ transform: (value) => {
103
+ switch (value.errorName) {
104
+ case "EncounterExternalIdUniquenessError":
105
+ return CandidApi.encounters.v4.createUniversal.Error.encounterExternalIdUniquenessError(value.content);
106
+ case "EncounterPatientControlNumberUniquenessError":
107
+ return CandidApi.encounters.v4.createUniversal.Error.encounterPatientControlNumberUniquenessError(value.content);
108
+ case "EntityNotFoundError":
109
+ return CandidApi.encounters.v4.createUniversal.Error.entityNotFoundError(value.content);
110
+ case "UnauthorizedError":
111
+ return CandidApi.encounters.v4.createUniversal.Error.unauthorizedError(value.content);
112
+ case "EncounterGuarantorMissingContactInfoError":
113
+ return CandidApi.encounters.v4.createUniversal.Error.encounterGuarantorMissingContactInfoError(value.content);
114
+ case "HttpRequestValidationsError":
115
+ return CandidApi.encounters.v4.createUniversal.Error.httpRequestValidationsError(value.content);
116
+ case "CashPayPayerError":
117
+ return CandidApi.encounters.v4.createUniversal.Error.cashPayPayerError(value.content);
118
+ case "SchemaInstanceValidationHttpFailure":
119
+ return CandidApi.encounters.v4.createUniversal.Error.schemaInstanceValidationHttpFailure(value.content);
120
+ case "InvalidTagNamesError":
121
+ return CandidApi.encounters.v4.createUniversal.Error.invalidTagNamesError(value.content);
122
+ case "HttpRequestValidationError":
123
+ return CandidApi.encounters.v4.createUniversal.Error.httpRequestValidationError(value.content);
124
+ case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
125
+ return CandidApi.encounters.v4.createUniversal.Error.payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError(value.content);
126
+ case "EncounterRenderingOrAttendingProviderRequired":
127
+ return CandidApi.encounters.v4.createUniversal.Error.encounterRenderingOrAttendingProviderRequired(value.content);
128
+ }
129
+ },
130
+ untransform: (_a) => {
131
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
132
+ return value;
133
+ },
134
+ });
@@ -1,3 +1,6 @@
1
1
  export * as create from "./create";
2
2
  export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
3
+ export * as createFromPreEncounterPatientUniversal from "./createFromPreEncounterPatientUniversal";
4
+ export * as createUniversal from "./createUniversal";
3
5
  export * as update from "./update";
6
+ export * as updateUniversal from "./updateUniversal";
@@ -33,7 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
36
+ exports.updateUniversal = exports.update = exports.createUniversal = exports.createFromPreEncounterPatientUniversal = exports.createFromPreEncounterPatient = exports.create = void 0;
37
37
  exports.create = __importStar(require("./create"));
38
38
  exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
39
+ exports.createFromPreEncounterPatientUniversal = __importStar(require("./createFromPreEncounterPatientUniversal"));
40
+ exports.createUniversal = __importStar(require("./createUniversal"));
39
41
  exports.update = __importStar(require("./update"));
42
+ exports.updateUniversal = __importStar(require("./updateUniversal"));
@@ -0,0 +1,47 @@
1
+ import * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
5
+ import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
6
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
7
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
8
+ import { EncounterExternalIdUniquenessErrorType } from "../types/EncounterExternalIdUniquenessErrorType";
9
+ import { InvalidTagNamesErrorType } from "../types/InvalidTagNamesErrorType";
10
+ import { PayerPlanGroupPayerDoesNotMatchInsuranceCardError } from "../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError";
11
+ import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
12
+ export declare const Error: core.serialization.Schema<serializers.encounters.v4.updateUniversal.Error.Raw, CandidApi.encounters.v4.updateUniversal.Error>;
13
+ export declare namespace Error {
14
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.UnprocessableEntityError | Error.InvalidTagNamesError | Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError;
15
+ interface EncounterExternalIdUniquenessError {
16
+ errorName: "EncounterExternalIdUniquenessError";
17
+ content: EncounterExternalIdUniquenessErrorType.Raw;
18
+ }
19
+ interface EntityNotFoundError {
20
+ errorName: "EntityNotFoundError";
21
+ content: EntityNotFoundErrorMessage.Raw;
22
+ }
23
+ interface UnauthorizedError {
24
+ errorName: "UnauthorizedError";
25
+ content: UnauthorizedErrorMessage.Raw;
26
+ }
27
+ interface HttpRequestValidationsError {
28
+ errorName: "HttpRequestValidationsError";
29
+ content: RequestValidationError.Raw[];
30
+ }
31
+ interface SchemaInstanceValidationHttpFailure {
32
+ errorName: "SchemaInstanceValidationHttpFailure";
33
+ content: SchemaInstanceValidationFailure.Raw;
34
+ }
35
+ interface UnprocessableEntityError {
36
+ errorName: "UnprocessableEntityError";
37
+ content: UnprocessableEntityErrorMessage.Raw;
38
+ }
39
+ interface InvalidTagNamesError {
40
+ errorName: "InvalidTagNamesError";
41
+ content: InvalidTagNamesErrorType.Raw;
42
+ }
43
+ interface PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError {
44
+ errorName: "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError";
45
+ content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError.Raw;
46
+ }
47
+ }
@@ -0,0 +1,111 @@
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 __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Error = void 0;
49
+ const CandidApi = __importStar(require("../../../../../../api/index"));
50
+ const core = __importStar(require("../../../../../../core"));
51
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
52
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
53
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
54
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
55
+ const EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExternalIdUniquenessErrorType");
56
+ const InvalidTagNamesErrorType_1 = require("../types/InvalidTagNamesErrorType");
57
+ const PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1 = require("../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError");
58
+ const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
59
+ exports.Error = core.serialization
60
+ .union("errorName", {
61
+ EncounterExternalIdUniquenessError: core.serialization.object({
62
+ content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
63
+ }),
64
+ EntityNotFoundError: core.serialization.object({
65
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
66
+ }),
67
+ UnauthorizedError: core.serialization.object({
68
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
69
+ }),
70
+ HttpRequestValidationsError: core.serialization.object({
71
+ content: core.serialization.list(RequestValidationError_1.RequestValidationError),
72
+ }),
73
+ SchemaInstanceValidationHttpFailure: core.serialization.object({
74
+ content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
75
+ }),
76
+ UnprocessableEntityError: core.serialization.object({
77
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
78
+ }),
79
+ InvalidTagNamesError: core.serialization.object({
80
+ content: InvalidTagNamesErrorType_1.InvalidTagNamesErrorType,
81
+ }),
82
+ PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: core.serialization.object({
83
+ content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1.PayerPlanGroupPayerDoesNotMatchInsuranceCardError,
84
+ }),
85
+ })
86
+ .transform({
87
+ transform: (value) => {
88
+ switch (value.errorName) {
89
+ case "EncounterExternalIdUniquenessError":
90
+ return CandidApi.encounters.v4.updateUniversal.Error.encounterExternalIdUniquenessError(value.content);
91
+ case "EntityNotFoundError":
92
+ return CandidApi.encounters.v4.updateUniversal.Error.entityNotFoundError(value.content);
93
+ case "UnauthorizedError":
94
+ return CandidApi.encounters.v4.updateUniversal.Error.unauthorizedError(value.content);
95
+ case "HttpRequestValidationsError":
96
+ return CandidApi.encounters.v4.updateUniversal.Error.httpRequestValidationsError(value.content);
97
+ case "SchemaInstanceValidationHttpFailure":
98
+ return CandidApi.encounters.v4.updateUniversal.Error.schemaInstanceValidationHttpFailure(value.content);
99
+ case "UnprocessableEntityError":
100
+ return CandidApi.encounters.v4.updateUniversal.Error.unprocessableEntityError(value.content);
101
+ case "InvalidTagNamesError":
102
+ return CandidApi.encounters.v4.updateUniversal.Error.invalidTagNamesError(value.content);
103
+ case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
104
+ return CandidApi.encounters.v4.updateUniversal.Error.payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError(value.content);
105
+ }
106
+ },
107
+ untransform: (_a) => {
108
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
109
+ return value;
110
+ },
111
+ });
@@ -0,0 +1,36 @@
1
+ import type * as CandidApi from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { FacilityTypeCode } from "../../commons/types/FacilityTypeCode";
5
+ import { State } from "../../commons/types/State";
6
+ import { BillingProvider } from "../../encounterProviders/resources/v2/types/BillingProvider";
7
+ import { RenderingProvider } from "../../encounterProviders/resources/v2/types/RenderingProvider";
8
+ import { EncounterSubmissionExpectation } from "../../encounters/resources/v4/types/EncounterSubmissionExpectation";
9
+ import { HealthCareCodeInformationCreate } from "../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate";
10
+ import { UniversalServiceLineCreate } from "../../serviceLines/resources/v2/types/UniversalServiceLineCreate";
11
+ import { PatientDischargeStatusCode } from "../../x12/resources/v1/types/PatientDischargeStatusCode";
12
+ import { PointOfOriginForAdmissionOrVisitCode } from "../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode";
13
+ import { TypeOfAdmissionOrVisitCode } from "../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode";
14
+ import { TypeOfBillCompositeUpdate } from "../../x12/resources/v1/types/TypeOfBillCompositeUpdate";
15
+ import { UniversalEncounterCreateBase } from "./UniversalEncounterCreateBase";
16
+ export declare const UniversalEncounterCreate: core.serialization.ObjectSchema<serializers.encountersUniversal.UniversalEncounterCreate.Raw, CandidApi.encountersUniversal.UniversalEncounterCreate>;
17
+ export declare namespace UniversalEncounterCreate {
18
+ interface Raw extends UniversalEncounterCreateBase.Raw {
19
+ billing_provider: BillingProvider.Raw;
20
+ place_of_service_code?: FacilityTypeCode.Raw | null;
21
+ rendering_provider?: RenderingProvider.Raw | null;
22
+ service_lines?: UniversalServiceLineCreate.Raw[] | null;
23
+ health_care_code_information?: HealthCareCodeInformationCreate.Raw | null;
24
+ submission_expectation: EncounterSubmissionExpectation.Raw;
25
+ attending_provider?: RenderingProvider.Raw | null;
26
+ admission_hour?: number | null;
27
+ admission_type_code?: TypeOfAdmissionOrVisitCode.Raw | null;
28
+ admission_source_code?: PointOfOriginForAdmissionOrVisitCode.Raw | null;
29
+ discharge_hour?: number | null;
30
+ discharge_status?: PatientDischargeStatusCode.Raw | null;
31
+ operating_provider?: RenderingProvider.Raw | null;
32
+ other_operating_provider?: RenderingProvider.Raw | null;
33
+ type_of_bill?: TypeOfBillCompositeUpdate.Raw | null;
34
+ accident_state_or_province_code?: State.Raw | null;
35
+ }
36
+ }