candidhealth 0.35.1 → 0.35.3

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 (476) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/credentialing/resources/v2/client/Client.d.ts +1 -0
  5. package/api/resources/credentialing/resources/v2/client/Client.js +11 -6
  6. package/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
  7. package/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
  8. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
  9. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  10. package/api/resources/diagnoses/client/Client.js +3 -3
  11. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  12. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  13. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  14. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  15. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  16. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  17. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  18. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  19. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  20. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  21. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  22. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  23. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  24. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  25. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  26. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  27. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  28. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  29. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  30. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  31. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  32. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  33. package/api/resources/preEncounter/client/Client.d.ts +6 -0
  34. package/api/resources/preEncounter/client/Client.js +12 -2
  35. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  36. package/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +3 -3
  37. package/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
  38. package/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
  39. package/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
  40. package/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
  41. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +1 -10
  42. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +15 -0
  43. package/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
  44. package/api/resources/preEncounter/resources/common/types/NoteId.d.ts +11 -0
  45. package/api/resources/preEncounter/resources/common/types/NoteId.js +10 -0
  46. package/api/resources/preEncounter/resources/common/types/TagId.d.ts +11 -0
  47. package/api/resources/preEncounter/resources/common/types/TagId.js +10 -0
  48. package/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
  49. package/api/resources/preEncounter/resources/common/types/index.d.ts +4 -2
  50. package/api/resources/preEncounter/resources/common/types/index.js +4 -2
  51. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  52. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
  53. package/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
  54. package/api/resources/preEncounter/resources/coverages/resources/v1/types/Coverage.d.ts +1 -10
  55. package/api/resources/preEncounter/resources/index.d.ts +2 -0
  56. package/api/resources/preEncounter/resources/index.js +3 -1
  57. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  58. package/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
  59. package/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  60. package/api/resources/preEncounter/resources/notes/client/Client.d.ts +26 -0
  61. package/api/resources/preEncounter/resources/notes/client/Client.js +17 -0
  62. package/api/resources/preEncounter/resources/notes/client/index.d.ts +1 -0
  63. package/api/resources/preEncounter/resources/notes/client/index.js +2 -0
  64. package/api/resources/preEncounter/resources/notes/index.d.ts +2 -0
  65. package/api/resources/preEncounter/resources/notes/index.js +18 -0
  66. package/api/resources/preEncounter/resources/notes/resources/index.d.ts +1 -0
  67. package/api/resources/preEncounter/resources/notes/resources/index.js +27 -0
  68. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +76 -0
  69. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +261 -0
  70. package/api/resources/preEncounter/resources/notes/resources/v1/client/create.d.ts +22 -0
  71. package/api/resources/preEncounter/resources/notes/resources/v1/client/create.js +47 -0
  72. package/api/resources/preEncounter/resources/notes/resources/v1/client/deactivate.d.ts +22 -0
  73. package/api/resources/preEncounter/resources/notes/resources/v1/client/deactivate.js +47 -0
  74. package/api/resources/preEncounter/resources/notes/resources/v1/client/get.d.ts +22 -0
  75. package/api/resources/preEncounter/resources/notes/resources/v1/client/get.js +47 -0
  76. package/api/resources/preEncounter/resources/notes/resources/v1/client/index.d.ts +4 -0
  77. package/api/resources/preEncounter/resources/notes/resources/v1/client/index.js +30 -0
  78. package/api/resources/preEncounter/resources/notes/resources/v1/client/update.d.ts +22 -0
  79. package/api/resources/preEncounter/resources/notes/resources/v1/client/update.js +47 -0
  80. package/api/resources/preEncounter/resources/notes/resources/v1/index.d.ts +2 -0
  81. package/api/resources/preEncounter/resources/notes/resources/v1/index.js +18 -0
  82. package/api/resources/preEncounter/resources/notes/resources/v1/types/MutableNote.d.ts +11 -0
  83. package/api/resources/preEncounter/resources/notes/resources/v1/types/Note.d.ts +11 -0
  84. package/api/resources/preEncounter/resources/notes/resources/v1/types/index.d.ts +2 -0
  85. package/api/resources/preEncounter/resources/notes/resources/v1/types/index.js +18 -0
  86. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +10 -4
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +20 -16
  88. package/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
  89. package/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
  90. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +6 -12
  91. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +4 -15
  92. package/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
  93. package/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
  94. package/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
  95. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +3 -1
  96. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +3 -1
  97. package/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
  98. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  99. package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +1 -10
  100. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  101. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  102. package/api/resources/preEncounter/resources/tags/client/Client.d.ts +26 -0
  103. package/api/resources/preEncounter/resources/tags/client/Client.js +17 -0
  104. package/api/resources/preEncounter/resources/tags/client/index.d.ts +1 -0
  105. package/api/resources/preEncounter/resources/tags/client/index.js +2 -0
  106. package/api/resources/preEncounter/resources/tags/index.d.ts +2 -0
  107. package/api/resources/preEncounter/resources/tags/index.js +18 -0
  108. package/api/resources/preEncounter/resources/tags/resources/index.d.ts +1 -0
  109. package/api/resources/preEncounter/resources/tags/resources/index.js +27 -0
  110. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +85 -0
  111. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +312 -0
  112. package/api/resources/preEncounter/resources/tags/resources/v1/client/create.d.ts +22 -0
  113. package/api/resources/preEncounter/resources/tags/resources/v1/client/create.js +47 -0
  114. package/api/resources/preEncounter/resources/tags/resources/v1/client/deactivate.d.ts +22 -0
  115. package/api/resources/preEncounter/resources/tags/resources/v1/client/deactivate.js +47 -0
  116. package/api/resources/preEncounter/resources/tags/resources/v1/client/get.d.ts +22 -0
  117. package/api/resources/preEncounter/resources/tags/resources/v1/client/get.js +47 -0
  118. package/api/resources/preEncounter/resources/tags/resources/v1/client/getAll.d.ts +22 -0
  119. package/api/resources/preEncounter/resources/tags/resources/v1/client/getAll.js +47 -0
  120. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +6 -0
  121. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +35 -0
  122. package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +15 -0
  123. package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/index.d.ts +1 -0
  124. package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/index.js +2 -0
  125. package/api/resources/preEncounter/resources/tags/resources/v1/client/update.d.ts +22 -0
  126. package/api/resources/preEncounter/resources/tags/resources/v1/client/update.js +47 -0
  127. package/api/resources/preEncounter/resources/tags/resources/v1/index.d.ts +2 -0
  128. package/api/resources/preEncounter/resources/tags/resources/v1/index.js +18 -0
  129. package/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +9 -0
  130. package/api/resources/preEncounter/resources/tags/resources/v1/types/Tag.d.ts +10 -0
  131. package/api/resources/preEncounter/resources/{patients/resources/v1/types/InvalidMrnErrorBody.d.ts → tags/resources/v1/types/TagPage.d.ts} +2 -2
  132. package/api/resources/preEncounter/resources/tags/resources/v1/types/index.d.ts +3 -0
  133. package/api/resources/preEncounter/resources/tags/resources/v1/types/index.js +19 -0
  134. package/api/resources/serviceFacility/client/Client.js +1 -1
  135. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  136. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  137. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  138. package/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
  139. package/api/resources/x12/resources/v1/types/Rarc.js +1 -0
  140. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  141. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  142. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  143. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +1 -0
  144. package/dist/api/resources/credentialing/resources/v2/client/Client.js +11 -6
  145. package/dist/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
  146. package/dist/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
  147. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
  148. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  149. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  150. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  151. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  152. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  153. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  154. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  155. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  156. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  157. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  158. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  159. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  160. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  161. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  163. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  164. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  165. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  166. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  167. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  168. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  169. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  170. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  171. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  172. package/dist/api/resources/preEncounter/client/Client.d.ts +6 -0
  173. package/dist/api/resources/preEncounter/client/Client.js +12 -2
  174. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  175. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +3 -3
  176. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
  177. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
  178. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
  179. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
  180. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +1 -10
  181. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +15 -0
  182. package/dist/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
  183. package/dist/api/resources/preEncounter/resources/common/types/NoteId.d.ts +11 -0
  184. package/dist/api/resources/preEncounter/resources/common/types/NoteId.js +10 -0
  185. package/dist/api/resources/preEncounter/resources/common/types/TagId.d.ts +11 -0
  186. package/dist/api/resources/preEncounter/resources/common/types/TagId.js +10 -0
  187. package/dist/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
  188. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +4 -2
  189. package/dist/api/resources/preEncounter/resources/common/types/index.js +4 -2
  190. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  191. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
  192. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
  193. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Coverage.d.ts +1 -10
  194. package/dist/api/resources/preEncounter/resources/index.d.ts +2 -0
  195. package/dist/api/resources/preEncounter/resources/index.js +3 -1
  196. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  197. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
  198. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  199. package/dist/api/resources/preEncounter/resources/notes/client/Client.d.ts +26 -0
  200. package/dist/api/resources/preEncounter/resources/notes/client/Client.js +17 -0
  201. package/dist/api/resources/preEncounter/resources/notes/client/index.d.ts +1 -0
  202. package/dist/api/resources/preEncounter/resources/notes/client/index.js +2 -0
  203. package/dist/api/resources/preEncounter/resources/notes/index.d.ts +2 -0
  204. package/dist/api/resources/preEncounter/resources/notes/index.js +18 -0
  205. package/dist/api/resources/preEncounter/resources/notes/resources/index.d.ts +1 -0
  206. package/dist/api/resources/preEncounter/resources/notes/resources/index.js +27 -0
  207. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +76 -0
  208. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +261 -0
  209. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/create.d.ts +22 -0
  210. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/create.js +47 -0
  211. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/deactivate.d.ts +22 -0
  212. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/deactivate.js +47 -0
  213. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/get.d.ts +22 -0
  214. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/get.js +47 -0
  215. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/index.d.ts +4 -0
  216. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/index.js +30 -0
  217. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/update.d.ts +22 -0
  218. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/update.js +47 -0
  219. package/dist/api/resources/preEncounter/resources/notes/resources/v1/index.d.ts +2 -0
  220. package/dist/api/resources/preEncounter/resources/notes/resources/v1/index.js +18 -0
  221. package/dist/api/resources/preEncounter/resources/notes/resources/v1/types/MutableNote.d.ts +11 -0
  222. package/dist/api/resources/preEncounter/resources/notes/resources/v1/types/MutableNote.js +5 -0
  223. package/dist/api/resources/preEncounter/resources/notes/resources/v1/types/Note.d.ts +11 -0
  224. package/dist/api/resources/preEncounter/resources/notes/resources/v1/types/Note.js +5 -0
  225. package/dist/api/resources/preEncounter/resources/notes/resources/v1/types/index.d.ts +2 -0
  226. package/dist/api/resources/preEncounter/resources/notes/resources/v1/types/index.js +18 -0
  227. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +10 -4
  228. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +20 -16
  229. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
  230. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
  231. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +6 -12
  232. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +4 -15
  233. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
  234. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
  235. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
  236. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +3 -1
  237. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +3 -1
  238. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
  239. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  240. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +1 -10
  241. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  242. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  243. package/dist/api/resources/preEncounter/resources/tags/client/Client.d.ts +26 -0
  244. package/dist/api/resources/preEncounter/resources/tags/client/Client.js +17 -0
  245. package/dist/api/resources/preEncounter/resources/tags/client/index.d.ts +1 -0
  246. package/dist/api/resources/preEncounter/resources/tags/client/index.js +2 -0
  247. package/dist/api/resources/preEncounter/resources/tags/index.d.ts +2 -0
  248. package/dist/api/resources/preEncounter/resources/tags/index.js +18 -0
  249. package/dist/api/resources/preEncounter/resources/tags/resources/index.d.ts +1 -0
  250. package/dist/api/resources/preEncounter/resources/tags/resources/index.js +27 -0
  251. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +85 -0
  252. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +312 -0
  253. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/create.d.ts +22 -0
  254. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/create.js +47 -0
  255. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/deactivate.d.ts +22 -0
  256. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/deactivate.js +47 -0
  257. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/get.d.ts +22 -0
  258. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/get.js +47 -0
  259. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/getAll.d.ts +22 -0
  260. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/getAll.js +47 -0
  261. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +6 -0
  262. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +35 -0
  263. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +15 -0
  264. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.js +5 -0
  265. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/index.d.ts +1 -0
  266. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/index.js +2 -0
  267. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/update.d.ts +22 -0
  268. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/update.js +47 -0
  269. package/dist/api/resources/preEncounter/resources/tags/resources/v1/index.d.ts +2 -0
  270. package/dist/api/resources/preEncounter/resources/tags/resources/v1/index.js +18 -0
  271. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +9 -0
  272. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +5 -0
  273. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/Tag.d.ts +10 -0
  274. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/Tag.js +5 -0
  275. package/dist/api/resources/preEncounter/resources/{patients/resources/v1/types/InvalidMrnErrorBody.d.ts → tags/resources/v1/types/TagPage.d.ts} +2 -2
  276. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/TagPage.js +5 -0
  277. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/index.d.ts +3 -0
  278. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/index.js +19 -0
  279. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  280. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  281. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  282. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  283. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
  284. package/dist/api/resources/x12/resources/v1/types/Rarc.js +1 -0
  285. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
  286. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
  287. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
  288. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
  289. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
  290. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
  291. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
  292. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
  293. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
  294. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
  295. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
  296. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
  297. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +2 -8
  298. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.js +2 -7
  299. package/dist/serialization/resources/preEncounter/resources/common/types/BaseModel.d.ts +18 -0
  300. package/dist/serialization/resources/preEncounter/resources/common/types/BaseModel.js +39 -0
  301. package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
  302. package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
  303. package/dist/serialization/resources/preEncounter/resources/common/types/NoteId.d.ts +10 -0
  304. package/dist/serialization/resources/preEncounter/resources/common/types/NoteId.js +35 -0
  305. package/dist/serialization/resources/preEncounter/resources/common/types/TagId.d.ts +10 -0
  306. package/dist/serialization/resources/preEncounter/resources/common/types/{NotFoundErrorBody.js → TagId.js} +6 -7
  307. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
  308. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
  309. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +4 -2
  310. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +4 -2
  311. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
  312. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
  313. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
  314. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
  315. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Coverage.d.ts +2 -8
  316. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Coverage.js +2 -7
  317. package/dist/serialization/resources/preEncounter/resources/index.d.ts +2 -0
  318. package/dist/serialization/resources/preEncounter/resources/index.js +3 -1
  319. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
  320. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
  321. package/dist/serialization/resources/preEncounter/resources/notes/index.d.ts +1 -0
  322. package/dist/serialization/resources/preEncounter/resources/notes/index.js +17 -0
  323. package/dist/serialization/resources/preEncounter/resources/notes/resources/index.d.ts +1 -0
  324. package/dist/serialization/resources/preEncounter/resources/notes/resources/index.js +27 -0
  325. package/dist/serialization/resources/preEncounter/resources/notes/resources/v1/index.d.ts +1 -0
  326. package/dist/serialization/resources/preEncounter/resources/notes/resources/v1/index.js +17 -0
  327. package/dist/serialization/resources/preEncounter/resources/notes/resources/v1/types/MutableNote.d.ts +14 -0
  328. package/{serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js → dist/serialization/resources/preEncounter/resources/notes/resources/v1/types/MutableNote.js} +5 -5
  329. package/dist/serialization/resources/preEncounter/resources/notes/resources/v1/types/Note.d.ts +16 -0
  330. package/dist/serialization/resources/preEncounter/resources/notes/resources/v1/types/Note.js +40 -0
  331. package/dist/serialization/resources/preEncounter/resources/notes/resources/v1/types/index.d.ts +2 -0
  332. package/dist/serialization/resources/preEncounter/resources/notes/resources/v1/types/index.js +18 -0
  333. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
  334. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
  335. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +5 -10
  336. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +5 -11
  337. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
  338. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
  339. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
  340. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
  341. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
  342. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
  343. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
  344. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
  345. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -0
  346. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +4 -0
  347. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -8
  348. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Patient.js +2 -7
  349. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  350. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  351. package/dist/serialization/resources/preEncounter/resources/tags/index.d.ts +1 -0
  352. package/dist/serialization/resources/preEncounter/resources/tags/index.js +17 -0
  353. package/dist/serialization/resources/preEncounter/resources/tags/resources/index.d.ts +1 -0
  354. package/dist/serialization/resources/preEncounter/resources/tags/resources/index.js +27 -0
  355. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/index.d.ts +1 -0
  356. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/index.js +17 -0
  357. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +12 -0
  358. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +33 -0
  359. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/Tag.d.ts +15 -0
  360. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/Tag.js +39 -0
  361. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/TagPage.d.ts +14 -0
  362. package/dist/serialization/resources/preEncounter/resources/{patients/resources/v1/types/InvalidMrnErrorBody.js → tags/resources/v1/types/TagPage.js} +6 -5
  363. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/index.d.ts +3 -0
  364. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/index.js +19 -0
  365. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  366. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
  367. package/package.json +1 -1
  368. package/reference.md +1227 -586
  369. package/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
  370. package/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
  371. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
  372. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
  373. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
  374. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
  375. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
  376. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
  377. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
  378. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
  379. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
  380. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
  381. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +2 -8
  382. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.js +2 -7
  383. package/serialization/resources/preEncounter/resources/common/types/BaseModel.d.ts +18 -0
  384. package/serialization/resources/preEncounter/resources/common/types/BaseModel.js +39 -0
  385. package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
  386. package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
  387. package/serialization/resources/preEncounter/resources/common/types/NoteId.d.ts +10 -0
  388. package/serialization/resources/preEncounter/resources/common/types/NoteId.js +35 -0
  389. package/serialization/resources/preEncounter/resources/common/types/TagId.d.ts +10 -0
  390. package/serialization/resources/preEncounter/resources/common/types/{NotFoundErrorBody.js → TagId.js} +6 -7
  391. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
  392. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
  393. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +4 -2
  394. package/serialization/resources/preEncounter/resources/common/types/index.js +4 -2
  395. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
  396. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
  397. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
  398. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
  399. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Coverage.d.ts +2 -8
  400. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Coverage.js +2 -7
  401. package/serialization/resources/preEncounter/resources/index.d.ts +2 -0
  402. package/serialization/resources/preEncounter/resources/index.js +3 -1
  403. package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
  404. package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
  405. package/serialization/resources/preEncounter/resources/notes/index.d.ts +1 -0
  406. package/serialization/resources/preEncounter/resources/notes/index.js +17 -0
  407. package/serialization/resources/preEncounter/resources/notes/resources/index.d.ts +1 -0
  408. package/serialization/resources/preEncounter/resources/notes/resources/index.js +27 -0
  409. package/serialization/resources/preEncounter/resources/notes/resources/v1/index.d.ts +1 -0
  410. package/serialization/resources/preEncounter/resources/notes/resources/v1/index.js +17 -0
  411. package/serialization/resources/preEncounter/resources/notes/resources/v1/types/MutableNote.d.ts +14 -0
  412. package/{dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js → serialization/resources/preEncounter/resources/notes/resources/v1/types/MutableNote.js} +5 -5
  413. package/serialization/resources/preEncounter/resources/notes/resources/v1/types/Note.d.ts +16 -0
  414. package/serialization/resources/preEncounter/resources/notes/resources/v1/types/Note.js +40 -0
  415. package/serialization/resources/preEncounter/resources/notes/resources/v1/types/index.d.ts +2 -0
  416. package/serialization/resources/preEncounter/resources/notes/resources/v1/types/index.js +18 -0
  417. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
  418. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
  419. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +5 -10
  420. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +5 -11
  421. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
  422. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
  423. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
  424. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
  425. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
  426. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
  427. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
  428. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
  429. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -0
  430. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +4 -0
  431. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -8
  432. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Patient.js +2 -7
  433. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  434. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  435. package/serialization/resources/preEncounter/resources/tags/index.d.ts +1 -0
  436. package/serialization/resources/preEncounter/resources/tags/index.js +17 -0
  437. package/serialization/resources/preEncounter/resources/tags/resources/index.d.ts +1 -0
  438. package/serialization/resources/preEncounter/resources/tags/resources/index.js +27 -0
  439. package/serialization/resources/preEncounter/resources/tags/resources/v1/index.d.ts +1 -0
  440. package/serialization/resources/preEncounter/resources/tags/resources/v1/index.js +17 -0
  441. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +12 -0
  442. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +33 -0
  443. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/Tag.d.ts +15 -0
  444. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/Tag.js +39 -0
  445. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/TagPage.d.ts +14 -0
  446. package/serialization/resources/preEncounter/resources/{patients/resources/v1/types/InvalidMrnErrorBody.js → tags/resources/v1/types/TagPage.js} +6 -5
  447. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/index.d.ts +3 -0
  448. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/index.js +19 -0
  449. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  450. package/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
  451. package/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
  452. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
  453. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
  454. package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
  455. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
  456. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
  457. package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
  458. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -13
  459. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
  460. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
  461. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
  462. package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
  463. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -13
  464. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
  465. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
  466. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
  467. /package/api/resources/preEncounter/resources/common/types/{ErrorBase.js → BaseModel.js} +0 -0
  468. /package/api/resources/preEncounter/resources/common/types/{NotFoundErrorBody.js → ErrorBase4Xx.js} +0 -0
  469. /package/api/resources/preEncounter/resources/{patients/resources/v1/types/InvalidMrnErrorBody.js → notes/resources/v1/types/MutableNote.js} +0 -0
  470. /package/api/resources/preEncounter/resources/{patients/resources/v1/types/PotentialDuplicatePatient.js → notes/resources/v1/types/Note.js} +0 -0
  471. /package/api/resources/preEncounter/resources/{patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js → tags/resources/v1/client/requests/GetAllTagsRequest.js} +0 -0
  472. /package/{dist/api/resources/preEncounter/resources/common/types/ErrorBase.js → api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js} +0 -0
  473. /package/{dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.js → api/resources/preEncounter/resources/tags/resources/v1/types/Tag.js} +0 -0
  474. /package/{dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js → api/resources/preEncounter/resources/tags/resources/v1/types/TagPage.js} +0 -0
  475. /package/dist/api/resources/preEncounter/resources/{patients/resources/v1/types/PotentialDuplicatePatient.js → common/types/BaseModel.js} +0 -0
  476. /package/dist/api/resources/preEncounter/resources/{patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js → common/types/ErrorBase4Xx.js} +0 -0
@@ -0,0 +1,27 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v1 = void 0;
27
+ exports.v1 = __importStar(require("./v1"));
@@ -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("./types"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ export declare const MutableNote: core.serialization.ObjectSchema<serializers.preEncounter.notes.v1.MutableNote.Raw, CandidApi.preEncounter.notes.v1.MutableNote>;
8
+ export declare namespace MutableNote {
9
+ interface Raw {
10
+ value: string;
11
+ author_email?: string | null;
12
+ author_name?: string | null;
13
+ }
14
+ }
@@ -26,10 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PotentialDuplicatePatient = void 0;
29
+ exports.MutableNote = void 0;
30
30
  const core = __importStar(require("../../../../../../../../core"));
31
- const PatientId_1 = require("../../../../common/types/PatientId");
32
- exports.PotentialDuplicatePatient = core.serialization.object({
33
- existingPatientId: core.serialization.property("existing_patient_id", PatientId_1.PatientId),
34
- existingPatientMrn: core.serialization.property("existing_patient_mrn", core.serialization.string()),
31
+ exports.MutableNote = core.serialization.object({
32
+ value: core.serialization.string(),
33
+ authorEmail: core.serialization.property("author_email", core.serialization.string().optional()),
34
+ authorName: core.serialization.property("author_name", core.serialization.string().optional()),
35
35
  });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ import { NoteId } from "../../../../common/types/NoteId";
8
+ import { BaseModel } from "../../../../common/types/BaseModel";
9
+ import { MutableNote } from "./MutableNote";
10
+ export declare const Note: core.serialization.ObjectSchema<serializers.preEncounter.notes.v1.Note.Raw, CandidApi.preEncounter.notes.v1.Note>;
11
+ export declare namespace Note {
12
+ interface Raw extends BaseModel.Raw, MutableNote.Raw {
13
+ id: NoteId.Raw;
14
+ created_at: string;
15
+ }
16
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Note = void 0;
30
+ const core = __importStar(require("../../../../../../../../core"));
31
+ const NoteId_1 = require("../../../../common/types/NoteId");
32
+ const BaseModel_1 = require("../../../../common/types/BaseModel");
33
+ const MutableNote_1 = require("./MutableNote");
34
+ exports.Note = core.serialization
35
+ .object({
36
+ id: NoteId_1.NoteId,
37
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
38
+ })
39
+ .extend(BaseModel_1.BaseModel)
40
+ .extend(MutableNote_1.MutableNote);
@@ -0,0 +1,2 @@
1
+ export * from "./MutableNote";
2
+ export * from "./Note";
@@ -0,0 +1,18 @@
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("./MutableNote"), exports);
18
+ __exportStar(require("./Note"), exports);
@@ -5,16 +5,11 @@ import * as serializers from "../../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  import { VersionConflictErrorBody } from "../../../../common/types/VersionConflictErrorBody";
8
- import { PotentialDuplicatePatientsErrorBody } from "../types/PotentialDuplicatePatientsErrorBody";
9
8
  export declare const Error: core.serialization.Schema<serializers.preEncounter.patients.v1.create.Error.Raw, CandidApi.preEncounter.patients.v1.create.Error>;
10
9
  export declare namespace Error {
11
- type Raw = Error.VersionConflictError | Error.PotentialDuplicatePatients;
10
+ type Raw = Error.VersionConflictError;
12
11
  interface VersionConflictError {
13
12
  errorName: "VersionConflictError";
14
13
  content: VersionConflictErrorBody.Raw;
15
14
  }
16
- interface PotentialDuplicatePatients {
17
- errorName: "PotentialDuplicatePatients";
18
- content: PotentialDuplicatePatientsErrorBody.Raw;
19
- }
20
15
  }
@@ -41,23 +41,17 @@ exports.Error = void 0;
41
41
  const CandidApi = __importStar(require("../../../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../../../core"));
43
43
  const VersionConflictErrorBody_1 = require("../../../../common/types/VersionConflictErrorBody");
44
- const PotentialDuplicatePatientsErrorBody_1 = require("../types/PotentialDuplicatePatientsErrorBody");
45
44
  exports.Error = core.serialization
46
45
  .union("errorName", {
47
46
  VersionConflictError: core.serialization.object({
48
47
  content: VersionConflictErrorBody_1.VersionConflictErrorBody,
49
48
  }),
50
- PotentialDuplicatePatients: core.serialization.object({
51
- content: PotentialDuplicatePatientsErrorBody_1.PotentialDuplicatePatientsErrorBody,
52
- }),
53
49
  })
54
50
  .transform({
55
51
  transform: (value) => {
56
52
  switch (value.errorName) {
57
53
  case "VersionConflictError":
58
54
  return CandidApi.preEncounter.patients.v1.create.Error.versionConflictError(value.content);
59
- case "PotentialDuplicatePatients":
60
- return CandidApi.preEncounter.patients.v1.create.Error.potentialDuplicatePatients(value.content);
61
55
  }
62
56
  },
63
57
  untransform: (_a) => {
@@ -5,21 +5,16 @@ import * as serializers from "../../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  import { VersionConflictErrorBody } from "../../../../common/types/VersionConflictErrorBody";
8
- import { PotentialDuplicatePatientsErrorBody } from "../types/PotentialDuplicatePatientsErrorBody";
9
- import { InvalidMrnErrorBody } from "../types/InvalidMrnErrorBody";
8
+ import { ErrorBase4Xx } from "../../../../common/types/ErrorBase4Xx";
10
9
  export declare const Error: core.serialization.Schema<serializers.preEncounter.patients.v1.createWithMrn.Error.Raw, CandidApi.preEncounter.patients.v1.createWithMrn.Error>;
11
10
  export declare namespace Error {
12
- type Raw = Error.VersionConflictError | Error.PotentialDuplicatePatients | Error.InvalidMrnError;
11
+ type Raw = Error.VersionConflictError | Error.BadRequestError;
13
12
  interface VersionConflictError {
14
13
  errorName: "VersionConflictError";
15
14
  content: VersionConflictErrorBody.Raw;
16
15
  }
17
- interface PotentialDuplicatePatients {
18
- errorName: "PotentialDuplicatePatients";
19
- content: PotentialDuplicatePatientsErrorBody.Raw;
20
- }
21
- interface InvalidMrnError {
22
- errorName: "InvalidMRNError";
23
- content: InvalidMrnErrorBody.Raw;
16
+ interface BadRequestError {
17
+ errorName: "BadRequestError";
18
+ content: ErrorBase4Xx.Raw;
24
19
  }
25
20
  }
@@ -41,18 +41,14 @@ exports.Error = void 0;
41
41
  const CandidApi = __importStar(require("../../../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../../../core"));
43
43
  const VersionConflictErrorBody_1 = require("../../../../common/types/VersionConflictErrorBody");
44
- const PotentialDuplicatePatientsErrorBody_1 = require("../types/PotentialDuplicatePatientsErrorBody");
45
- const InvalidMrnErrorBody_1 = require("../types/InvalidMrnErrorBody");
44
+ const ErrorBase4Xx_1 = require("../../../../common/types/ErrorBase4Xx");
46
45
  exports.Error = core.serialization
47
46
  .union("errorName", {
48
47
  VersionConflictError: core.serialization.object({
49
48
  content: VersionConflictErrorBody_1.VersionConflictErrorBody,
50
49
  }),
51
- PotentialDuplicatePatients: core.serialization.object({
52
- content: PotentialDuplicatePatientsErrorBody_1.PotentialDuplicatePatientsErrorBody,
53
- }),
54
- InvalidMRNError: core.serialization.object({
55
- content: InvalidMrnErrorBody_1.InvalidMrnErrorBody,
50
+ BadRequestError: core.serialization.object({
51
+ content: ErrorBase4Xx_1.ErrorBase4Xx,
56
52
  }),
57
53
  })
58
54
  .transform({
@@ -60,10 +56,8 @@ exports.Error = core.serialization
60
56
  switch (value.errorName) {
61
57
  case "VersionConflictError":
62
58
  return CandidApi.preEncounter.patients.v1.createWithMrn.Error.versionConflictError(value.content);
63
- case "PotentialDuplicatePatients":
64
- return CandidApi.preEncounter.patients.v1.createWithMrn.Error.potentialDuplicatePatients(value.content);
65
- case "InvalidMRNError":
66
- return CandidApi.preEncounter.patients.v1.createWithMrn.Error.invalidMrnError(value.content);
59
+ case "BadRequestError":
60
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error.badRequestError(value.content);
67
61
  }
68
62
  },
69
63
  untransform: (_a) => {
@@ -4,14 +4,14 @@
4
4
  import * as serializers from "../../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
- import { NotFoundErrorBody } from "../../../../common/types/NotFoundErrorBody";
7
+ import { ErrorBase4Xx } from "../../../../common/types/ErrorBase4Xx";
8
8
  import { VersionConflictErrorBody } from "../../../../common/types/VersionConflictErrorBody";
9
9
  export declare const Error: core.serialization.Schema<serializers.preEncounter.patients.v1.deactivate.Error.Raw, CandidApi.preEncounter.patients.v1.deactivate.Error>;
10
10
  export declare namespace Error {
11
11
  type Raw = Error.NotFoundError | Error.VersionConflictError;
12
12
  interface NotFoundError {
13
13
  errorName: "NotFoundError";
14
- content: NotFoundErrorBody.Raw;
14
+ content: ErrorBase4Xx.Raw;
15
15
  }
16
16
  interface VersionConflictError {
17
17
  errorName: "VersionConflictError";
@@ -40,12 +40,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
40
40
  exports.Error = void 0;
41
41
  const CandidApi = __importStar(require("../../../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../../../core"));
43
- const NotFoundErrorBody_1 = require("../../../../common/types/NotFoundErrorBody");
43
+ const ErrorBase4Xx_1 = require("../../../../common/types/ErrorBase4Xx");
44
44
  const VersionConflictErrorBody_1 = require("../../../../common/types/VersionConflictErrorBody");
45
45
  exports.Error = core.serialization
46
46
  .union("errorName", {
47
47
  NotFoundError: core.serialization.object({
48
- content: NotFoundErrorBody_1.NotFoundErrorBody,
48
+ content: ErrorBase4Xx_1.ErrorBase4Xx,
49
49
  }),
50
50
  VersionConflictError: core.serialization.object({
51
51
  content: VersionConflictErrorBody_1.VersionConflictErrorBody,
@@ -4,12 +4,12 @@
4
4
  import * as serializers from "../../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
- import { NotFoundErrorBody } from "../../../../common/types/NotFoundErrorBody";
7
+ import { ErrorBase4Xx } from "../../../../common/types/ErrorBase4Xx";
8
8
  export declare const Error: core.serialization.Schema<serializers.preEncounter.patients.v1.get.Error.Raw, CandidApi.preEncounter.patients.v1.get.Error>;
9
9
  export declare namespace Error {
10
10
  type Raw = Error.NotFoundError;
11
11
  interface NotFoundError {
12
12
  errorName: "NotFoundError";
13
- content: NotFoundErrorBody.Raw;
13
+ content: ErrorBase4Xx.Raw;
14
14
  }
15
15
  }
@@ -40,11 +40,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
40
40
  exports.Error = void 0;
41
41
  const CandidApi = __importStar(require("../../../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../../../core"));
43
- const NotFoundErrorBody_1 = require("../../../../common/types/NotFoundErrorBody");
43
+ const ErrorBase4Xx_1 = require("../../../../common/types/ErrorBase4Xx");
44
44
  exports.Error = core.serialization
45
45
  .union("errorName", {
46
46
  NotFoundError: core.serialization.object({
47
- content: NotFoundErrorBody_1.NotFoundErrorBody,
47
+ content: ErrorBase4Xx_1.ErrorBase4Xx,
48
48
  }),
49
49
  })
50
50
  .transform({
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  import { Patient } from "../types/Patient";
8
- import { NotFoundErrorBody } from "../../../../common/types/NotFoundErrorBody";
8
+ import { ErrorBase4Xx } from "../../../../common/types/ErrorBase4Xx";
9
9
  export declare const Response: core.serialization.Schema<serializers.preEncounter.patients.v1.getHistory.Response.Raw, CandidApi.preEncounter.patients.v1.Patient[]>;
10
10
  export declare namespace Response {
11
11
  type Raw = Patient.Raw[];
@@ -15,6 +15,6 @@ export declare namespace Error {
15
15
  type Raw = Error.NotFoundError;
16
16
  interface NotFoundError {
17
17
  errorName: "NotFoundError";
18
- content: NotFoundErrorBody.Raw;
18
+ content: ErrorBase4Xx.Raw;
19
19
  }
20
20
  }
@@ -41,12 +41,12 @@ exports.Error = exports.Response = void 0;
41
41
  const CandidApi = __importStar(require("../../../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../../../core"));
43
43
  const Patient_1 = require("../types/Patient");
44
- const NotFoundErrorBody_1 = require("../../../../common/types/NotFoundErrorBody");
44
+ const ErrorBase4Xx_1 = require("../../../../common/types/ErrorBase4Xx");
45
45
  exports.Response = core.serialization.list(Patient_1.Patient);
46
46
  exports.Error = core.serialization
47
47
  .union("errorName", {
48
48
  NotFoundError: core.serialization.object({
49
- content: NotFoundErrorBody_1.NotFoundErrorBody,
49
+ content: ErrorBase4Xx_1.ErrorBase4Xx,
50
50
  }),
51
51
  })
52
52
  .transform({
@@ -4,14 +4,14 @@
4
4
  import * as serializers from "../../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
- import { NotFoundErrorBody } from "../../../../common/types/NotFoundErrorBody";
7
+ import { ErrorBase4Xx } from "../../../../common/types/ErrorBase4Xx";
8
8
  import { VersionConflictErrorBody } from "../../../../common/types/VersionConflictErrorBody";
9
9
  export declare const Error: core.serialization.Schema<serializers.preEncounter.patients.v1.update.Error.Raw, CandidApi.preEncounter.patients.v1.update.Error>;
10
10
  export declare namespace Error {
11
11
  type Raw = Error.NotFoundError | Error.VersionConflictError;
12
12
  interface NotFoundError {
13
13
  errorName: "NotFoundError";
14
- content: NotFoundErrorBody.Raw;
14
+ content: ErrorBase4Xx.Raw;
15
15
  }
16
16
  interface VersionConflictError {
17
17
  errorName: "VersionConflictError";
@@ -40,12 +40,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
40
40
  exports.Error = void 0;
41
41
  const CandidApi = __importStar(require("../../../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../../../core"));
43
- const NotFoundErrorBody_1 = require("../../../../common/types/NotFoundErrorBody");
43
+ const ErrorBase4Xx_1 = require("../../../../common/types/ErrorBase4Xx");
44
44
  const VersionConflictErrorBody_1 = require("../../../../common/types/VersionConflictErrorBody");
45
45
  exports.Error = core.serialization
46
46
  .union("errorName", {
47
47
  NotFoundError: core.serialization.object({
48
- content: NotFoundErrorBody_1.NotFoundErrorBody,
48
+ content: ErrorBase4Xx_1.ErrorBase4Xx,
49
49
  }),
50
50
  VersionConflictError: core.serialization.object({
51
51
  content: VersionConflictErrorBody_1.VersionConflictErrorBody,
@@ -24,6 +24,8 @@ import { Guarantor } from "./Guarantor";
24
24
  import { Authorization } from "./Authorization";
25
25
  import { Referral } from "./Referral";
26
26
  import { DoNotInvoiceReason } from "./DoNotInvoiceReason";
27
+ import { NoteId } from "../../../../common/types/NoteId";
28
+ import { TagId } from "../../../../common/types/TagId";
27
29
  export declare const MutablePatient: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.MutablePatient.Raw, CandidApi.preEncounter.patients.v1.MutablePatient>;
28
30
  export declare namespace MutablePatient {
29
31
  interface Raw {
@@ -60,5 +62,7 @@ export declare namespace MutablePatient {
60
62
  referrals?: Referral.Raw[] | null;
61
63
  primary_service_facility_id?: string | null;
62
64
  do_not_invoice_reason?: DoNotInvoiceReason.Raw | null;
65
+ note_ids?: NoteId.Raw[] | null;
66
+ tag_ids?: TagId.Raw[] | null;
63
67
  }
64
68
  }
@@ -48,6 +48,8 @@ const Guarantor_1 = require("./Guarantor");
48
48
  const Authorization_1 = require("./Authorization");
49
49
  const Referral_1 = require("./Referral");
50
50
  const DoNotInvoiceReason_1 = require("./DoNotInvoiceReason");
51
+ const NoteId_1 = require("../../../../common/types/NoteId");
52
+ const TagId_1 = require("../../../../common/types/TagId");
51
53
  exports.MutablePatient = core.serialization.object({
52
54
  name: HumanName_1.HumanName,
53
55
  otherNames: core.serialization.property("other_names", core.serialization.list(HumanName_1.HumanName)),
@@ -82,4 +84,6 @@ exports.MutablePatient = core.serialization.object({
82
84
  referrals: core.serialization.list(Referral_1.Referral).optional(),
83
85
  primaryServiceFacilityId: core.serialization.property("primary_service_facility_id", core.serialization.string().optional()),
84
86
  doNotInvoiceReason: core.serialization.property("do_not_invoice_reason", DoNotInvoiceReason_1.DoNotInvoiceReason.optional()),
87
+ noteIds: core.serialization.property("note_ids", core.serialization.list(NoteId_1.NoteId).optional()),
88
+ tagIds: core.serialization.property("tag_ids", core.serialization.list(TagId_1.TagId).optional()),
85
89
  });
@@ -5,18 +5,12 @@ import * as serializers from "../../../../../../../index";
5
5
  import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  import { PatientId } from "../../../../common/types/PatientId";
8
- import { OrganizationId } from "../../../../common/types/OrganizationId";
9
- import { UserId } from "../../../../common/types/UserId";
8
+ import { BaseModel } from "../../../../common/types/BaseModel";
10
9
  import { MutablePatient } from "./MutablePatient";
11
10
  export declare const Patient: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.Patient.Raw, CandidApi.preEncounter.patients.v1.Patient>;
12
11
  export declare namespace Patient {
13
- interface Raw extends MutablePatient.Raw {
12
+ interface Raw extends BaseModel.Raw, MutablePatient.Raw {
14
13
  id: PatientId.Raw;
15
14
  mrn: string;
16
- organization_id: OrganizationId.Raw;
17
- deactivated: boolean;
18
- version: number;
19
- updated_at: string;
20
- updating_user_id: UserId.Raw;
21
15
  }
22
16
  }
@@ -29,17 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Patient = void 0;
30
30
  const core = __importStar(require("../../../../../../../../core"));
31
31
  const PatientId_1 = require("../../../../common/types/PatientId");
32
- const OrganizationId_1 = require("../../../../common/types/OrganizationId");
33
- const UserId_1 = require("../../../../common/types/UserId");
32
+ const BaseModel_1 = require("../../../../common/types/BaseModel");
34
33
  const MutablePatient_1 = require("./MutablePatient");
35
34
  exports.Patient = core.serialization
36
35
  .object({
37
36
  id: PatientId_1.PatientId,
38
37
  mrn: core.serialization.string(),
39
- organizationId: core.serialization.property("organization_id", OrganizationId_1.OrganizationId),
40
- deactivated: core.serialization.boolean(),
41
- version: core.serialization.number(),
42
- updatedAt: core.serialization.property("updated_at", core.serialization.date()),
43
- updatingUserId: core.serialization.property("updating_user_id", UserId_1.UserId),
44
38
  })
39
+ .extend(BaseModel_1.BaseModel)
45
40
  .extend(MutablePatient_1.MutablePatient);
@@ -8,9 +8,6 @@ export * from "./MutablePatient";
8
8
  export * from "./MutablePatientWithMrn";
9
9
  export * from "./Patient";
10
10
  export * from "./PatientPage";
11
- export * from "./PotentialDuplicatePatient";
12
- export * from "./PotentialDuplicatePatientsErrorBody";
13
- export * from "./InvalidMrnErrorBody";
14
11
  export * from "./AuthorizationUnit";
15
12
  export * from "./Authorization";
16
13
  export * from "./Referral";
@@ -24,9 +24,6 @@ __exportStar(require("./MutablePatient"), exports);
24
24
  __exportStar(require("./MutablePatientWithMrn"), exports);
25
25
  __exportStar(require("./Patient"), exports);
26
26
  __exportStar(require("./PatientPage"), exports);
27
- __exportStar(require("./PotentialDuplicatePatient"), exports);
28
- __exportStar(require("./PotentialDuplicatePatientsErrorBody"), exports);
29
- __exportStar(require("./InvalidMrnErrorBody"), exports);
30
27
  __exportStar(require("./AuthorizationUnit"), exports);
31
28
  __exportStar(require("./Authorization"), exports);
32
29
  __exportStar(require("./Referral"), exports);
@@ -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,27 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v1 = void 0;
27
+ exports.v1 = __importStar(require("./v1"));
@@ -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("./types"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ export declare const MutableTag: core.serialization.ObjectSchema<serializers.preEncounter.tags.v1.MutableTag.Raw, CandidApi.preEncounter.tags.v1.MutableTag>;
8
+ export declare namespace MutableTag {
9
+ interface Raw {
10
+ value: string;
11
+ }
12
+ }