candidhealth 1.13.0 → 1.14.0

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 (250) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +10 -15
  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/encounters/resources/v4/client/Client.d.ts +97 -0
  6. package/api/resources/encounters/resources/v4/client/Client.js +312 -0
  7. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
  8. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
  9. package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
  10. package/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
  11. package/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
  12. package/api/resources/encounters/resources/v4/client/index.js +4 -1
  13. package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
  14. package/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
  15. package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
  16. package/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +3 -0
  17. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
  18. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +3 -0
  19. package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
  20. package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +3 -0
  21. package/api/resources/encountersUniversal/types/index.d.ts +3 -0
  22. package/api/resources/encountersUniversal/types/index.js +3 -0
  23. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
  24. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +3 -0
  25. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
  26. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +3 -0
  27. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
  28. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +3 -0
  29. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
  30. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +3 -0
  31. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
  32. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +3 -0
  33. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
  34. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +3 -0
  35. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
  36. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +3 -0
  37. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
  38. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +3 -0
  39. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
  40. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +3 -0
  41. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
  42. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +3 -0
  43. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
  44. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +3 -0
  45. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
  46. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +3 -0
  47. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
  48. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +3 -0
  49. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
  50. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +3 -0
  51. package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  52. package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  53. package/api/resources/serviceFacility/index.d.ts +0 -1
  54. package/api/resources/serviceFacility/index.js +0 -1
  55. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
  56. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +3 -0
  57. package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  58. package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  59. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
  60. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +3 -0
  61. package/api/resources/x12/resources/v1/types/index.d.ts +1 -0
  62. package/api/resources/x12/resources/v1/types/index.js +1 -0
  63. package/dist/Client.d.ts +0 -3
  64. package/dist/Client.js +10 -15
  65. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +3 -0
  66. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  67. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +97 -0
  68. package/dist/api/resources/encounters/resources/v4/client/Client.js +312 -0
  69. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
  70. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
  71. package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
  72. package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
  73. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
  74. package/dist/api/resources/encounters/resources/v4/client/index.js +4 -1
  75. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
  76. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
  77. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
  78. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +3 -0
  79. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
  80. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +3 -0
  81. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
  82. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +3 -0
  83. package/dist/api/resources/encountersUniversal/types/index.d.ts +3 -0
  84. package/dist/api/resources/encountersUniversal/types/index.js +3 -0
  85. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
  86. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +3 -0
  87. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
  88. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +3 -0
  89. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
  90. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +3 -0
  91. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
  92. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +3 -0
  93. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
  94. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +3 -0
  95. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
  96. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +3 -0
  97. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
  98. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +3 -0
  99. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
  100. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +3 -0
  101. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
  102. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +3 -0
  103. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
  104. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +3 -0
  105. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
  106. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +3 -0
  107. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
  108. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +3 -0
  109. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
  110. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +3 -0
  111. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
  112. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +3 -0
  113. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  114. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  115. package/dist/api/resources/serviceFacility/index.d.ts +0 -1
  116. package/dist/api/resources/serviceFacility/index.js +0 -1
  117. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
  118. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +3 -0
  119. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  120. package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  121. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
  122. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +3 -0
  123. package/dist/api/resources/x12/resources/v1/types/index.d.ts +1 -0
  124. package/dist/api/resources/x12/resources/v1/types/index.js +1 -0
  125. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  126. package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  127. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
  128. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
  129. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
  130. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
  131. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
  132. package/dist/serialization/resources/encounters/resources/v4/client/index.js +4 -1
  133. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
  134. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
  135. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
  136. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
  137. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
  138. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
  139. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
  140. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
  141. package/dist/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
  142. package/dist/serialization/resources/encountersUniversal/types/index.js +3 -0
  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/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +47 -0
  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/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +49 -0
  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/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
  174. package/dist/{api/resources/serviceFacility/client/index.js → serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js} +11 -2
  175. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  176. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
  177. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
  178. package/{api/resources/serviceFacility/client/update.js → dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js} +14 -19
  179. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
  180. package/dist/serialization/resources/x12/resources/v1/types/index.js +1 -0
  181. package/dist/version.d.ts +1 -1
  182. package/dist/version.js +1 -1
  183. package/package.json +1 -1
  184. package/reference.md +236 -58
  185. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  186. package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  187. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
  188. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
  189. package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
  190. package/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
  191. package/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
  192. package/serialization/resources/encounters/resources/v4/client/index.js +4 -1
  193. package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
  194. package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
  195. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
  196. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
  197. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
  198. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
  199. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
  200. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
  201. package/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
  202. package/serialization/resources/encountersUniversal/types/index.js +3 -0
  203. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +13 -0
  204. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +47 -0
  205. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +13 -0
  206. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +47 -0
  207. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +13 -0
  208. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +47 -0
  209. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +15 -0
  210. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +49 -0
  211. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +34 -0
  212. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +66 -0
  213. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
  214. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +49 -0
  215. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +15 -0
  216. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +49 -0
  217. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +15 -0
  218. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +49 -0
  219. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
  220. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +49 -0
  221. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +13 -0
  222. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +47 -0
  223. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +15 -0
  224. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +49 -0
  225. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
  226. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +49 -0
  227. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +13 -0
  228. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +47 -0
  229. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +15 -0
  230. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +49 -0
  231. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
  232. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
  233. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
  234. package/{api/resources/serviceFacility/client/index.js → serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js} +11 -2
  235. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  236. package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
  237. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
  238. package/{dist/api/resources/serviceFacility/client/update.js → serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js} +14 -19
  239. package/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
  240. package/serialization/resources/x12/resources/v1/types/index.js +1 -0
  241. package/version.d.ts +1 -1
  242. package/version.js +1 -1
  243. package/api/resources/serviceFacility/client/Client.d.ts +0 -25
  244. package/api/resources/serviceFacility/client/Client.js +0 -119
  245. package/api/resources/serviceFacility/client/index.d.ts +0 -1
  246. package/api/resources/serviceFacility/client/update.d.ts +0 -19
  247. package/dist/api/resources/serviceFacility/client/Client.d.ts +0 -25
  248. package/dist/api/resources/serviceFacility/client/Client.js +0 -119
  249. package/dist/api/resources/serviceFacility/client/index.d.ts +0 -1
  250. package/dist/api/resources/serviceFacility/client/update.d.ts +0 -19
@@ -1,119 +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.ServiceFacility = 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 ServiceFacility {
53
- constructor(_options = {}) {
54
- this._options = _options;
55
- }
56
- /**
57
- * @param {CandidApi.ServiceFacilityId} serviceFacilityId
58
- * @param {CandidApi.EncounterServiceFacilityUpdate} request
59
- * @param {ServiceFacility.RequestOptions} requestOptions - Request-specific configuration.
60
- *
61
- * @example
62
- * await client.serviceFacility.update(CandidApi.ServiceFacilityId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
63
- */
64
- update(serviceFacilityId, request, requestOptions) {
65
- return core.HttpResponsePromise.fromPromise(this.__update(serviceFacilityId, request, requestOptions));
66
- }
67
- __update(serviceFacilityId, request, requestOptions) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- var _a, _b, _c, _d, _e, _f, _g, _h;
70
- 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);
71
- const _response = yield core.fetcher({
72
- 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/service_facility/v2/${core.url.encodePathParam(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
73
- method: "PATCH",
74
- headers: _headers,
75
- contentType: "application/json",
76
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
77
- requestType: "json",
78
- body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
79
- 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,
80
- 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,
81
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
82
- });
83
- if (_response.ok) {
84
- return {
85
- data: {
86
- ok: true,
87
- body: serializers.EncounterServiceFacility.parseOrThrow(_response.body, {
88
- unrecognizedObjectKeys: "passthrough",
89
- allowUnrecognizedUnionMembers: true,
90
- allowUnrecognizedEnumValues: true,
91
- breadcrumbsPrefix: ["response"],
92
- }),
93
- headers: _response.headers,
94
- rawResponse: _response.rawResponse,
95
- },
96
- rawResponse: _response.rawResponse,
97
- };
98
- }
99
- return {
100
- data: {
101
- ok: false,
102
- error: CandidApi.serviceFacility.update.Error._unknown(_response.error),
103
- rawResponse: _response.rawResponse,
104
- },
105
- rawResponse: _response.rawResponse,
106
- };
107
- });
108
- }
109
- _getAuthorizationHeader() {
110
- return __awaiter(this, void 0, void 0, function* () {
111
- const bearer = yield core.Supplier.get(this._options.token);
112
- if (bearer != null) {
113
- return `Bearer ${bearer}`;
114
- }
115
- return undefined;
116
- });
117
- }
118
- }
119
- exports.ServiceFacility = ServiceFacility;
@@ -1 +0,0 @@
1
- export * as update from "./update";
@@ -1,19 +0,0 @@
1
- import type * as core from "../../../../core";
2
- import * as CandidApi from "../../../index";
3
- export type Error = CandidApi.serviceFacility.update.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.serviceFacility.update.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.serviceFacility.update.Error._Unknown;
18
- readonly _visit: <_Result>(value: CandidApi.serviceFacility.update.Error, visitor: CandidApi.serviceFacility.update.Error._Visitor<_Result>) => _Result;
19
- };
@@ -1,25 +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 ServiceFacility {
5
- interface Options extends BaseClientOptions {
6
- token?: core.Supplier<core.BearerToken | undefined>;
7
- }
8
- interface RequestOptions extends BaseRequestOptions {
9
- }
10
- }
11
- export declare class ServiceFacility {
12
- protected readonly _options: ServiceFacility.Options;
13
- constructor(_options?: ServiceFacility.Options);
14
- /**
15
- * @param {CandidApi.ServiceFacilityId} serviceFacilityId
16
- * @param {CandidApi.EncounterServiceFacilityUpdate} request
17
- * @param {ServiceFacility.RequestOptions} requestOptions - Request-specific configuration.
18
- *
19
- * @example
20
- * await client.serviceFacility.update(CandidApi.ServiceFacilityId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
21
- */
22
- update(serviceFacilityId: CandidApi.ServiceFacilityId, request: CandidApi.EncounterServiceFacilityUpdate, requestOptions?: ServiceFacility.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.EncounterServiceFacility, CandidApi.serviceFacility.update.Error>>;
23
- private __update;
24
- protected _getAuthorizationHeader(): Promise<string | undefined>;
25
- }
@@ -1,119 +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.ServiceFacility = 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 ServiceFacility {
53
- constructor(_options = {}) {
54
- this._options = _options;
55
- }
56
- /**
57
- * @param {CandidApi.ServiceFacilityId} serviceFacilityId
58
- * @param {CandidApi.EncounterServiceFacilityUpdate} request
59
- * @param {ServiceFacility.RequestOptions} requestOptions - Request-specific configuration.
60
- *
61
- * @example
62
- * await client.serviceFacility.update(CandidApi.ServiceFacilityId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
63
- */
64
- update(serviceFacilityId, request, requestOptions) {
65
- return core.HttpResponsePromise.fromPromise(this.__update(serviceFacilityId, request, requestOptions));
66
- }
67
- __update(serviceFacilityId, request, requestOptions) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- var _a, _b, _c, _d, _e, _f, _g, _h;
70
- 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);
71
- const _response = yield core.fetcher({
72
- 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/service_facility/v2/${core.url.encodePathParam(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
73
- method: "PATCH",
74
- headers: _headers,
75
- contentType: "application/json",
76
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
77
- requestType: "json",
78
- body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
79
- 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,
80
- 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,
81
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
82
- });
83
- if (_response.ok) {
84
- return {
85
- data: {
86
- ok: true,
87
- body: serializers.EncounterServiceFacility.parseOrThrow(_response.body, {
88
- unrecognizedObjectKeys: "passthrough",
89
- allowUnrecognizedUnionMembers: true,
90
- allowUnrecognizedEnumValues: true,
91
- breadcrumbsPrefix: ["response"],
92
- }),
93
- headers: _response.headers,
94
- rawResponse: _response.rawResponse,
95
- },
96
- rawResponse: _response.rawResponse,
97
- };
98
- }
99
- return {
100
- data: {
101
- ok: false,
102
- error: CandidApi.serviceFacility.update.Error._unknown(_response.error),
103
- rawResponse: _response.rawResponse,
104
- },
105
- rawResponse: _response.rawResponse,
106
- };
107
- });
108
- }
109
- _getAuthorizationHeader() {
110
- return __awaiter(this, void 0, void 0, function* () {
111
- const bearer = yield core.Supplier.get(this._options.token);
112
- if (bearer != null) {
113
- return `Bearer ${bearer}`;
114
- }
115
- return undefined;
116
- });
117
- }
118
- }
119
- exports.ServiceFacility = ServiceFacility;
@@ -1 +0,0 @@
1
- export * as update from "./update";
@@ -1,19 +0,0 @@
1
- import type * as core from "../../../../core";
2
- import * as CandidApi from "../../../index";
3
- export type Error = CandidApi.serviceFacility.update.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.serviceFacility.update.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.serviceFacility.update.Error._Unknown;
18
- readonly _visit: <_Result>(value: CandidApi.serviceFacility.update.Error, visitor: CandidApi.serviceFacility.update.Error._Visitor<_Result>) => _Result;
19
- };