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
@@ -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
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UniversalEncounterCreate = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const FacilityTypeCode_1 = require("../../commons/types/FacilityTypeCode");
40
+ const State_1 = require("../../commons/types/State");
41
+ const BillingProvider_1 = require("../../encounterProviders/resources/v2/types/BillingProvider");
42
+ const RenderingProvider_1 = require("../../encounterProviders/resources/v2/types/RenderingProvider");
43
+ const EncounterSubmissionExpectation_1 = require("../../encounters/resources/v4/types/EncounterSubmissionExpectation");
44
+ const HealthCareCodeInformationCreate_1 = require("../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate");
45
+ const UniversalServiceLineCreate_1 = require("../../serviceLines/resources/v2/types/UniversalServiceLineCreate");
46
+ const PatientDischargeStatusCode_1 = require("../../x12/resources/v1/types/PatientDischargeStatusCode");
47
+ const PointOfOriginForAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode");
48
+ const TypeOfAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode");
49
+ const TypeOfBillCompositeUpdate_1 = require("../../x12/resources/v1/types/TypeOfBillCompositeUpdate");
50
+ const UniversalEncounterCreateBase_1 = require("./UniversalEncounterCreateBase");
51
+ exports.UniversalEncounterCreate = core.serialization
52
+ .object({
53
+ billingProvider: core.serialization.property("billing_provider", BillingProvider_1.BillingProvider),
54
+ placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
55
+ renderingProvider: core.serialization.property("rendering_provider", RenderingProvider_1.RenderingProvider.optional()),
56
+ serviceLines: core.serialization.property("service_lines", core.serialization.list(UniversalServiceLineCreate_1.UniversalServiceLineCreate).optional()),
57
+ healthCareCodeInformation: core.serialization.property("health_care_code_information", HealthCareCodeInformationCreate_1.HealthCareCodeInformationCreate.optional()),
58
+ submissionExpectation: core.serialization.property("submission_expectation", EncounterSubmissionExpectation_1.EncounterSubmissionExpectation),
59
+ attendingProvider: core.serialization.property("attending_provider", RenderingProvider_1.RenderingProvider.optional()),
60
+ admissionHour: core.serialization.property("admission_hour", core.serialization.number().optional()),
61
+ admissionTypeCode: core.serialization.property("admission_type_code", TypeOfAdmissionOrVisitCode_1.TypeOfAdmissionOrVisitCode.optional()),
62
+ admissionSourceCode: core.serialization.property("admission_source_code", PointOfOriginForAdmissionOrVisitCode_1.PointOfOriginForAdmissionOrVisitCode.optional()),
63
+ dischargeHour: core.serialization.property("discharge_hour", core.serialization.number().optional()),
64
+ dischargeStatus: core.serialization.property("discharge_status", PatientDischargeStatusCode_1.PatientDischargeStatusCode.optional()),
65
+ operatingProvider: core.serialization.property("operating_provider", RenderingProvider_1.RenderingProvider.optional()),
66
+ otherOperatingProvider: core.serialization.property("other_operating_provider", RenderingProvider_1.RenderingProvider.optional()),
67
+ typeOfBill: core.serialization.property("type_of_bill", TypeOfBillCompositeUpdate_1.TypeOfBillCompositeUpdate.optional()),
68
+ accidentStateOrProvinceCode: core.serialization.property("accident_state_or_province_code", State_1.State.optional()),
69
+ })
70
+ .extend(UniversalEncounterCreateBase_1.UniversalEncounterCreateBase);
@@ -0,0 +1,34 @@
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 { RenderingProvider } from "../../encounterProviders/resources/v2/types/RenderingProvider";
7
+ import { EncounterSubmissionExpectation } from "../../encounters/resources/v4/types/EncounterSubmissionExpectation";
8
+ import { HealthCareCodeInformationCreate } from "../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate";
9
+ import { UniversalServiceLineCreate } from "../../serviceLines/resources/v2/types/UniversalServiceLineCreate";
10
+ import { PatientDischargeStatusCode } from "../../x12/resources/v1/types/PatientDischargeStatusCode";
11
+ import { PointOfOriginForAdmissionOrVisitCode } from "../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode";
12
+ import { TypeOfAdmissionOrVisitCode } from "../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode";
13
+ import { TypeOfBillCompositeUpdate } from "../../x12/resources/v1/types/TypeOfBillCompositeUpdate";
14
+ import { UniversalEncounterCreateFromPreEncounterBase } from "./UniversalEncounterCreateFromPreEncounterBase";
15
+ export declare const UniversalEncounterCreateFromPreEncounter: core.serialization.ObjectSchema<serializers.encountersUniversal.UniversalEncounterCreateFromPreEncounter.Raw, CandidApi.encountersUniversal.UniversalEncounterCreateFromPreEncounter>;
16
+ export declare namespace UniversalEncounterCreateFromPreEncounter {
17
+ interface Raw extends UniversalEncounterCreateFromPreEncounterBase.Raw {
18
+ submission_expectation: EncounterSubmissionExpectation.Raw;
19
+ rendering_provider?: RenderingProvider.Raw | null;
20
+ health_care_code_information?: HealthCareCodeInformationCreate.Raw | null;
21
+ place_of_service_code?: FacilityTypeCode.Raw | null;
22
+ service_lines?: UniversalServiceLineCreate.Raw[] | null;
23
+ attending_provider?: RenderingProvider.Raw | null;
24
+ admission_hour?: number | null;
25
+ admission_type_code?: TypeOfAdmissionOrVisitCode.Raw | null;
26
+ admission_source_code?: PointOfOriginForAdmissionOrVisitCode.Raw | null;
27
+ discharge_hour?: number | null;
28
+ discharge_status?: PatientDischargeStatusCode.Raw | null;
29
+ operating_provider?: RenderingProvider.Raw | null;
30
+ other_operating_provider?: RenderingProvider.Raw | null;
31
+ type_of_bill?: TypeOfBillCompositeUpdate.Raw | null;
32
+ accident_state_or_province_code?: State.Raw | null;
33
+ }
34
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UniversalEncounterCreateFromPreEncounter = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const FacilityTypeCode_1 = require("../../commons/types/FacilityTypeCode");
40
+ const State_1 = require("../../commons/types/State");
41
+ const RenderingProvider_1 = require("../../encounterProviders/resources/v2/types/RenderingProvider");
42
+ const EncounterSubmissionExpectation_1 = require("../../encounters/resources/v4/types/EncounterSubmissionExpectation");
43
+ const HealthCareCodeInformationCreate_1 = require("../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate");
44
+ const UniversalServiceLineCreate_1 = require("../../serviceLines/resources/v2/types/UniversalServiceLineCreate");
45
+ const PatientDischargeStatusCode_1 = require("../../x12/resources/v1/types/PatientDischargeStatusCode");
46
+ const PointOfOriginForAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode");
47
+ const TypeOfAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode");
48
+ const TypeOfBillCompositeUpdate_1 = require("../../x12/resources/v1/types/TypeOfBillCompositeUpdate");
49
+ const UniversalEncounterCreateFromPreEncounterBase_1 = require("./UniversalEncounterCreateFromPreEncounterBase");
50
+ exports.UniversalEncounterCreateFromPreEncounter = core.serialization
51
+ .object({
52
+ submissionExpectation: core.serialization.property("submission_expectation", EncounterSubmissionExpectation_1.EncounterSubmissionExpectation),
53
+ renderingProvider: core.serialization.property("rendering_provider", RenderingProvider_1.RenderingProvider.optional()),
54
+ healthCareCodeInformation: core.serialization.property("health_care_code_information", HealthCareCodeInformationCreate_1.HealthCareCodeInformationCreate.optional()),
55
+ placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
56
+ serviceLines: core.serialization.property("service_lines", core.serialization.list(UniversalServiceLineCreate_1.UniversalServiceLineCreate).optional()),
57
+ attendingProvider: core.serialization.property("attending_provider", RenderingProvider_1.RenderingProvider.optional()),
58
+ admissionHour: core.serialization.property("admission_hour", core.serialization.number().optional()),
59
+ admissionTypeCode: core.serialization.property("admission_type_code", TypeOfAdmissionOrVisitCode_1.TypeOfAdmissionOrVisitCode.optional()),
60
+ admissionSourceCode: core.serialization.property("admission_source_code", PointOfOriginForAdmissionOrVisitCode_1.PointOfOriginForAdmissionOrVisitCode.optional()),
61
+ dischargeHour: core.serialization.property("discharge_hour", core.serialization.number().optional()),
62
+ dischargeStatus: core.serialization.property("discharge_status", PatientDischargeStatusCode_1.PatientDischargeStatusCode.optional()),
63
+ operatingProvider: core.serialization.property("operating_provider", RenderingProvider_1.RenderingProvider.optional()),
64
+ otherOperatingProvider: core.serialization.property("other_operating_provider", RenderingProvider_1.RenderingProvider.optional()),
65
+ typeOfBill: core.serialization.property("type_of_bill", TypeOfBillCompositeUpdate_1.TypeOfBillCompositeUpdate.optional()),
66
+ accidentStateOrProvinceCode: core.serialization.property("accident_state_or_province_code", State_1.State.optional()),
67
+ })
68
+ .extend(UniversalEncounterCreateFromPreEncounterBase_1.UniversalEncounterCreateFromPreEncounterBase);
@@ -0,0 +1,29 @@
1
+ import type * as CandidApi from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { State } from "../../commons/types/State";
5
+ import { RenderingProviderUpdate } from "../../encounterProviders/resources/v2/types/RenderingProviderUpdate";
6
+ import { EncounterSubmissionExpectation } from "../../encounters/resources/v4/types/EncounterSubmissionExpectation";
7
+ import { HealthCareCodeInformationUpdate } from "../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate";
8
+ import { PatientDischargeStatusCode } from "../../x12/resources/v1/types/PatientDischargeStatusCode";
9
+ import { PointOfOriginForAdmissionOrVisitCode } from "../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode";
10
+ import { TypeOfAdmissionOrVisitCode } from "../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode";
11
+ import { TypeOfBillCompositeUpdate } from "../../x12/resources/v1/types/TypeOfBillCompositeUpdate";
12
+ import { UniversalEncounterUpdateBase } from "./UniversalEncounterUpdateBase";
13
+ export declare const UniversalEncounterUpdate: core.serialization.ObjectSchema<serializers.encountersUniversal.UniversalEncounterUpdate.Raw, CandidApi.encountersUniversal.UniversalEncounterUpdate>;
14
+ export declare namespace UniversalEncounterUpdate {
15
+ interface Raw extends UniversalEncounterUpdateBase.Raw {
16
+ health_care_code_information?: HealthCareCodeInformationUpdate.Raw | null;
17
+ attending_provider?: RenderingProviderUpdate.Raw | null;
18
+ admission_hour?: number | null;
19
+ admission_type_code?: TypeOfAdmissionOrVisitCode.Raw | null;
20
+ admission_source_code?: PointOfOriginForAdmissionOrVisitCode.Raw | null;
21
+ discharge_hour?: number | null;
22
+ discharge_status?: PatientDischargeStatusCode.Raw | null;
23
+ operating_provider?: RenderingProviderUpdate.Raw | null;
24
+ other_operating_provider?: RenderingProviderUpdate.Raw | null;
25
+ type_of_bill?: TypeOfBillCompositeUpdate.Raw | null;
26
+ accident_state_or_province_code?: State.Raw | null;
27
+ submission_expectation?: EncounterSubmissionExpectation.Raw | null;
28
+ }
29
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UniversalEncounterUpdate = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const State_1 = require("../../commons/types/State");
40
+ const RenderingProviderUpdate_1 = require("../../encounterProviders/resources/v2/types/RenderingProviderUpdate");
41
+ const EncounterSubmissionExpectation_1 = require("../../encounters/resources/v4/types/EncounterSubmissionExpectation");
42
+ const HealthCareCodeInformationUpdate_1 = require("../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate");
43
+ const PatientDischargeStatusCode_1 = require("../../x12/resources/v1/types/PatientDischargeStatusCode");
44
+ const PointOfOriginForAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode");
45
+ const TypeOfAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode");
46
+ const TypeOfBillCompositeUpdate_1 = require("../../x12/resources/v1/types/TypeOfBillCompositeUpdate");
47
+ const UniversalEncounterUpdateBase_1 = require("./UniversalEncounterUpdateBase");
48
+ exports.UniversalEncounterUpdate = core.serialization
49
+ .object({
50
+ healthCareCodeInformation: core.serialization.property("health_care_code_information", HealthCareCodeInformationUpdate_1.HealthCareCodeInformationUpdate.optional()),
51
+ attendingProvider: core.serialization.property("attending_provider", RenderingProviderUpdate_1.RenderingProviderUpdate.optional()),
52
+ admissionHour: core.serialization.property("admission_hour", core.serialization.number().optional()),
53
+ admissionTypeCode: core.serialization.property("admission_type_code", TypeOfAdmissionOrVisitCode_1.TypeOfAdmissionOrVisitCode.optional()),
54
+ admissionSourceCode: core.serialization.property("admission_source_code", PointOfOriginForAdmissionOrVisitCode_1.PointOfOriginForAdmissionOrVisitCode.optional()),
55
+ dischargeHour: core.serialization.property("discharge_hour", core.serialization.number().optional()),
56
+ dischargeStatus: core.serialization.property("discharge_status", PatientDischargeStatusCode_1.PatientDischargeStatusCode.optional()),
57
+ operatingProvider: core.serialization.property("operating_provider", RenderingProviderUpdate_1.RenderingProviderUpdate.optional()),
58
+ otherOperatingProvider: core.serialization.property("other_operating_provider", RenderingProviderUpdate_1.RenderingProviderUpdate.optional()),
59
+ typeOfBill: core.serialization.property("type_of_bill", TypeOfBillCompositeUpdate_1.TypeOfBillCompositeUpdate.optional()),
60
+ accidentStateOrProvinceCode: core.serialization.property("accident_state_or_province_code", State_1.State.optional()),
61
+ submissionExpectation: core.serialization.property("submission_expectation", EncounterSubmissionExpectation_1.EncounterSubmissionExpectation.optional()),
62
+ })
63
+ .extend(UniversalEncounterUpdateBase_1.UniversalEncounterUpdateBase);
@@ -1,3 +1,6 @@
1
+ export * from "./UniversalEncounterCreate";
1
2
  export * from "./UniversalEncounterCreateBase";
3
+ export * from "./UniversalEncounterCreateFromPreEncounter";
2
4
  export * from "./UniversalEncounterCreateFromPreEncounterBase";
5
+ export * from "./UniversalEncounterUpdate";
3
6
  export * from "./UniversalEncounterUpdateBase";
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./UniversalEncounterCreate"), exports);
17
18
  __exportStar(require("./UniversalEncounterCreateBase"), exports);
19
+ __exportStar(require("./UniversalEncounterCreateFromPreEncounter"), exports);
18
20
  __exportStar(require("./UniversalEncounterCreateFromPreEncounterBase"), exports);
21
+ __exportStar(require("./UniversalEncounterUpdate"), exports);
19
22
  __exportStar(require("./UniversalEncounterUpdateBase"), exports);
@@ -0,0 +1,13 @@
1
+ import type * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { AdmittingDiagnosisCodeQualifier } from "./AdmittingDiagnosisCodeQualifier";
5
+ import { HealthCareCodeInformationNew } from "./HealthCareCodeInformationNew";
6
+ import { IcdCode } from "./IcdCode";
7
+ export declare const AdmittingDiagnosisNew: core.serialization.ObjectSchema<serializers.healthCareCodeInformation.v1.AdmittingDiagnosisNew.Raw, CandidApi.healthCareCodeInformation.v1.AdmittingDiagnosisNew>;
8
+ export declare namespace AdmittingDiagnosisNew {
9
+ interface Raw extends HealthCareCodeInformationNew.Raw {
10
+ admitting_diagnosis_code_qualifier: AdmittingDiagnosisCodeQualifier.Raw;
11
+ admitting_diagnosis_code: IcdCode.Raw;
12
+ }
13
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.AdmittingDiagnosisNew = void 0;
38
+ const core = __importStar(require("../../../../../../core"));
39
+ const AdmittingDiagnosisCodeQualifier_1 = require("./AdmittingDiagnosisCodeQualifier");
40
+ const HealthCareCodeInformationNew_1 = require("./HealthCareCodeInformationNew");
41
+ const IcdCode_1 = require("./IcdCode");
42
+ exports.AdmittingDiagnosisNew = core.serialization
43
+ .object({
44
+ admittingDiagnosisCodeQualifier: core.serialization.property("admitting_diagnosis_code_qualifier", AdmittingDiagnosisCodeQualifier_1.AdmittingDiagnosisCodeQualifier),
45
+ admittingDiagnosisCode: core.serialization.property("admitting_diagnosis_code", IcdCode_1.IcdCode),
46
+ })
47
+ .extend(HealthCareCodeInformationNew_1.HealthCareCodeInformationNew);
@@ -0,0 +1,13 @@
1
+ import type * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { ConditionCode } from "./ConditionCode";
5
+ import { ConditionInformationCodeQualifier } from "./ConditionInformationCodeQualifier";
6
+ import { HealthCareCodeInformationNew } from "./HealthCareCodeInformationNew";
7
+ export declare const ConditionInformationNew: core.serialization.ObjectSchema<serializers.healthCareCodeInformation.v1.ConditionInformationNew.Raw, CandidApi.healthCareCodeInformation.v1.ConditionInformationNew>;
8
+ export declare namespace ConditionInformationNew {
9
+ interface Raw extends HealthCareCodeInformationNew.Raw {
10
+ condition_code_qualifier: ConditionInformationCodeQualifier.Raw;
11
+ condition_code: ConditionCode.Raw;
12
+ }
13
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ConditionInformationNew = void 0;
38
+ const core = __importStar(require("../../../../../../core"));
39
+ const ConditionCode_1 = require("./ConditionCode");
40
+ const ConditionInformationCodeQualifier_1 = require("./ConditionInformationCodeQualifier");
41
+ const HealthCareCodeInformationNew_1 = require("./HealthCareCodeInformationNew");
42
+ exports.ConditionInformationNew = core.serialization
43
+ .object({
44
+ conditionCodeQualifier: core.serialization.property("condition_code_qualifier", ConditionInformationCodeQualifier_1.ConditionInformationCodeQualifier),
45
+ conditionCode: core.serialization.property("condition_code", ConditionCode_1.ConditionCode),
46
+ })
47
+ .extend(HealthCareCodeInformationNew_1.HealthCareCodeInformationNew);
@@ -0,0 +1,13 @@
1
+ import type * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { DiagnosisRelatedGroupCodeQualifier } from "./DiagnosisRelatedGroupCodeQualifier";
5
+ import { HealthCareCodeInformationNew } from "./HealthCareCodeInformationNew";
6
+ import { MsdrgCode } from "./MsdrgCode";
7
+ export declare const DiagnosisRelatedGroupNew: core.serialization.ObjectSchema<serializers.healthCareCodeInformation.v1.DiagnosisRelatedGroupNew.Raw, CandidApi.healthCareCodeInformation.v1.DiagnosisRelatedGroupNew>;
8
+ export declare namespace DiagnosisRelatedGroupNew {
9
+ interface Raw extends HealthCareCodeInformationNew.Raw {
10
+ diagnosis_related_group_code_qualifier: DiagnosisRelatedGroupCodeQualifier.Raw;
11
+ diagnosis_related_group_code: MsdrgCode.Raw;
12
+ }
13
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.DiagnosisRelatedGroupNew = void 0;
38
+ const core = __importStar(require("../../../../../../core"));
39
+ const DiagnosisRelatedGroupCodeQualifier_1 = require("./DiagnosisRelatedGroupCodeQualifier");
40
+ const HealthCareCodeInformationNew_1 = require("./HealthCareCodeInformationNew");
41
+ const MsdrgCode_1 = require("./MsdrgCode");
42
+ exports.DiagnosisRelatedGroupNew = core.serialization
43
+ .object({
44
+ diagnosisRelatedGroupCodeQualifier: core.serialization.property("diagnosis_related_group_code_qualifier", DiagnosisRelatedGroupCodeQualifier_1.DiagnosisRelatedGroupCodeQualifier),
45
+ diagnosisRelatedGroupCode: core.serialization.property("diagnosis_related_group_code", MsdrgCode_1.MsdrgCode),
46
+ })
47
+ .extend(HealthCareCodeInformationNew_1.HealthCareCodeInformationNew);