candidhealth 1.12.1 → 1.13.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 (346) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +63 -58
  3. package/api/resources/commons/types/index.d.ts +2 -0
  4. package/api/resources/commons/types/index.js +2 -0
  5. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +12 -1
  6. package/api/resources/encounterAttachments/resources/v1/client/Client.js +64 -1
  7. package/api/resources/encounterAttachments/resources/v1/client/createWithDescription.d.ts +19 -0
  8. package/api/resources/encounterAttachments/resources/v1/client/createWithDescription.js +55 -0
  9. package/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -0
  10. package/api/resources/encounterAttachments/resources/v1/client/index.js +2 -1
  11. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.d.ts +5 -0
  12. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.js +3 -0
  13. package/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
  14. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +2 -0
  15. package/api/resources/encounterSupplementalInformation/client/Client.d.ts +14 -0
  16. package/api/resources/encounterSupplementalInformation/client/Client.js +15 -0
  17. package/api/resources/encounterSupplementalInformation/client/index.d.ts +1 -0
  18. package/api/resources/encounterSupplementalInformation/client/index.js +2 -0
  19. package/api/resources/encounterSupplementalInformation/index.d.ts +2 -0
  20. package/api/resources/encounterSupplementalInformation/index.js +18 -0
  21. package/api/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  22. package/api/resources/encounterSupplementalInformation/resources/index.js +37 -0
  23. package/api/resources/encounterSupplementalInformation/resources/v1/client/Client.d.ts +59 -0
  24. package/api/resources/encounterSupplementalInformation/resources/v1/client/Client.js +328 -0
  25. package/api/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +25 -0
  26. package/api/resources/encounterSupplementalInformation/resources/v1/client/create.js +66 -0
  27. package/api/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +25 -0
  28. package/api/resources/encounterSupplementalInformation/resources/v1/client/delete.js +66 -0
  29. package/api/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +19 -0
  30. package/api/resources/encounterSupplementalInformation/resources/v1/client/get.js +55 -0
  31. package/api/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  32. package/api/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  33. package/api/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +25 -0
  34. package/api/resources/encounterSupplementalInformation/resources/v1/client/update.js +66 -0
  35. package/api/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  36. package/api/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  37. package/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +6 -0
  38. package/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +9 -0
  39. package/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +8 -0
  40. package/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +3 -0
  41. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +10 -0
  42. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +3 -0
  43. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +5 -0
  44. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +7 -0
  45. package/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +8 -0
  46. package/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +3 -0
  47. package/api/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  48. package/api/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  49. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  50. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  51. package/api/resources/encounters/resources/v4/types/index.d.ts +0 -2
  52. package/api/resources/encounters/resources/v4/types/index.js +0 -2
  53. package/api/resources/index.d.ts +2 -0
  54. package/api/resources/index.js +4 -2
  55. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
  56. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
  57. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
  58. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -1
  59. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -2
  60. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +6 -3
  61. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -0
  62. package/api/resources/users/index.d.ts +1 -0
  63. package/api/resources/users/index.js +17 -0
  64. package/api/resources/users/resources/index.d.ts +1 -0
  65. package/api/resources/users/resources/index.js +37 -0
  66. package/api/resources/users/resources/v2/index.d.ts +1 -0
  67. package/api/resources/users/resources/v2/index.js +17 -0
  68. package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  69. package/api/resources/users/resources/v2/types/AuthZeroMetadata.js +3 -0
  70. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +3 -0
  71. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +3 -0
  72. package/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  73. package/api/resources/users/resources/v2/types/HumanUserMetadata.js +3 -0
  74. package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +20 -0
  75. package/api/resources/users/resources/v2/types/IdpUserMetadata.js +3 -0
  76. package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +3 -0
  77. package/api/resources/users/resources/v2/types/MachineUserMetadata.js +3 -0
  78. package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +3 -0
  79. package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +3 -0
  80. package/api/resources/users/resources/v2/types/UserMetadata.d.ts +19 -0
  81. package/api/resources/users/resources/v2/types/UserMetadata.js +3 -0
  82. package/api/resources/users/resources/v2/types/UserV2.d.ts +24 -0
  83. package/api/resources/users/resources/v2/types/UserV2.js +3 -0
  84. package/api/resources/users/resources/v2/types/index.d.ts +8 -0
  85. package/api/resources/users/resources/v2/types/index.js +24 -0
  86. package/api/resources/x12/resources/v1/types/Carc.d.ts +1 -0
  87. package/api/resources/x12/resources/v1/types/Carc.js +1 -0
  88. package/dist/Client.d.ts +3 -0
  89. package/dist/Client.js +63 -58
  90. package/dist/api/resources/commons/types/index.d.ts +2 -0
  91. package/dist/api/resources/commons/types/index.js +2 -0
  92. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +12 -1
  93. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +64 -1
  94. package/dist/api/resources/encounterAttachments/resources/v1/client/createWithDescription.d.ts +19 -0
  95. package/dist/api/resources/encounterAttachments/resources/v1/client/createWithDescription.js +55 -0
  96. package/dist/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -0
  97. package/dist/api/resources/encounterAttachments/resources/v1/client/index.js +2 -1
  98. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.d.ts +5 -0
  99. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.js +3 -0
  100. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
  101. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +2 -0
  102. package/dist/api/resources/encounterSupplementalInformation/client/Client.d.ts +14 -0
  103. package/dist/api/resources/encounterSupplementalInformation/client/Client.js +15 -0
  104. package/dist/api/resources/encounterSupplementalInformation/client/index.d.ts +1 -0
  105. package/dist/api/resources/encounterSupplementalInformation/client/index.js +2 -0
  106. package/dist/api/resources/encounterSupplementalInformation/index.d.ts +2 -0
  107. package/dist/api/resources/encounterSupplementalInformation/index.js +18 -0
  108. package/dist/api/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  109. package/dist/api/resources/encounterSupplementalInformation/resources/index.js +37 -0
  110. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/Client.d.ts +59 -0
  111. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/Client.js +328 -0
  112. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +25 -0
  113. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/create.js +66 -0
  114. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +25 -0
  115. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/delete.js +66 -0
  116. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +19 -0
  117. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/get.js +55 -0
  118. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  119. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  120. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +25 -0
  121. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/update.js +66 -0
  122. package/dist/api/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  123. package/dist/api/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  124. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +6 -0
  125. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +9 -0
  126. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +8 -0
  127. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +3 -0
  128. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +10 -0
  129. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +3 -0
  130. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +5 -0
  131. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +7 -0
  132. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +8 -0
  133. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +3 -0
  134. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  135. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  136. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  137. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  138. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +0 -2
  139. package/dist/api/resources/encounters/resources/v4/types/index.js +0 -2
  140. package/dist/api/resources/index.d.ts +2 -0
  141. package/dist/api/resources/index.js +4 -2
  142. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
  143. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
  144. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
  145. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -1
  146. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -2
  147. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +6 -3
  148. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -0
  149. package/dist/api/resources/users/index.d.ts +1 -0
  150. package/dist/api/resources/users/index.js +17 -0
  151. package/dist/api/resources/users/resources/index.d.ts +1 -0
  152. package/dist/api/resources/users/resources/index.js +37 -0
  153. package/dist/api/resources/users/resources/v2/index.d.ts +1 -0
  154. package/dist/api/resources/users/resources/v2/index.js +17 -0
  155. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  156. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +3 -0
  157. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +3 -0
  158. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +3 -0
  159. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  160. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +3 -0
  161. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +20 -0
  162. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +3 -0
  163. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +3 -0
  164. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +3 -0
  165. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +3 -0
  166. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +3 -0
  167. package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +19 -0
  168. package/dist/api/resources/users/resources/v2/types/UserMetadata.js +3 -0
  169. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +24 -0
  170. package/dist/api/resources/users/resources/v2/types/UserV2.js +3 -0
  171. package/dist/api/resources/users/resources/v2/types/index.d.ts +8 -0
  172. package/dist/api/resources/users/resources/v2/types/index.js +24 -0
  173. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +1 -0
  174. package/dist/api/resources/x12/resources/v1/types/Carc.js +1 -0
  175. package/dist/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
  176. package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTransmissionCode.js +1 -1
  177. package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
  178. package/dist/serialization/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +1 -1
  179. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  180. package/dist/serialization/resources/commons/types/index.js +2 -0
  181. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +3 -0
  182. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +3 -0
  183. package/dist/serialization/resources/encounterSupplementalInformation/index.d.ts +1 -0
  184. package/dist/serialization/resources/encounterSupplementalInformation/index.js +17 -0
  185. package/dist/serialization/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  186. package/dist/serialization/resources/encounterSupplementalInformation/resources/index.js +37 -0
  187. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +12 -0
  188. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.js +69 -0
  189. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +12 -0
  190. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.js +69 -0
  191. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +8 -0
  192. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.js +40 -0
  193. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  194. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  195. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +12 -0
  196. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.js +69 -0
  197. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  198. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  199. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +7 -0
  200. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +39 -0
  201. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +17 -0
  202. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +49 -0
  203. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +21 -0
  204. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +53 -0
  205. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +7 -0
  206. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +43 -0
  207. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +17 -0
  208. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +49 -0
  209. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  210. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  211. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  212. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +2 -2
  213. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  214. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +2 -2
  215. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -2
  216. package/dist/serialization/resources/encounters/resources/v4/types/index.js +0 -2
  217. package/dist/serialization/resources/index.d.ts +2 -0
  218. package/dist/serialization/resources/index.js +4 -2
  219. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  220. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  221. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  222. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  223. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  224. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  225. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -2
  226. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -2
  227. package/dist/serialization/resources/users/index.d.ts +1 -0
  228. package/dist/serialization/resources/users/index.js +17 -0
  229. package/dist/serialization/resources/users/resources/index.d.ts +1 -0
  230. package/dist/serialization/resources/users/resources/index.js +37 -0
  231. package/dist/serialization/resources/users/resources/v2/index.d.ts +1 -0
  232. package/dist/serialization/resources/users/resources/v2/index.js +17 -0
  233. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  234. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +41 -0
  235. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +9 -0
  236. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +41 -0
  237. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +11 -0
  238. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +43 -0
  239. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  240. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +51 -0
  241. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +9 -0
  242. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +41 -0
  243. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +9 -0
  244. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +41 -0
  245. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +15 -0
  246. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +49 -0
  247. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  248. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +48 -0
  249. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +8 -0
  250. package/dist/serialization/resources/users/resources/v2/types/index.js +24 -0
  251. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  252. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
  253. package/dist/version.d.ts +1 -1
  254. package/dist/version.js +1 -1
  255. package/package.json +1 -1
  256. package/reference.md +235 -2
  257. package/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
  258. package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTransmissionCode.js +1 -1
  259. package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
  260. package/serialization/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +1 -1
  261. package/serialization/resources/commons/types/index.d.ts +2 -0
  262. package/serialization/resources/commons/types/index.js +2 -0
  263. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +3 -0
  264. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +3 -0
  265. package/serialization/resources/encounterSupplementalInformation/index.d.ts +1 -0
  266. package/serialization/resources/encounterSupplementalInformation/index.js +17 -0
  267. package/serialization/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  268. package/serialization/resources/encounterSupplementalInformation/resources/index.js +37 -0
  269. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +12 -0
  270. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.js +69 -0
  271. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +12 -0
  272. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.js +69 -0
  273. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +8 -0
  274. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.js +40 -0
  275. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  276. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  277. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +12 -0
  278. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.js +69 -0
  279. package/serialization/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  280. package/serialization/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  281. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +7 -0
  282. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +39 -0
  283. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +17 -0
  284. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +49 -0
  285. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +21 -0
  286. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +53 -0
  287. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +7 -0
  288. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +43 -0
  289. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +17 -0
  290. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +49 -0
  291. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  292. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  293. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  294. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +2 -2
  295. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  296. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +2 -2
  297. package/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -2
  298. package/serialization/resources/encounters/resources/v4/types/index.js +0 -2
  299. package/serialization/resources/index.d.ts +2 -0
  300. package/serialization/resources/index.js +4 -2
  301. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  302. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  303. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  304. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  305. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  306. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  307. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -2
  308. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -2
  309. package/serialization/resources/users/index.d.ts +1 -0
  310. package/serialization/resources/users/index.js +17 -0
  311. package/serialization/resources/users/resources/index.d.ts +1 -0
  312. package/serialization/resources/users/resources/index.js +37 -0
  313. package/serialization/resources/users/resources/v2/index.d.ts +1 -0
  314. package/serialization/resources/users/resources/v2/index.js +17 -0
  315. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  316. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +41 -0
  317. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +9 -0
  318. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +41 -0
  319. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +11 -0
  320. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +43 -0
  321. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  322. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +51 -0
  323. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +9 -0
  324. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +41 -0
  325. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +9 -0
  326. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +41 -0
  327. package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +15 -0
  328. package/serialization/resources/users/resources/v2/types/UserMetadata.js +49 -0
  329. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  330. package/serialization/resources/users/resources/v2/types/UserV2.js +48 -0
  331. package/serialization/resources/users/resources/v2/types/index.d.ts +8 -0
  332. package/serialization/resources/users/resources/v2/types/index.js +24 -0
  333. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  334. package/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
  335. package/version.d.ts +1 -1
  336. package/version.js +1 -1
  337. package/dist/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +0 -7
  338. package/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +0 -7
  339. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.d.ts +0 -0
  340. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +0 -0
  341. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.d.ts +0 -0
  342. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +0 -0
  343. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.d.ts +0 -0
  344. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +0 -0
  345. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.d.ts +0 -0
  346. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +0 -0
@@ -0,0 +1,15 @@
1
+ import type * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { HumanUserMetadata } from "./HumanUserMetadata";
5
+ import { MachineUserMetadata } from "./MachineUserMetadata";
6
+ export declare const UserMetadata: core.serialization.Schema<serializers.users.v2.UserMetadata.Raw, CandidApi.users.v2.UserMetadata>;
7
+ export declare namespace UserMetadata {
8
+ type Raw = UserMetadata.MachineUserMetadata | UserMetadata.HumanUserMetadata;
9
+ interface MachineUserMetadata extends MachineUserMetadata.Raw {
10
+ type: "machine_user_metadata";
11
+ }
12
+ interface HumanUserMetadata extends HumanUserMetadata.Raw {
13
+ type: "human_user_metadata";
14
+ }
15
+ }
@@ -0,0 +1,49 @@
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.UserMetadata = void 0;
38
+ const core = __importStar(require("../../../../../../core"));
39
+ const HumanUserMetadata_1 = require("./HumanUserMetadata");
40
+ const MachineUserMetadata_1 = require("./MachineUserMetadata");
41
+ exports.UserMetadata = core.serialization
42
+ .union("type", {
43
+ machine_user_metadata: MachineUserMetadata_1.MachineUserMetadata,
44
+ human_user_metadata: HumanUserMetadata_1.HumanUserMetadata,
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -0,0 +1,16 @@
1
+ import type * as CandidApi from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { OrganizationId } from "../../../../commons/types/OrganizationId";
5
+ import { UserId } from "../../../../commons/types/UserId";
6
+ import { IdpUserMetadata } from "./IdpUserMetadata";
7
+ import { UserMetadata } from "./UserMetadata";
8
+ export declare const UserV2: core.serialization.ObjectSchema<serializers.users.v2.UserV2.Raw, CandidApi.users.v2.UserV2>;
9
+ export declare namespace UserV2 {
10
+ interface Raw {
11
+ user_id: UserId.Raw;
12
+ idp_metadata: IdpUserMetadata.Raw[];
13
+ primary_organization_id?: OrganizationId.Raw | null;
14
+ user_metadata: UserMetadata.Raw;
15
+ }
16
+ }
@@ -0,0 +1,48 @@
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.UserV2 = void 0;
38
+ const core = __importStar(require("../../../../../../core"));
39
+ const OrganizationId_1 = require("../../../../commons/types/OrganizationId");
40
+ const UserId_1 = require("../../../../commons/types/UserId");
41
+ const IdpUserMetadata_1 = require("./IdpUserMetadata");
42
+ const UserMetadata_1 = require("./UserMetadata");
43
+ exports.UserV2 = core.serialization.object({
44
+ userId: core.serialization.property("user_id", UserId_1.UserId),
45
+ idpMetadata: core.serialization.property("idp_metadata", core.serialization.list(IdpUserMetadata_1.IdpUserMetadata)),
46
+ primaryOrganizationId: core.serialization.property("primary_organization_id", OrganizationId_1.OrganizationId.optional()),
47
+ userMetadata: core.serialization.property("user_metadata", UserMetadata_1.UserMetadata),
48
+ });
@@ -0,0 +1,8 @@
1
+ export * from "./AuthZeroMetadata";
2
+ export * from "./GoogleAppsMetadata";
3
+ export * from "./HumanUserMetadata";
4
+ export * from "./IdpUserMetadata";
5
+ export * from "./MachineUserMetadata";
6
+ export * from "./OtherIdpMetadata";
7
+ export * from "./UserMetadata";
8
+ export * from "./UserV2";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AuthZeroMetadata"), exports);
18
+ __exportStar(require("./GoogleAppsMetadata"), exports);
19
+ __exportStar(require("./HumanUserMetadata"), exports);
20
+ __exportStar(require("./IdpUserMetadata"), exports);
21
+ __exportStar(require("./MachineUserMetadata"), exports);
22
+ __exportStar(require("./OtherIdpMetadata"), exports);
23
+ __exportStar(require("./UserMetadata"), exports);
24
+ __exportStar(require("./UserV2"), exports);
@@ -3,5 +3,5 @@ import * as core from "../../../../../../core";
3
3
  import type * as serializers from "../../../../../index";
4
4
  export declare const Carc: core.serialization.Schema<serializers.x12.v1.Carc.Raw, CandidApi.x12.v1.Carc>;
5
5
  export declare namespace Carc {
6
- type Raw = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "16" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "26" | "27" | "29" | "31" | "32" | "33" | "34" | "35" | "39" | "40" | "44" | "45" | "49" | "50" | "51" | "53" | "54" | "55" | "56" | "58" | "59" | "60" | "61" | "66" | "69" | "70" | "74" | "75" | "76" | "78" | "85" | "89" | "90" | "91" | "94" | "95" | "96" | "97" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "114" | "115" | "116" | "117" | "118" | "119" | "121" | "122" | "125" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "139" | "140" | "142" | "143" | "144" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "157" | "158" | "159" | "160" | "161" | "163" | "164" | "166" | "167" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "192" | "193" | "194" | "195" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "215" | "216" | "219" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "A0" | "A1" | "A5" | "A6" | "A8" | "B1" | "B4" | "B7" | "B8" | "B9" | "B10" | "B11" | "B12" | "B13" | "B14" | "B15" | "B16" | "B20" | "B22" | "B23" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "P7" | "P8" | "P9" | "P10" | "P11" | "P12" | "P13" | "P14" | "P15" | "P16" | "P17" | "P18" | "P19" | "P20" | "P21" | "P22" | "P23" | "P24" | "P25" | "P26" | "P27" | "P28" | "P29" | "P30" | "P31" | "P32" | "17" | "25" | "28" | "30" | "36" | "37" | "38" | "41" | "42" | "43" | "46" | "47" | "48" | "52" | "57" | "62" | "63" | "64" | "65" | "67" | "68" | "71" | "72" | "73" | "77" | "79" | "80" | "81" | "82" | "83" | "84" | "86" | "87" | "88" | "92" | "93" | "98" | "99" | "113" | "120" | "123" | "124" | "126" | "127" | "138" | "141" | "145" | "156" | "162" | "165" | "168" | "191" | "196" | "214" | "217" | "218" | "220" | "221" | "230" | "244" | "255" | "A2" | "A3" | "A4" | "A7" | "B2" | "B3" | "B5" | "B6" | "B17" | "B18" | "B19" | "B21" | "D1" | "D2" | "D3" | "D4" | "D5" | "D6" | "D7" | "D8" | "D9" | "D10" | "D11" | "D12" | "D14" | "D15" | "D16" | "D17" | "D18" | "D19" | "D20" | "D21" | "D22" | "D23" | "W1" | "W2" | "W3" | "W4" | "W5" | "W6" | "W7" | "W8" | "W9" | "Y1" | "Y2" | "Y3" | "UNKNOWN";
6
+ type Raw = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "16" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "26" | "27" | "29" | "31" | "32" | "33" | "34" | "35" | "39" | "40" | "44" | "45" | "49" | "50" | "51" | "53" | "54" | "55" | "56" | "58" | "59" | "60" | "61" | "66" | "69" | "70" | "74" | "75" | "76" | "78" | "85" | "89" | "90" | "91" | "94" | "95" | "96" | "97" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "114" | "115" | "116" | "117" | "118" | "119" | "121" | "122" | "125" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "139" | "140" | "142" | "143" | "144" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "157" | "158" | "159" | "160" | "161" | "163" | "164" | "166" | "167" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "192" | "193" | "194" | "195" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "215" | "216" | "219" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "A0" | "A1" | "A5" | "A6" | "A8" | "B1" | "B4" | "B7" | "B8" | "B9" | "B10" | "B11" | "B12" | "B13" | "B14" | "B15" | "B16" | "B20" | "B22" | "B23" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "P7" | "P8" | "P9" | "P10" | "P11" | "P12" | "P13" | "P14" | "P15" | "P16" | "P17" | "P18" | "P19" | "P20" | "P21" | "P22" | "P23" | "P24" | "P25" | "P26" | "P27" | "P28" | "P29" | "P30" | "P31" | "P32" | "15" | "17" | "25" | "28" | "30" | "36" | "37" | "38" | "41" | "42" | "43" | "46" | "47" | "48" | "52" | "57" | "62" | "63" | "64" | "65" | "67" | "68" | "71" | "72" | "73" | "77" | "79" | "80" | "81" | "82" | "83" | "84" | "86" | "87" | "88" | "92" | "93" | "98" | "99" | "113" | "120" | "123" | "124" | "126" | "127" | "138" | "141" | "145" | "156" | "162" | "165" | "168" | "191" | "196" | "214" | "217" | "218" | "220" | "221" | "230" | "244" | "255" | "A2" | "A3" | "A4" | "A7" | "B2" | "B3" | "B5" | "B6" | "B17" | "B18" | "B19" | "B21" | "D1" | "D2" | "D3" | "D4" | "D5" | "D6" | "D7" | "D8" | "D9" | "D10" | "D11" | "D12" | "D14" | "D15" | "D16" | "D17" | "D18" | "D19" | "D20" | "D21" | "D22" | "D23" | "W1" | "W2" | "W3" | "W4" | "W5" | "W6" | "W7" | "W8" | "W9" | "Y1" | "Y2" | "Y3" | "UNKNOWN";
7
7
  }
@@ -332,6 +332,7 @@ exports.Carc = core.serialization.enum_([
332
332
  "P30",
333
333
  "P31",
334
334
  "P32",
335
+ "15",
335
336
  "17",
336
337
  "25",
337
338
  "28",
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.12.1";
1
+ export declare const SDK_VERSION = "1.13.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.12.1";
4
+ exports.SDK_VERSION = "1.13.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "private": false,
5
5
  "repository": "github:candidhealth/candid-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2914,6 +2914,239 @@ await client.encounterProviders.v2.deleteOrderingProvider(CandidApi.ServiceLineI
2914
2914
  </dl>
2915
2915
 
2916
2916
 
2917
+ </dd>
2918
+ </dl>
2919
+ </details>
2920
+
2921
+ ## EncounterSupplementalInformation V1
2922
+ <details><summary><code>client.encounterSupplementalInformation.v1.<a href="/src/api/resources/encounterSupplementalInformation/resources/v1/client/Client.ts">get</a>(encounterId) -> core.APIResponse<CandidApi.SupplementalInformation[], CandidApi.encounterSupplementalInformation.v1.get.Error></code></summary>
2923
+ <dl>
2924
+ <dd>
2925
+
2926
+ #### 🔌 Usage
2927
+
2928
+ <dl>
2929
+ <dd>
2930
+
2931
+ <dl>
2932
+ <dd>
2933
+
2934
+ ```typescript
2935
+ await client.encounterSupplementalInformation.v1.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"));
2936
+
2937
+ ```
2938
+ </dd>
2939
+ </dl>
2940
+ </dd>
2941
+ </dl>
2942
+
2943
+ #### ⚙️ Parameters
2944
+
2945
+ <dl>
2946
+ <dd>
2947
+
2948
+ <dl>
2949
+ <dd>
2950
+
2951
+ **encounterId:** `CandidApi.EncounterId`
2952
+
2953
+ </dd>
2954
+ </dl>
2955
+
2956
+ <dl>
2957
+ <dd>
2958
+
2959
+ **requestOptions:** `V1.RequestOptions`
2960
+
2961
+ </dd>
2962
+ </dl>
2963
+ </dd>
2964
+ </dl>
2965
+
2966
+
2967
+ </dd>
2968
+ </dl>
2969
+ </details>
2970
+
2971
+ <details><summary><code>client.encounterSupplementalInformation.v1.<a href="/src/api/resources/encounterSupplementalInformation/resources/v1/client/Client.ts">create</a>(encounterId, { ...params }) -> core.APIResponse<CandidApi.SupplementalInformation, CandidApi.encounterSupplementalInformation.v1.create.Error></code></summary>
2972
+ <dl>
2973
+ <dd>
2974
+
2975
+ #### 🔌 Usage
2976
+
2977
+ <dl>
2978
+ <dd>
2979
+
2980
+ <dl>
2981
+ <dd>
2982
+
2983
+ ```typescript
2984
+ await client.encounterSupplementalInformation.v1.create(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
2985
+ attachmentReportTypeCode: "03",
2986
+ attachmentTransmissionCode: "BM",
2987
+ attachmentInclusion: "not_included"
2988
+ });
2989
+
2990
+ ```
2991
+ </dd>
2992
+ </dl>
2993
+ </dd>
2994
+ </dl>
2995
+
2996
+ #### ⚙️ Parameters
2997
+
2998
+ <dl>
2999
+ <dd>
3000
+
3001
+ <dl>
3002
+ <dd>
3003
+
3004
+ **encounterId:** `CandidApi.EncounterId`
3005
+
3006
+ </dd>
3007
+ </dl>
3008
+
3009
+ <dl>
3010
+ <dd>
3011
+
3012
+ **request:** `CandidApi.CreateSupplementalInformationRequest`
3013
+
3014
+ </dd>
3015
+ </dl>
3016
+
3017
+ <dl>
3018
+ <dd>
3019
+
3020
+ **requestOptions:** `V1.RequestOptions`
3021
+
3022
+ </dd>
3023
+ </dl>
3024
+ </dd>
3025
+ </dl>
3026
+
3027
+
3028
+ </dd>
3029
+ </dl>
3030
+ </details>
3031
+
3032
+ <details><summary><code>client.encounterSupplementalInformation.v1.<a href="/src/api/resources/encounterSupplementalInformation/resources/v1/client/Client.ts">update</a>(encounterId, supplementalInformationId, { ...params }) -> core.APIResponse<CandidApi.SupplementalInformation, CandidApi.encounterSupplementalInformation.v1.update.Error></code></summary>
3033
+ <dl>
3034
+ <dd>
3035
+
3036
+ #### 🔌 Usage
3037
+
3038
+ <dl>
3039
+ <dd>
3040
+
3041
+ <dl>
3042
+ <dd>
3043
+
3044
+ ```typescript
3045
+ await client.encounterSupplementalInformation.v1.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.SupplementalInformationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {});
3046
+
3047
+ ```
3048
+ </dd>
3049
+ </dl>
3050
+ </dd>
3051
+ </dl>
3052
+
3053
+ #### ⚙️ Parameters
3054
+
3055
+ <dl>
3056
+ <dd>
3057
+
3058
+ <dl>
3059
+ <dd>
3060
+
3061
+ **encounterId:** `CandidApi.EncounterId`
3062
+
3063
+ </dd>
3064
+ </dl>
3065
+
3066
+ <dl>
3067
+ <dd>
3068
+
3069
+ **supplementalInformationId:** `CandidApi.SupplementalInformationId`
3070
+
3071
+ </dd>
3072
+ </dl>
3073
+
3074
+ <dl>
3075
+ <dd>
3076
+
3077
+ **request:** `CandidApi.UpdateSupplementalInformationRequest`
3078
+
3079
+ </dd>
3080
+ </dl>
3081
+
3082
+ <dl>
3083
+ <dd>
3084
+
3085
+ **requestOptions:** `V1.RequestOptions`
3086
+
3087
+ </dd>
3088
+ </dl>
3089
+ </dd>
3090
+ </dl>
3091
+
3092
+
3093
+ </dd>
3094
+ </dl>
3095
+ </details>
3096
+
3097
+ <details><summary><code>client.encounterSupplementalInformation.v1.<a href="/src/api/resources/encounterSupplementalInformation/resources/v1/client/Client.ts">delete</a>(encounterId, supplementalInformationId) -> core.APIResponse<void, CandidApi.encounterSupplementalInformation.v1.delete.Error></code></summary>
3098
+ <dl>
3099
+ <dd>
3100
+
3101
+ #### 🔌 Usage
3102
+
3103
+ <dl>
3104
+ <dd>
3105
+
3106
+ <dl>
3107
+ <dd>
3108
+
3109
+ ```typescript
3110
+ await client.encounterSupplementalInformation.v1.delete(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.SupplementalInformationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"));
3111
+
3112
+ ```
3113
+ </dd>
3114
+ </dl>
3115
+ </dd>
3116
+ </dl>
3117
+
3118
+ #### ⚙️ Parameters
3119
+
3120
+ <dl>
3121
+ <dd>
3122
+
3123
+ <dl>
3124
+ <dd>
3125
+
3126
+ **encounterId:** `CandidApi.EncounterId`
3127
+
3128
+ </dd>
3129
+ </dl>
3130
+
3131
+ <dl>
3132
+ <dd>
3133
+
3134
+ **supplementalInformationId:** `CandidApi.SupplementalInformationId`
3135
+
3136
+ </dd>
3137
+ </dl>
3138
+
3139
+ <dl>
3140
+ <dd>
3141
+
3142
+ **requestOptions:** `V1.RequestOptions`
3143
+
3144
+ </dd>
3145
+ </dl>
3146
+ </dd>
3147
+ </dl>
3148
+
3149
+
2917
3150
  </dd>
2918
3151
  </dl>
2919
3152
  </details>
@@ -13449,12 +13682,12 @@ await client.preEncounter.patients.v1.search();
13449
13682
  <dl>
13450
13683
  <dd>
13451
13684
 
13452
- Scans up to 100 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
13685
+ Scans up to 1000 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
13453
13686
 
13454
13687
  **Polling Pattern:**
13455
13688
  To continuously poll for updates without gaps:
13456
13689
  1. Make your initial request with a `since` timestamp (e.g., `since=2020-01-01T13:00:00.000Z`)
13457
- 2. The API returns up to 100 patient records, sorted by `updated_at` ascending
13690
+ 2. The API returns 100 by default and up to 1000 patient records, sorted by `updated_at` ascending
13458
13691
  3. Find the `updated_at` value from the last record in the response
13459
13692
  4. Use that `updated_at` value as the `since` parameter in your next request
13460
13693
  5. Repeat steps 2-4 to ingest updates until you receive an empty list
@@ -0,0 +1,7 @@
1
+ import type * as CandidApi from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const ReportTransmissionCode: core.serialization.Schema<serializers.ReportTransmissionCode.Raw, CandidApi.ReportTransmissionCode>;
5
+ export declare namespace ReportTransmissionCode {
6
+ type Raw = "BM" | "EL" | "FX";
7
+ }
@@ -35,5 +35,5 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ReportTransmissionCode = void 0;
38
- const core = __importStar(require("../../../../../../core"));
38
+ const core = __importStar(require("../../../../core"));
39
39
  exports.ReportTransmissionCode = core.serialization.enum_(["BM", "EL", "FX"]);
@@ -1,7 +1,7 @@
1
- import type * as CandidApi from "../../../../../../api/index";
2
- import * as core from "../../../../../../core";
3
- import type * as serializers from "../../../../../index";
4
- export declare const ReportTypeCode: core.serialization.Schema<serializers.encounters.v4.ReportTypeCode.Raw, CandidApi.encounters.v4.ReportTypeCode>;
1
+ import type * as CandidApi from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const ReportTypeCode: core.serialization.Schema<serializers.ReportTypeCode.Raw, CandidApi.ReportTypeCode>;
5
5
  export declare namespace ReportTypeCode {
6
6
  type Raw = "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "13" | "15" | "21" | "A3" | "A4" | "AM" | "AS" | "B2" | "B3" | "B4" | "BR" | "BS" | "BT" | "CB" | "CK" | "CT" | "D2" | "DA" | "DB" | "DG" | "DJ" | "DS" | "EB" | "HC" | "HR" | "I5" | "IR" | "LA" | "M1" | "MT" | "NN" | "OB" | "OC" | "OD" | "OE" | "OX" | "OZ" | "P4" | "P5" | "PE" | "PN" | "PO" | "PQ" | "PY" | "PZ" | "RB" | "RR" | "RT" | "RX" | "SG" | "V5" | "XP";
7
7
  }
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ReportTypeCode = void 0;
38
- const core = __importStar(require("../../../../../../core"));
38
+ const core = __importStar(require("../../../../core"));
39
39
  exports.ReportTypeCode = core.serialization.enum_([
40
40
  "03",
41
41
  "04",
@@ -51,6 +51,8 @@ export * from "./RegionNational";
51
51
  export * from "./RegionStates";
52
52
  export * from "./Regions";
53
53
  export * from "./RemovableDateRangeOptionalEnd";
54
+ export * from "./ReportTransmissionCode";
55
+ export * from "./ReportTypeCode";
54
56
  export * from "./RequestValidationError";
55
57
  export * from "./ResourcePage";
56
58
  export * from "./SchemaId";
@@ -67,6 +67,8 @@ __exportStar(require("./RegionNational"), exports);
67
67
  __exportStar(require("./RegionStates"), exports);
68
68
  __exportStar(require("./Regions"), exports);
69
69
  __exportStar(require("./RemovableDateRangeOptionalEnd"), exports);
70
+ __exportStar(require("./ReportTransmissionCode"), exports);
71
+ __exportStar(require("./ReportTypeCode"), exports);
70
72
  __exportStar(require("./RequestValidationError"), exports);
71
73
  __exportStar(require("./ResourcePage"), exports);
72
74
  __exportStar(require("./SchemaId"), exports);
@@ -2,6 +2,7 @@ import type * as CandidApi from "../../../../../../api/index";
2
2
  import * as core from "../../../../../../core";
3
3
  import type * as serializers from "../../../../../index";
4
4
  import { EncounterId } from "../../../../commons/types/EncounterId";
5
+ import { UserV2 } from "../../../../users/resources/v2/types/UserV2";
5
6
  import { BaseAttachment } from "./BaseAttachment";
6
7
  import { EncounterAttachmentType } from "./EncounterAttachmentType";
7
8
  export declare const EncounterAttachment: core.serialization.ObjectSchema<serializers.encounterAttachments.v1.EncounterAttachment.Raw, CandidApi.encounterAttachments.v1.EncounterAttachment>;
@@ -9,5 +10,7 @@ export declare namespace EncounterAttachment {
9
10
  interface Raw extends BaseAttachment.Raw {
10
11
  encounter_id: EncounterId.Raw;
11
12
  attachment_type: EncounterAttachmentType.Raw;
13
+ created_at: string;
14
+ created_by: UserV2.Raw;
12
15
  }
13
16
  }
@@ -37,11 +37,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.EncounterAttachment = void 0;
38
38
  const core = __importStar(require("../../../../../../core"));
39
39
  const EncounterId_1 = require("../../../../commons/types/EncounterId");
40
+ const UserV2_1 = require("../../../../users/resources/v2/types/UserV2");
40
41
  const BaseAttachment_1 = require("./BaseAttachment");
41
42
  const EncounterAttachmentType_1 = require("./EncounterAttachmentType");
42
43
  exports.EncounterAttachment = core.serialization
43
44
  .object({
44
45
  encounterId: core.serialization.property("encounter_id", EncounterId_1.EncounterId),
45
46
  attachmentType: core.serialization.property("attachment_type", EncounterAttachmentType_1.EncounterAttachmentType),
47
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
48
+ createdBy: core.serialization.property("created_by", UserV2_1.UserV2),
46
49
  })
47
50
  .extend(BaseAttachment_1.BaseAttachment);
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.v1 = void 0;
37
+ exports.v1 = __importStar(require("./v1"));