@metriport/shared 0.33.1 → 0.33.4

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 (1102) hide show
  1. package/dist/domain/network-query/query.d.ts +6 -2
  2. package/dist/domain/network-query/query.d.ts.map +1 -1
  3. package/dist/domain/network-query/source.d.ts +1 -1
  4. package/dist/domain/network-query/source.d.ts.map +1 -1
  5. package/dist/domain/network-query/source.js.map +1 -1
  6. package/dist/interface/external/ehr/canvas/appointment.d.ts +15 -10
  7. package/dist/interface/external/ehr/canvas/appointment.d.ts.map +1 -1
  8. package/dist/interface/external/ehr/canvas/appointment.js +16 -2
  9. package/dist/interface/external/ehr/canvas/appointment.js.map +1 -1
  10. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts +12 -0
  11. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts.map +1 -1
  12. package/dist/interface/external/ehr/canvas/cx-mapping.js +5 -0
  13. package/dist/interface/external/ehr/canvas/cx-mapping.js.map +1 -1
  14. package/dist/interface/external/surescripts/notifications/file-name.d.ts +14 -0
  15. package/dist/interface/external/surescripts/notifications/file-name.d.ts.map +1 -0
  16. package/dist/interface/external/surescripts/notifications/file-name.js +18 -0
  17. package/dist/interface/external/surescripts/notifications/file-name.js.map +1 -0
  18. package/dist/interface/external/surescripts/notifications/index.d.ts +3 -0
  19. package/dist/interface/external/surescripts/notifications/index.d.ts.map +1 -0
  20. package/dist/interface/external/surescripts/notifications/index.js +19 -0
  21. package/dist/interface/external/surescripts/notifications/index.js.map +1 -0
  22. package/dist/interface/external/surescripts/notifications/types.d.ts +36 -0
  23. package/dist/interface/external/surescripts/notifications/types.d.ts.map +1 -0
  24. package/dist/interface/external/surescripts/notifications/types.js +20 -0
  25. package/dist/interface/external/surescripts/notifications/types.js.map +1 -0
  26. package/dist/net/__tests__/retry.test.js +11 -0
  27. package/dist/net/__tests__/retry.test.js.map +1 -1
  28. package/dist/net/retry.d.ts +2 -0
  29. package/dist/net/retry.d.ts.map +1 -1
  30. package/dist/net/retry.js +9 -7
  31. package/dist/net/retry.js.map +1 -1
  32. package/dist/src/__tests__/env-setup.d.ts +2 -0
  33. package/dist/src/__tests__/env-setup.d.ts.map +1 -0
  34. package/dist/src/__tests__/env-setup.js +45 -0
  35. package/dist/src/__tests__/env-setup.js.map +1 -0
  36. package/dist/src/api/index.d.ts +2 -0
  37. package/dist/src/api/index.d.ts.map +1 -0
  38. package/dist/src/api/index.js +18 -0
  39. package/dist/src/api/index.js.map +1 -0
  40. package/dist/src/api/pagination.d.ts +13 -0
  41. package/dist/src/api/pagination.d.ts.map +1 -0
  42. package/dist/src/api/pagination.js +3 -0
  43. package/dist/src/api/pagination.js.map +1 -0
  44. package/dist/src/common/__tests__/boolean.test.d.ts +2 -0
  45. package/dist/src/common/__tests__/boolean.test.d.ts.map +1 -0
  46. package/dist/src/common/__tests__/boolean.test.js +46 -0
  47. package/dist/src/common/__tests__/boolean.test.js.map +1 -0
  48. package/dist/src/common/__tests__/date.test.d.ts +2 -0
  49. package/dist/src/common/__tests__/date.test.d.ts.map +1 -0
  50. package/dist/src/common/__tests__/date.test.js +225 -0
  51. package/dist/src/common/__tests__/date.test.js.map +1 -0
  52. package/dist/src/common/__tests__/demographics.test.d.ts +2 -0
  53. package/dist/src/common/__tests__/demographics.test.d.ts.map +1 -0
  54. package/dist/src/common/__tests__/demographics.test.js +187 -0
  55. package/dist/src/common/__tests__/demographics.test.js.map +1 -0
  56. package/dist/src/common/__tests__/html-encode.test.d.ts +2 -0
  57. package/dist/src/common/__tests__/html-encode.test.d.ts.map +1 -0
  58. package/dist/src/common/__tests__/html-encode.test.js +31 -0
  59. package/dist/src/common/__tests__/html-encode.test.js.map +1 -0
  60. package/dist/src/common/__tests__/normalize-oid.test.d.ts +2 -0
  61. package/dist/src/common/__tests__/normalize-oid.test.d.ts.map +1 -0
  62. package/dist/src/common/__tests__/normalize-oid.test.js +68 -0
  63. package/dist/src/common/__tests__/normalize-oid.test.js.map +1 -0
  64. package/dist/src/common/__tests__/npi.d.ts +7 -0
  65. package/dist/src/common/__tests__/npi.d.ts.map +1 -0
  66. package/dist/src/common/__tests__/npi.js +31 -0
  67. package/dist/src/common/__tests__/npi.js.map +1 -0
  68. package/dist/src/common/__tests__/number.test.d.ts +2 -0
  69. package/dist/src/common/__tests__/number.test.d.ts.map +1 -0
  70. package/dist/src/common/__tests__/number.test.js +33 -0
  71. package/dist/src/common/__tests__/number.test.js.map +1 -0
  72. package/dist/src/common/__tests__/oid.d.ts +20 -0
  73. package/dist/src/common/__tests__/oid.d.ts.map +1 -0
  74. package/dist/src/common/__tests__/oid.js +29 -0
  75. package/dist/src/common/__tests__/oid.js.map +1 -0
  76. package/dist/src/common/__tests__/oid.test.d.ts +2 -0
  77. package/dist/src/common/__tests__/oid.test.d.ts.map +1 -0
  78. package/dist/src/common/__tests__/oid.test.js +51 -0
  79. package/dist/src/common/__tests__/oid.test.js.map +1 -0
  80. package/dist/src/common/__tests__/retry.test.d.ts +2 -0
  81. package/dist/src/common/__tests__/retry.test.d.ts.map +1 -0
  82. package/dist/src/common/__tests__/retry.test.js +263 -0
  83. package/dist/src/common/__tests__/retry.test.js.map +1 -0
  84. package/dist/src/common/__tests__/string.test.d.ts +2 -0
  85. package/dist/src/common/__tests__/string.test.d.ts.map +1 -0
  86. package/dist/src/common/__tests__/string.test.js +149 -0
  87. package/dist/src/common/__tests__/string.test.js.map +1 -0
  88. package/dist/src/common/__tests__/title-case.test.d.ts +2 -0
  89. package/dist/src/common/__tests__/title-case.test.d.ts.map +1 -0
  90. package/dist/src/common/__tests__/title-case.test.js +71 -0
  91. package/dist/src/common/__tests__/title-case.test.js.map +1 -0
  92. package/dist/src/common/__tests__/validate-npi.test.d.ts +2 -0
  93. package/dist/src/common/__tests__/validate-npi.test.d.ts.map +1 -0
  94. package/dist/src/common/__tests__/validate-npi.test.js +24 -0
  95. package/dist/src/common/__tests__/validate-npi.test.js.map +1 -0
  96. package/dist/src/common/array.d.ts +2 -0
  97. package/dist/src/common/array.d.ts.map +1 -0
  98. package/dist/src/common/array.js +10 -0
  99. package/dist/src/common/array.js.map +1 -0
  100. package/dist/src/common/boolean.d.ts +9 -0
  101. package/dist/src/common/boolean.d.ts.map +1 -0
  102. package/dist/src/common/boolean.js +26 -0
  103. package/dist/src/common/boolean.js.map +1 -0
  104. package/dist/src/common/date.d.ts +68 -0
  105. package/dist/src/common/date.d.ts.map +1 -0
  106. package/dist/src/common/date.js +218 -0
  107. package/dist/src/common/date.js.map +1 -0
  108. package/dist/src/common/demographics.d.ts +24 -0
  109. package/dist/src/common/demographics.d.ts.map +1 -0
  110. package/dist/src/common/demographics.js +115 -0
  111. package/dist/src/common/demographics.js.map +1 -0
  112. package/dist/src/common/duration.d.ts +8 -0
  113. package/dist/src/common/duration.d.ts.map +1 -0
  114. package/dist/src/common/duration.js +32 -0
  115. package/dist/src/common/duration.js.map +1 -0
  116. package/dist/src/common/email.d.ts +5 -0
  117. package/dist/src/common/email.d.ts.map +1 -0
  118. package/dist/src/common/email.js +13 -0
  119. package/dist/src/common/email.js.map +1 -0
  120. package/dist/src/common/env-var.d.ts +12 -0
  121. package/dist/src/common/env-var.d.ts.map +1 -0
  122. package/dist/src/common/env-var.js +52 -0
  123. package/dist/src/common/env-var.js.map +1 -0
  124. package/dist/src/common/error.d.ts +2 -0
  125. package/dist/src/common/error.d.ts.map +1 -0
  126. package/dist/src/common/error.js +7 -0
  127. package/dist/src/common/error.js.map +1 -0
  128. package/dist/src/common/filter-map.d.ts +11 -0
  129. package/dist/src/common/filter-map.d.ts.map +1 -0
  130. package/dist/src/common/filter-map.js +16 -0
  131. package/dist/src/common/filter-map.js.map +1 -0
  132. package/dist/src/common/general.d.ts +6 -0
  133. package/dist/src/common/general.d.ts.map +1 -0
  134. package/dist/src/common/general.js +15 -0
  135. package/dist/src/common/general.js.map +1 -0
  136. package/dist/src/common/html.d.ts +2 -0
  137. package/dist/src/common/html.d.ts.map +1 -0
  138. package/dist/src/common/html.js +12 -0
  139. package/dist/src/common/html.js.map +1 -0
  140. package/dist/src/common/merge-settings.d.ts +21 -0
  141. package/dist/src/common/merge-settings.d.ts.map +1 -0
  142. package/dist/src/common/merge-settings.js +28 -0
  143. package/dist/src/common/merge-settings.js.map +1 -0
  144. package/dist/src/common/metriport-organization.d.ts +3 -0
  145. package/dist/src/common/metriport-organization.d.ts.map +1 -0
  146. package/dist/src/common/metriport-organization.js +25 -0
  147. package/dist/src/common/metriport-organization.js.map +1 -0
  148. package/dist/src/common/net.d.ts +2 -0
  149. package/dist/src/common/net.d.ts.map +1 -0
  150. package/dist/src/common/net.js +15 -0
  151. package/dist/src/common/net.js.map +1 -0
  152. package/dist/src/common/normalize-oid.d.ts +9 -0
  153. package/dist/src/common/normalize-oid.d.ts.map +1 -0
  154. package/dist/src/common/normalize-oid.js +92 -0
  155. package/dist/src/common/normalize-oid.js.map +1 -0
  156. package/dist/src/common/numbers.d.ts +21 -0
  157. package/dist/src/common/numbers.d.ts.map +1 -0
  158. package/dist/src/common/numbers.js +67 -0
  159. package/dist/src/common/numbers.js.map +1 -0
  160. package/dist/src/common/purpose-of-use.d.ts +30 -0
  161. package/dist/src/common/purpose-of-use.d.ts.map +1 -0
  162. package/dist/src/common/purpose-of-use.js +35 -0
  163. package/dist/src/common/purpose-of-use.js.map +1 -0
  164. package/dist/src/common/response.d.ts +5 -0
  165. package/dist/src/common/response.d.ts.map +1 -0
  166. package/dist/src/common/response.js +16 -0
  167. package/dist/src/common/response.js.map +1 -0
  168. package/dist/src/common/retry.d.ts +67 -0
  169. package/dist/src/common/retry.d.ts.map +1 -0
  170. package/dist/src/common/retry.js +127 -0
  171. package/dist/src/common/retry.js.map +1 -0
  172. package/dist/src/common/sleep.d.ts +14 -0
  173. package/dist/src/common/sleep.d.ts.map +1 -0
  174. package/dist/src/common/sleep.js +28 -0
  175. package/dist/src/common/sleep.js.map +1 -0
  176. package/dist/src/common/sql.d.ts +17 -0
  177. package/dist/src/common/sql.d.ts.map +1 -0
  178. package/dist/src/common/sql.js +3 -0
  179. package/dist/src/common/sql.js.map +1 -0
  180. package/dist/src/common/string.d.ts +22 -0
  181. package/dist/src/common/string.d.ts.map +1 -0
  182. package/dist/src/common/string.js +62 -0
  183. package/dist/src/common/string.js.map +1 -0
  184. package/dist/src/common/timer.d.ts +18 -0
  185. package/dist/src/common/timer.d.ts.map +1 -0
  186. package/dist/src/common/timer.js +25 -0
  187. package/dist/src/common/timer.js.map +1 -0
  188. package/dist/src/common/title-case.d.ts +3 -0
  189. package/dist/src/common/title-case.d.ts.map +1 -0
  190. package/dist/src/common/title-case.js +25 -0
  191. package/dist/src/common/title-case.js.map +1 -0
  192. package/dist/src/common/types.d.ts +9 -0
  193. package/dist/src/common/types.d.ts.map +1 -0
  194. package/dist/src/common/types.js +16 -0
  195. package/dist/src/common/types.js.map +1 -0
  196. package/dist/src/common/uuid.d.ts +5 -0
  197. package/dist/src/common/uuid.d.ts.map +1 -0
  198. package/dist/src/common/uuid.js +11 -0
  199. package/dist/src/common/uuid.js.map +1 -0
  200. package/dist/src/common/validate-npi.d.ts +10 -0
  201. package/dist/src/common/validate-npi.d.ts.map +1 -0
  202. package/dist/src/common/validate-npi.js +40 -0
  203. package/dist/src/common/validate-npi.js.map +1 -0
  204. package/dist/src/common/xml-parser.d.ts +3 -0
  205. package/dist/src/common/xml-parser.d.ts.map +1 -0
  206. package/dist/src/common/xml-parser.js +16 -0
  207. package/dist/src/common/xml-parser.js.map +1 -0
  208. package/dist/src/common/zod.d.ts +3 -0
  209. package/dist/src/common/zod.d.ts.map +1 -0
  210. package/dist/src/common/zod.js +11 -0
  211. package/dist/src/common/zod.js.map +1 -0
  212. package/dist/src/domain/__tests__/cursor-utils.test.d.ts +2 -0
  213. package/dist/src/domain/__tests__/cursor-utils.test.d.ts.map +1 -0
  214. package/dist/src/domain/__tests__/cursor-utils.test.js +216 -0
  215. package/dist/src/domain/__tests__/cursor-utils.test.js.map +1 -0
  216. package/dist/src/domain/__tests__/dob.test.d.ts +2 -0
  217. package/dist/src/domain/__tests__/dob.test.d.ts.map +1 -0
  218. package/dist/src/domain/__tests__/dob.test.js +37 -0
  219. package/dist/src/domain/__tests__/dob.test.js.map +1 -0
  220. package/dist/src/domain/__tests__/gender.test.d.ts +2 -0
  221. package/dist/src/domain/__tests__/gender.test.d.ts.map +1 -0
  222. package/dist/src/domain/__tests__/gender.test.js +64 -0
  223. package/dist/src/domain/__tests__/gender.test.js.map +1 -0
  224. package/dist/src/domain/__tests__/pagination-schema.test.d.ts +2 -0
  225. package/dist/src/domain/__tests__/pagination-schema.test.d.ts.map +1 -0
  226. package/dist/src/domain/__tests__/pagination-schema.test.js +165 -0
  227. package/dist/src/domain/__tests__/pagination-schema.test.js.map +1 -0
  228. package/dist/src/domain/address/__tests__/country.test.d.ts +2 -0
  229. package/dist/src/domain/address/__tests__/country.test.d.ts.map +1 -0
  230. package/dist/src/domain/address/__tests__/country.test.js +51 -0
  231. package/dist/src/domain/address/__tests__/country.test.js.map +1 -0
  232. package/dist/src/domain/address/__tests__/state.test.d.ts +2 -0
  233. package/dist/src/domain/address/__tests__/state.test.d.ts.map +1 -0
  234. package/dist/src/domain/address/__tests__/state.test.js +40 -0
  235. package/dist/src/domain/address/__tests__/state.test.js.map +1 -0
  236. package/dist/src/domain/address/__tests__/territory.test.d.ts +2 -0
  237. package/dist/src/domain/address/__tests__/territory.test.d.ts.map +1 -0
  238. package/dist/src/domain/address/__tests__/territory.test.js +35 -0
  239. package/dist/src/domain/address/__tests__/territory.test.js.map +1 -0
  240. package/dist/src/domain/address/__tests__/zip.test.d.ts +2 -0
  241. package/dist/src/domain/address/__tests__/zip.test.d.ts.map +1 -0
  242. package/dist/src/domain/address/__tests__/zip.test.js +162 -0
  243. package/dist/src/domain/address/__tests__/zip.test.js.map +1 -0
  244. package/dist/src/domain/address/city.d.ts +2 -0
  245. package/dist/src/domain/address/city.d.ts.map +1 -0
  246. package/dist/src/domain/address/city.js +8 -0
  247. package/dist/src/domain/address/city.js.map +1 -0
  248. package/dist/src/domain/address/country.d.ts +4 -0
  249. package/dist/src/domain/address/country.d.ts.map +1 -0
  250. package/dist/src/domain/address/country.js +31 -0
  251. package/dist/src/domain/address/country.js.map +1 -0
  252. package/dist/src/domain/address/index.d.ts +6 -0
  253. package/dist/src/domain/address/index.d.ts.map +1 -0
  254. package/dist/src/domain/address/index.js +20 -0
  255. package/dist/src/domain/address/index.js.map +1 -0
  256. package/dist/src/domain/address/state.d.ts +58 -0
  257. package/dist/src/domain/address/state.d.ts.map +1 -0
  258. package/dist/src/domain/address/state.js +179 -0
  259. package/dist/src/domain/address/state.js.map +1 -0
  260. package/dist/src/domain/address/territory.d.ts +10 -0
  261. package/dist/src/domain/address/territory.d.ts.map +1 -0
  262. package/dist/src/domain/address/territory.js +32 -0
  263. package/dist/src/domain/address/territory.js.map +1 -0
  264. package/dist/src/domain/address/zip.d.ts +9 -0
  265. package/dist/src/domain/address/zip.d.ts.map +1 -0
  266. package/dist/src/domain/address/zip.js +86 -0
  267. package/dist/src/domain/address/zip.js.map +1 -0
  268. package/dist/src/domain/base-domain.d.ts +14 -0
  269. package/dist/src/domain/base-domain.d.ts.map +1 -0
  270. package/dist/src/domain/base-domain.js +3 -0
  271. package/dist/src/domain/base-domain.js.map +1 -0
  272. package/dist/src/domain/baseDto.d.ts +9 -0
  273. package/dist/src/domain/baseDto.d.ts.map +1 -0
  274. package/dist/src/domain/baseDto.js +10 -0
  275. package/dist/src/domain/baseDto.js.map +1 -0
  276. package/dist/src/domain/care-gap.d.ts +49 -0
  277. package/dist/src/domain/care-gap.d.ts.map +1 -0
  278. package/dist/src/domain/care-gap.js +3 -0
  279. package/dist/src/domain/care-gap.js.map +1 -0
  280. package/dist/src/domain/cohort.d.ts +90 -0
  281. package/dist/src/domain/cohort.d.ts.map +1 -0
  282. package/dist/src/domain/cohort.js +78 -0
  283. package/dist/src/domain/cohort.js.map +1 -0
  284. package/dist/src/domain/consolidated/recreate/event-type.d.ts +7 -0
  285. package/dist/src/domain/consolidated/recreate/event-type.d.ts.map +1 -0
  286. package/dist/src/domain/consolidated/recreate/event-type.js +11 -0
  287. package/dist/src/domain/consolidated/recreate/event-type.js.map +1 -0
  288. package/dist/src/domain/consolidated/recreate/index.d.ts +3 -0
  289. package/dist/src/domain/consolidated/recreate/index.d.ts.map +1 -0
  290. package/dist/src/domain/consolidated/recreate/index.js +19 -0
  291. package/dist/src/domain/consolidated/recreate/index.js.map +1 -0
  292. package/dist/src/domain/consolidated/recreate/supported-event-types.d.ts +8 -0
  293. package/dist/src/domain/consolidated/recreate/supported-event-types.d.ts.map +1 -0
  294. package/dist/src/domain/consolidated/recreate/supported-event-types.js +24 -0
  295. package/dist/src/domain/consolidated/recreate/supported-event-types.js.map +1 -0
  296. package/dist/src/domain/contact/__tests__/email.test.d.ts +2 -0
  297. package/dist/src/domain/contact/__tests__/email.test.d.ts.map +1 -0
  298. package/dist/src/domain/contact/__tests__/email.test.js +136 -0
  299. package/dist/src/domain/contact/__tests__/email.test.js.map +1 -0
  300. package/dist/src/domain/contact/__tests__/phone.test.d.ts +2 -0
  301. package/dist/src/domain/contact/__tests__/phone.test.d.ts.map +1 -0
  302. package/dist/src/domain/contact/__tests__/phone.test.js +194 -0
  303. package/dist/src/domain/contact/__tests__/phone.test.js.map +1 -0
  304. package/dist/src/domain/contact/email.d.ts +32 -0
  305. package/dist/src/domain/contact/email.d.ts.map +1 -0
  306. package/dist/src/domain/contact/email.js +101 -0
  307. package/dist/src/domain/contact/email.js.map +1 -0
  308. package/dist/src/domain/contact/phone.d.ts +22 -0
  309. package/dist/src/domain/contact/phone.d.ts.map +1 -0
  310. package/dist/src/domain/contact/phone.js +68 -0
  311. package/dist/src/domain/contact/phone.js.map +1 -0
  312. package/dist/src/domain/cql-engine/transform.d.ts +32 -0
  313. package/dist/src/domain/cql-engine/transform.d.ts.map +1 -0
  314. package/dist/src/domain/cql-engine/transform.js +19 -0
  315. package/dist/src/domain/cql-engine/transform.js.map +1 -0
  316. package/dist/src/domain/cursor-utils.d.ts +20 -0
  317. package/dist/src/domain/cursor-utils.d.ts.map +1 -0
  318. package/dist/src/domain/cursor-utils.js +50 -0
  319. package/dist/src/domain/cursor-utils.js.map +1 -0
  320. package/dist/src/domain/customer.d.ts +123 -0
  321. package/dist/src/domain/customer.d.ts.map +1 -0
  322. package/dist/src/domain/customer.js +30 -0
  323. package/dist/src/domain/customer.js.map +1 -0
  324. package/dist/src/domain/db.d.ts +71 -0
  325. package/dist/src/domain/db.d.ts.map +1 -0
  326. package/dist/src/domain/db.js +45 -0
  327. package/dist/src/domain/db.js.map +1 -0
  328. package/dist/src/domain/dob.d.ts +10 -0
  329. package/dist/src/domain/dob.d.ts.map +1 -0
  330. package/dist/src/domain/dob.js +26 -0
  331. package/dist/src/domain/dob.js.map +1 -0
  332. package/dist/src/domain/externalId.d.ts +2 -0
  333. package/dist/src/domain/externalId.d.ts.map +1 -0
  334. package/dist/src/domain/externalId.js +7 -0
  335. package/dist/src/domain/externalId.js.map +1 -0
  336. package/dist/src/domain/gender.d.ts +8 -0
  337. package/dist/src/domain/gender.d.ts.map +1 -0
  338. package/dist/src/domain/gender.js +33 -0
  339. package/dist/src/domain/gender.js.map +1 -0
  340. package/dist/src/domain/job/job-status.d.ts +15 -0
  341. package/dist/src/domain/job/job-status.d.ts.map +1 -0
  342. package/dist/src/domain/job/job-status.js +57 -0
  343. package/dist/src/domain/job/job-status.js.map +1 -0
  344. package/dist/src/domain/job/patient-job.d.ts +54 -0
  345. package/dist/src/domain/job/patient-job.d.ts.map +1 -0
  346. package/dist/src/domain/job/patient-job.js +31 -0
  347. package/dist/src/domain/job/patient-job.js.map +1 -0
  348. package/dist/src/domain/job/types.d.ts +19 -0
  349. package/dist/src/domain/job/types.d.ts.map +1 -0
  350. package/dist/src/domain/job/types.js +15 -0
  351. package/dist/src/domain/job/types.js.map +1 -0
  352. package/dist/src/domain/jwt-token.d.ts +6 -0
  353. package/dist/src/domain/jwt-token.d.ts.map +1 -0
  354. package/dist/src/domain/jwt-token.js +3 -0
  355. package/dist/src/domain/jwt-token.js.map +1 -0
  356. package/dist/src/domain/metriport.d.ts +9 -0
  357. package/dist/src/domain/metriport.d.ts.map +1 -0
  358. package/dist/src/domain/metriport.js +13 -0
  359. package/dist/src/domain/metriport.js.map +1 -0
  360. package/dist/src/domain/network-query/__tests__/source.test.d.ts +2 -0
  361. package/dist/src/domain/network-query/__tests__/source.test.d.ts.map +1 -0
  362. package/dist/src/domain/network-query/__tests__/source.test.js +450 -0
  363. package/dist/src/domain/network-query/__tests__/source.test.js.map +1 -0
  364. package/dist/src/domain/network-query/index.d.ts +4 -0
  365. package/dist/src/domain/network-query/index.d.ts.map +1 -0
  366. package/dist/src/domain/network-query/index.js +20 -0
  367. package/dist/src/domain/network-query/index.js.map +1 -0
  368. package/dist/src/domain/network-query/query.d.ts +367 -0
  369. package/dist/src/domain/network-query/query.d.ts.map +1 -0
  370. package/dist/src/domain/network-query/query.js +23 -0
  371. package/dist/src/domain/network-query/query.js.map +1 -0
  372. package/dist/src/domain/network-query/source.d.ts +734 -0
  373. package/dist/src/domain/network-query/source.d.ts.map +1 -0
  374. package/dist/src/domain/network-query/source.js +382 -0
  375. package/dist/src/domain/network-query/source.js.map +1 -0
  376. package/dist/src/domain/network-query/supported-event-types.d.ts +17 -0
  377. package/dist/src/domain/network-query/supported-event-types.d.ts.map +1 -0
  378. package/dist/src/domain/network-query/supported-event-types.js +60 -0
  379. package/dist/src/domain/network-query/supported-event-types.js.map +1 -0
  380. package/dist/src/domain/notification-webhooks/index.d.ts +2 -0
  381. package/dist/src/domain/notification-webhooks/index.d.ts.map +1 -0
  382. package/dist/src/domain/notification-webhooks/index.js +18 -0
  383. package/dist/src/domain/notification-webhooks/index.js.map +1 -0
  384. package/dist/src/domain/notification-webhooks/types.d.ts +33 -0
  385. package/dist/src/domain/notification-webhooks/types.d.ts.map +1 -0
  386. package/dist/src/domain/notification-webhooks/types.js +26 -0
  387. package/dist/src/domain/notification-webhooks/types.js.map +1 -0
  388. package/dist/src/domain/organization.d.ts +90 -0
  389. package/dist/src/domain/organization.d.ts.map +1 -0
  390. package/dist/src/domain/organization.js +41 -0
  391. package/dist/src/domain/organization.js.map +1 -0
  392. package/dist/src/domain/pagination-v2.d.ts +230 -0
  393. package/dist/src/domain/pagination-v2.d.ts.map +1 -0
  394. package/dist/src/domain/pagination-v2.js +132 -0
  395. package/dist/src/domain/pagination-v2.js.map +1 -0
  396. package/dist/src/domain/pagination.d.ts +71 -0
  397. package/dist/src/domain/pagination.d.ts.map +1 -0
  398. package/dist/src/domain/pagination.js +36 -0
  399. package/dist/src/domain/pagination.js.map +1 -0
  400. package/dist/src/domain/patient/__tests__/ssn.test.d.ts +2 -0
  401. package/dist/src/domain/patient/__tests__/ssn.test.d.ts.map +1 -0
  402. package/dist/src/domain/patient/__tests__/ssn.test.js +54 -0
  403. package/dist/src/domain/patient/__tests__/ssn.test.js.map +1 -0
  404. package/dist/src/domain/patient/patient-import/__tests__/status.test.d.ts +2 -0
  405. package/dist/src/domain/patient/patient-import/__tests__/status.test.d.ts.map +1 -0
  406. package/dist/src/domain/patient/patient-import/__tests__/status.test.js +74 -0
  407. package/dist/src/domain/patient/patient-import/__tests__/status.test.js.map +1 -0
  408. package/dist/src/domain/patient/patient-import/__tests__/types.d.ts +4 -0
  409. package/dist/src/domain/patient/patient-import/__tests__/types.d.ts.map +1 -0
  410. package/dist/src/domain/patient/patient-import/__tests__/types.js +19 -0
  411. package/dist/src/domain/patient/patient-import/__tests__/types.js.map +1 -0
  412. package/dist/src/domain/patient/patient-import/__tests__/types.test.d.ts +2 -0
  413. package/dist/src/domain/patient/patient-import/__tests__/types.test.d.ts.map +1 -0
  414. package/dist/src/domain/patient/patient-import/__tests__/types.test.js +69 -0
  415. package/dist/src/domain/patient/patient-import/__tests__/types.test.js.map +1 -0
  416. package/dist/src/domain/patient/patient-import/create.d.ts +19 -0
  417. package/dist/src/domain/patient/patient-import/create.d.ts.map +1 -0
  418. package/dist/src/domain/patient/patient-import/create.js +49 -0
  419. package/dist/src/domain/patient/patient-import/create.js.map +1 -0
  420. package/dist/src/domain/patient/patient-import/mapping.d.ts +20 -0
  421. package/dist/src/domain/patient/patient-import/mapping.d.ts.map +1 -0
  422. package/dist/src/domain/patient/patient-import/mapping.js +3 -0
  423. package/dist/src/domain/patient/patient-import/mapping.js.map +1 -0
  424. package/dist/src/domain/patient/patient-import/metadata.d.ts +9 -0
  425. package/dist/src/domain/patient/patient-import/metadata.d.ts.map +1 -0
  426. package/dist/src/domain/patient/patient-import/metadata.js +21 -0
  427. package/dist/src/domain/patient/patient-import/metadata.js.map +1 -0
  428. package/dist/src/domain/patient/patient-import/schemas.d.ts +46 -0
  429. package/dist/src/domain/patient/patient-import/schemas.d.ts.map +1 -0
  430. package/dist/src/domain/patient/patient-import/schemas.js +49 -0
  431. package/dist/src/domain/patient/patient-import/schemas.js.map +1 -0
  432. package/dist/src/domain/patient/patient-import/status.d.ts +15 -0
  433. package/dist/src/domain/patient/patient-import/status.d.ts.map +1 -0
  434. package/dist/src/domain/patient/patient-import/status.js +48 -0
  435. package/dist/src/domain/patient/patient-import/status.js.map +1 -0
  436. package/dist/src/domain/patient/patient-import/types.d.ts +43 -0
  437. package/dist/src/domain/patient/patient-import/types.d.ts.map +1 -0
  438. package/dist/src/domain/patient/patient-import/types.js +15 -0
  439. package/dist/src/domain/patient/patient-import/types.js.map +1 -0
  440. package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.d.ts +2 -0
  441. package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.d.ts.map +1 -0
  442. package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.js +66 -0
  443. package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.js.map +1 -0
  444. package/dist/src/domain/patient/patient-monitoring/discharge-requery.d.ts +364 -0
  445. package/dist/src/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -0
  446. package/dist/src/domain/patient/patient-monitoring/discharge-requery.js +55 -0
  447. package/dist/src/domain/patient/patient-monitoring/discharge-requery.js.map +1 -0
  448. package/dist/src/domain/patient/patient-monitoring/utils.d.ts +59 -0
  449. package/dist/src/domain/patient/patient-monitoring/utils.d.ts.map +1 -0
  450. package/dist/src/domain/patient/patient-monitoring/utils.js +120 -0
  451. package/dist/src/domain/patient/patient-monitoring/utils.js.map +1 -0
  452. package/dist/src/domain/patient/patient-settings.d.ts +121 -0
  453. package/dist/src/domain/patient/patient-settings.d.ts.map +1 -0
  454. package/dist/src/domain/patient/patient-settings.js +27 -0
  455. package/dist/src/domain/patient/patient-settings.js.map +1 -0
  456. package/dist/src/domain/patient/patient.d.ts +23 -0
  457. package/dist/src/domain/patient/patient.d.ts.map +1 -0
  458. package/dist/src/domain/patient/patient.js +14 -0
  459. package/dist/src/domain/patient/patient.js.map +1 -0
  460. package/dist/src/domain/patient/ssn.d.ts +3 -0
  461. package/dist/src/domain/patient/ssn.d.ts.map +1 -0
  462. package/dist/src/domain/patient/ssn.js +28 -0
  463. package/dist/src/domain/patient/ssn.js.map +1 -0
  464. package/dist/src/domain/patient-cohort.d.ts +6 -0
  465. package/dist/src/domain/patient-cohort.d.ts.map +1 -0
  466. package/dist/src/domain/patient-cohort.js +3 -0
  467. package/dist/src/domain/patient-cohort.js.map +1 -0
  468. package/dist/src/domain/patient-or-all.d.ts +34 -0
  469. package/dist/src/domain/patient-or-all.d.ts.map +1 -0
  470. package/dist/src/domain/patient-or-all.js +17 -0
  471. package/dist/src/domain/patient-or-all.js.map +1 -0
  472. package/dist/src/domain/patient.d.ts +90 -0
  473. package/dist/src/domain/patient.d.ts.map +1 -0
  474. package/dist/src/domain/patient.js +32 -0
  475. package/dist/src/domain/patient.js.map +1 -0
  476. package/dist/src/domain/rate-limiting/index.d.ts +34 -0
  477. package/dist/src/domain/rate-limiting/index.d.ts.map +1 -0
  478. package/dist/src/domain/rate-limiting/index.js +55 -0
  479. package/dist/src/domain/rate-limiting/index.js.map +1 -0
  480. package/dist/src/domain/roster/patient-roster-added-by.d.ts +6 -0
  481. package/dist/src/domain/roster/patient-roster-added-by.d.ts.map +1 -0
  482. package/dist/src/domain/roster/patient-roster-added-by.js +19 -0
  483. package/dist/src/domain/roster/patient-roster-added-by.js.map +1 -0
  484. package/dist/src/domain/roster/patient-roster.d.ts +24 -0
  485. package/dist/src/domain/roster/patient-roster.d.ts.map +1 -0
  486. package/dist/src/domain/roster/patient-roster.js +3 -0
  487. package/dist/src/domain/roster/patient-roster.js.map +1 -0
  488. package/dist/src/domain/roster/roster-status.d.ts +16 -0
  489. package/dist/src/domain/roster/roster-status.d.ts.map +1 -0
  490. package/dist/src/domain/roster/roster-status.js +49 -0
  491. package/dist/src/domain/roster/roster-status.js.map +1 -0
  492. package/dist/src/domain/roster/roster.d.ts +39 -0
  493. package/dist/src/domain/roster/roster.d.ts.map +1 -0
  494. package/dist/src/domain/roster/roster.js +3 -0
  495. package/dist/src/domain/roster/roster.js.map +1 -0
  496. package/dist/src/domain/secrets.d.ts +4 -0
  497. package/dist/src/domain/secrets.d.ts.map +1 -0
  498. package/dist/src/domain/secrets.js +7 -0
  499. package/dist/src/domain/secrets.js.map +1 -0
  500. package/dist/src/domain/suspect.d.ts +5 -0
  501. package/dist/src/domain/suspect.d.ts.map +1 -0
  502. package/dist/src/domain/suspect.js +3 -0
  503. package/dist/src/domain/suspect.js.map +1 -0
  504. package/dist/src/domain/tcm-encounter.d.ts +453 -0
  505. package/dist/src/domain/tcm-encounter.d.ts.map +1 -0
  506. package/dist/src/domain/tcm-encounter.js +98 -0
  507. package/dist/src/domain/tcm-encounter.js.map +1 -0
  508. package/dist/src/error/__tests__/shared.test.d.ts +2 -0
  509. package/dist/src/error/__tests__/shared.test.d.ts.map +1 -0
  510. package/dist/src/error/__tests__/shared.test.js +539 -0
  511. package/dist/src/error/__tests__/shared.test.js.map +1 -0
  512. package/dist/src/error/bad-request.d.ts +5 -0
  513. package/dist/src/error/bad-request.d.ts.map +1 -0
  514. package/dist/src/error/bad-request.js +18 -0
  515. package/dist/src/error/bad-request.js.map +1 -0
  516. package/dist/src/error/metriport-error.d.ts +9 -0
  517. package/dist/src/error/metriport-error.d.ts.map +1 -0
  518. package/dist/src/error/metriport-error.js +22 -0
  519. package/dist/src/error/metriport-error.js.map +1 -0
  520. package/dist/src/error/not-found.d.ts +5 -0
  521. package/dist/src/error/not-found.d.ts.map +1 -0
  522. package/dist/src/error/not-found.js +18 -0
  523. package/dist/src/error/not-found.js.map +1 -0
  524. package/dist/src/error/shared.d.ts +10 -0
  525. package/dist/src/error/shared.d.ts.map +1 -0
  526. package/dist/src/error/shared.js +79 -0
  527. package/dist/src/error/shared.js.map +1 -0
  528. package/dist/src/error/too-many-requests.d.ts +5 -0
  529. package/dist/src/error/too-many-requests.d.ts.map +1 -0
  530. package/dist/src/error/too-many-requests.js +18 -0
  531. package/dist/src/error/too-many-requests.js.map +1 -0
  532. package/dist/src/external/ehr/practicefusion/allergy-data-map.d.ts +34 -0
  533. package/dist/src/external/ehr/practicefusion/allergy-data-map.d.ts.map +1 -0
  534. package/dist/src/external/ehr/practicefusion/allergy-data-map.js +2612 -0
  535. package/dist/src/external/ehr/practicefusion/allergy-data-map.js.map +1 -0
  536. package/dist/src/external/ehr/practicefusion/index.d.ts +3 -0
  537. package/dist/src/external/ehr/practicefusion/index.d.ts.map +1 -0
  538. package/dist/src/external/ehr/practicefusion/index.js +19 -0
  539. package/dist/src/external/ehr/practicefusion/index.js.map +1 -0
  540. package/dist/src/external/ehr/practicefusion/shared.d.ts +18 -0
  541. package/dist/src/external/ehr/practicefusion/shared.d.ts.map +1 -0
  542. package/dist/src/external/ehr/practicefusion/shared.js +65 -0
  543. package/dist/src/external/ehr/practicefusion/shared.js.map +1 -0
  544. package/dist/src/external/hl7v2/constants.d.ts +39 -0
  545. package/dist/src/external/hl7v2/constants.d.ts.map +1 -0
  546. package/dist/src/external/hl7v2/constants.js +56 -0
  547. package/dist/src/external/hl7v2/constants.js.map +1 -0
  548. package/dist/src/external/ihe/constants.d.ts +17 -0
  549. package/dist/src/external/ihe/constants.d.ts.map +1 -0
  550. package/dist/src/external/ihe/constants.js +72 -0
  551. package/dist/src/external/ihe/constants.js.map +1 -0
  552. package/dist/src/external/ihe/index.d.ts +3 -0
  553. package/dist/src/external/ihe/index.d.ts.map +1 -0
  554. package/dist/src/external/ihe/index.js +19 -0
  555. package/dist/src/external/ihe/index.js.map +1 -0
  556. package/dist/src/external/ihe/shared.d.ts +8 -0
  557. package/dist/src/external/ihe/shared.d.ts.map +1 -0
  558. package/dist/src/external/ihe/shared.js +24 -0
  559. package/dist/src/external/ihe/shared.js.map +1 -0
  560. package/dist/src/external/index.d.ts +4 -0
  561. package/dist/src/external/index.d.ts.map +1 -0
  562. package/dist/src/external/index.js +20 -0
  563. package/dist/src/external/index.js.map +1 -0
  564. package/dist/src/external/zod/__tests__/iso-date.test.d.ts +2 -0
  565. package/dist/src/external/zod/__tests__/iso-date.test.d.ts.map +1 -0
  566. package/dist/src/external/zod/__tests__/iso-date.test.js +115 -0
  567. package/dist/src/external/zod/__tests__/iso-date.test.js.map +1 -0
  568. package/dist/src/external/zod/date.d.ts +12 -0
  569. package/dist/src/external/zod/date.d.ts.map +1 -0
  570. package/dist/src/external/zod/date.js +28 -0
  571. package/dist/src/external/zod/date.js.map +1 -0
  572. package/dist/src/external/zod/index.d.ts +5 -0
  573. package/dist/src/external/zod/index.d.ts.map +1 -0
  574. package/dist/src/external/zod/index.js +21 -0
  575. package/dist/src/external/zod/index.js.map +1 -0
  576. package/dist/src/external/zod/string.d.ts +11 -0
  577. package/dist/src/external/zod/string.d.ts.map +1 -0
  578. package/dist/src/external/zod/string.js +27 -0
  579. package/dist/src/external/zod/string.js.map +1 -0
  580. package/dist/src/external/zod/us-state.d.ts +3 -0
  581. package/dist/src/external/zod/us-state.d.ts.map +1 -0
  582. package/dist/src/external/zod/us-state.js +10 -0
  583. package/dist/src/external/zod/us-state.js.map +1 -0
  584. package/dist/src/external/zod/zip.d.ts +3 -0
  585. package/dist/src/external/zod/zip.d.ts.map +1 -0
  586. package/dist/src/external/zod/zip.js +13 -0
  587. package/dist/src/external/zod/zip.js.map +1 -0
  588. package/dist/src/index.d.ts +63 -0
  589. package/dist/src/index.d.ts.map +1 -0
  590. package/dist/src/index.js +123 -0
  591. package/dist/src/index.js.map +1 -0
  592. package/dist/src/interface/external/carequality/directory/simplified-org.d.ts +10 -0
  593. package/dist/src/interface/external/carequality/directory/simplified-org.d.ts.map +1 -0
  594. package/dist/src/interface/external/carequality/directory/simplified-org.js +3 -0
  595. package/dist/src/interface/external/carequality/directory/simplified-org.js.map +1 -0
  596. package/dist/src/interface/external/ehr/athenahealth/allergy.d.ts +206 -0
  597. package/dist/src/interface/external/ehr/athenahealth/allergy.d.ts.map +1 -0
  598. package/dist/src/interface/external/ehr/athenahealth/allergy.js +44 -0
  599. package/dist/src/interface/external/ehr/athenahealth/allergy.js.map +1 -0
  600. package/dist/src/interface/external/ehr/athenahealth/appointment.d.ts +129 -0
  601. package/dist/src/interface/external/ehr/athenahealth/appointment.d.ts.map +1 -0
  602. package/dist/src/interface/external/ehr/athenahealth/appointment.js +30 -0
  603. package/dist/src/interface/external/ehr/athenahealth/appointment.js.map +1 -0
  604. package/dist/src/interface/external/ehr/athenahealth/clinical-document.d.ts +27 -0
  605. package/dist/src/interface/external/ehr/athenahealth/clinical-document.d.ts.map +1 -0
  606. package/dist/src/interface/external/ehr/athenahealth/clinical-document.js +14 -0
  607. package/dist/src/interface/external/ehr/athenahealth/clinical-document.js.map +1 -0
  608. package/dist/src/interface/external/ehr/athenahealth/cx-mapping.d.ts +484 -0
  609. package/dist/src/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +1 -0
  610. package/dist/src/interface/external/ehr/athenahealth/cx-mapping.js +17 -0
  611. package/dist/src/interface/external/ehr/athenahealth/cx-mapping.js.map +1 -0
  612. package/dist/src/interface/external/ehr/athenahealth/department.d.ts +28 -0
  613. package/dist/src/interface/external/ehr/athenahealth/department.d.ts.map +1 -0
  614. package/dist/src/interface/external/ehr/athenahealth/department.js +11 -0
  615. package/dist/src/interface/external/ehr/athenahealth/department.js.map +1 -0
  616. package/dist/src/interface/external/ehr/athenahealth/encounter.d.ts +33 -0
  617. package/dist/src/interface/external/ehr/athenahealth/encounter.d.ts.map +1 -0
  618. package/dist/src/interface/external/ehr/athenahealth/encounter.js +13 -0
  619. package/dist/src/interface/external/ehr/athenahealth/encounter.js.map +1 -0
  620. package/dist/src/interface/external/ehr/athenahealth/family-history.d.ts +305 -0
  621. package/dist/src/interface/external/ehr/athenahealth/family-history.d.ts.map +1 -0
  622. package/dist/src/interface/external/ehr/athenahealth/family-history.js +44 -0
  623. package/dist/src/interface/external/ehr/athenahealth/family-history.js.map +1 -0
  624. package/dist/src/interface/external/ehr/athenahealth/index.d.ts +17 -0
  625. package/dist/src/interface/external/ehr/athenahealth/index.d.ts.map +1 -0
  626. package/dist/src/interface/external/ehr/athenahealth/index.js +33 -0
  627. package/dist/src/interface/external/ehr/athenahealth/index.js.map +1 -0
  628. package/dist/src/interface/external/ehr/athenahealth/jwt-token.d.ts +46 -0
  629. package/dist/src/interface/external/ehr/athenahealth/jwt-token.d.ts.map +1 -0
  630. package/dist/src/interface/external/ehr/athenahealth/jwt-token.js +26 -0
  631. package/dist/src/interface/external/ehr/athenahealth/jwt-token.js.map +1 -0
  632. package/dist/src/interface/external/ehr/athenahealth/lab-result.d.ts +27 -0
  633. package/dist/src/interface/external/ehr/athenahealth/lab-result.d.ts.map +1 -0
  634. package/dist/src/interface/external/ehr/athenahealth/lab-result.js +14 -0
  635. package/dist/src/interface/external/ehr/athenahealth/lab-result.js.map +1 -0
  636. package/dist/src/interface/external/ehr/athenahealth/medication.d.ts +63 -0
  637. package/dist/src/interface/external/ehr/athenahealth/medication.d.ts.map +1 -0
  638. package/dist/src/interface/external/ehr/athenahealth/medication.js +19 -0
  639. package/dist/src/interface/external/ehr/athenahealth/medication.js.map +1 -0
  640. package/dist/src/interface/external/ehr/athenahealth/patient-mapping.d.ts +14 -0
  641. package/dist/src/interface/external/ehr/athenahealth/patient-mapping.d.ts.map +1 -0
  642. package/dist/src/interface/external/ehr/athenahealth/patient-mapping.js +11 -0
  643. package/dist/src/interface/external/ehr/athenahealth/patient-mapping.js.map +1 -0
  644. package/dist/src/interface/external/ehr/athenahealth/patient.d.ts +78 -0
  645. package/dist/src/interface/external/ehr/athenahealth/patient.d.ts.map +1 -0
  646. package/dist/src/interface/external/ehr/athenahealth/patient.js +15 -0
  647. package/dist/src/interface/external/ehr/athenahealth/patient.js.map +1 -0
  648. package/dist/src/interface/external/ehr/athenahealth/problem.d.ts +27 -0
  649. package/dist/src/interface/external/ehr/athenahealth/problem.d.ts.map +1 -0
  650. package/dist/src/interface/external/ehr/athenahealth/problem.js +14 -0
  651. package/dist/src/interface/external/ehr/athenahealth/problem.js.map +1 -0
  652. package/dist/src/interface/external/ehr/athenahealth/subscription.d.ts +20 -0
  653. package/dist/src/interface/external/ehr/athenahealth/subscription.d.ts.map +1 -0
  654. package/dist/src/interface/external/ehr/athenahealth/subscription.js +11 -0
  655. package/dist/src/interface/external/ehr/athenahealth/subscription.js.map +1 -0
  656. package/dist/src/interface/external/ehr/athenahealth/surgical-history.d.ts +27 -0
  657. package/dist/src/interface/external/ehr/athenahealth/surgical-history.d.ts.map +1 -0
  658. package/dist/src/interface/external/ehr/athenahealth/surgical-history.js +14 -0
  659. package/dist/src/interface/external/ehr/athenahealth/surgical-history.js.map +1 -0
  660. package/dist/src/interface/external/ehr/athenahealth/vaccine.d.ts +18 -0
  661. package/dist/src/interface/external/ehr/athenahealth/vaccine.d.ts.map +1 -0
  662. package/dist/src/interface/external/ehr/athenahealth/vaccine.js +11 -0
  663. package/dist/src/interface/external/ehr/athenahealth/vaccine.js.map +1 -0
  664. package/dist/src/interface/external/ehr/athenahealth/vitals.d.ts +67 -0
  665. package/dist/src/interface/external/ehr/athenahealth/vitals.d.ts.map +1 -0
  666. package/dist/src/interface/external/ehr/athenahealth/vitals.js +15 -0
  667. package/dist/src/interface/external/ehr/athenahealth/vitals.js.map +1 -0
  668. package/dist/src/interface/external/ehr/canvas/allergen.d.ts +13 -0
  669. package/dist/src/interface/external/ehr/canvas/allergen.d.ts.map +1 -0
  670. package/dist/src/interface/external/ehr/canvas/allergen.js +9 -0
  671. package/dist/src/interface/external/ehr/canvas/allergen.js.map +1 -0
  672. package/dist/src/interface/external/ehr/canvas/appointment.d.ts +170 -0
  673. package/dist/src/interface/external/ehr/canvas/appointment.d.ts.map +1 -0
  674. package/dist/src/interface/external/ehr/canvas/appointment.js +24 -0
  675. package/dist/src/interface/external/ehr/canvas/appointment.js.map +1 -0
  676. package/dist/src/interface/external/ehr/canvas/cx-mapping.d.ts +469 -0
  677. package/dist/src/interface/external/ehr/canvas/cx-mapping.d.ts.map +1 -0
  678. package/dist/src/interface/external/ehr/canvas/cx-mapping.js +12 -0
  679. package/dist/src/interface/external/ehr/canvas/cx-mapping.js.map +1 -0
  680. package/dist/src/interface/external/ehr/canvas/external-event.d.ts +67 -0
  681. package/dist/src/interface/external/ehr/canvas/external-event.d.ts.map +1 -0
  682. package/dist/src/interface/external/ehr/canvas/external-event.js +48 -0
  683. package/dist/src/interface/external/ehr/canvas/external-event.js.map +1 -0
  684. package/dist/src/interface/external/ehr/canvas/index.d.ts +7 -0
  685. package/dist/src/interface/external/ehr/canvas/index.d.ts.map +1 -0
  686. package/dist/src/interface/external/ehr/canvas/index.js +23 -0
  687. package/dist/src/interface/external/ehr/canvas/index.js.map +1 -0
  688. package/dist/src/interface/external/ehr/canvas/jwt-token.d.ts +73 -0
  689. package/dist/src/interface/external/ehr/canvas/jwt-token.d.ts.map +1 -0
  690. package/dist/src/interface/external/ehr/canvas/jwt-token.js +37 -0
  691. package/dist/src/interface/external/ehr/canvas/jwt-token.js.map +1 -0
  692. package/dist/src/interface/external/ehr/canvas/note.d.ts +119 -0
  693. package/dist/src/interface/external/ehr/canvas/note.d.ts.map +1 -0
  694. package/dist/src/interface/external/ehr/canvas/note.js +26 -0
  695. package/dist/src/interface/external/ehr/canvas/note.js.map +1 -0
  696. package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.d.ts +465 -0
  697. package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.d.ts.map +1 -0
  698. package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.js +10 -0
  699. package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.js.map +1 -0
  700. package/dist/src/interface/external/ehr/eclinicalworks/index.d.ts +2 -0
  701. package/dist/src/interface/external/ehr/eclinicalworks/index.d.ts.map +1 -0
  702. package/dist/src/interface/external/ehr/eclinicalworks/index.js +18 -0
  703. package/dist/src/interface/external/ehr/eclinicalworks/index.js.map +1 -0
  704. package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.d.ts +18 -0
  705. package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.d.ts.map +1 -0
  706. package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.js +15 -0
  707. package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.js.map +1 -0
  708. package/dist/src/interface/external/ehr/elation/appointment.d.ts +71 -0
  709. package/dist/src/interface/external/ehr/elation/appointment.d.ts.map +1 -0
  710. package/dist/src/interface/external/ehr/elation/appointment.js +16 -0
  711. package/dist/src/interface/external/ehr/elation/appointment.js.map +1 -0
  712. package/dist/src/interface/external/ehr/elation/ccda.d.ts +13 -0
  713. package/dist/src/interface/external/ehr/elation/ccda.d.ts.map +1 -0
  714. package/dist/src/interface/external/ehr/elation/ccda.js +9 -0
  715. package/dist/src/interface/external/ehr/elation/ccda.js.map +1 -0
  716. package/dist/src/interface/external/ehr/elation/cx-mapping.d.ts +508 -0
  717. package/dist/src/interface/external/ehr/elation/cx-mapping.d.ts.map +1 -0
  718. package/dist/src/interface/external/ehr/elation/cx-mapping.js +25 -0
  719. package/dist/src/interface/external/ehr/elation/cx-mapping.js.map +1 -0
  720. package/dist/src/interface/external/ehr/elation/event.d.ts +106 -0
  721. package/dist/src/interface/external/ehr/elation/event.d.ts.map +1 -0
  722. package/dist/src/interface/external/ehr/elation/event.js +31 -0
  723. package/dist/src/interface/external/ehr/elation/event.js.map +1 -0
  724. package/dist/src/interface/external/ehr/elation/index.d.ts +13 -0
  725. package/dist/src/interface/external/ehr/elation/index.d.ts.map +1 -0
  726. package/dist/src/interface/external/ehr/elation/index.js +29 -0
  727. package/dist/src/interface/external/ehr/elation/index.js.map +1 -0
  728. package/dist/src/interface/external/ehr/elation/jwt-token.d.ts +46 -0
  729. package/dist/src/interface/external/ehr/elation/jwt-token.d.ts.map +1 -0
  730. package/dist/src/interface/external/ehr/elation/jwt-token.js +26 -0
  731. package/dist/src/interface/external/ehr/elation/jwt-token.js.map +1 -0
  732. package/dist/src/interface/external/ehr/elation/lab.d.ts +10 -0
  733. package/dist/src/interface/external/ehr/elation/lab.d.ts.map +1 -0
  734. package/dist/src/interface/external/ehr/elation/lab.js +8 -0
  735. package/dist/src/interface/external/ehr/elation/lab.js.map +1 -0
  736. package/dist/src/interface/external/ehr/elation/note.d.ts +10 -0
  737. package/dist/src/interface/external/ehr/elation/note.d.ts.map +1 -0
  738. package/dist/src/interface/external/ehr/elation/note.js +8 -0
  739. package/dist/src/interface/external/ehr/elation/note.js.map +1 -0
  740. package/dist/src/interface/external/ehr/elation/patient.d.ts +96 -0
  741. package/dist/src/interface/external/ehr/elation/patient.d.ts.map +1 -0
  742. package/dist/src/interface/external/ehr/elation/patient.js +33 -0
  743. package/dist/src/interface/external/ehr/elation/patient.js.map +1 -0
  744. package/dist/src/interface/external/ehr/elation/practice.d.ts +44 -0
  745. package/dist/src/interface/external/ehr/elation/practice.d.ts.map +1 -0
  746. package/dist/src/interface/external/ehr/elation/practice.js +13 -0
  747. package/dist/src/interface/external/ehr/elation/practice.js.map +1 -0
  748. package/dist/src/interface/external/ehr/elation/problem.d.ts +10 -0
  749. package/dist/src/interface/external/ehr/elation/problem.d.ts.map +1 -0
  750. package/dist/src/interface/external/ehr/elation/problem.js +8 -0
  751. package/dist/src/interface/external/ehr/elation/problem.js.map +1 -0
  752. package/dist/src/interface/external/ehr/elation/subscription.d.ts +53 -0
  753. package/dist/src/interface/external/ehr/elation/subscription.d.ts.map +1 -0
  754. package/dist/src/interface/external/ehr/elation/subscription.js +22 -0
  755. package/dist/src/interface/external/ehr/elation/subscription.js.map +1 -0
  756. package/dist/src/interface/external/ehr/elation/vtial.d.ts +10 -0
  757. package/dist/src/interface/external/ehr/elation/vtial.d.ts.map +1 -0
  758. package/dist/src/interface/external/ehr/elation/vtial.js +8 -0
  759. package/dist/src/interface/external/ehr/elation/vtial.js.map +1 -0
  760. package/dist/src/interface/external/ehr/embed/cx-mapping.d.ts +4 -0
  761. package/dist/src/interface/external/ehr/embed/cx-mapping.d.ts.map +1 -0
  762. package/dist/src/interface/external/ehr/embed/cx-mapping.js +6 -0
  763. package/dist/src/interface/external/ehr/embed/cx-mapping.js.map +1 -0
  764. package/dist/src/interface/external/ehr/embed/index.d.ts +3 -0
  765. package/dist/src/interface/external/ehr/embed/index.d.ts.map +1 -0
  766. package/dist/src/interface/external/ehr/embed/index.js +19 -0
  767. package/dist/src/interface/external/ehr/embed/index.js.map +1 -0
  768. package/dist/src/interface/external/ehr/embed/jwt-token.d.ts +28 -0
  769. package/dist/src/interface/external/ehr/embed/jwt-token.d.ts.map +1 -0
  770. package/dist/src/interface/external/ehr/embed/jwt-token.js +23 -0
  771. package/dist/src/interface/external/ehr/embed/jwt-token.js.map +1 -0
  772. package/dist/src/interface/external/ehr/fhir-resource.d.ts +269 -0
  773. package/dist/src/interface/external/ehr/fhir-resource.d.ts.map +1 -0
  774. package/dist/src/interface/external/ehr/fhir-resource.js +62 -0
  775. package/dist/src/interface/external/ehr/fhir-resource.js.map +1 -0
  776. package/dist/src/interface/external/ehr/healthie/allergy.d.ts +249 -0
  777. package/dist/src/interface/external/ehr/healthie/allergy.d.ts.map +1 -0
  778. package/dist/src/interface/external/ehr/healthie/allergy.js +31 -0
  779. package/dist/src/interface/external/ehr/healthie/allergy.js.map +1 -0
  780. package/dist/src/interface/external/ehr/healthie/appointment.d.ts +221 -0
  781. package/dist/src/interface/external/ehr/healthie/appointment.d.ts.map +1 -0
  782. package/dist/src/interface/external/ehr/healthie/appointment.js +21 -0
  783. package/dist/src/interface/external/ehr/healthie/appointment.js.map +1 -0
  784. package/dist/src/interface/external/ehr/healthie/condition.d.ts +287 -0
  785. package/dist/src/interface/external/ehr/healthie/condition.d.ts.map +1 -0
  786. package/dist/src/interface/external/ehr/healthie/condition.js +40 -0
  787. package/dist/src/interface/external/ehr/healthie/condition.js.map +1 -0
  788. package/dist/src/interface/external/ehr/healthie/cx-mapping.d.ts +931 -0
  789. package/dist/src/interface/external/ehr/healthie/cx-mapping.d.ts.map +1 -0
  790. package/dist/src/interface/external/ehr/healthie/cx-mapping.js +42 -0
  791. package/dist/src/interface/external/ehr/healthie/cx-mapping.js.map +1 -0
  792. package/dist/src/interface/external/ehr/healthie/event.d.ts +44 -0
  793. package/dist/src/interface/external/ehr/healthie/event.d.ts.map +1 -0
  794. package/dist/src/interface/external/ehr/healthie/event.js +20 -0
  795. package/dist/src/interface/external/ehr/healthie/event.js.map +1 -0
  796. package/dist/src/interface/external/ehr/healthie/form-answer-group.d.ts +605 -0
  797. package/dist/src/interface/external/ehr/healthie/form-answer-group.d.ts.map +1 -0
  798. package/dist/src/interface/external/ehr/healthie/form-answer-group.js +49 -0
  799. package/dist/src/interface/external/ehr/healthie/form-answer-group.js.map +1 -0
  800. package/dist/src/interface/external/ehr/healthie/immunization.d.ts +108 -0
  801. package/dist/src/interface/external/ehr/healthie/immunization.d.ts.map +1 -0
  802. package/dist/src/interface/external/ehr/healthie/immunization.js +19 -0
  803. package/dist/src/interface/external/ehr/healthie/immunization.js.map +1 -0
  804. package/dist/src/interface/external/ehr/healthie/index.d.ts +13 -0
  805. package/dist/src/interface/external/ehr/healthie/index.d.ts.map +1 -0
  806. package/dist/src/interface/external/ehr/healthie/index.js +29 -0
  807. package/dist/src/interface/external/ehr/healthie/index.js.map +1 -0
  808. package/dist/src/interface/external/ehr/healthie/jwt-token.d.ts +18 -0
  809. package/dist/src/interface/external/ehr/healthie/jwt-token.d.ts.map +1 -0
  810. package/dist/src/interface/external/ehr/healthie/jwt-token.js +15 -0
  811. package/dist/src/interface/external/ehr/healthie/jwt-token.js.map +1 -0
  812. package/dist/src/interface/external/ehr/healthie/lab.d.ts +492 -0
  813. package/dist/src/interface/external/ehr/healthie/lab.d.ts.map +1 -0
  814. package/dist/src/interface/external/ehr/healthie/lab.js +33 -0
  815. package/dist/src/interface/external/ehr/healthie/lab.js.map +1 -0
  816. package/dist/src/interface/external/ehr/healthie/medication.d.ts +212 -0
  817. package/dist/src/interface/external/ehr/healthie/medication.d.ts.map +1 -0
  818. package/dist/src/interface/external/ehr/healthie/medication.js +36 -0
  819. package/dist/src/interface/external/ehr/healthie/medication.js.map +1 -0
  820. package/dist/src/interface/external/ehr/healthie/patient.d.ts +319 -0
  821. package/dist/src/interface/external/ehr/healthie/patient.d.ts.map +1 -0
  822. package/dist/src/interface/external/ehr/healthie/patient.js +44 -0
  823. package/dist/src/interface/external/ehr/healthie/patient.js.map +1 -0
  824. package/dist/src/interface/external/ehr/healthie/subscription.d.ts +326 -0
  825. package/dist/src/interface/external/ehr/healthie/subscription.d.ts.map +1 -0
  826. package/dist/src/interface/external/ehr/healthie/subscription.js +54 -0
  827. package/dist/src/interface/external/ehr/healthie/subscription.js.map +1 -0
  828. package/dist/src/interface/external/ehr/index.d.ts +5 -0
  829. package/dist/src/interface/external/ehr/index.d.ts.map +1 -0
  830. package/dist/src/interface/external/ehr/index.js +21 -0
  831. package/dist/src/interface/external/ehr/index.js.map +1 -0
  832. package/dist/src/interface/external/ehr/patient.d.ts +250 -0
  833. package/dist/src/interface/external/ehr/patient.d.ts.map +1 -0
  834. package/dist/src/interface/external/ehr/patient.js +35 -0
  835. package/dist/src/interface/external/ehr/patient.js.map +1 -0
  836. package/dist/src/interface/external/ehr/practicefusion/appointment.d.ts +137 -0
  837. package/dist/src/interface/external/ehr/practicefusion/appointment.d.ts.map +1 -0
  838. package/dist/src/interface/external/ehr/practicefusion/appointment.js +29 -0
  839. package/dist/src/interface/external/ehr/practicefusion/appointment.js.map +1 -0
  840. package/dist/src/interface/external/ehr/practicefusion/cx-mapping.d.ts +472 -0
  841. package/dist/src/interface/external/ehr/practicefusion/cx-mapping.d.ts.map +1 -0
  842. package/dist/src/interface/external/ehr/practicefusion/cx-mapping.js +13 -0
  843. package/dist/src/interface/external/ehr/practicefusion/cx-mapping.js.map +1 -0
  844. package/dist/src/interface/external/ehr/practicefusion/index.d.ts +4 -0
  845. package/dist/src/interface/external/ehr/practicefusion/index.d.ts.map +1 -0
  846. package/dist/src/interface/external/ehr/practicefusion/index.js +20 -0
  847. package/dist/src/interface/external/ehr/practicefusion/index.js.map +1 -0
  848. package/dist/src/interface/external/ehr/practicefusion/jwt-token.d.ts +33 -0
  849. package/dist/src/interface/external/ehr/practicefusion/jwt-token.d.ts.map +1 -0
  850. package/dist/src/interface/external/ehr/practicefusion/jwt-token.js +22 -0
  851. package/dist/src/interface/external/ehr/practicefusion/jwt-token.js.map +1 -0
  852. package/dist/src/interface/external/ehr/practicefusion/patient.d.ts +2 -0
  853. package/dist/src/interface/external/ehr/practicefusion/patient.d.ts.map +1 -0
  854. package/dist/src/interface/external/ehr/practicefusion/patient.js +6 -0
  855. package/dist/src/interface/external/ehr/practicefusion/patient.js.map +1 -0
  856. package/dist/src/interface/external/ehr/practicefusion/refresh-token.d.ts +19 -0
  857. package/dist/src/interface/external/ehr/practicefusion/refresh-token.d.ts.map +1 -0
  858. package/dist/src/interface/external/ehr/practicefusion/refresh-token.js +11 -0
  859. package/dist/src/interface/external/ehr/practicefusion/refresh-token.js.map +1 -0
  860. package/dist/src/interface/external/ehr/practitioner.d.ts +49 -0
  861. package/dist/src/interface/external/ehr/practitioner.d.ts.map +1 -0
  862. package/dist/src/interface/external/ehr/practitioner.js +20 -0
  863. package/dist/src/interface/external/ehr/practitioner.js.map +1 -0
  864. package/dist/src/interface/external/ehr/salesforce/cx-mapping.d.ts +465 -0
  865. package/dist/src/interface/external/ehr/salesforce/cx-mapping.d.ts.map +1 -0
  866. package/dist/src/interface/external/ehr/salesforce/cx-mapping.js +10 -0
  867. package/dist/src/interface/external/ehr/salesforce/cx-mapping.js.map +1 -0
  868. package/dist/src/interface/external/ehr/salesforce/index.d.ts +2 -0
  869. package/dist/src/interface/external/ehr/salesforce/index.d.ts.map +1 -0
  870. package/dist/src/interface/external/ehr/salesforce/index.js +18 -0
  871. package/dist/src/interface/external/ehr/salesforce/index.js.map +1 -0
  872. package/dist/src/interface/external/ehr/salesforce/jwt-token.d.ts +21 -0
  873. package/dist/src/interface/external/ehr/salesforce/jwt-token.d.ts.map +1 -0
  874. package/dist/src/interface/external/ehr/salesforce/jwt-token.js +16 -0
  875. package/dist/src/interface/external/ehr/salesforce/jwt-token.js.map +1 -0
  876. package/dist/src/interface/external/ehr/salesforce/patient.d.ts +326 -0
  877. package/dist/src/interface/external/ehr/salesforce/patient.d.ts.map +1 -0
  878. package/dist/src/interface/external/ehr/salesforce/patient.js +69 -0
  879. package/dist/src/interface/external/ehr/salesforce/patient.js.map +1 -0
  880. package/dist/src/interface/external/ehr/shared.d.ts +1845 -0
  881. package/dist/src/interface/external/ehr/shared.d.ts.map +1 -0
  882. package/dist/src/interface/external/ehr/shared.js +133 -0
  883. package/dist/src/interface/external/ehr/shared.js.map +1 -0
  884. package/dist/src/interface/external/ehr/source.d.ts +27 -0
  885. package/dist/src/interface/external/ehr/source.d.ts.map +1 -0
  886. package/dist/src/interface/external/ehr/source.js +55 -0
  887. package/dist/src/interface/external/ehr/source.js.map +1 -0
  888. package/dist/src/interface/external/index.d.ts +3 -0
  889. package/dist/src/interface/external/index.d.ts.map +1 -0
  890. package/dist/src/interface/external/index.js +19 -0
  891. package/dist/src/interface/external/index.js.map +1 -0
  892. package/dist/src/interface/external/quest/roster.d.ts +21 -0
  893. package/dist/src/interface/external/quest/roster.d.ts.map +1 -0
  894. package/dist/src/interface/external/quest/roster.js +39 -0
  895. package/dist/src/interface/external/quest/roster.js.map +1 -0
  896. package/dist/src/interface/external/quest/source.d.ts +11 -0
  897. package/dist/src/interface/external/quest/source.d.ts.map +1 -0
  898. package/dist/src/interface/external/quest/source.js +10 -0
  899. package/dist/src/interface/external/quest/source.js.map +1 -0
  900. package/dist/src/interface/external/surescripts/added-by.d.ts +8 -0
  901. package/dist/src/interface/external/surescripts/added-by.d.ts.map +1 -0
  902. package/dist/src/interface/external/surescripts/added-by.js +23 -0
  903. package/dist/src/interface/external/surescripts/added-by.js.map +1 -0
  904. package/dist/src/interface/external/surescripts/code-list-qualifier.d.ts +6 -0
  905. package/dist/src/interface/external/surescripts/code-list-qualifier.d.ts.map +1 -0
  906. package/dist/src/interface/external/surescripts/code-list-qualifier.js +17 -0
  907. package/dist/src/interface/external/surescripts/code-list-qualifier.js.map +1 -0
  908. package/dist/src/interface/external/surescripts/dea-schedule.d.ts +7 -0
  909. package/dist/src/interface/external/surescripts/dea-schedule.d.ts.map +1 -0
  910. package/dist/src/interface/external/surescripts/dea-schedule.js +32 -0
  911. package/dist/src/interface/external/surescripts/dea-schedule.js.map +1 -0
  912. package/dist/src/interface/external/surescripts/index.d.ts +7 -0
  913. package/dist/src/interface/external/surescripts/index.d.ts.map +1 -0
  914. package/dist/src/interface/external/surescripts/index.js +23 -0
  915. package/dist/src/interface/external/surescripts/index.js.map +1 -0
  916. package/dist/src/interface/external/surescripts/ncpdp.d.ts +12 -0
  917. package/dist/src/interface/external/surescripts/ncpdp.d.ts.map +1 -0
  918. package/dist/src/interface/external/surescripts/ncpdp.js +1472 -0
  919. package/dist/src/interface/external/surescripts/ncpdp.js.map +1 -0
  920. package/dist/src/interface/external/surescripts/notifications/file-name.d.ts +14 -0
  921. package/dist/src/interface/external/surescripts/notifications/file-name.d.ts.map +1 -0
  922. package/dist/src/interface/external/surescripts/notifications/file-name.js +18 -0
  923. package/dist/src/interface/external/surescripts/notifications/file-name.js.map +1 -0
  924. package/dist/src/interface/external/surescripts/notifications/index.d.ts +3 -0
  925. package/dist/src/interface/external/surescripts/notifications/index.d.ts.map +1 -0
  926. package/dist/src/interface/external/surescripts/notifications/index.js +19 -0
  927. package/dist/src/interface/external/surescripts/notifications/index.js.map +1 -0
  928. package/dist/src/interface/external/surescripts/notifications/types.d.ts +36 -0
  929. package/dist/src/interface/external/surescripts/notifications/types.d.ts.map +1 -0
  930. package/dist/src/interface/external/surescripts/notifications/types.js +20 -0
  931. package/dist/src/interface/external/surescripts/notifications/types.js.map +1 -0
  932. package/dist/src/interface/external/surescripts/payment-code.d.ts +14 -0
  933. package/dist/src/interface/external/surescripts/payment-code.d.ts.map +1 -0
  934. package/dist/src/interface/external/surescripts/payment-code.js +78 -0
  935. package/dist/src/interface/external/surescripts/payment-code.js.map +1 -0
  936. package/dist/src/interface/external/surescripts/plan-code.d.ts +7 -0
  937. package/dist/src/interface/external/surescripts/plan-code.d.ts.map +1 -0
  938. package/dist/src/interface/external/surescripts/plan-code.js +25 -0
  939. package/dist/src/interface/external/surescripts/plan-code.js.map +1 -0
  940. package/dist/src/interface/external/surescripts/realtime-pulls/file-name.d.ts +15 -0
  941. package/dist/src/interface/external/surescripts/realtime-pulls/file-name.d.ts.map +1 -0
  942. package/dist/src/interface/external/surescripts/realtime-pulls/file-name.js +19 -0
  943. package/dist/src/interface/external/surescripts/realtime-pulls/file-name.js.map +1 -0
  944. package/dist/src/interface/external/surescripts/realtime-pulls/index.d.ts +3 -0
  945. package/dist/src/interface/external/surescripts/realtime-pulls/index.d.ts.map +1 -0
  946. package/dist/src/interface/external/surescripts/realtime-pulls/index.js +19 -0
  947. package/dist/src/interface/external/surescripts/realtime-pulls/index.js.map +1 -0
  948. package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.d.ts +91 -0
  949. package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.d.ts.map +1 -0
  950. package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.js +64 -0
  951. package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.js.map +1 -0
  952. package/dist/src/interface/external/surescripts/roster.d.ts +14 -0
  953. package/dist/src/interface/external/surescripts/roster.d.ts.map +1 -0
  954. package/dist/src/interface/external/surescripts/roster.js +40 -0
  955. package/dist/src/interface/external/surescripts/roster.js.map +1 -0
  956. package/dist/src/interface/external/surescripts/source.d.ts +2 -0
  957. package/dist/src/interface/external/surescripts/source.d.ts.map +1 -0
  958. package/dist/src/interface/external/surescripts/source.js +5 -0
  959. package/dist/src/interface/external/surescripts/source.js.map +1 -0
  960. package/dist/src/interface/index.d.ts +4 -0
  961. package/dist/src/interface/index.d.ts.map +1 -0
  962. package/dist/src/interface/index.js +20 -0
  963. package/dist/src/interface/index.js.map +1 -0
  964. package/dist/src/interface/internal/cohort.d.ts +1000 -0
  965. package/dist/src/interface/internal/cohort.d.ts.map +1 -0
  966. package/dist/src/interface/internal/cohort.js +66 -0
  967. package/dist/src/interface/internal/cohort.js.map +1 -0
  968. package/dist/src/interface/internal/consolidated.d.ts +374 -0
  969. package/dist/src/interface/internal/consolidated.d.ts.map +1 -0
  970. package/dist/src/interface/internal/consolidated.js +35 -0
  971. package/dist/src/interface/internal/consolidated.js.map +1 -0
  972. package/dist/src/interface/internal/customer.d.ts +14 -0
  973. package/dist/src/interface/internal/customer.d.ts.map +1 -0
  974. package/dist/src/interface/internal/customer.js +28 -0
  975. package/dist/src/interface/internal/customer.js.map +1 -0
  976. package/dist/src/interface/internal/document-query.d.ts +31 -0
  977. package/dist/src/interface/internal/document-query.d.ts.map +1 -0
  978. package/dist/src/interface/internal/document-query.js +21 -0
  979. package/dist/src/interface/internal/document-query.js.map +1 -0
  980. package/dist/src/interface/internal/index.d.ts +5 -0
  981. package/dist/src/interface/internal/index.d.ts.map +1 -0
  982. package/dist/src/interface/internal/index.js +21 -0
  983. package/dist/src/interface/internal/index.js.map +1 -0
  984. package/dist/src/interface/schema/feedback.d.ts +36 -0
  985. package/dist/src/interface/schema/feedback.d.ts.map +1 -0
  986. package/dist/src/interface/schema/feedback.js +17 -0
  987. package/dist/src/interface/schema/feedback.js.map +1 -0
  988. package/dist/src/interface/schema/index.d.ts +2 -0
  989. package/dist/src/interface/schema/index.d.ts.map +1 -0
  990. package/dist/src/interface/schema/index.js +18 -0
  991. package/dist/src/interface/schema/index.js.map +1 -0
  992. package/dist/src/medical/fhir/bundle.d.ts +11 -0
  993. package/dist/src/medical/fhir/bundle.d.ts.map +1 -0
  994. package/dist/src/medical/fhir/bundle.js +23 -0
  995. package/dist/src/medical/fhir/bundle.js.map +1 -0
  996. package/dist/src/medical/fhir/coding.d.ts +16 -0
  997. package/dist/src/medical/fhir/coding.d.ts.map +1 -0
  998. package/dist/src/medical/fhir/coding.js +49 -0
  999. package/dist/src/medical/fhir/coding.js.map +1 -0
  1000. package/dist/src/medical/fhir/constants.d.ts +42 -0
  1001. package/dist/src/medical/fhir/constants.d.ts.map +1 -0
  1002. package/dist/src/medical/fhir/constants.js +68 -0
  1003. package/dist/src/medical/fhir/constants.js.map +1 -0
  1004. package/dist/src/medical/fhir/conversion.d.ts +3 -0
  1005. package/dist/src/medical/fhir/conversion.d.ts.map +1 -0
  1006. package/dist/src/medical/fhir/conversion.js +5 -0
  1007. package/dist/src/medical/fhir/conversion.js.map +1 -0
  1008. package/dist/src/medical/fhir/imaging-detection.d.ts +693 -0
  1009. package/dist/src/medical/fhir/imaging-detection.d.ts.map +1 -0
  1010. package/dist/src/medical/fhir/imaging-detection.js +361 -0
  1011. package/dist/src/medical/fhir/imaging-detection.js.map +1 -0
  1012. package/dist/src/medical/fhir/loinc/loinc-class-display-lookup.json +1730 -0
  1013. package/dist/src/medical/fhir/loinc/loinc-code-class-lookup.json +432994 -0
  1014. package/dist/src/medical/fhir/observations.d.ts +9 -0
  1015. package/dist/src/medical/fhir/observations.d.ts.map +1 -0
  1016. package/dist/src/medical/fhir/observations.js +55 -0
  1017. package/dist/src/medical/fhir/observations.js.map +1 -0
  1018. package/dist/src/medical/fhir/procedure-type.d.ts +1316 -0
  1019. package/dist/src/medical/fhir/procedure-type.d.ts.map +1 -0
  1020. package/dist/src/medical/fhir/procedure-type.js +263 -0
  1021. package/dist/src/medical/fhir/procedure-type.js.map +1 -0
  1022. package/dist/src/medical/fhir/resources.d.ts +6 -0
  1023. package/dist/src/medical/fhir/resources.d.ts.map +1 -0
  1024. package/dist/src/medical/fhir/resources.js +81 -0
  1025. package/dist/src/medical/fhir/resources.js.map +1 -0
  1026. package/dist/src/medical/fhir/specialty-codes.d.ts +79 -0
  1027. package/dist/src/medical/fhir/specialty-codes.d.ts.map +1 -0
  1028. package/dist/src/medical/fhir/specialty-codes.js +1722 -0
  1029. package/dist/src/medical/fhir/specialty-codes.js.map +1 -0
  1030. package/dist/src/medical/index.d.ts +10 -0
  1031. package/dist/src/medical/index.d.ts.map +1 -0
  1032. package/dist/src/medical/index.js +26 -0
  1033. package/dist/src/medical/index.js.map +1 -0
  1034. package/dist/src/medical/webhook/webhook-request.d.ts +4264 -0
  1035. package/dist/src/medical/webhook/webhook-request.d.ts.map +1 -0
  1036. package/dist/src/medical/webhook/webhook-request.js +348 -0
  1037. package/dist/src/medical/webhook/webhook-request.js.map +1 -0
  1038. package/dist/src/medical/webhook/webhook-status-response.d.ts +7 -0
  1039. package/dist/src/medical/webhook/webhook-status-response.d.ts.map +1 -0
  1040. package/dist/src/medical/webhook/webhook-status-response.js +3 -0
  1041. package/dist/src/medical/webhook/webhook-status-response.js.map +1 -0
  1042. package/dist/src/net/__tests__/axios.d.ts +42 -0
  1043. package/dist/src/net/__tests__/axios.d.ts.map +1 -0
  1044. package/dist/src/net/__tests__/axios.js +113 -0
  1045. package/dist/src/net/__tests__/axios.js.map +1 -0
  1046. package/dist/src/net/__tests__/retry.test.d.ts +2 -0
  1047. package/dist/src/net/__tests__/retry.test.d.ts.map +1 -0
  1048. package/dist/src/net/__tests__/retry.test.js +267 -0
  1049. package/dist/src/net/__tests__/retry.test.js.map +1 -0
  1050. package/dist/src/net/error.d.ts +24 -0
  1051. package/dist/src/net/error.d.ts.map +1 -0
  1052. package/dist/src/net/error.js +81 -0
  1053. package/dist/src/net/error.js.map +1 -0
  1054. package/dist/src/net/http.d.ts +25 -0
  1055. package/dist/src/net/http.d.ts.map +1 -0
  1056. package/dist/src/net/http.js +75 -0
  1057. package/dist/src/net/http.js.map +1 -0
  1058. package/dist/src/net/index.d.ts +5 -0
  1059. package/dist/src/net/index.d.ts.map +1 -0
  1060. package/dist/src/net/index.js +21 -0
  1061. package/dist/src/net/index.js.map +1 -0
  1062. package/dist/src/net/retry.d.ts +38 -0
  1063. package/dist/src/net/retry.d.ts.map +1 -0
  1064. package/dist/src/net/retry.js +134 -0
  1065. package/dist/src/net/retry.js.map +1 -0
  1066. package/dist/src/net/url.d.ts +2 -0
  1067. package/dist/src/net/url.d.ts.map +1 -0
  1068. package/dist/src/net/url.js +15 -0
  1069. package/dist/src/net/url.js.map +1 -0
  1070. package/dist/src/util/__tests__/base64.test.d.ts +2 -0
  1071. package/dist/src/util/__tests__/base64.test.d.ts.map +1 -0
  1072. package/dist/src/util/__tests__/base64.test.js +66 -0
  1073. package/dist/src/util/__tests__/base64.test.js.map +1 -0
  1074. package/dist/src/util/base64.d.ts +25 -0
  1075. package/dist/src/util/base64.d.ts.map +1 -0
  1076. package/dist/src/util/base64.js +52 -0
  1077. package/dist/src/util/base64.js.map +1 -0
  1078. package/dist/src/util/duration.d.ts +13 -0
  1079. package/dist/src/util/duration.d.ts.map +1 -0
  1080. package/dist/src/util/duration.js +35 -0
  1081. package/dist/src/util/duration.js.map +1 -0
  1082. package/dist/src/util/index.d.ts +5 -0
  1083. package/dist/src/util/index.d.ts.map +1 -0
  1084. package/dist/src/util/index.js +21 -0
  1085. package/dist/src/util/index.js.map +1 -0
  1086. package/dist/src/util/sqs-delay-from-uuid.d.ts +11 -0
  1087. package/dist/src/util/sqs-delay-from-uuid.d.ts.map +1 -0
  1088. package/dist/src/util/sqs-delay-from-uuid.js +21 -0
  1089. package/dist/src/util/sqs-delay-from-uuid.js.map +1 -0
  1090. package/dist/src/util/stack-trace.d.ts +17 -0
  1091. package/dist/src/util/stack-trace.d.ts.map +1 -0
  1092. package/dist/src/util/stack-trace.js +32 -0
  1093. package/dist/src/util/stack-trace.js.map +1 -0
  1094. package/dist/src/util/uuid-v7.d.ts +162 -0
  1095. package/dist/src/util/uuid-v7.d.ts.map +1 -0
  1096. package/dist/src/util/uuid-v7.js +418 -0
  1097. package/dist/src/util/uuid-v7.js.map +1 -0
  1098. package/dist/src/util/zod.d.ts +13 -0
  1099. package/dist/src/util/zod.d.ts.map +1 -0
  1100. package/dist/src/util/zod.js +26 -0
  1101. package/dist/src/util/zod.js.map +1 -0
  1102. package/package.json +2 -2
@@ -0,0 +1,4264 @@
1
+ import { z, ZodError, ZodFormattedError } from "zod";
2
+ import { LaboratoryNotificationWebhookPayload, NotificationWebhookEvent, PharmacyNotificationWebhookPayload } from "../../domain/notification-webhooks";
3
+ import { SearchSetBundle } from "../fhir/bundle";
4
+ export declare const pingWebhookTypeSchema: z.ZodLiteral<"ping">;
5
+ export type PingWebhookType = z.infer<typeof pingWebhookTypeSchema>;
6
+ export declare const consolidatedWebhookTypeSchema: z.ZodLiteral<"medical.consolidated-data">;
7
+ export type ConsolidatedWebhookType = z.infer<typeof consolidatedWebhookTypeSchema>;
8
+ export declare const docDownloadWebhookTypeSchema: z.ZodLiteral<"medical.document-download">;
9
+ export type DocumentDownloadWebhookType = z.infer<typeof docDownloadWebhookTypeSchema>;
10
+ export declare const docConversionWebhookTypeSchema: z.ZodLiteral<"medical.document-conversion">;
11
+ export type DocumentConversionWebhookType = z.infer<typeof docConversionWebhookTypeSchema>;
12
+ export declare const docBulkDownloadWebhookTypeSchema: z.ZodLiteral<"medical.document-bulk-download-urls">;
13
+ export type DocumentBulkDownloadWebhookType = z.infer<typeof docBulkDownloadWebhookTypeSchema>;
14
+ export declare const docBulkDownloadWebhookTypeSchemaPaged: z.ZodLiteral<"medical.document-bulk-download-paged">;
15
+ export type DocumentBulkDownloadWebhookTypePaged = z.infer<typeof docBulkDownloadWebhookTypeSchemaPaged>;
16
+ declare const hl7NotificationWebhookTypeSchema: z.ZodEnum<["patient.admit", "patient.discharge", "patient.transfer"]>;
17
+ export type Hl7WebhookTypeSchemaType = z.infer<typeof hl7NotificationWebhookTypeSchema>;
18
+ export declare const bulkPatientImportWebhookTypeSchema: z.ZodLiteral<"medical.bulk-patient-create">;
19
+ export type BulkPatientImportWebhookType = z.infer<typeof bulkPatientImportWebhookTypeSchema>;
20
+ export declare const networkQueryHieWebhookTypeSchema: z.ZodLiteral<"network-query.hie">;
21
+ export type NetworkQueryHieWebhookType = z.infer<typeof networkQueryHieWebhookTypeSchema>;
22
+ export declare const networkQueryPharmacyWebhookTypeSchema: z.ZodLiteral<"network-query.pharmacy">;
23
+ export type NetworkQueryPharmacyWebhookType = z.infer<typeof networkQueryPharmacyWebhookTypeSchema>;
24
+ export declare const networkQueryLabWebhookTypeSchema: z.ZodLiteral<"network-query.lab">;
25
+ export type NetworkQueryLabWebhookType = z.infer<typeof networkQueryLabWebhookTypeSchema>;
26
+ export declare const networkQueryWebhookTypeSchema: z.ZodUnion<[z.ZodLiteral<"network-query.hie">, z.ZodLiteral<"network-query.pharmacy">, z.ZodLiteral<"network-query.lab">]>;
27
+ export type NetworkQueryWebhookType = z.infer<typeof networkQueryWebhookTypeSchema>;
28
+ export declare const mapiWebhookTypeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"medical.consolidated-data">, z.ZodLiteral<"medical.consolidated-data">]>, z.ZodLiteral<"medical.document-download">]>, z.ZodLiteral<"medical.document-conversion">]>, z.ZodLiteral<"medical.document-bulk-download-urls">]>, z.ZodEnum<["patient.admit", "patient.discharge", "patient.transfer"]>]>, z.ZodLiteral<"medical.bulk-patient-create">]>, z.ZodLiteral<NotificationWebhookEvent.PharmacyNotification>]>, z.ZodLiteral<NotificationWebhookEvent.LaboratoryNotification>]>, z.ZodLiteral<"medical.document-bulk-download-paged">]>, z.ZodUnion<[z.ZodLiteral<"network-query.hie">, z.ZodLiteral<"network-query.pharmacy">, z.ZodLiteral<"network-query.lab">]>]>;
29
+ export type MAPIWebhookType = z.infer<typeof mapiWebhookTypeSchema>;
30
+ export declare const webhookTypeSchema: z.ZodUnion<[z.ZodLiteral<"ping">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"medical.consolidated-data">, z.ZodLiteral<"medical.consolidated-data">]>, z.ZodLiteral<"medical.document-download">]>, z.ZodLiteral<"medical.document-conversion">]>, z.ZodLiteral<"medical.document-bulk-download-urls">]>, z.ZodEnum<["patient.admit", "patient.discharge", "patient.transfer"]>]>, z.ZodLiteral<"medical.bulk-patient-create">]>, z.ZodLiteral<NotificationWebhookEvent.PharmacyNotification>]>, z.ZodLiteral<NotificationWebhookEvent.LaboratoryNotification>]>, z.ZodLiteral<"medical.document-bulk-download-paged">]>, z.ZodUnion<[z.ZodLiteral<"network-query.hie">, z.ZodLiteral<"network-query.pharmacy">, z.ZodLiteral<"network-query.lab">]>]>]>;
31
+ export type WebhookType = z.infer<typeof webhookTypeSchema>;
32
+ export declare const webhookRequestStatus: readonly ["processing", "success", "failure"];
33
+ export type WebhookRequestStatus = (typeof webhookRequestStatus)[number];
34
+ export declare const webhookPaginationPageSchema: z.ZodObject<{
35
+ page: z.ZodNumber;
36
+ totalPages: z.ZodNumber;
37
+ totalItems: z.ZodNumber;
38
+ }, "strip", z.ZodTypeAny, {
39
+ page: number;
40
+ totalPages: number;
41
+ totalItems: number;
42
+ }, {
43
+ page: number;
44
+ totalPages: number;
45
+ totalItems: number;
46
+ }>;
47
+ export type WebhookPaginationPage = z.infer<typeof webhookPaginationPageSchema>;
48
+ export declare const baseWebhookMetadataSchema: z.ZodObject<{
49
+ messageId: z.ZodString;
50
+ requestId: z.ZodOptional<z.ZodString>;
51
+ when: z.ZodEffects<z.ZodString, string, string>;
52
+ /**
53
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
54
+ */
55
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ messageId: string;
58
+ when: string;
59
+ requestId?: string | undefined;
60
+ data?: unknown;
61
+ }, {
62
+ messageId: string;
63
+ when: string;
64
+ requestId?: string | undefined;
65
+ data?: unknown;
66
+ }>;
67
+ export declare const webhookMetadataSchema: z.ZodObject<z.objectUtil.extendShape<{
68
+ messageId: z.ZodString;
69
+ requestId: z.ZodOptional<z.ZodString>;
70
+ when: z.ZodEffects<z.ZodString, string, string>;
71
+ /**
72
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
73
+ */
74
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
75
+ }, {
76
+ type: z.ZodString;
77
+ }>, "strip", z.ZodTypeAny, {
78
+ type: string;
79
+ messageId: string;
80
+ when: string;
81
+ requestId?: string | undefined;
82
+ data?: unknown;
83
+ }, {
84
+ type: string;
85
+ messageId: string;
86
+ when: string;
87
+ requestId?: string | undefined;
88
+ data?: unknown;
89
+ }>;
90
+ export type WebhookMetadata = z.infer<typeof webhookMetadataSchema>;
91
+ export declare const pingWebhookRequestDataSchema: z.ZodObject<{
92
+ meta: z.ZodObject<z.objectUtil.extendShape<{
93
+ messageId: z.ZodString;
94
+ requestId: z.ZodOptional<z.ZodString>;
95
+ when: z.ZodEffects<z.ZodString, string, string>;
96
+ /**
97
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
98
+ */
99
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
100
+ }, {
101
+ type: z.ZodLiteral<"ping">;
102
+ }>, "strip", z.ZodTypeAny, {
103
+ type: "ping";
104
+ messageId: string;
105
+ when: string;
106
+ requestId?: string | undefined;
107
+ data?: unknown;
108
+ }, {
109
+ type: "ping";
110
+ messageId: string;
111
+ when: string;
112
+ requestId?: string | undefined;
113
+ data?: unknown;
114
+ }>;
115
+ ping: z.ZodString;
116
+ }, "strip", z.ZodTypeAny, {
117
+ ping: string;
118
+ meta: {
119
+ type: "ping";
120
+ messageId: string;
121
+ when: string;
122
+ requestId?: string | undefined;
123
+ data?: unknown;
124
+ };
125
+ }, {
126
+ ping: string;
127
+ meta: {
128
+ type: "ping";
129
+ messageId: string;
130
+ when: string;
131
+ requestId?: string | undefined;
132
+ data?: unknown;
133
+ };
134
+ }>;
135
+ export type PingWebhookRequest = z.infer<typeof pingWebhookRequestDataSchema>;
136
+ export declare const filtersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodBoolean>>]>>;
137
+ export declare const consolidatedWebhookPatientSchema: z.ZodObject<{
138
+ patientId: z.ZodString;
139
+ externalId: z.ZodOptional<z.ZodString>;
140
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
141
+ status: z.ZodEnum<["completed", "failed"]>;
142
+ bundle: z.ZodType<SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined, z.ZodTypeDef, SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined>;
143
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodBoolean>>]>>>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ status: "completed" | "failed";
146
+ patientId: string;
147
+ externalId?: string | undefined;
148
+ additionalIds?: Record<string, string[]> | undefined;
149
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
150
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
151
+ }, {
152
+ status: "completed" | "failed";
153
+ patientId: string;
154
+ externalId?: string | undefined;
155
+ additionalIds?: Record<string, string[]> | undefined;
156
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
157
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
158
+ }>;
159
+ export type ConsolidatedWebhookPatient = z.infer<typeof consolidatedWebhookPatientSchema>;
160
+ export declare const consolidatedWebhookRequestSchema: z.ZodObject<{
161
+ meta: z.ZodObject<z.objectUtil.extendShape<{
162
+ messageId: z.ZodString;
163
+ requestId: z.ZodOptional<z.ZodString>;
164
+ when: z.ZodEffects<z.ZodString, string, string>;
165
+ /**
166
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
167
+ */
168
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
169
+ }, {
170
+ type: z.ZodLiteral<"medical.consolidated-data">;
171
+ }>, "strip", z.ZodTypeAny, {
172
+ type: "medical.consolidated-data";
173
+ messageId: string;
174
+ when: string;
175
+ requestId?: string | undefined;
176
+ data?: unknown;
177
+ }, {
178
+ type: "medical.consolidated-data";
179
+ messageId: string;
180
+ when: string;
181
+ requestId?: string | undefined;
182
+ data?: unknown;
183
+ }>;
184
+ patients: z.ZodArray<z.ZodObject<{
185
+ patientId: z.ZodString;
186
+ externalId: z.ZodOptional<z.ZodString>;
187
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
188
+ status: z.ZodEnum<["completed", "failed"]>;
189
+ bundle: z.ZodType<SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined, z.ZodTypeDef, SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined>;
190
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodBoolean>>]>>>>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ status: "completed" | "failed";
193
+ patientId: string;
194
+ externalId?: string | undefined;
195
+ additionalIds?: Record<string, string[]> | undefined;
196
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
197
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
198
+ }, {
199
+ status: "completed" | "failed";
200
+ patientId: string;
201
+ externalId?: string | undefined;
202
+ additionalIds?: Record<string, string[]> | undefined;
203
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
204
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
205
+ }>, "many">;
206
+ }, "strip", z.ZodTypeAny, {
207
+ meta: {
208
+ type: "medical.consolidated-data";
209
+ messageId: string;
210
+ when: string;
211
+ requestId?: string | undefined;
212
+ data?: unknown;
213
+ };
214
+ patients: {
215
+ status: "completed" | "failed";
216
+ patientId: string;
217
+ externalId?: string | undefined;
218
+ additionalIds?: Record<string, string[]> | undefined;
219
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
220
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
221
+ }[];
222
+ }, {
223
+ meta: {
224
+ type: "medical.consolidated-data";
225
+ messageId: string;
226
+ when: string;
227
+ requestId?: string | undefined;
228
+ data?: unknown;
229
+ };
230
+ patients: {
231
+ status: "completed" | "failed";
232
+ patientId: string;
233
+ externalId?: string | undefined;
234
+ additionalIds?: Record<string, string[]> | undefined;
235
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
236
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
237
+ }[];
238
+ }>;
239
+ export type ConsolidatedWebhookRequest = z.infer<typeof consolidatedWebhookRequestSchema>;
240
+ export declare const documentDownloadWebhookPatientSchema: z.ZodObject<{
241
+ patientId: z.ZodString;
242
+ externalId: z.ZodOptional<z.ZodString>;
243
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
244
+ status: z.ZodEnum<["completed", "failed"]>;
245
+ documents: z.ZodArray<z.ZodObject<{
246
+ id: z.ZodString;
247
+ fileName: z.ZodString;
248
+ description: z.ZodOptional<z.ZodString>;
249
+ status: z.ZodOptional<z.ZodString>;
250
+ indexed: z.ZodOptional<z.ZodString>;
251
+ mimeType: z.ZodOptional<z.ZodString>;
252
+ size: z.ZodOptional<z.ZodNumber>;
253
+ type: z.ZodOptional<z.ZodObject<{
254
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
256
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
257
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ code?: string | null | undefined;
260
+ system?: string | null | undefined;
261
+ display?: string | null | undefined;
262
+ }, {
263
+ code?: string | null | undefined;
264
+ system?: string | null | undefined;
265
+ display?: string | null | undefined;
266
+ }>, "many">>;
267
+ text: z.ZodOptional<z.ZodString>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ coding?: {
270
+ code?: string | null | undefined;
271
+ system?: string | null | undefined;
272
+ display?: string | null | undefined;
273
+ }[] | undefined;
274
+ text?: string | undefined;
275
+ }, {
276
+ coding?: {
277
+ code?: string | null | undefined;
278
+ system?: string | null | undefined;
279
+ display?: string | null | undefined;
280
+ }[] | undefined;
281
+ text?: string | undefined;
282
+ }>>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ id: string;
285
+ fileName: string;
286
+ type?: {
287
+ coding?: {
288
+ code?: string | null | undefined;
289
+ system?: string | null | undefined;
290
+ display?: string | null | undefined;
291
+ }[] | undefined;
292
+ text?: string | undefined;
293
+ } | undefined;
294
+ status?: string | undefined;
295
+ description?: string | undefined;
296
+ indexed?: string | undefined;
297
+ mimeType?: string | undefined;
298
+ size?: number | undefined;
299
+ }, {
300
+ id: string;
301
+ fileName: string;
302
+ type?: {
303
+ coding?: {
304
+ code?: string | null | undefined;
305
+ system?: string | null | undefined;
306
+ display?: string | null | undefined;
307
+ }[] | undefined;
308
+ text?: string | undefined;
309
+ } | undefined;
310
+ status?: string | undefined;
311
+ description?: string | undefined;
312
+ indexed?: string | undefined;
313
+ mimeType?: string | undefined;
314
+ size?: number | undefined;
315
+ }>, "many">;
316
+ }, "strip", z.ZodTypeAny, {
317
+ status: "completed" | "failed";
318
+ patientId: string;
319
+ documents: {
320
+ id: string;
321
+ fileName: string;
322
+ type?: {
323
+ coding?: {
324
+ code?: string | null | undefined;
325
+ system?: string | null | undefined;
326
+ display?: string | null | undefined;
327
+ }[] | undefined;
328
+ text?: string | undefined;
329
+ } | undefined;
330
+ status?: string | undefined;
331
+ description?: string | undefined;
332
+ indexed?: string | undefined;
333
+ mimeType?: string | undefined;
334
+ size?: number | undefined;
335
+ }[];
336
+ externalId?: string | undefined;
337
+ additionalIds?: Record<string, string[]> | undefined;
338
+ }, {
339
+ status: "completed" | "failed";
340
+ patientId: string;
341
+ documents: {
342
+ id: string;
343
+ fileName: string;
344
+ type?: {
345
+ coding?: {
346
+ code?: string | null | undefined;
347
+ system?: string | null | undefined;
348
+ display?: string | null | undefined;
349
+ }[] | undefined;
350
+ text?: string | undefined;
351
+ } | undefined;
352
+ status?: string | undefined;
353
+ description?: string | undefined;
354
+ indexed?: string | undefined;
355
+ mimeType?: string | undefined;
356
+ size?: number | undefined;
357
+ }[];
358
+ externalId?: string | undefined;
359
+ additionalIds?: Record<string, string[]> | undefined;
360
+ }>;
361
+ export type DocumentDownloadWebhookPatient = z.infer<typeof documentDownloadWebhookPatientSchema>;
362
+ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
363
+ meta: z.ZodObject<z.objectUtil.extendShape<{
364
+ messageId: z.ZodString;
365
+ requestId: z.ZodOptional<z.ZodString>;
366
+ when: z.ZodEffects<z.ZodString, string, string>;
367
+ /**
368
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
369
+ */
370
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
371
+ }, {
372
+ type: z.ZodLiteral<"medical.document-download">;
373
+ }>, "strip", z.ZodTypeAny, {
374
+ type: "medical.document-download";
375
+ messageId: string;
376
+ when: string;
377
+ requestId?: string | undefined;
378
+ data?: unknown;
379
+ }, {
380
+ type: "medical.document-download";
381
+ messageId: string;
382
+ when: string;
383
+ requestId?: string | undefined;
384
+ data?: unknown;
385
+ }>;
386
+ patients: z.ZodArray<z.ZodObject<{
387
+ patientId: z.ZodString;
388
+ externalId: z.ZodOptional<z.ZodString>;
389
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
390
+ status: z.ZodEnum<["completed", "failed"]>;
391
+ documents: z.ZodArray<z.ZodObject<{
392
+ id: z.ZodString;
393
+ fileName: z.ZodString;
394
+ description: z.ZodOptional<z.ZodString>;
395
+ status: z.ZodOptional<z.ZodString>;
396
+ indexed: z.ZodOptional<z.ZodString>;
397
+ mimeType: z.ZodOptional<z.ZodString>;
398
+ size: z.ZodOptional<z.ZodNumber>;
399
+ type: z.ZodOptional<z.ZodObject<{
400
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
401
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
402
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
403
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ code?: string | null | undefined;
406
+ system?: string | null | undefined;
407
+ display?: string | null | undefined;
408
+ }, {
409
+ code?: string | null | undefined;
410
+ system?: string | null | undefined;
411
+ display?: string | null | undefined;
412
+ }>, "many">>;
413
+ text: z.ZodOptional<z.ZodString>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ coding?: {
416
+ code?: string | null | undefined;
417
+ system?: string | null | undefined;
418
+ display?: string | null | undefined;
419
+ }[] | undefined;
420
+ text?: string | undefined;
421
+ }, {
422
+ coding?: {
423
+ code?: string | null | undefined;
424
+ system?: string | null | undefined;
425
+ display?: string | null | undefined;
426
+ }[] | undefined;
427
+ text?: string | undefined;
428
+ }>>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ id: string;
431
+ fileName: string;
432
+ type?: {
433
+ coding?: {
434
+ code?: string | null | undefined;
435
+ system?: string | null | undefined;
436
+ display?: string | null | undefined;
437
+ }[] | undefined;
438
+ text?: string | undefined;
439
+ } | undefined;
440
+ status?: string | undefined;
441
+ description?: string | undefined;
442
+ indexed?: string | undefined;
443
+ mimeType?: string | undefined;
444
+ size?: number | undefined;
445
+ }, {
446
+ id: string;
447
+ fileName: string;
448
+ type?: {
449
+ coding?: {
450
+ code?: string | null | undefined;
451
+ system?: string | null | undefined;
452
+ display?: string | null | undefined;
453
+ }[] | undefined;
454
+ text?: string | undefined;
455
+ } | undefined;
456
+ status?: string | undefined;
457
+ description?: string | undefined;
458
+ indexed?: string | undefined;
459
+ mimeType?: string | undefined;
460
+ size?: number | undefined;
461
+ }>, "many">;
462
+ }, "strip", z.ZodTypeAny, {
463
+ status: "completed" | "failed";
464
+ patientId: string;
465
+ documents: {
466
+ id: string;
467
+ fileName: string;
468
+ type?: {
469
+ coding?: {
470
+ code?: string | null | undefined;
471
+ system?: string | null | undefined;
472
+ display?: string | null | undefined;
473
+ }[] | undefined;
474
+ text?: string | undefined;
475
+ } | undefined;
476
+ status?: string | undefined;
477
+ description?: string | undefined;
478
+ indexed?: string | undefined;
479
+ mimeType?: string | undefined;
480
+ size?: number | undefined;
481
+ }[];
482
+ externalId?: string | undefined;
483
+ additionalIds?: Record<string, string[]> | undefined;
484
+ }, {
485
+ status: "completed" | "failed";
486
+ patientId: string;
487
+ documents: {
488
+ id: string;
489
+ fileName: string;
490
+ type?: {
491
+ coding?: {
492
+ code?: string | null | undefined;
493
+ system?: string | null | undefined;
494
+ display?: string | null | undefined;
495
+ }[] | undefined;
496
+ text?: string | undefined;
497
+ } | undefined;
498
+ status?: string | undefined;
499
+ description?: string | undefined;
500
+ indexed?: string | undefined;
501
+ mimeType?: string | undefined;
502
+ size?: number | undefined;
503
+ }[];
504
+ externalId?: string | undefined;
505
+ additionalIds?: Record<string, string[]> | undefined;
506
+ }>, "many">;
507
+ }, "strip", z.ZodTypeAny, {
508
+ meta: {
509
+ type: "medical.document-download";
510
+ messageId: string;
511
+ when: string;
512
+ requestId?: string | undefined;
513
+ data?: unknown;
514
+ };
515
+ patients: {
516
+ status: "completed" | "failed";
517
+ patientId: string;
518
+ documents: {
519
+ id: string;
520
+ fileName: string;
521
+ type?: {
522
+ coding?: {
523
+ code?: string | null | undefined;
524
+ system?: string | null | undefined;
525
+ display?: string | null | undefined;
526
+ }[] | undefined;
527
+ text?: string | undefined;
528
+ } | undefined;
529
+ status?: string | undefined;
530
+ description?: string | undefined;
531
+ indexed?: string | undefined;
532
+ mimeType?: string | undefined;
533
+ size?: number | undefined;
534
+ }[];
535
+ externalId?: string | undefined;
536
+ additionalIds?: Record<string, string[]> | undefined;
537
+ }[];
538
+ }, {
539
+ meta: {
540
+ type: "medical.document-download";
541
+ messageId: string;
542
+ when: string;
543
+ requestId?: string | undefined;
544
+ data?: unknown;
545
+ };
546
+ patients: {
547
+ status: "completed" | "failed";
548
+ patientId: string;
549
+ documents: {
550
+ id: string;
551
+ fileName: string;
552
+ type?: {
553
+ coding?: {
554
+ code?: string | null | undefined;
555
+ system?: string | null | undefined;
556
+ display?: string | null | undefined;
557
+ }[] | undefined;
558
+ text?: string | undefined;
559
+ } | undefined;
560
+ status?: string | undefined;
561
+ description?: string | undefined;
562
+ indexed?: string | undefined;
563
+ mimeType?: string | undefined;
564
+ size?: number | undefined;
565
+ }[];
566
+ externalId?: string | undefined;
567
+ additionalIds?: Record<string, string[]> | undefined;
568
+ }[];
569
+ }>;
570
+ export type DocumentDownloadWebhookRequest = z.infer<typeof documentDownloadWebhookRequestSchema>;
571
+ export declare const documentConversionWebhookPatientSchema: z.ZodObject<{
572
+ patientId: z.ZodString;
573
+ externalId: z.ZodOptional<z.ZodString>;
574
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
575
+ status: z.ZodEnum<["completed", "failed"]>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ status: "completed" | "failed";
578
+ patientId: string;
579
+ externalId?: string | undefined;
580
+ additionalIds?: Record<string, string[]> | undefined;
581
+ }, {
582
+ status: "completed" | "failed";
583
+ patientId: string;
584
+ externalId?: string | undefined;
585
+ additionalIds?: Record<string, string[]> | undefined;
586
+ }>;
587
+ export type DocumentConversionWebhookPatient = z.infer<typeof documentConversionWebhookPatientSchema>;
588
+ export declare const documentConversionWebhookRequestSchema: z.ZodObject<{
589
+ meta: z.ZodObject<z.objectUtil.extendShape<{
590
+ messageId: z.ZodString;
591
+ requestId: z.ZodOptional<z.ZodString>;
592
+ when: z.ZodEffects<z.ZodString, string, string>;
593
+ /**
594
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
595
+ */
596
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
597
+ }, {
598
+ type: z.ZodLiteral<"medical.document-conversion">;
599
+ }>, "strip", z.ZodTypeAny, {
600
+ type: "medical.document-conversion";
601
+ messageId: string;
602
+ when: string;
603
+ requestId?: string | undefined;
604
+ data?: unknown;
605
+ }, {
606
+ type: "medical.document-conversion";
607
+ messageId: string;
608
+ when: string;
609
+ requestId?: string | undefined;
610
+ data?: unknown;
611
+ }>;
612
+ patients: z.ZodArray<z.ZodObject<{
613
+ patientId: z.ZodString;
614
+ externalId: z.ZodOptional<z.ZodString>;
615
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
616
+ status: z.ZodEnum<["completed", "failed"]>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ status: "completed" | "failed";
619
+ patientId: string;
620
+ externalId?: string | undefined;
621
+ additionalIds?: Record<string, string[]> | undefined;
622
+ }, {
623
+ status: "completed" | "failed";
624
+ patientId: string;
625
+ externalId?: string | undefined;
626
+ additionalIds?: Record<string, string[]> | undefined;
627
+ }>, "many">;
628
+ }, "strip", z.ZodTypeAny, {
629
+ meta: {
630
+ type: "medical.document-conversion";
631
+ messageId: string;
632
+ when: string;
633
+ requestId?: string | undefined;
634
+ data?: unknown;
635
+ };
636
+ patients: {
637
+ status: "completed" | "failed";
638
+ patientId: string;
639
+ externalId?: string | undefined;
640
+ additionalIds?: Record<string, string[]> | undefined;
641
+ }[];
642
+ }, {
643
+ meta: {
644
+ type: "medical.document-conversion";
645
+ messageId: string;
646
+ when: string;
647
+ requestId?: string | undefined;
648
+ data?: unknown;
649
+ };
650
+ patients: {
651
+ status: "completed" | "failed";
652
+ patientId: string;
653
+ externalId?: string | undefined;
654
+ additionalIds?: Record<string, string[]> | undefined;
655
+ }[];
656
+ }>;
657
+ export type DocumentConversionWebhookRequest = z.infer<typeof documentConversionWebhookRequestSchema>;
658
+ export declare const documentBulkDownloadWebhookPatientSchema: z.ZodObject<z.objectUtil.extendShape<{
659
+ patientId: z.ZodString;
660
+ externalId: z.ZodOptional<z.ZodString>;
661
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
662
+ status: z.ZodEnum<["completed", "failed"]>;
663
+ }, {
664
+ documents: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
665
+ id: z.ZodString;
666
+ fileName: z.ZodString;
667
+ description: z.ZodOptional<z.ZodString>;
668
+ status: z.ZodOptional<z.ZodString>;
669
+ indexed: z.ZodOptional<z.ZodString>;
670
+ mimeType: z.ZodOptional<z.ZodString>;
671
+ size: z.ZodOptional<z.ZodNumber>;
672
+ type: z.ZodOptional<z.ZodObject<{
673
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
674
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
675
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
676
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ code?: string | null | undefined;
679
+ system?: string | null | undefined;
680
+ display?: string | null | undefined;
681
+ }, {
682
+ code?: string | null | undefined;
683
+ system?: string | null | undefined;
684
+ display?: string | null | undefined;
685
+ }>, "many">>;
686
+ text: z.ZodOptional<z.ZodString>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ coding?: {
689
+ code?: string | null | undefined;
690
+ system?: string | null | undefined;
691
+ display?: string | null | undefined;
692
+ }[] | undefined;
693
+ text?: string | undefined;
694
+ }, {
695
+ coding?: {
696
+ code?: string | null | undefined;
697
+ system?: string | null | undefined;
698
+ display?: string | null | undefined;
699
+ }[] | undefined;
700
+ text?: string | undefined;
701
+ }>>;
702
+ }, {
703
+ url: z.ZodString;
704
+ organizationIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
705
+ name: z.ZodOptional<z.ZodString>;
706
+ identifierValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ name?: string | undefined;
709
+ identifierValues?: string[] | undefined;
710
+ }, {
711
+ name?: string | undefined;
712
+ identifierValues?: string[] | undefined;
713
+ }>, "many">>;
714
+ }>, "strip", z.ZodTypeAny, {
715
+ id: string;
716
+ fileName: string;
717
+ url: string;
718
+ type?: {
719
+ coding?: {
720
+ code?: string | null | undefined;
721
+ system?: string | null | undefined;
722
+ display?: string | null | undefined;
723
+ }[] | undefined;
724
+ text?: string | undefined;
725
+ } | undefined;
726
+ status?: string | undefined;
727
+ description?: string | undefined;
728
+ indexed?: string | undefined;
729
+ mimeType?: string | undefined;
730
+ size?: number | undefined;
731
+ organizationIdentifiers?: {
732
+ name?: string | undefined;
733
+ identifierValues?: string[] | undefined;
734
+ }[] | undefined;
735
+ }, {
736
+ id: string;
737
+ fileName: string;
738
+ url: string;
739
+ type?: {
740
+ coding?: {
741
+ code?: string | null | undefined;
742
+ system?: string | null | undefined;
743
+ display?: string | null | undefined;
744
+ }[] | undefined;
745
+ text?: string | undefined;
746
+ } | undefined;
747
+ status?: string | undefined;
748
+ description?: string | undefined;
749
+ indexed?: string | undefined;
750
+ mimeType?: string | undefined;
751
+ size?: number | undefined;
752
+ organizationIdentifiers?: {
753
+ name?: string | undefined;
754
+ identifierValues?: string[] | undefined;
755
+ }[] | undefined;
756
+ }>, "many">;
757
+ }>, "strip", z.ZodTypeAny, {
758
+ status: "completed" | "failed";
759
+ patientId: string;
760
+ documents: {
761
+ id: string;
762
+ fileName: string;
763
+ url: string;
764
+ type?: {
765
+ coding?: {
766
+ code?: string | null | undefined;
767
+ system?: string | null | undefined;
768
+ display?: string | null | undefined;
769
+ }[] | undefined;
770
+ text?: string | undefined;
771
+ } | undefined;
772
+ status?: string | undefined;
773
+ description?: string | undefined;
774
+ indexed?: string | undefined;
775
+ mimeType?: string | undefined;
776
+ size?: number | undefined;
777
+ organizationIdentifiers?: {
778
+ name?: string | undefined;
779
+ identifierValues?: string[] | undefined;
780
+ }[] | undefined;
781
+ }[];
782
+ externalId?: string | undefined;
783
+ additionalIds?: Record<string, string[]> | undefined;
784
+ }, {
785
+ status: "completed" | "failed";
786
+ patientId: string;
787
+ documents: {
788
+ id: string;
789
+ fileName: string;
790
+ url: string;
791
+ type?: {
792
+ coding?: {
793
+ code?: string | null | undefined;
794
+ system?: string | null | undefined;
795
+ display?: string | null | undefined;
796
+ }[] | undefined;
797
+ text?: string | undefined;
798
+ } | undefined;
799
+ status?: string | undefined;
800
+ description?: string | undefined;
801
+ indexed?: string | undefined;
802
+ mimeType?: string | undefined;
803
+ size?: number | undefined;
804
+ organizationIdentifiers?: {
805
+ name?: string | undefined;
806
+ identifierValues?: string[] | undefined;
807
+ }[] | undefined;
808
+ }[];
809
+ externalId?: string | undefined;
810
+ additionalIds?: Record<string, string[]> | undefined;
811
+ }>;
812
+ export type DocumentBulkDownloadWebhookPatient = z.infer<typeof documentBulkDownloadWebhookPatientSchema>;
813
+ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
814
+ meta: z.ZodObject<z.objectUtil.extendShape<{
815
+ messageId: z.ZodString;
816
+ requestId: z.ZodOptional<z.ZodString>;
817
+ when: z.ZodEffects<z.ZodString, string, string>;
818
+ /**
819
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
820
+ */
821
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
822
+ }, {
823
+ type: z.ZodLiteral<"medical.document-bulk-download-urls">;
824
+ }>, "strip", z.ZodTypeAny, {
825
+ type: "medical.document-bulk-download-urls";
826
+ messageId: string;
827
+ when: string;
828
+ requestId?: string | undefined;
829
+ data?: unknown;
830
+ }, {
831
+ type: "medical.document-bulk-download-urls";
832
+ messageId: string;
833
+ when: string;
834
+ requestId?: string | undefined;
835
+ data?: unknown;
836
+ }>;
837
+ patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
838
+ patientId: z.ZodString;
839
+ externalId: z.ZodOptional<z.ZodString>;
840
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
841
+ status: z.ZodEnum<["completed", "failed"]>;
842
+ }, {
843
+ documents: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
844
+ id: z.ZodString;
845
+ fileName: z.ZodString;
846
+ description: z.ZodOptional<z.ZodString>;
847
+ status: z.ZodOptional<z.ZodString>;
848
+ indexed: z.ZodOptional<z.ZodString>;
849
+ mimeType: z.ZodOptional<z.ZodString>;
850
+ size: z.ZodOptional<z.ZodNumber>;
851
+ type: z.ZodOptional<z.ZodObject<{
852
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
853
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
854
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
855
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
856
+ }, "strip", z.ZodTypeAny, {
857
+ code?: string | null | undefined;
858
+ system?: string | null | undefined;
859
+ display?: string | null | undefined;
860
+ }, {
861
+ code?: string | null | undefined;
862
+ system?: string | null | undefined;
863
+ display?: string | null | undefined;
864
+ }>, "many">>;
865
+ text: z.ZodOptional<z.ZodString>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ coding?: {
868
+ code?: string | null | undefined;
869
+ system?: string | null | undefined;
870
+ display?: string | null | undefined;
871
+ }[] | undefined;
872
+ text?: string | undefined;
873
+ }, {
874
+ coding?: {
875
+ code?: string | null | undefined;
876
+ system?: string | null | undefined;
877
+ display?: string | null | undefined;
878
+ }[] | undefined;
879
+ text?: string | undefined;
880
+ }>>;
881
+ }, {
882
+ url: z.ZodString;
883
+ organizationIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
884
+ name: z.ZodOptional<z.ZodString>;
885
+ identifierValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ name?: string | undefined;
888
+ identifierValues?: string[] | undefined;
889
+ }, {
890
+ name?: string | undefined;
891
+ identifierValues?: string[] | undefined;
892
+ }>, "many">>;
893
+ }>, "strip", z.ZodTypeAny, {
894
+ id: string;
895
+ fileName: string;
896
+ url: string;
897
+ type?: {
898
+ coding?: {
899
+ code?: string | null | undefined;
900
+ system?: string | null | undefined;
901
+ display?: string | null | undefined;
902
+ }[] | undefined;
903
+ text?: string | undefined;
904
+ } | undefined;
905
+ status?: string | undefined;
906
+ description?: string | undefined;
907
+ indexed?: string | undefined;
908
+ mimeType?: string | undefined;
909
+ size?: number | undefined;
910
+ organizationIdentifiers?: {
911
+ name?: string | undefined;
912
+ identifierValues?: string[] | undefined;
913
+ }[] | undefined;
914
+ }, {
915
+ id: string;
916
+ fileName: string;
917
+ url: string;
918
+ type?: {
919
+ coding?: {
920
+ code?: string | null | undefined;
921
+ system?: string | null | undefined;
922
+ display?: string | null | undefined;
923
+ }[] | undefined;
924
+ text?: string | undefined;
925
+ } | undefined;
926
+ status?: string | undefined;
927
+ description?: string | undefined;
928
+ indexed?: string | undefined;
929
+ mimeType?: string | undefined;
930
+ size?: number | undefined;
931
+ organizationIdentifiers?: {
932
+ name?: string | undefined;
933
+ identifierValues?: string[] | undefined;
934
+ }[] | undefined;
935
+ }>, "many">;
936
+ }>, "strip", z.ZodTypeAny, {
937
+ status: "completed" | "failed";
938
+ patientId: string;
939
+ documents: {
940
+ id: string;
941
+ fileName: string;
942
+ url: string;
943
+ type?: {
944
+ coding?: {
945
+ code?: string | null | undefined;
946
+ system?: string | null | undefined;
947
+ display?: string | null | undefined;
948
+ }[] | undefined;
949
+ text?: string | undefined;
950
+ } | undefined;
951
+ status?: string | undefined;
952
+ description?: string | undefined;
953
+ indexed?: string | undefined;
954
+ mimeType?: string | undefined;
955
+ size?: number | undefined;
956
+ organizationIdentifiers?: {
957
+ name?: string | undefined;
958
+ identifierValues?: string[] | undefined;
959
+ }[] | undefined;
960
+ }[];
961
+ externalId?: string | undefined;
962
+ additionalIds?: Record<string, string[]> | undefined;
963
+ }, {
964
+ status: "completed" | "failed";
965
+ patientId: string;
966
+ documents: {
967
+ id: string;
968
+ fileName: string;
969
+ url: string;
970
+ type?: {
971
+ coding?: {
972
+ code?: string | null | undefined;
973
+ system?: string | null | undefined;
974
+ display?: string | null | undefined;
975
+ }[] | undefined;
976
+ text?: string | undefined;
977
+ } | undefined;
978
+ status?: string | undefined;
979
+ description?: string | undefined;
980
+ indexed?: string | undefined;
981
+ mimeType?: string | undefined;
982
+ size?: number | undefined;
983
+ organizationIdentifiers?: {
984
+ name?: string | undefined;
985
+ identifierValues?: string[] | undefined;
986
+ }[] | undefined;
987
+ }[];
988
+ externalId?: string | undefined;
989
+ additionalIds?: Record<string, string[]> | undefined;
990
+ }>, "many">;
991
+ }, "strip", z.ZodTypeAny, {
992
+ meta: {
993
+ type: "medical.document-bulk-download-urls";
994
+ messageId: string;
995
+ when: string;
996
+ requestId?: string | undefined;
997
+ data?: unknown;
998
+ };
999
+ patients: {
1000
+ status: "completed" | "failed";
1001
+ patientId: string;
1002
+ documents: {
1003
+ id: string;
1004
+ fileName: string;
1005
+ url: string;
1006
+ type?: {
1007
+ coding?: {
1008
+ code?: string | null | undefined;
1009
+ system?: string | null | undefined;
1010
+ display?: string | null | undefined;
1011
+ }[] | undefined;
1012
+ text?: string | undefined;
1013
+ } | undefined;
1014
+ status?: string | undefined;
1015
+ description?: string | undefined;
1016
+ indexed?: string | undefined;
1017
+ mimeType?: string | undefined;
1018
+ size?: number | undefined;
1019
+ organizationIdentifiers?: {
1020
+ name?: string | undefined;
1021
+ identifierValues?: string[] | undefined;
1022
+ }[] | undefined;
1023
+ }[];
1024
+ externalId?: string | undefined;
1025
+ additionalIds?: Record<string, string[]> | undefined;
1026
+ }[];
1027
+ }, {
1028
+ meta: {
1029
+ type: "medical.document-bulk-download-urls";
1030
+ messageId: string;
1031
+ when: string;
1032
+ requestId?: string | undefined;
1033
+ data?: unknown;
1034
+ };
1035
+ patients: {
1036
+ status: "completed" | "failed";
1037
+ patientId: string;
1038
+ documents: {
1039
+ id: string;
1040
+ fileName: string;
1041
+ url: string;
1042
+ type?: {
1043
+ coding?: {
1044
+ code?: string | null | undefined;
1045
+ system?: string | null | undefined;
1046
+ display?: string | null | undefined;
1047
+ }[] | undefined;
1048
+ text?: string | undefined;
1049
+ } | undefined;
1050
+ status?: string | undefined;
1051
+ description?: string | undefined;
1052
+ indexed?: string | undefined;
1053
+ mimeType?: string | undefined;
1054
+ size?: number | undefined;
1055
+ organizationIdentifiers?: {
1056
+ name?: string | undefined;
1057
+ identifierValues?: string[] | undefined;
1058
+ }[] | undefined;
1059
+ }[];
1060
+ externalId?: string | undefined;
1061
+ additionalIds?: Record<string, string[]> | undefined;
1062
+ }[];
1063
+ }>;
1064
+ export type DocumentBulkDownloadWebhookRequest = z.infer<typeof documentBulkDownloadWebhookRequestSchema>;
1065
+ export declare const documentBulkDownloadWebhookPatientSchemaPaged: z.ZodObject<z.objectUtil.extendShape<{
1066
+ patientId: z.ZodString;
1067
+ externalId: z.ZodOptional<z.ZodString>;
1068
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1069
+ status: z.ZodEnum<["completed", "failed"]>;
1070
+ }, {
1071
+ documents: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1072
+ id: z.ZodString;
1073
+ fileName: z.ZodString;
1074
+ description: z.ZodOptional<z.ZodString>;
1075
+ status: z.ZodOptional<z.ZodString>;
1076
+ indexed: z.ZodOptional<z.ZodString>;
1077
+ mimeType: z.ZodOptional<z.ZodString>;
1078
+ size: z.ZodOptional<z.ZodNumber>;
1079
+ type: z.ZodOptional<z.ZodObject<{
1080
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
1081
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1082
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1083
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ code?: string | null | undefined;
1086
+ system?: string | null | undefined;
1087
+ display?: string | null | undefined;
1088
+ }, {
1089
+ code?: string | null | undefined;
1090
+ system?: string | null | undefined;
1091
+ display?: string | null | undefined;
1092
+ }>, "many">>;
1093
+ text: z.ZodOptional<z.ZodString>;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ coding?: {
1096
+ code?: string | null | undefined;
1097
+ system?: string | null | undefined;
1098
+ display?: string | null | undefined;
1099
+ }[] | undefined;
1100
+ text?: string | undefined;
1101
+ }, {
1102
+ coding?: {
1103
+ code?: string | null | undefined;
1104
+ system?: string | null | undefined;
1105
+ display?: string | null | undefined;
1106
+ }[] | undefined;
1107
+ text?: string | undefined;
1108
+ }>>;
1109
+ }, {
1110
+ url: z.ZodString;
1111
+ organizationIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1112
+ name: z.ZodOptional<z.ZodString>;
1113
+ identifierValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1114
+ }, "strip", z.ZodTypeAny, {
1115
+ name?: string | undefined;
1116
+ identifierValues?: string[] | undefined;
1117
+ }, {
1118
+ name?: string | undefined;
1119
+ identifierValues?: string[] | undefined;
1120
+ }>, "many">>;
1121
+ downloadUrl: z.ZodString;
1122
+ }>, "strip", z.ZodTypeAny, {
1123
+ id: string;
1124
+ fileName: string;
1125
+ url: string;
1126
+ downloadUrl: string;
1127
+ type?: {
1128
+ coding?: {
1129
+ code?: string | null | undefined;
1130
+ system?: string | null | undefined;
1131
+ display?: string | null | undefined;
1132
+ }[] | undefined;
1133
+ text?: string | undefined;
1134
+ } | undefined;
1135
+ status?: string | undefined;
1136
+ description?: string | undefined;
1137
+ indexed?: string | undefined;
1138
+ mimeType?: string | undefined;
1139
+ size?: number | undefined;
1140
+ organizationIdentifiers?: {
1141
+ name?: string | undefined;
1142
+ identifierValues?: string[] | undefined;
1143
+ }[] | undefined;
1144
+ }, {
1145
+ id: string;
1146
+ fileName: string;
1147
+ url: string;
1148
+ downloadUrl: string;
1149
+ type?: {
1150
+ coding?: {
1151
+ code?: string | null | undefined;
1152
+ system?: string | null | undefined;
1153
+ display?: string | null | undefined;
1154
+ }[] | undefined;
1155
+ text?: string | undefined;
1156
+ } | undefined;
1157
+ status?: string | undefined;
1158
+ description?: string | undefined;
1159
+ indexed?: string | undefined;
1160
+ mimeType?: string | undefined;
1161
+ size?: number | undefined;
1162
+ organizationIdentifiers?: {
1163
+ name?: string | undefined;
1164
+ identifierValues?: string[] | undefined;
1165
+ }[] | undefined;
1166
+ }>, "many">;
1167
+ pagination: z.ZodObject<{
1168
+ page: z.ZodNumber;
1169
+ totalPages: z.ZodNumber;
1170
+ totalItems: z.ZodNumber;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ page: number;
1173
+ totalPages: number;
1174
+ totalItems: number;
1175
+ }, {
1176
+ page: number;
1177
+ totalPages: number;
1178
+ totalItems: number;
1179
+ }>;
1180
+ }>, "strip", z.ZodTypeAny, {
1181
+ status: "completed" | "failed";
1182
+ patientId: string;
1183
+ documents: {
1184
+ id: string;
1185
+ fileName: string;
1186
+ url: string;
1187
+ downloadUrl: string;
1188
+ type?: {
1189
+ coding?: {
1190
+ code?: string | null | undefined;
1191
+ system?: string | null | undefined;
1192
+ display?: string | null | undefined;
1193
+ }[] | undefined;
1194
+ text?: string | undefined;
1195
+ } | undefined;
1196
+ status?: string | undefined;
1197
+ description?: string | undefined;
1198
+ indexed?: string | undefined;
1199
+ mimeType?: string | undefined;
1200
+ size?: number | undefined;
1201
+ organizationIdentifiers?: {
1202
+ name?: string | undefined;
1203
+ identifierValues?: string[] | undefined;
1204
+ }[] | undefined;
1205
+ }[];
1206
+ pagination: {
1207
+ page: number;
1208
+ totalPages: number;
1209
+ totalItems: number;
1210
+ };
1211
+ externalId?: string | undefined;
1212
+ additionalIds?: Record<string, string[]> | undefined;
1213
+ }, {
1214
+ status: "completed" | "failed";
1215
+ patientId: string;
1216
+ documents: {
1217
+ id: string;
1218
+ fileName: string;
1219
+ url: string;
1220
+ downloadUrl: string;
1221
+ type?: {
1222
+ coding?: {
1223
+ code?: string | null | undefined;
1224
+ system?: string | null | undefined;
1225
+ display?: string | null | undefined;
1226
+ }[] | undefined;
1227
+ text?: string | undefined;
1228
+ } | undefined;
1229
+ status?: string | undefined;
1230
+ description?: string | undefined;
1231
+ indexed?: string | undefined;
1232
+ mimeType?: string | undefined;
1233
+ size?: number | undefined;
1234
+ organizationIdentifiers?: {
1235
+ name?: string | undefined;
1236
+ identifierValues?: string[] | undefined;
1237
+ }[] | undefined;
1238
+ }[];
1239
+ pagination: {
1240
+ page: number;
1241
+ totalPages: number;
1242
+ totalItems: number;
1243
+ };
1244
+ externalId?: string | undefined;
1245
+ additionalIds?: Record<string, string[]> | undefined;
1246
+ }>;
1247
+ export type DocumentBulkDownloadWebhookPatientPaged = z.infer<typeof documentBulkDownloadWebhookPatientSchemaPaged>;
1248
+ export declare const documentBulkDownloadWebhookRequestSchemaPaged: z.ZodObject<{
1249
+ meta: z.ZodObject<z.objectUtil.extendShape<{
1250
+ messageId: z.ZodString;
1251
+ requestId: z.ZodOptional<z.ZodString>;
1252
+ when: z.ZodEffects<z.ZodString, string, string>;
1253
+ /**
1254
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
1255
+ */
1256
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1257
+ }, {
1258
+ type: z.ZodLiteral<"medical.document-bulk-download-paged">;
1259
+ }>, "strip", z.ZodTypeAny, {
1260
+ type: "medical.document-bulk-download-paged";
1261
+ messageId: string;
1262
+ when: string;
1263
+ requestId?: string | undefined;
1264
+ data?: unknown;
1265
+ }, {
1266
+ type: "medical.document-bulk-download-paged";
1267
+ messageId: string;
1268
+ when: string;
1269
+ requestId?: string | undefined;
1270
+ data?: unknown;
1271
+ }>;
1272
+ patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1273
+ patientId: z.ZodString;
1274
+ externalId: z.ZodOptional<z.ZodString>;
1275
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1276
+ status: z.ZodEnum<["completed", "failed"]>;
1277
+ }, {
1278
+ documents: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1279
+ id: z.ZodString;
1280
+ fileName: z.ZodString;
1281
+ description: z.ZodOptional<z.ZodString>;
1282
+ status: z.ZodOptional<z.ZodString>;
1283
+ indexed: z.ZodOptional<z.ZodString>;
1284
+ mimeType: z.ZodOptional<z.ZodString>;
1285
+ size: z.ZodOptional<z.ZodNumber>;
1286
+ type: z.ZodOptional<z.ZodObject<{
1287
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
1288
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1289
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1290
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ code?: string | null | undefined;
1293
+ system?: string | null | undefined;
1294
+ display?: string | null | undefined;
1295
+ }, {
1296
+ code?: string | null | undefined;
1297
+ system?: string | null | undefined;
1298
+ display?: string | null | undefined;
1299
+ }>, "many">>;
1300
+ text: z.ZodOptional<z.ZodString>;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ coding?: {
1303
+ code?: string | null | undefined;
1304
+ system?: string | null | undefined;
1305
+ display?: string | null | undefined;
1306
+ }[] | undefined;
1307
+ text?: string | undefined;
1308
+ }, {
1309
+ coding?: {
1310
+ code?: string | null | undefined;
1311
+ system?: string | null | undefined;
1312
+ display?: string | null | undefined;
1313
+ }[] | undefined;
1314
+ text?: string | undefined;
1315
+ }>>;
1316
+ }, {
1317
+ url: z.ZodString;
1318
+ organizationIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1319
+ name: z.ZodOptional<z.ZodString>;
1320
+ identifierValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ name?: string | undefined;
1323
+ identifierValues?: string[] | undefined;
1324
+ }, {
1325
+ name?: string | undefined;
1326
+ identifierValues?: string[] | undefined;
1327
+ }>, "many">>;
1328
+ downloadUrl: z.ZodString;
1329
+ }>, "strip", z.ZodTypeAny, {
1330
+ id: string;
1331
+ fileName: string;
1332
+ url: string;
1333
+ downloadUrl: string;
1334
+ type?: {
1335
+ coding?: {
1336
+ code?: string | null | undefined;
1337
+ system?: string | null | undefined;
1338
+ display?: string | null | undefined;
1339
+ }[] | undefined;
1340
+ text?: string | undefined;
1341
+ } | undefined;
1342
+ status?: string | undefined;
1343
+ description?: string | undefined;
1344
+ indexed?: string | undefined;
1345
+ mimeType?: string | undefined;
1346
+ size?: number | undefined;
1347
+ organizationIdentifiers?: {
1348
+ name?: string | undefined;
1349
+ identifierValues?: string[] | undefined;
1350
+ }[] | undefined;
1351
+ }, {
1352
+ id: string;
1353
+ fileName: string;
1354
+ url: string;
1355
+ downloadUrl: string;
1356
+ type?: {
1357
+ coding?: {
1358
+ code?: string | null | undefined;
1359
+ system?: string | null | undefined;
1360
+ display?: string | null | undefined;
1361
+ }[] | undefined;
1362
+ text?: string | undefined;
1363
+ } | undefined;
1364
+ status?: string | undefined;
1365
+ description?: string | undefined;
1366
+ indexed?: string | undefined;
1367
+ mimeType?: string | undefined;
1368
+ size?: number | undefined;
1369
+ organizationIdentifiers?: {
1370
+ name?: string | undefined;
1371
+ identifierValues?: string[] | undefined;
1372
+ }[] | undefined;
1373
+ }>, "many">;
1374
+ pagination: z.ZodObject<{
1375
+ page: z.ZodNumber;
1376
+ totalPages: z.ZodNumber;
1377
+ totalItems: z.ZodNumber;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ page: number;
1380
+ totalPages: number;
1381
+ totalItems: number;
1382
+ }, {
1383
+ page: number;
1384
+ totalPages: number;
1385
+ totalItems: number;
1386
+ }>;
1387
+ }>, "strip", z.ZodTypeAny, {
1388
+ status: "completed" | "failed";
1389
+ patientId: string;
1390
+ documents: {
1391
+ id: string;
1392
+ fileName: string;
1393
+ url: string;
1394
+ downloadUrl: string;
1395
+ type?: {
1396
+ coding?: {
1397
+ code?: string | null | undefined;
1398
+ system?: string | null | undefined;
1399
+ display?: string | null | undefined;
1400
+ }[] | undefined;
1401
+ text?: string | undefined;
1402
+ } | undefined;
1403
+ status?: string | undefined;
1404
+ description?: string | undefined;
1405
+ indexed?: string | undefined;
1406
+ mimeType?: string | undefined;
1407
+ size?: number | undefined;
1408
+ organizationIdentifiers?: {
1409
+ name?: string | undefined;
1410
+ identifierValues?: string[] | undefined;
1411
+ }[] | undefined;
1412
+ }[];
1413
+ pagination: {
1414
+ page: number;
1415
+ totalPages: number;
1416
+ totalItems: number;
1417
+ };
1418
+ externalId?: string | undefined;
1419
+ additionalIds?: Record<string, string[]> | undefined;
1420
+ }, {
1421
+ status: "completed" | "failed";
1422
+ patientId: string;
1423
+ documents: {
1424
+ id: string;
1425
+ fileName: string;
1426
+ url: string;
1427
+ downloadUrl: string;
1428
+ type?: {
1429
+ coding?: {
1430
+ code?: string | null | undefined;
1431
+ system?: string | null | undefined;
1432
+ display?: string | null | undefined;
1433
+ }[] | undefined;
1434
+ text?: string | undefined;
1435
+ } | undefined;
1436
+ status?: string | undefined;
1437
+ description?: string | undefined;
1438
+ indexed?: string | undefined;
1439
+ mimeType?: string | undefined;
1440
+ size?: number | undefined;
1441
+ organizationIdentifiers?: {
1442
+ name?: string | undefined;
1443
+ identifierValues?: string[] | undefined;
1444
+ }[] | undefined;
1445
+ }[];
1446
+ pagination: {
1447
+ page: number;
1448
+ totalPages: number;
1449
+ totalItems: number;
1450
+ };
1451
+ externalId?: string | undefined;
1452
+ additionalIds?: Record<string, string[]> | undefined;
1453
+ }>, "many">;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ meta: {
1456
+ type: "medical.document-bulk-download-paged";
1457
+ messageId: string;
1458
+ when: string;
1459
+ requestId?: string | undefined;
1460
+ data?: unknown;
1461
+ };
1462
+ patients: {
1463
+ status: "completed" | "failed";
1464
+ patientId: string;
1465
+ documents: {
1466
+ id: string;
1467
+ fileName: string;
1468
+ url: string;
1469
+ downloadUrl: string;
1470
+ type?: {
1471
+ coding?: {
1472
+ code?: string | null | undefined;
1473
+ system?: string | null | undefined;
1474
+ display?: string | null | undefined;
1475
+ }[] | undefined;
1476
+ text?: string | undefined;
1477
+ } | undefined;
1478
+ status?: string | undefined;
1479
+ description?: string | undefined;
1480
+ indexed?: string | undefined;
1481
+ mimeType?: string | undefined;
1482
+ size?: number | undefined;
1483
+ organizationIdentifiers?: {
1484
+ name?: string | undefined;
1485
+ identifierValues?: string[] | undefined;
1486
+ }[] | undefined;
1487
+ }[];
1488
+ pagination: {
1489
+ page: number;
1490
+ totalPages: number;
1491
+ totalItems: number;
1492
+ };
1493
+ externalId?: string | undefined;
1494
+ additionalIds?: Record<string, string[]> | undefined;
1495
+ }[];
1496
+ }, {
1497
+ meta: {
1498
+ type: "medical.document-bulk-download-paged";
1499
+ messageId: string;
1500
+ when: string;
1501
+ requestId?: string | undefined;
1502
+ data?: unknown;
1503
+ };
1504
+ patients: {
1505
+ status: "completed" | "failed";
1506
+ patientId: string;
1507
+ documents: {
1508
+ id: string;
1509
+ fileName: string;
1510
+ url: string;
1511
+ downloadUrl: string;
1512
+ type?: {
1513
+ coding?: {
1514
+ code?: string | null | undefined;
1515
+ system?: string | null | undefined;
1516
+ display?: string | null | undefined;
1517
+ }[] | undefined;
1518
+ text?: string | undefined;
1519
+ } | undefined;
1520
+ status?: string | undefined;
1521
+ description?: string | undefined;
1522
+ indexed?: string | undefined;
1523
+ mimeType?: string | undefined;
1524
+ size?: number | undefined;
1525
+ organizationIdentifiers?: {
1526
+ name?: string | undefined;
1527
+ identifierValues?: string[] | undefined;
1528
+ }[] | undefined;
1529
+ }[];
1530
+ pagination: {
1531
+ page: number;
1532
+ totalPages: number;
1533
+ totalItems: number;
1534
+ };
1535
+ externalId?: string | undefined;
1536
+ additionalIds?: Record<string, string[]> | undefined;
1537
+ }[];
1538
+ }>;
1539
+ export type DocumentBulkDownloadWebhookRequestPaged = z.infer<typeof documentBulkDownloadWebhookRequestSchemaPaged>;
1540
+ export declare const bulkPatientImportWebhookEntrySchema: z.ZodObject<{
1541
+ requestId: z.ZodString;
1542
+ status: z.ZodEnum<["waiting", "processing", "completed", "failed"]>;
1543
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ status: "processing" | "completed" | "failed" | "waiting";
1546
+ requestId: string;
1547
+ result?: string | null | undefined;
1548
+ }, {
1549
+ status: "processing" | "completed" | "failed" | "waiting";
1550
+ requestId: string;
1551
+ result?: string | null | undefined;
1552
+ }>;
1553
+ export type BulkPatientImportWebhookEntry = z.infer<typeof bulkPatientImportWebhookEntrySchema>;
1554
+ export declare const bulkPatientImportWebhookRequestSchema: z.ZodObject<{
1555
+ meta: z.ZodObject<z.objectUtil.extendShape<{
1556
+ messageId: z.ZodString;
1557
+ requestId: z.ZodOptional<z.ZodString>;
1558
+ when: z.ZodEffects<z.ZodString, string, string>;
1559
+ /**
1560
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
1561
+ */
1562
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1563
+ }, {
1564
+ type: z.ZodLiteral<"medical.bulk-patient-create">;
1565
+ }>, "strip", z.ZodTypeAny, {
1566
+ type: "medical.bulk-patient-create";
1567
+ messageId: string;
1568
+ when: string;
1569
+ requestId?: string | undefined;
1570
+ data?: unknown;
1571
+ }, {
1572
+ type: "medical.bulk-patient-create";
1573
+ messageId: string;
1574
+ when: string;
1575
+ requestId?: string | undefined;
1576
+ data?: unknown;
1577
+ }>;
1578
+ bulkPatientCreate: z.ZodObject<{
1579
+ requestId: z.ZodString;
1580
+ status: z.ZodEnum<["waiting", "processing", "completed", "failed"]>;
1581
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1582
+ }, "strip", z.ZodTypeAny, {
1583
+ status: "processing" | "completed" | "failed" | "waiting";
1584
+ requestId: string;
1585
+ result?: string | null | undefined;
1586
+ }, {
1587
+ status: "processing" | "completed" | "failed" | "waiting";
1588
+ requestId: string;
1589
+ result?: string | null | undefined;
1590
+ }>;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ meta: {
1593
+ type: "medical.bulk-patient-create";
1594
+ messageId: string;
1595
+ when: string;
1596
+ requestId?: string | undefined;
1597
+ data?: unknown;
1598
+ };
1599
+ bulkPatientCreate: {
1600
+ status: "processing" | "completed" | "failed" | "waiting";
1601
+ requestId: string;
1602
+ result?: string | null | undefined;
1603
+ };
1604
+ }, {
1605
+ meta: {
1606
+ type: "medical.bulk-patient-create";
1607
+ messageId: string;
1608
+ when: string;
1609
+ requestId?: string | undefined;
1610
+ data?: unknown;
1611
+ };
1612
+ bulkPatientCreate: {
1613
+ status: "processing" | "completed" | "failed" | "waiting";
1614
+ requestId: string;
1615
+ result?: string | null | undefined;
1616
+ };
1617
+ }>;
1618
+ export type BulkPatientImportWebhookRequest = z.infer<typeof bulkPatientImportWebhookRequestSchema>;
1619
+ export type PharmacyNotificationWebhookRequest = {
1620
+ meta: Omit<WebhookMetadata, "type"> & {
1621
+ type: NotificationWebhookEvent.PharmacyNotification;
1622
+ };
1623
+ payload: PharmacyNotificationWebhookPayload;
1624
+ };
1625
+ export type LaboratoryNotificationWebhookRequest = {
1626
+ meta: Omit<WebhookMetadata, "type"> & {
1627
+ type: NotificationWebhookEvent.LaboratoryNotification;
1628
+ };
1629
+ payload: LaboratoryNotificationWebhookPayload;
1630
+ };
1631
+ export declare const networkQuerySourceTypeSchema: z.ZodEnum<["hie", "pharmacy", "lab"]>;
1632
+ export type NetworkQuerySourceType = z.infer<typeof networkQuerySourceTypeSchema>;
1633
+ export declare const networkQueryWebhookPayloadSchema: z.ZodObject<{
1634
+ patientId: z.ZodString;
1635
+ externalId: z.ZodOptional<z.ZodString>;
1636
+ consolidatedDataUrl: z.ZodString;
1637
+ source: z.ZodObject<{
1638
+ type: z.ZodEnum<["hie", "pharmacy", "lab"]>;
1639
+ source: z.ZodOptional<z.ZodString>;
1640
+ status: z.ZodEnum<["completed", "failed"]>;
1641
+ completedAt: z.ZodEffects<z.ZodString, string, string>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ type: "hie" | "pharmacy" | "lab";
1644
+ status: "completed" | "failed";
1645
+ completedAt: string;
1646
+ source?: string | undefined;
1647
+ }, {
1648
+ type: "hie" | "pharmacy" | "lab";
1649
+ status: "completed" | "failed";
1650
+ completedAt: string;
1651
+ source?: string | undefined;
1652
+ }>;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ patientId: string;
1655
+ consolidatedDataUrl: string;
1656
+ source: {
1657
+ type: "hie" | "pharmacy" | "lab";
1658
+ status: "completed" | "failed";
1659
+ completedAt: string;
1660
+ source?: string | undefined;
1661
+ };
1662
+ externalId?: string | undefined;
1663
+ }, {
1664
+ patientId: string;
1665
+ consolidatedDataUrl: string;
1666
+ source: {
1667
+ type: "hie" | "pharmacy" | "lab";
1668
+ status: "completed" | "failed";
1669
+ completedAt: string;
1670
+ source?: string | undefined;
1671
+ };
1672
+ externalId?: string | undefined;
1673
+ }>;
1674
+ export type NetworkQueryWebhookPayload = z.infer<typeof networkQueryWebhookPayloadSchema>;
1675
+ export declare const networkQueryHieWebhookRequestSchema: z.ZodObject<{
1676
+ meta: z.ZodObject<z.objectUtil.extendShape<{
1677
+ messageId: z.ZodString;
1678
+ requestId: z.ZodOptional<z.ZodString>;
1679
+ when: z.ZodEffects<z.ZodString, string, string>;
1680
+ /**
1681
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
1682
+ */
1683
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1684
+ }, {
1685
+ type: z.ZodLiteral<"network-query.hie">;
1686
+ }>, "strip", z.ZodTypeAny, {
1687
+ type: "network-query.hie";
1688
+ messageId: string;
1689
+ when: string;
1690
+ requestId?: string | undefined;
1691
+ data?: unknown;
1692
+ }, {
1693
+ type: "network-query.hie";
1694
+ messageId: string;
1695
+ when: string;
1696
+ requestId?: string | undefined;
1697
+ data?: unknown;
1698
+ }>;
1699
+ payload: z.ZodObject<{
1700
+ patientId: z.ZodString;
1701
+ externalId: z.ZodOptional<z.ZodString>;
1702
+ consolidatedDataUrl: z.ZodString;
1703
+ source: z.ZodObject<{
1704
+ type: z.ZodEnum<["hie", "pharmacy", "lab"]>;
1705
+ source: z.ZodOptional<z.ZodString>;
1706
+ status: z.ZodEnum<["completed", "failed"]>;
1707
+ completedAt: z.ZodEffects<z.ZodString, string, string>;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ type: "hie" | "pharmacy" | "lab";
1710
+ status: "completed" | "failed";
1711
+ completedAt: string;
1712
+ source?: string | undefined;
1713
+ }, {
1714
+ type: "hie" | "pharmacy" | "lab";
1715
+ status: "completed" | "failed";
1716
+ completedAt: string;
1717
+ source?: string | undefined;
1718
+ }>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ patientId: string;
1721
+ consolidatedDataUrl: string;
1722
+ source: {
1723
+ type: "hie" | "pharmacy" | "lab";
1724
+ status: "completed" | "failed";
1725
+ completedAt: string;
1726
+ source?: string | undefined;
1727
+ };
1728
+ externalId?: string | undefined;
1729
+ }, {
1730
+ patientId: string;
1731
+ consolidatedDataUrl: string;
1732
+ source: {
1733
+ type: "hie" | "pharmacy" | "lab";
1734
+ status: "completed" | "failed";
1735
+ completedAt: string;
1736
+ source?: string | undefined;
1737
+ };
1738
+ externalId?: string | undefined;
1739
+ }>;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ meta: {
1742
+ type: "network-query.hie";
1743
+ messageId: string;
1744
+ when: string;
1745
+ requestId?: string | undefined;
1746
+ data?: unknown;
1747
+ };
1748
+ payload: {
1749
+ patientId: string;
1750
+ consolidatedDataUrl: string;
1751
+ source: {
1752
+ type: "hie" | "pharmacy" | "lab";
1753
+ status: "completed" | "failed";
1754
+ completedAt: string;
1755
+ source?: string | undefined;
1756
+ };
1757
+ externalId?: string | undefined;
1758
+ };
1759
+ }, {
1760
+ meta: {
1761
+ type: "network-query.hie";
1762
+ messageId: string;
1763
+ when: string;
1764
+ requestId?: string | undefined;
1765
+ data?: unknown;
1766
+ };
1767
+ payload: {
1768
+ patientId: string;
1769
+ consolidatedDataUrl: string;
1770
+ source: {
1771
+ type: "hie" | "pharmacy" | "lab";
1772
+ status: "completed" | "failed";
1773
+ completedAt: string;
1774
+ source?: string | undefined;
1775
+ };
1776
+ externalId?: string | undefined;
1777
+ };
1778
+ }>;
1779
+ export type NetworkQueryHieWebhookRequest = z.infer<typeof networkQueryHieWebhookRequestSchema>;
1780
+ export declare const networkQueryPharmacyWebhookRequestSchema: z.ZodObject<{
1781
+ meta: z.ZodObject<z.objectUtil.extendShape<{
1782
+ messageId: z.ZodString;
1783
+ requestId: z.ZodOptional<z.ZodString>;
1784
+ when: z.ZodEffects<z.ZodString, string, string>;
1785
+ /**
1786
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
1787
+ */
1788
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1789
+ }, {
1790
+ type: z.ZodLiteral<"network-query.pharmacy">;
1791
+ }>, "strip", z.ZodTypeAny, {
1792
+ type: "network-query.pharmacy";
1793
+ messageId: string;
1794
+ when: string;
1795
+ requestId?: string | undefined;
1796
+ data?: unknown;
1797
+ }, {
1798
+ type: "network-query.pharmacy";
1799
+ messageId: string;
1800
+ when: string;
1801
+ requestId?: string | undefined;
1802
+ data?: unknown;
1803
+ }>;
1804
+ payload: z.ZodObject<{
1805
+ patientId: z.ZodString;
1806
+ externalId: z.ZodOptional<z.ZodString>;
1807
+ consolidatedDataUrl: z.ZodString;
1808
+ source: z.ZodObject<{
1809
+ type: z.ZodEnum<["hie", "pharmacy", "lab"]>;
1810
+ source: z.ZodOptional<z.ZodString>;
1811
+ status: z.ZodEnum<["completed", "failed"]>;
1812
+ completedAt: z.ZodEffects<z.ZodString, string, string>;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ type: "hie" | "pharmacy" | "lab";
1815
+ status: "completed" | "failed";
1816
+ completedAt: string;
1817
+ source?: string | undefined;
1818
+ }, {
1819
+ type: "hie" | "pharmacy" | "lab";
1820
+ status: "completed" | "failed";
1821
+ completedAt: string;
1822
+ source?: string | undefined;
1823
+ }>;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ patientId: string;
1826
+ consolidatedDataUrl: string;
1827
+ source: {
1828
+ type: "hie" | "pharmacy" | "lab";
1829
+ status: "completed" | "failed";
1830
+ completedAt: string;
1831
+ source?: string | undefined;
1832
+ };
1833
+ externalId?: string | undefined;
1834
+ }, {
1835
+ patientId: string;
1836
+ consolidatedDataUrl: string;
1837
+ source: {
1838
+ type: "hie" | "pharmacy" | "lab";
1839
+ status: "completed" | "failed";
1840
+ completedAt: string;
1841
+ source?: string | undefined;
1842
+ };
1843
+ externalId?: string | undefined;
1844
+ }>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ meta: {
1847
+ type: "network-query.pharmacy";
1848
+ messageId: string;
1849
+ when: string;
1850
+ requestId?: string | undefined;
1851
+ data?: unknown;
1852
+ };
1853
+ payload: {
1854
+ patientId: string;
1855
+ consolidatedDataUrl: string;
1856
+ source: {
1857
+ type: "hie" | "pharmacy" | "lab";
1858
+ status: "completed" | "failed";
1859
+ completedAt: string;
1860
+ source?: string | undefined;
1861
+ };
1862
+ externalId?: string | undefined;
1863
+ };
1864
+ }, {
1865
+ meta: {
1866
+ type: "network-query.pharmacy";
1867
+ messageId: string;
1868
+ when: string;
1869
+ requestId?: string | undefined;
1870
+ data?: unknown;
1871
+ };
1872
+ payload: {
1873
+ patientId: string;
1874
+ consolidatedDataUrl: string;
1875
+ source: {
1876
+ type: "hie" | "pharmacy" | "lab";
1877
+ status: "completed" | "failed";
1878
+ completedAt: string;
1879
+ source?: string | undefined;
1880
+ };
1881
+ externalId?: string | undefined;
1882
+ };
1883
+ }>;
1884
+ export type NetworkQueryPharmacyWebhookRequest = z.infer<typeof networkQueryPharmacyWebhookRequestSchema>;
1885
+ export declare const networkQueryLabWebhookRequestSchema: z.ZodObject<{
1886
+ meta: z.ZodObject<z.objectUtil.extendShape<{
1887
+ messageId: z.ZodString;
1888
+ requestId: z.ZodOptional<z.ZodString>;
1889
+ when: z.ZodEffects<z.ZodString, string, string>;
1890
+ /**
1891
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
1892
+ */
1893
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1894
+ }, {
1895
+ type: z.ZodLiteral<"network-query.lab">;
1896
+ }>, "strip", z.ZodTypeAny, {
1897
+ type: "network-query.lab";
1898
+ messageId: string;
1899
+ when: string;
1900
+ requestId?: string | undefined;
1901
+ data?: unknown;
1902
+ }, {
1903
+ type: "network-query.lab";
1904
+ messageId: string;
1905
+ when: string;
1906
+ requestId?: string | undefined;
1907
+ data?: unknown;
1908
+ }>;
1909
+ payload: z.ZodObject<{
1910
+ patientId: z.ZodString;
1911
+ externalId: z.ZodOptional<z.ZodString>;
1912
+ consolidatedDataUrl: z.ZodString;
1913
+ source: z.ZodObject<{
1914
+ type: z.ZodEnum<["hie", "pharmacy", "lab"]>;
1915
+ source: z.ZodOptional<z.ZodString>;
1916
+ status: z.ZodEnum<["completed", "failed"]>;
1917
+ completedAt: z.ZodEffects<z.ZodString, string, string>;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ type: "hie" | "pharmacy" | "lab";
1920
+ status: "completed" | "failed";
1921
+ completedAt: string;
1922
+ source?: string | undefined;
1923
+ }, {
1924
+ type: "hie" | "pharmacy" | "lab";
1925
+ status: "completed" | "failed";
1926
+ completedAt: string;
1927
+ source?: string | undefined;
1928
+ }>;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ patientId: string;
1931
+ consolidatedDataUrl: string;
1932
+ source: {
1933
+ type: "hie" | "pharmacy" | "lab";
1934
+ status: "completed" | "failed";
1935
+ completedAt: string;
1936
+ source?: string | undefined;
1937
+ };
1938
+ externalId?: string | undefined;
1939
+ }, {
1940
+ patientId: string;
1941
+ consolidatedDataUrl: string;
1942
+ source: {
1943
+ type: "hie" | "pharmacy" | "lab";
1944
+ status: "completed" | "failed";
1945
+ completedAt: string;
1946
+ source?: string | undefined;
1947
+ };
1948
+ externalId?: string | undefined;
1949
+ }>;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ meta: {
1952
+ type: "network-query.lab";
1953
+ messageId: string;
1954
+ when: string;
1955
+ requestId?: string | undefined;
1956
+ data?: unknown;
1957
+ };
1958
+ payload: {
1959
+ patientId: string;
1960
+ consolidatedDataUrl: string;
1961
+ source: {
1962
+ type: "hie" | "pharmacy" | "lab";
1963
+ status: "completed" | "failed";
1964
+ completedAt: string;
1965
+ source?: string | undefined;
1966
+ };
1967
+ externalId?: string | undefined;
1968
+ };
1969
+ }, {
1970
+ meta: {
1971
+ type: "network-query.lab";
1972
+ messageId: string;
1973
+ when: string;
1974
+ requestId?: string | undefined;
1975
+ data?: unknown;
1976
+ };
1977
+ payload: {
1978
+ patientId: string;
1979
+ consolidatedDataUrl: string;
1980
+ source: {
1981
+ type: "hie" | "pharmacy" | "lab";
1982
+ status: "completed" | "failed";
1983
+ completedAt: string;
1984
+ source?: string | undefined;
1985
+ };
1986
+ externalId?: string | undefined;
1987
+ };
1988
+ }>;
1989
+ export type NetworkQueryLabWebhookRequest = z.infer<typeof networkQueryLabWebhookRequestSchema>;
1990
+ export type NetworkQueryWebhookRequest = NetworkQueryHieWebhookRequest | NetworkQueryPharmacyWebhookRequest | NetworkQueryLabWebhookRequest;
1991
+ export declare const patientAdmitWebhookPayloadSchema: z.ZodObject<{
1992
+ url: z.ZodString;
1993
+ patientId: z.ZodString;
1994
+ externalId: z.ZodOptional<z.ZodString>;
1995
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1996
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
1997
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1998
+ }, "strip", z.ZodTypeAny, {
1999
+ patientId: string;
2000
+ url: string;
2001
+ admitTimestamp: string;
2002
+ externalId?: string | undefined;
2003
+ additionalIds?: Record<string, string[]> | undefined;
2004
+ whenSourceSent?: string | undefined;
2005
+ }, {
2006
+ patientId: string;
2007
+ url: string;
2008
+ admitTimestamp: string;
2009
+ externalId?: string | undefined;
2010
+ additionalIds?: Record<string, string[]> | undefined;
2011
+ whenSourceSent?: string | undefined;
2012
+ }>;
2013
+ export type PatientAdmitPayload = z.infer<typeof patientAdmitWebhookPayloadSchema>;
2014
+ export declare const patientTransferWebhookPayloadSchema: z.ZodObject<{
2015
+ url: z.ZodString;
2016
+ patientId: z.ZodString;
2017
+ externalId: z.ZodOptional<z.ZodString>;
2018
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2019
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
2020
+ transfers: z.ZodArray<z.ZodObject<{
2021
+ timestamp: z.ZodEffects<z.ZodString, string, string>;
2022
+ sourceLocation: z.ZodObject<{
2023
+ name: z.ZodString;
2024
+ type: z.ZodString;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ type: string;
2027
+ name: string;
2028
+ }, {
2029
+ type: string;
2030
+ name: string;
2031
+ }>;
2032
+ destinationLocation: z.ZodObject<{
2033
+ name: z.ZodString;
2034
+ type: z.ZodString;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ type: string;
2037
+ name: string;
2038
+ }, {
2039
+ type: string;
2040
+ name: string;
2041
+ }>;
2042
+ }, "strip", z.ZodTypeAny, {
2043
+ timestamp: string;
2044
+ sourceLocation: {
2045
+ type: string;
2046
+ name: string;
2047
+ };
2048
+ destinationLocation: {
2049
+ type: string;
2050
+ name: string;
2051
+ };
2052
+ }, {
2053
+ timestamp: string;
2054
+ sourceLocation: {
2055
+ type: string;
2056
+ name: string;
2057
+ };
2058
+ destinationLocation: {
2059
+ type: string;
2060
+ name: string;
2061
+ };
2062
+ }>, "many">;
2063
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2064
+ }, "strip", z.ZodTypeAny, {
2065
+ patientId: string;
2066
+ url: string;
2067
+ admitTimestamp: string;
2068
+ transfers: {
2069
+ timestamp: string;
2070
+ sourceLocation: {
2071
+ type: string;
2072
+ name: string;
2073
+ };
2074
+ destinationLocation: {
2075
+ type: string;
2076
+ name: string;
2077
+ };
2078
+ }[];
2079
+ externalId?: string | undefined;
2080
+ additionalIds?: Record<string, string[]> | undefined;
2081
+ whenSourceSent?: string | undefined;
2082
+ }, {
2083
+ patientId: string;
2084
+ url: string;
2085
+ admitTimestamp: string;
2086
+ transfers: {
2087
+ timestamp: string;
2088
+ sourceLocation: {
2089
+ type: string;
2090
+ name: string;
2091
+ };
2092
+ destinationLocation: {
2093
+ type: string;
2094
+ name: string;
2095
+ };
2096
+ }[];
2097
+ externalId?: string | undefined;
2098
+ additionalIds?: Record<string, string[]> | undefined;
2099
+ whenSourceSent?: string | undefined;
2100
+ }>;
2101
+ export type PatientTransferPayload = z.infer<typeof patientTransferWebhookPayloadSchema>;
2102
+ export declare const patientDischargeWebhookPayloadSchema: z.ZodObject<{
2103
+ url: z.ZodString;
2104
+ patientId: z.ZodString;
2105
+ externalId: z.ZodOptional<z.ZodString>;
2106
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2107
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
2108
+ dischargeTimestamp: z.ZodEffects<z.ZodString, string, string>;
2109
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ patientId: string;
2112
+ url: string;
2113
+ admitTimestamp: string;
2114
+ dischargeTimestamp: string;
2115
+ externalId?: string | undefined;
2116
+ additionalIds?: Record<string, string[]> | undefined;
2117
+ whenSourceSent?: string | undefined;
2118
+ }, {
2119
+ patientId: string;
2120
+ url: string;
2121
+ admitTimestamp: string;
2122
+ dischargeTimestamp: string;
2123
+ externalId?: string | undefined;
2124
+ additionalIds?: Record<string, string[]> | undefined;
2125
+ whenSourceSent?: string | undefined;
2126
+ }>;
2127
+ export type PatientDischargePayload = z.infer<typeof patientDischargeWebhookPayloadSchema>;
2128
+ export declare const patientAdmitWebhookRequestSchema: z.ZodObject<{
2129
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2130
+ messageId: z.ZodString;
2131
+ requestId: z.ZodOptional<z.ZodString>;
2132
+ when: z.ZodEffects<z.ZodString, string, string>;
2133
+ /**
2134
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2135
+ */
2136
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2137
+ }, {
2138
+ type: z.ZodLiteral<"patient.admit">;
2139
+ }>, "strip", z.ZodTypeAny, {
2140
+ type: "patient.admit";
2141
+ messageId: string;
2142
+ when: string;
2143
+ requestId?: string | undefined;
2144
+ data?: unknown;
2145
+ }, {
2146
+ type: "patient.admit";
2147
+ messageId: string;
2148
+ when: string;
2149
+ requestId?: string | undefined;
2150
+ data?: unknown;
2151
+ }>;
2152
+ payload: z.ZodObject<{
2153
+ url: z.ZodString;
2154
+ patientId: z.ZodString;
2155
+ externalId: z.ZodOptional<z.ZodString>;
2156
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2157
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
2158
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ patientId: string;
2161
+ url: string;
2162
+ admitTimestamp: string;
2163
+ externalId?: string | undefined;
2164
+ additionalIds?: Record<string, string[]> | undefined;
2165
+ whenSourceSent?: string | undefined;
2166
+ }, {
2167
+ patientId: string;
2168
+ url: string;
2169
+ admitTimestamp: string;
2170
+ externalId?: string | undefined;
2171
+ additionalIds?: Record<string, string[]> | undefined;
2172
+ whenSourceSent?: string | undefined;
2173
+ }>;
2174
+ }, "strip", z.ZodTypeAny, {
2175
+ meta: {
2176
+ type: "patient.admit";
2177
+ messageId: string;
2178
+ when: string;
2179
+ requestId?: string | undefined;
2180
+ data?: unknown;
2181
+ };
2182
+ payload: {
2183
+ patientId: string;
2184
+ url: string;
2185
+ admitTimestamp: string;
2186
+ externalId?: string | undefined;
2187
+ additionalIds?: Record<string, string[]> | undefined;
2188
+ whenSourceSent?: string | undefined;
2189
+ };
2190
+ }, {
2191
+ meta: {
2192
+ type: "patient.admit";
2193
+ messageId: string;
2194
+ when: string;
2195
+ requestId?: string | undefined;
2196
+ data?: unknown;
2197
+ };
2198
+ payload: {
2199
+ patientId: string;
2200
+ url: string;
2201
+ admitTimestamp: string;
2202
+ externalId?: string | undefined;
2203
+ additionalIds?: Record<string, string[]> | undefined;
2204
+ whenSourceSent?: string | undefined;
2205
+ };
2206
+ }>;
2207
+ export type PatientAdmitWebhookRequest = z.infer<typeof patientAdmitWebhookRequestSchema>;
2208
+ export declare const patientTransferWebhookRequestSchema: z.ZodObject<{
2209
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2210
+ messageId: z.ZodString;
2211
+ requestId: z.ZodOptional<z.ZodString>;
2212
+ when: z.ZodEffects<z.ZodString, string, string>;
2213
+ /**
2214
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2215
+ */
2216
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2217
+ }, {
2218
+ type: z.ZodLiteral<"patient.transfer">;
2219
+ }>, "strip", z.ZodTypeAny, {
2220
+ type: "patient.transfer";
2221
+ messageId: string;
2222
+ when: string;
2223
+ requestId?: string | undefined;
2224
+ data?: unknown;
2225
+ }, {
2226
+ type: "patient.transfer";
2227
+ messageId: string;
2228
+ when: string;
2229
+ requestId?: string | undefined;
2230
+ data?: unknown;
2231
+ }>;
2232
+ payload: z.ZodObject<{
2233
+ url: z.ZodString;
2234
+ patientId: z.ZodString;
2235
+ externalId: z.ZodOptional<z.ZodString>;
2236
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2237
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
2238
+ transfers: z.ZodArray<z.ZodObject<{
2239
+ timestamp: z.ZodEffects<z.ZodString, string, string>;
2240
+ sourceLocation: z.ZodObject<{
2241
+ name: z.ZodString;
2242
+ type: z.ZodString;
2243
+ }, "strip", z.ZodTypeAny, {
2244
+ type: string;
2245
+ name: string;
2246
+ }, {
2247
+ type: string;
2248
+ name: string;
2249
+ }>;
2250
+ destinationLocation: z.ZodObject<{
2251
+ name: z.ZodString;
2252
+ type: z.ZodString;
2253
+ }, "strip", z.ZodTypeAny, {
2254
+ type: string;
2255
+ name: string;
2256
+ }, {
2257
+ type: string;
2258
+ name: string;
2259
+ }>;
2260
+ }, "strip", z.ZodTypeAny, {
2261
+ timestamp: string;
2262
+ sourceLocation: {
2263
+ type: string;
2264
+ name: string;
2265
+ };
2266
+ destinationLocation: {
2267
+ type: string;
2268
+ name: string;
2269
+ };
2270
+ }, {
2271
+ timestamp: string;
2272
+ sourceLocation: {
2273
+ type: string;
2274
+ name: string;
2275
+ };
2276
+ destinationLocation: {
2277
+ type: string;
2278
+ name: string;
2279
+ };
2280
+ }>, "many">;
2281
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2282
+ }, "strip", z.ZodTypeAny, {
2283
+ patientId: string;
2284
+ url: string;
2285
+ admitTimestamp: string;
2286
+ transfers: {
2287
+ timestamp: string;
2288
+ sourceLocation: {
2289
+ type: string;
2290
+ name: string;
2291
+ };
2292
+ destinationLocation: {
2293
+ type: string;
2294
+ name: string;
2295
+ };
2296
+ }[];
2297
+ externalId?: string | undefined;
2298
+ additionalIds?: Record<string, string[]> | undefined;
2299
+ whenSourceSent?: string | undefined;
2300
+ }, {
2301
+ patientId: string;
2302
+ url: string;
2303
+ admitTimestamp: string;
2304
+ transfers: {
2305
+ timestamp: string;
2306
+ sourceLocation: {
2307
+ type: string;
2308
+ name: string;
2309
+ };
2310
+ destinationLocation: {
2311
+ type: string;
2312
+ name: string;
2313
+ };
2314
+ }[];
2315
+ externalId?: string | undefined;
2316
+ additionalIds?: Record<string, string[]> | undefined;
2317
+ whenSourceSent?: string | undefined;
2318
+ }>;
2319
+ }, "strip", z.ZodTypeAny, {
2320
+ meta: {
2321
+ type: "patient.transfer";
2322
+ messageId: string;
2323
+ when: string;
2324
+ requestId?: string | undefined;
2325
+ data?: unknown;
2326
+ };
2327
+ payload: {
2328
+ patientId: string;
2329
+ url: string;
2330
+ admitTimestamp: string;
2331
+ transfers: {
2332
+ timestamp: string;
2333
+ sourceLocation: {
2334
+ type: string;
2335
+ name: string;
2336
+ };
2337
+ destinationLocation: {
2338
+ type: string;
2339
+ name: string;
2340
+ };
2341
+ }[];
2342
+ externalId?: string | undefined;
2343
+ additionalIds?: Record<string, string[]> | undefined;
2344
+ whenSourceSent?: string | undefined;
2345
+ };
2346
+ }, {
2347
+ meta: {
2348
+ type: "patient.transfer";
2349
+ messageId: string;
2350
+ when: string;
2351
+ requestId?: string | undefined;
2352
+ data?: unknown;
2353
+ };
2354
+ payload: {
2355
+ patientId: string;
2356
+ url: string;
2357
+ admitTimestamp: string;
2358
+ transfers: {
2359
+ timestamp: string;
2360
+ sourceLocation: {
2361
+ type: string;
2362
+ name: string;
2363
+ };
2364
+ destinationLocation: {
2365
+ type: string;
2366
+ name: string;
2367
+ };
2368
+ }[];
2369
+ externalId?: string | undefined;
2370
+ additionalIds?: Record<string, string[]> | undefined;
2371
+ whenSourceSent?: string | undefined;
2372
+ };
2373
+ }>;
2374
+ export type PatientTransferWebhookRequest = z.infer<typeof patientTransferWebhookRequestSchema>;
2375
+ export declare const patientDischargeWebhookRequestSchema: z.ZodObject<{
2376
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2377
+ messageId: z.ZodString;
2378
+ requestId: z.ZodOptional<z.ZodString>;
2379
+ when: z.ZodEffects<z.ZodString, string, string>;
2380
+ /**
2381
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2382
+ */
2383
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2384
+ }, {
2385
+ type: z.ZodLiteral<"patient.discharge">;
2386
+ }>, "strip", z.ZodTypeAny, {
2387
+ type: "patient.discharge";
2388
+ messageId: string;
2389
+ when: string;
2390
+ requestId?: string | undefined;
2391
+ data?: unknown;
2392
+ }, {
2393
+ type: "patient.discharge";
2394
+ messageId: string;
2395
+ when: string;
2396
+ requestId?: string | undefined;
2397
+ data?: unknown;
2398
+ }>;
2399
+ payload: z.ZodObject<{
2400
+ url: z.ZodString;
2401
+ patientId: z.ZodString;
2402
+ externalId: z.ZodOptional<z.ZodString>;
2403
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2404
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
2405
+ dischargeTimestamp: z.ZodEffects<z.ZodString, string, string>;
2406
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ patientId: string;
2409
+ url: string;
2410
+ admitTimestamp: string;
2411
+ dischargeTimestamp: string;
2412
+ externalId?: string | undefined;
2413
+ additionalIds?: Record<string, string[]> | undefined;
2414
+ whenSourceSent?: string | undefined;
2415
+ }, {
2416
+ patientId: string;
2417
+ url: string;
2418
+ admitTimestamp: string;
2419
+ dischargeTimestamp: string;
2420
+ externalId?: string | undefined;
2421
+ additionalIds?: Record<string, string[]> | undefined;
2422
+ whenSourceSent?: string | undefined;
2423
+ }>;
2424
+ }, "strip", z.ZodTypeAny, {
2425
+ meta: {
2426
+ type: "patient.discharge";
2427
+ messageId: string;
2428
+ when: string;
2429
+ requestId?: string | undefined;
2430
+ data?: unknown;
2431
+ };
2432
+ payload: {
2433
+ patientId: string;
2434
+ url: string;
2435
+ admitTimestamp: string;
2436
+ dischargeTimestamp: string;
2437
+ externalId?: string | undefined;
2438
+ additionalIds?: Record<string, string[]> | undefined;
2439
+ whenSourceSent?: string | undefined;
2440
+ };
2441
+ }, {
2442
+ meta: {
2443
+ type: "patient.discharge";
2444
+ messageId: string;
2445
+ when: string;
2446
+ requestId?: string | undefined;
2447
+ data?: unknown;
2448
+ };
2449
+ payload: {
2450
+ patientId: string;
2451
+ url: string;
2452
+ admitTimestamp: string;
2453
+ dischargeTimestamp: string;
2454
+ externalId?: string | undefined;
2455
+ additionalIds?: Record<string, string[]> | undefined;
2456
+ whenSourceSent?: string | undefined;
2457
+ };
2458
+ }>;
2459
+ export type PatientDischargeWebhookRequest = z.infer<typeof patientDischargeWebhookRequestSchema>;
2460
+ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
2461
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2462
+ messageId: z.ZodString;
2463
+ requestId: z.ZodOptional<z.ZodString>;
2464
+ when: z.ZodEffects<z.ZodString, string, string>;
2465
+ /**
2466
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2467
+ */
2468
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2469
+ }, {
2470
+ type: z.ZodLiteral<"ping">;
2471
+ }>, "strip", z.ZodTypeAny, {
2472
+ type: "ping";
2473
+ messageId: string;
2474
+ when: string;
2475
+ requestId?: string | undefined;
2476
+ data?: unknown;
2477
+ }, {
2478
+ type: "ping";
2479
+ messageId: string;
2480
+ when: string;
2481
+ requestId?: string | undefined;
2482
+ data?: unknown;
2483
+ }>;
2484
+ ping: z.ZodString;
2485
+ }, "strip", z.ZodTypeAny, {
2486
+ ping: string;
2487
+ meta: {
2488
+ type: "ping";
2489
+ messageId: string;
2490
+ when: string;
2491
+ requestId?: string | undefined;
2492
+ data?: unknown;
2493
+ };
2494
+ }, {
2495
+ ping: string;
2496
+ meta: {
2497
+ type: "ping";
2498
+ messageId: string;
2499
+ when: string;
2500
+ requestId?: string | undefined;
2501
+ data?: unknown;
2502
+ };
2503
+ }>, z.ZodObject<{
2504
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2505
+ messageId: z.ZodString;
2506
+ requestId: z.ZodOptional<z.ZodString>;
2507
+ when: z.ZodEffects<z.ZodString, string, string>;
2508
+ /**
2509
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2510
+ */
2511
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2512
+ }, {
2513
+ type: z.ZodLiteral<"medical.consolidated-data">;
2514
+ }>, "strip", z.ZodTypeAny, {
2515
+ type: "medical.consolidated-data";
2516
+ messageId: string;
2517
+ when: string;
2518
+ requestId?: string | undefined;
2519
+ data?: unknown;
2520
+ }, {
2521
+ type: "medical.consolidated-data";
2522
+ messageId: string;
2523
+ when: string;
2524
+ requestId?: string | undefined;
2525
+ data?: unknown;
2526
+ }>;
2527
+ patients: z.ZodArray<z.ZodObject<{
2528
+ patientId: z.ZodString;
2529
+ externalId: z.ZodOptional<z.ZodString>;
2530
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2531
+ status: z.ZodEnum<["completed", "failed"]>;
2532
+ bundle: z.ZodType<SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined, z.ZodTypeDef, SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined>;
2533
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodBoolean>>]>>>>;
2534
+ }, "strip", z.ZodTypeAny, {
2535
+ status: "completed" | "failed";
2536
+ patientId: string;
2537
+ externalId?: string | undefined;
2538
+ additionalIds?: Record<string, string[]> | undefined;
2539
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
2540
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
2541
+ }, {
2542
+ status: "completed" | "failed";
2543
+ patientId: string;
2544
+ externalId?: string | undefined;
2545
+ additionalIds?: Record<string, string[]> | undefined;
2546
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
2547
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
2548
+ }>, "many">;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ meta: {
2551
+ type: "medical.consolidated-data";
2552
+ messageId: string;
2553
+ when: string;
2554
+ requestId?: string | undefined;
2555
+ data?: unknown;
2556
+ };
2557
+ patients: {
2558
+ status: "completed" | "failed";
2559
+ patientId: string;
2560
+ externalId?: string | undefined;
2561
+ additionalIds?: Record<string, string[]> | undefined;
2562
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
2563
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
2564
+ }[];
2565
+ }, {
2566
+ meta: {
2567
+ type: "medical.consolidated-data";
2568
+ messageId: string;
2569
+ when: string;
2570
+ requestId?: string | undefined;
2571
+ data?: unknown;
2572
+ };
2573
+ patients: {
2574
+ status: "completed" | "failed";
2575
+ patientId: string;
2576
+ externalId?: string | undefined;
2577
+ additionalIds?: Record<string, string[]> | undefined;
2578
+ bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
2579
+ filters?: Record<string, string | boolean | null | undefined> | null | undefined;
2580
+ }[];
2581
+ }>, z.ZodObject<{
2582
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2583
+ messageId: z.ZodString;
2584
+ requestId: z.ZodOptional<z.ZodString>;
2585
+ when: z.ZodEffects<z.ZodString, string, string>;
2586
+ /**
2587
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2588
+ */
2589
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2590
+ }, {
2591
+ type: z.ZodLiteral<"medical.document-download">;
2592
+ }>, "strip", z.ZodTypeAny, {
2593
+ type: "medical.document-download";
2594
+ messageId: string;
2595
+ when: string;
2596
+ requestId?: string | undefined;
2597
+ data?: unknown;
2598
+ }, {
2599
+ type: "medical.document-download";
2600
+ messageId: string;
2601
+ when: string;
2602
+ requestId?: string | undefined;
2603
+ data?: unknown;
2604
+ }>;
2605
+ patients: z.ZodArray<z.ZodObject<{
2606
+ patientId: z.ZodString;
2607
+ externalId: z.ZodOptional<z.ZodString>;
2608
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2609
+ status: z.ZodEnum<["completed", "failed"]>;
2610
+ documents: z.ZodArray<z.ZodObject<{
2611
+ id: z.ZodString;
2612
+ fileName: z.ZodString;
2613
+ description: z.ZodOptional<z.ZodString>;
2614
+ status: z.ZodOptional<z.ZodString>;
2615
+ indexed: z.ZodOptional<z.ZodString>;
2616
+ mimeType: z.ZodOptional<z.ZodString>;
2617
+ size: z.ZodOptional<z.ZodNumber>;
2618
+ type: z.ZodOptional<z.ZodObject<{
2619
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
2620
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2621
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2622
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2623
+ }, "strip", z.ZodTypeAny, {
2624
+ code?: string | null | undefined;
2625
+ system?: string | null | undefined;
2626
+ display?: string | null | undefined;
2627
+ }, {
2628
+ code?: string | null | undefined;
2629
+ system?: string | null | undefined;
2630
+ display?: string | null | undefined;
2631
+ }>, "many">>;
2632
+ text: z.ZodOptional<z.ZodString>;
2633
+ }, "strip", z.ZodTypeAny, {
2634
+ coding?: {
2635
+ code?: string | null | undefined;
2636
+ system?: string | null | undefined;
2637
+ display?: string | null | undefined;
2638
+ }[] | undefined;
2639
+ text?: string | undefined;
2640
+ }, {
2641
+ coding?: {
2642
+ code?: string | null | undefined;
2643
+ system?: string | null | undefined;
2644
+ display?: string | null | undefined;
2645
+ }[] | undefined;
2646
+ text?: string | undefined;
2647
+ }>>;
2648
+ }, "strip", z.ZodTypeAny, {
2649
+ id: string;
2650
+ fileName: string;
2651
+ type?: {
2652
+ coding?: {
2653
+ code?: string | null | undefined;
2654
+ system?: string | null | undefined;
2655
+ display?: string | null | undefined;
2656
+ }[] | undefined;
2657
+ text?: string | undefined;
2658
+ } | undefined;
2659
+ status?: string | undefined;
2660
+ description?: string | undefined;
2661
+ indexed?: string | undefined;
2662
+ mimeType?: string | undefined;
2663
+ size?: number | undefined;
2664
+ }, {
2665
+ id: string;
2666
+ fileName: string;
2667
+ type?: {
2668
+ coding?: {
2669
+ code?: string | null | undefined;
2670
+ system?: string | null | undefined;
2671
+ display?: string | null | undefined;
2672
+ }[] | undefined;
2673
+ text?: string | undefined;
2674
+ } | undefined;
2675
+ status?: string | undefined;
2676
+ description?: string | undefined;
2677
+ indexed?: string | undefined;
2678
+ mimeType?: string | undefined;
2679
+ size?: number | undefined;
2680
+ }>, "many">;
2681
+ }, "strip", z.ZodTypeAny, {
2682
+ status: "completed" | "failed";
2683
+ patientId: string;
2684
+ documents: {
2685
+ id: string;
2686
+ fileName: string;
2687
+ type?: {
2688
+ coding?: {
2689
+ code?: string | null | undefined;
2690
+ system?: string | null | undefined;
2691
+ display?: string | null | undefined;
2692
+ }[] | undefined;
2693
+ text?: string | undefined;
2694
+ } | undefined;
2695
+ status?: string | undefined;
2696
+ description?: string | undefined;
2697
+ indexed?: string | undefined;
2698
+ mimeType?: string | undefined;
2699
+ size?: number | undefined;
2700
+ }[];
2701
+ externalId?: string | undefined;
2702
+ additionalIds?: Record<string, string[]> | undefined;
2703
+ }, {
2704
+ status: "completed" | "failed";
2705
+ patientId: string;
2706
+ documents: {
2707
+ id: string;
2708
+ fileName: string;
2709
+ type?: {
2710
+ coding?: {
2711
+ code?: string | null | undefined;
2712
+ system?: string | null | undefined;
2713
+ display?: string | null | undefined;
2714
+ }[] | undefined;
2715
+ text?: string | undefined;
2716
+ } | undefined;
2717
+ status?: string | undefined;
2718
+ description?: string | undefined;
2719
+ indexed?: string | undefined;
2720
+ mimeType?: string | undefined;
2721
+ size?: number | undefined;
2722
+ }[];
2723
+ externalId?: string | undefined;
2724
+ additionalIds?: Record<string, string[]> | undefined;
2725
+ }>, "many">;
2726
+ }, "strip", z.ZodTypeAny, {
2727
+ meta: {
2728
+ type: "medical.document-download";
2729
+ messageId: string;
2730
+ when: string;
2731
+ requestId?: string | undefined;
2732
+ data?: unknown;
2733
+ };
2734
+ patients: {
2735
+ status: "completed" | "failed";
2736
+ patientId: string;
2737
+ documents: {
2738
+ id: string;
2739
+ fileName: string;
2740
+ type?: {
2741
+ coding?: {
2742
+ code?: string | null | undefined;
2743
+ system?: string | null | undefined;
2744
+ display?: string | null | undefined;
2745
+ }[] | undefined;
2746
+ text?: string | undefined;
2747
+ } | undefined;
2748
+ status?: string | undefined;
2749
+ description?: string | undefined;
2750
+ indexed?: string | undefined;
2751
+ mimeType?: string | undefined;
2752
+ size?: number | undefined;
2753
+ }[];
2754
+ externalId?: string | undefined;
2755
+ additionalIds?: Record<string, string[]> | undefined;
2756
+ }[];
2757
+ }, {
2758
+ meta: {
2759
+ type: "medical.document-download";
2760
+ messageId: string;
2761
+ when: string;
2762
+ requestId?: string | undefined;
2763
+ data?: unknown;
2764
+ };
2765
+ patients: {
2766
+ status: "completed" | "failed";
2767
+ patientId: string;
2768
+ documents: {
2769
+ id: string;
2770
+ fileName: string;
2771
+ type?: {
2772
+ coding?: {
2773
+ code?: string | null | undefined;
2774
+ system?: string | null | undefined;
2775
+ display?: string | null | undefined;
2776
+ }[] | undefined;
2777
+ text?: string | undefined;
2778
+ } | undefined;
2779
+ status?: string | undefined;
2780
+ description?: string | undefined;
2781
+ indexed?: string | undefined;
2782
+ mimeType?: string | undefined;
2783
+ size?: number | undefined;
2784
+ }[];
2785
+ externalId?: string | undefined;
2786
+ additionalIds?: Record<string, string[]> | undefined;
2787
+ }[];
2788
+ }>, z.ZodObject<{
2789
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2790
+ messageId: z.ZodString;
2791
+ requestId: z.ZodOptional<z.ZodString>;
2792
+ when: z.ZodEffects<z.ZodString, string, string>;
2793
+ /**
2794
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2795
+ */
2796
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2797
+ }, {
2798
+ type: z.ZodLiteral<"medical.document-conversion">;
2799
+ }>, "strip", z.ZodTypeAny, {
2800
+ type: "medical.document-conversion";
2801
+ messageId: string;
2802
+ when: string;
2803
+ requestId?: string | undefined;
2804
+ data?: unknown;
2805
+ }, {
2806
+ type: "medical.document-conversion";
2807
+ messageId: string;
2808
+ when: string;
2809
+ requestId?: string | undefined;
2810
+ data?: unknown;
2811
+ }>;
2812
+ patients: z.ZodArray<z.ZodObject<{
2813
+ patientId: z.ZodString;
2814
+ externalId: z.ZodOptional<z.ZodString>;
2815
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2816
+ status: z.ZodEnum<["completed", "failed"]>;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ status: "completed" | "failed";
2819
+ patientId: string;
2820
+ externalId?: string | undefined;
2821
+ additionalIds?: Record<string, string[]> | undefined;
2822
+ }, {
2823
+ status: "completed" | "failed";
2824
+ patientId: string;
2825
+ externalId?: string | undefined;
2826
+ additionalIds?: Record<string, string[]> | undefined;
2827
+ }>, "many">;
2828
+ }, "strip", z.ZodTypeAny, {
2829
+ meta: {
2830
+ type: "medical.document-conversion";
2831
+ messageId: string;
2832
+ when: string;
2833
+ requestId?: string | undefined;
2834
+ data?: unknown;
2835
+ };
2836
+ patients: {
2837
+ status: "completed" | "failed";
2838
+ patientId: string;
2839
+ externalId?: string | undefined;
2840
+ additionalIds?: Record<string, string[]> | undefined;
2841
+ }[];
2842
+ }, {
2843
+ meta: {
2844
+ type: "medical.document-conversion";
2845
+ messageId: string;
2846
+ when: string;
2847
+ requestId?: string | undefined;
2848
+ data?: unknown;
2849
+ };
2850
+ patients: {
2851
+ status: "completed" | "failed";
2852
+ patientId: string;
2853
+ externalId?: string | undefined;
2854
+ additionalIds?: Record<string, string[]> | undefined;
2855
+ }[];
2856
+ }>, z.ZodObject<{
2857
+ meta: z.ZodObject<z.objectUtil.extendShape<{
2858
+ messageId: z.ZodString;
2859
+ requestId: z.ZodOptional<z.ZodString>;
2860
+ when: z.ZodEffects<z.ZodString, string, string>;
2861
+ /**
2862
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
2863
+ */
2864
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2865
+ }, {
2866
+ type: z.ZodLiteral<"medical.document-bulk-download-urls">;
2867
+ }>, "strip", z.ZodTypeAny, {
2868
+ type: "medical.document-bulk-download-urls";
2869
+ messageId: string;
2870
+ when: string;
2871
+ requestId?: string | undefined;
2872
+ data?: unknown;
2873
+ }, {
2874
+ type: "medical.document-bulk-download-urls";
2875
+ messageId: string;
2876
+ when: string;
2877
+ requestId?: string | undefined;
2878
+ data?: unknown;
2879
+ }>;
2880
+ patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2881
+ patientId: z.ZodString;
2882
+ externalId: z.ZodOptional<z.ZodString>;
2883
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
2884
+ status: z.ZodEnum<["completed", "failed"]>;
2885
+ }, {
2886
+ documents: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2887
+ id: z.ZodString;
2888
+ fileName: z.ZodString;
2889
+ description: z.ZodOptional<z.ZodString>;
2890
+ status: z.ZodOptional<z.ZodString>;
2891
+ indexed: z.ZodOptional<z.ZodString>;
2892
+ mimeType: z.ZodOptional<z.ZodString>;
2893
+ size: z.ZodOptional<z.ZodNumber>;
2894
+ type: z.ZodOptional<z.ZodObject<{
2895
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
2896
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2897
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2898
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2899
+ }, "strip", z.ZodTypeAny, {
2900
+ code?: string | null | undefined;
2901
+ system?: string | null | undefined;
2902
+ display?: string | null | undefined;
2903
+ }, {
2904
+ code?: string | null | undefined;
2905
+ system?: string | null | undefined;
2906
+ display?: string | null | undefined;
2907
+ }>, "many">>;
2908
+ text: z.ZodOptional<z.ZodString>;
2909
+ }, "strip", z.ZodTypeAny, {
2910
+ coding?: {
2911
+ code?: string | null | undefined;
2912
+ system?: string | null | undefined;
2913
+ display?: string | null | undefined;
2914
+ }[] | undefined;
2915
+ text?: string | undefined;
2916
+ }, {
2917
+ coding?: {
2918
+ code?: string | null | undefined;
2919
+ system?: string | null | undefined;
2920
+ display?: string | null | undefined;
2921
+ }[] | undefined;
2922
+ text?: string | undefined;
2923
+ }>>;
2924
+ }, {
2925
+ url: z.ZodString;
2926
+ organizationIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2927
+ name: z.ZodOptional<z.ZodString>;
2928
+ identifierValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ name?: string | undefined;
2931
+ identifierValues?: string[] | undefined;
2932
+ }, {
2933
+ name?: string | undefined;
2934
+ identifierValues?: string[] | undefined;
2935
+ }>, "many">>;
2936
+ }>, "strip", z.ZodTypeAny, {
2937
+ id: string;
2938
+ fileName: string;
2939
+ url: string;
2940
+ type?: {
2941
+ coding?: {
2942
+ code?: string | null | undefined;
2943
+ system?: string | null | undefined;
2944
+ display?: string | null | undefined;
2945
+ }[] | undefined;
2946
+ text?: string | undefined;
2947
+ } | undefined;
2948
+ status?: string | undefined;
2949
+ description?: string | undefined;
2950
+ indexed?: string | undefined;
2951
+ mimeType?: string | undefined;
2952
+ size?: number | undefined;
2953
+ organizationIdentifiers?: {
2954
+ name?: string | undefined;
2955
+ identifierValues?: string[] | undefined;
2956
+ }[] | undefined;
2957
+ }, {
2958
+ id: string;
2959
+ fileName: string;
2960
+ url: string;
2961
+ type?: {
2962
+ coding?: {
2963
+ code?: string | null | undefined;
2964
+ system?: string | null | undefined;
2965
+ display?: string | null | undefined;
2966
+ }[] | undefined;
2967
+ text?: string | undefined;
2968
+ } | undefined;
2969
+ status?: string | undefined;
2970
+ description?: string | undefined;
2971
+ indexed?: string | undefined;
2972
+ mimeType?: string | undefined;
2973
+ size?: number | undefined;
2974
+ organizationIdentifiers?: {
2975
+ name?: string | undefined;
2976
+ identifierValues?: string[] | undefined;
2977
+ }[] | undefined;
2978
+ }>, "many">;
2979
+ }>, "strip", z.ZodTypeAny, {
2980
+ status: "completed" | "failed";
2981
+ patientId: string;
2982
+ documents: {
2983
+ id: string;
2984
+ fileName: string;
2985
+ url: string;
2986
+ type?: {
2987
+ coding?: {
2988
+ code?: string | null | undefined;
2989
+ system?: string | null | undefined;
2990
+ display?: string | null | undefined;
2991
+ }[] | undefined;
2992
+ text?: string | undefined;
2993
+ } | undefined;
2994
+ status?: string | undefined;
2995
+ description?: string | undefined;
2996
+ indexed?: string | undefined;
2997
+ mimeType?: string | undefined;
2998
+ size?: number | undefined;
2999
+ organizationIdentifiers?: {
3000
+ name?: string | undefined;
3001
+ identifierValues?: string[] | undefined;
3002
+ }[] | undefined;
3003
+ }[];
3004
+ externalId?: string | undefined;
3005
+ additionalIds?: Record<string, string[]> | undefined;
3006
+ }, {
3007
+ status: "completed" | "failed";
3008
+ patientId: string;
3009
+ documents: {
3010
+ id: string;
3011
+ fileName: string;
3012
+ url: string;
3013
+ type?: {
3014
+ coding?: {
3015
+ code?: string | null | undefined;
3016
+ system?: string | null | undefined;
3017
+ display?: string | null | undefined;
3018
+ }[] | undefined;
3019
+ text?: string | undefined;
3020
+ } | undefined;
3021
+ status?: string | undefined;
3022
+ description?: string | undefined;
3023
+ indexed?: string | undefined;
3024
+ mimeType?: string | undefined;
3025
+ size?: number | undefined;
3026
+ organizationIdentifiers?: {
3027
+ name?: string | undefined;
3028
+ identifierValues?: string[] | undefined;
3029
+ }[] | undefined;
3030
+ }[];
3031
+ externalId?: string | undefined;
3032
+ additionalIds?: Record<string, string[]> | undefined;
3033
+ }>, "many">;
3034
+ }, "strip", z.ZodTypeAny, {
3035
+ meta: {
3036
+ type: "medical.document-bulk-download-urls";
3037
+ messageId: string;
3038
+ when: string;
3039
+ requestId?: string | undefined;
3040
+ data?: unknown;
3041
+ };
3042
+ patients: {
3043
+ status: "completed" | "failed";
3044
+ patientId: string;
3045
+ documents: {
3046
+ id: string;
3047
+ fileName: string;
3048
+ url: string;
3049
+ type?: {
3050
+ coding?: {
3051
+ code?: string | null | undefined;
3052
+ system?: string | null | undefined;
3053
+ display?: string | null | undefined;
3054
+ }[] | undefined;
3055
+ text?: string | undefined;
3056
+ } | undefined;
3057
+ status?: string | undefined;
3058
+ description?: string | undefined;
3059
+ indexed?: string | undefined;
3060
+ mimeType?: string | undefined;
3061
+ size?: number | undefined;
3062
+ organizationIdentifiers?: {
3063
+ name?: string | undefined;
3064
+ identifierValues?: string[] | undefined;
3065
+ }[] | undefined;
3066
+ }[];
3067
+ externalId?: string | undefined;
3068
+ additionalIds?: Record<string, string[]> | undefined;
3069
+ }[];
3070
+ }, {
3071
+ meta: {
3072
+ type: "medical.document-bulk-download-urls";
3073
+ messageId: string;
3074
+ when: string;
3075
+ requestId?: string | undefined;
3076
+ data?: unknown;
3077
+ };
3078
+ patients: {
3079
+ status: "completed" | "failed";
3080
+ patientId: string;
3081
+ documents: {
3082
+ id: string;
3083
+ fileName: string;
3084
+ url: string;
3085
+ type?: {
3086
+ coding?: {
3087
+ code?: string | null | undefined;
3088
+ system?: string | null | undefined;
3089
+ display?: string | null | undefined;
3090
+ }[] | undefined;
3091
+ text?: string | undefined;
3092
+ } | undefined;
3093
+ status?: string | undefined;
3094
+ description?: string | undefined;
3095
+ indexed?: string | undefined;
3096
+ mimeType?: string | undefined;
3097
+ size?: number | undefined;
3098
+ organizationIdentifiers?: {
3099
+ name?: string | undefined;
3100
+ identifierValues?: string[] | undefined;
3101
+ }[] | undefined;
3102
+ }[];
3103
+ externalId?: string | undefined;
3104
+ additionalIds?: Record<string, string[]> | undefined;
3105
+ }[];
3106
+ }>, z.ZodObject<{
3107
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3108
+ messageId: z.ZodString;
3109
+ requestId: z.ZodOptional<z.ZodString>;
3110
+ when: z.ZodEffects<z.ZodString, string, string>;
3111
+ /**
3112
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3113
+ */
3114
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3115
+ }, {
3116
+ type: z.ZodLiteral<"medical.document-bulk-download-paged">;
3117
+ }>, "strip", z.ZodTypeAny, {
3118
+ type: "medical.document-bulk-download-paged";
3119
+ messageId: string;
3120
+ when: string;
3121
+ requestId?: string | undefined;
3122
+ data?: unknown;
3123
+ }, {
3124
+ type: "medical.document-bulk-download-paged";
3125
+ messageId: string;
3126
+ when: string;
3127
+ requestId?: string | undefined;
3128
+ data?: unknown;
3129
+ }>;
3130
+ patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3131
+ patientId: z.ZodString;
3132
+ externalId: z.ZodOptional<z.ZodString>;
3133
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
3134
+ status: z.ZodEnum<["completed", "failed"]>;
3135
+ }, {
3136
+ documents: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3137
+ id: z.ZodString;
3138
+ fileName: z.ZodString;
3139
+ description: z.ZodOptional<z.ZodString>;
3140
+ status: z.ZodOptional<z.ZodString>;
3141
+ indexed: z.ZodOptional<z.ZodString>;
3142
+ mimeType: z.ZodOptional<z.ZodString>;
3143
+ size: z.ZodOptional<z.ZodNumber>;
3144
+ type: z.ZodOptional<z.ZodObject<{
3145
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
3146
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3147
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3148
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ code?: string | null | undefined;
3151
+ system?: string | null | undefined;
3152
+ display?: string | null | undefined;
3153
+ }, {
3154
+ code?: string | null | undefined;
3155
+ system?: string | null | undefined;
3156
+ display?: string | null | undefined;
3157
+ }>, "many">>;
3158
+ text: z.ZodOptional<z.ZodString>;
3159
+ }, "strip", z.ZodTypeAny, {
3160
+ coding?: {
3161
+ code?: string | null | undefined;
3162
+ system?: string | null | undefined;
3163
+ display?: string | null | undefined;
3164
+ }[] | undefined;
3165
+ text?: string | undefined;
3166
+ }, {
3167
+ coding?: {
3168
+ code?: string | null | undefined;
3169
+ system?: string | null | undefined;
3170
+ display?: string | null | undefined;
3171
+ }[] | undefined;
3172
+ text?: string | undefined;
3173
+ }>>;
3174
+ }, {
3175
+ url: z.ZodString;
3176
+ organizationIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3177
+ name: z.ZodOptional<z.ZodString>;
3178
+ identifierValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3179
+ }, "strip", z.ZodTypeAny, {
3180
+ name?: string | undefined;
3181
+ identifierValues?: string[] | undefined;
3182
+ }, {
3183
+ name?: string | undefined;
3184
+ identifierValues?: string[] | undefined;
3185
+ }>, "many">>;
3186
+ downloadUrl: z.ZodString;
3187
+ }>, "strip", z.ZodTypeAny, {
3188
+ id: string;
3189
+ fileName: string;
3190
+ url: string;
3191
+ downloadUrl: string;
3192
+ type?: {
3193
+ coding?: {
3194
+ code?: string | null | undefined;
3195
+ system?: string | null | undefined;
3196
+ display?: string | null | undefined;
3197
+ }[] | undefined;
3198
+ text?: string | undefined;
3199
+ } | undefined;
3200
+ status?: string | undefined;
3201
+ description?: string | undefined;
3202
+ indexed?: string | undefined;
3203
+ mimeType?: string | undefined;
3204
+ size?: number | undefined;
3205
+ organizationIdentifiers?: {
3206
+ name?: string | undefined;
3207
+ identifierValues?: string[] | undefined;
3208
+ }[] | undefined;
3209
+ }, {
3210
+ id: string;
3211
+ fileName: string;
3212
+ url: string;
3213
+ downloadUrl: string;
3214
+ type?: {
3215
+ coding?: {
3216
+ code?: string | null | undefined;
3217
+ system?: string | null | undefined;
3218
+ display?: string | null | undefined;
3219
+ }[] | undefined;
3220
+ text?: string | undefined;
3221
+ } | undefined;
3222
+ status?: string | undefined;
3223
+ description?: string | undefined;
3224
+ indexed?: string | undefined;
3225
+ mimeType?: string | undefined;
3226
+ size?: number | undefined;
3227
+ organizationIdentifiers?: {
3228
+ name?: string | undefined;
3229
+ identifierValues?: string[] | undefined;
3230
+ }[] | undefined;
3231
+ }>, "many">;
3232
+ pagination: z.ZodObject<{
3233
+ page: z.ZodNumber;
3234
+ totalPages: z.ZodNumber;
3235
+ totalItems: z.ZodNumber;
3236
+ }, "strip", z.ZodTypeAny, {
3237
+ page: number;
3238
+ totalPages: number;
3239
+ totalItems: number;
3240
+ }, {
3241
+ page: number;
3242
+ totalPages: number;
3243
+ totalItems: number;
3244
+ }>;
3245
+ }>, "strip", z.ZodTypeAny, {
3246
+ status: "completed" | "failed";
3247
+ patientId: string;
3248
+ documents: {
3249
+ id: string;
3250
+ fileName: string;
3251
+ url: string;
3252
+ downloadUrl: string;
3253
+ type?: {
3254
+ coding?: {
3255
+ code?: string | null | undefined;
3256
+ system?: string | null | undefined;
3257
+ display?: string | null | undefined;
3258
+ }[] | undefined;
3259
+ text?: string | undefined;
3260
+ } | undefined;
3261
+ status?: string | undefined;
3262
+ description?: string | undefined;
3263
+ indexed?: string | undefined;
3264
+ mimeType?: string | undefined;
3265
+ size?: number | undefined;
3266
+ organizationIdentifiers?: {
3267
+ name?: string | undefined;
3268
+ identifierValues?: string[] | undefined;
3269
+ }[] | undefined;
3270
+ }[];
3271
+ pagination: {
3272
+ page: number;
3273
+ totalPages: number;
3274
+ totalItems: number;
3275
+ };
3276
+ externalId?: string | undefined;
3277
+ additionalIds?: Record<string, string[]> | undefined;
3278
+ }, {
3279
+ status: "completed" | "failed";
3280
+ patientId: string;
3281
+ documents: {
3282
+ id: string;
3283
+ fileName: string;
3284
+ url: string;
3285
+ downloadUrl: string;
3286
+ type?: {
3287
+ coding?: {
3288
+ code?: string | null | undefined;
3289
+ system?: string | null | undefined;
3290
+ display?: string | null | undefined;
3291
+ }[] | undefined;
3292
+ text?: string | undefined;
3293
+ } | undefined;
3294
+ status?: string | undefined;
3295
+ description?: string | undefined;
3296
+ indexed?: string | undefined;
3297
+ mimeType?: string | undefined;
3298
+ size?: number | undefined;
3299
+ organizationIdentifiers?: {
3300
+ name?: string | undefined;
3301
+ identifierValues?: string[] | undefined;
3302
+ }[] | undefined;
3303
+ }[];
3304
+ pagination: {
3305
+ page: number;
3306
+ totalPages: number;
3307
+ totalItems: number;
3308
+ };
3309
+ externalId?: string | undefined;
3310
+ additionalIds?: Record<string, string[]> | undefined;
3311
+ }>, "many">;
3312
+ }, "strip", z.ZodTypeAny, {
3313
+ meta: {
3314
+ type: "medical.document-bulk-download-paged";
3315
+ messageId: string;
3316
+ when: string;
3317
+ requestId?: string | undefined;
3318
+ data?: unknown;
3319
+ };
3320
+ patients: {
3321
+ status: "completed" | "failed";
3322
+ patientId: string;
3323
+ documents: {
3324
+ id: string;
3325
+ fileName: string;
3326
+ url: string;
3327
+ downloadUrl: string;
3328
+ type?: {
3329
+ coding?: {
3330
+ code?: string | null | undefined;
3331
+ system?: string | null | undefined;
3332
+ display?: string | null | undefined;
3333
+ }[] | undefined;
3334
+ text?: string | undefined;
3335
+ } | undefined;
3336
+ status?: string | undefined;
3337
+ description?: string | undefined;
3338
+ indexed?: string | undefined;
3339
+ mimeType?: string | undefined;
3340
+ size?: number | undefined;
3341
+ organizationIdentifiers?: {
3342
+ name?: string | undefined;
3343
+ identifierValues?: string[] | undefined;
3344
+ }[] | undefined;
3345
+ }[];
3346
+ pagination: {
3347
+ page: number;
3348
+ totalPages: number;
3349
+ totalItems: number;
3350
+ };
3351
+ externalId?: string | undefined;
3352
+ additionalIds?: Record<string, string[]> | undefined;
3353
+ }[];
3354
+ }, {
3355
+ meta: {
3356
+ type: "medical.document-bulk-download-paged";
3357
+ messageId: string;
3358
+ when: string;
3359
+ requestId?: string | undefined;
3360
+ data?: unknown;
3361
+ };
3362
+ patients: {
3363
+ status: "completed" | "failed";
3364
+ patientId: string;
3365
+ documents: {
3366
+ id: string;
3367
+ fileName: string;
3368
+ url: string;
3369
+ downloadUrl: string;
3370
+ type?: {
3371
+ coding?: {
3372
+ code?: string | null | undefined;
3373
+ system?: string | null | undefined;
3374
+ display?: string | null | undefined;
3375
+ }[] | undefined;
3376
+ text?: string | undefined;
3377
+ } | undefined;
3378
+ status?: string | undefined;
3379
+ description?: string | undefined;
3380
+ indexed?: string | undefined;
3381
+ mimeType?: string | undefined;
3382
+ size?: number | undefined;
3383
+ organizationIdentifiers?: {
3384
+ name?: string | undefined;
3385
+ identifierValues?: string[] | undefined;
3386
+ }[] | undefined;
3387
+ }[];
3388
+ pagination: {
3389
+ page: number;
3390
+ totalPages: number;
3391
+ totalItems: number;
3392
+ };
3393
+ externalId?: string | undefined;
3394
+ additionalIds?: Record<string, string[]> | undefined;
3395
+ }[];
3396
+ }>, z.ZodObject<{
3397
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3398
+ messageId: z.ZodString;
3399
+ requestId: z.ZodOptional<z.ZodString>;
3400
+ when: z.ZodEffects<z.ZodString, string, string>;
3401
+ /**
3402
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3403
+ */
3404
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3405
+ }, {
3406
+ type: z.ZodLiteral<"medical.bulk-patient-create">;
3407
+ }>, "strip", z.ZodTypeAny, {
3408
+ type: "medical.bulk-patient-create";
3409
+ messageId: string;
3410
+ when: string;
3411
+ requestId?: string | undefined;
3412
+ data?: unknown;
3413
+ }, {
3414
+ type: "medical.bulk-patient-create";
3415
+ messageId: string;
3416
+ when: string;
3417
+ requestId?: string | undefined;
3418
+ data?: unknown;
3419
+ }>;
3420
+ bulkPatientCreate: z.ZodObject<{
3421
+ requestId: z.ZodString;
3422
+ status: z.ZodEnum<["waiting", "processing", "completed", "failed"]>;
3423
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3424
+ }, "strip", z.ZodTypeAny, {
3425
+ status: "processing" | "completed" | "failed" | "waiting";
3426
+ requestId: string;
3427
+ result?: string | null | undefined;
3428
+ }, {
3429
+ status: "processing" | "completed" | "failed" | "waiting";
3430
+ requestId: string;
3431
+ result?: string | null | undefined;
3432
+ }>;
3433
+ }, "strip", z.ZodTypeAny, {
3434
+ meta: {
3435
+ type: "medical.bulk-patient-create";
3436
+ messageId: string;
3437
+ when: string;
3438
+ requestId?: string | undefined;
3439
+ data?: unknown;
3440
+ };
3441
+ bulkPatientCreate: {
3442
+ status: "processing" | "completed" | "failed" | "waiting";
3443
+ requestId: string;
3444
+ result?: string | null | undefined;
3445
+ };
3446
+ }, {
3447
+ meta: {
3448
+ type: "medical.bulk-patient-create";
3449
+ messageId: string;
3450
+ when: string;
3451
+ requestId?: string | undefined;
3452
+ data?: unknown;
3453
+ };
3454
+ bulkPatientCreate: {
3455
+ status: "processing" | "completed" | "failed" | "waiting";
3456
+ requestId: string;
3457
+ result?: string | null | undefined;
3458
+ };
3459
+ }>, z.ZodObject<{
3460
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3461
+ messageId: z.ZodString;
3462
+ requestId: z.ZodOptional<z.ZodString>;
3463
+ when: z.ZodEffects<z.ZodString, string, string>;
3464
+ /**
3465
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3466
+ */
3467
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3468
+ }, {
3469
+ type: z.ZodLiteral<NotificationWebhookEvent.PharmacyNotification>;
3470
+ }>, "strip", z.ZodTypeAny, {
3471
+ type: NotificationWebhookEvent.PharmacyNotification;
3472
+ messageId: string;
3473
+ when: string;
3474
+ requestId?: string | undefined;
3475
+ data?: unknown;
3476
+ }, {
3477
+ type: NotificationWebhookEvent.PharmacyNotification;
3478
+ messageId: string;
3479
+ when: string;
3480
+ requestId?: string | undefined;
3481
+ data?: unknown;
3482
+ }>;
3483
+ payload: z.ZodObject<{
3484
+ url: z.ZodString;
3485
+ patientId: z.ZodString;
3486
+ externalId: z.ZodOptional<z.ZodString>;
3487
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
3488
+ medicationDispensedDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3489
+ }, "strip", z.ZodTypeAny, {
3490
+ patientId: string;
3491
+ url: string;
3492
+ externalId?: string | undefined;
3493
+ additionalIds?: Record<string, string[]> | undefined;
3494
+ medicationDispensedDate?: string | undefined;
3495
+ }, {
3496
+ patientId: string;
3497
+ url: string;
3498
+ externalId?: string | undefined;
3499
+ additionalIds?: Record<string, string[]> | undefined;
3500
+ medicationDispensedDate?: string | undefined;
3501
+ }>;
3502
+ }, "strip", z.ZodTypeAny, {
3503
+ meta: {
3504
+ type: NotificationWebhookEvent.PharmacyNotification;
3505
+ messageId: string;
3506
+ when: string;
3507
+ requestId?: string | undefined;
3508
+ data?: unknown;
3509
+ };
3510
+ payload: {
3511
+ patientId: string;
3512
+ url: string;
3513
+ externalId?: string | undefined;
3514
+ additionalIds?: Record<string, string[]> | undefined;
3515
+ medicationDispensedDate?: string | undefined;
3516
+ };
3517
+ }, {
3518
+ meta: {
3519
+ type: NotificationWebhookEvent.PharmacyNotification;
3520
+ messageId: string;
3521
+ when: string;
3522
+ requestId?: string | undefined;
3523
+ data?: unknown;
3524
+ };
3525
+ payload: {
3526
+ patientId: string;
3527
+ url: string;
3528
+ externalId?: string | undefined;
3529
+ additionalIds?: Record<string, string[]> | undefined;
3530
+ medicationDispensedDate?: string | undefined;
3531
+ };
3532
+ }>, z.ZodObject<{
3533
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3534
+ messageId: z.ZodString;
3535
+ requestId: z.ZodOptional<z.ZodString>;
3536
+ when: z.ZodEffects<z.ZodString, string, string>;
3537
+ /**
3538
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3539
+ */
3540
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3541
+ }, {
3542
+ type: z.ZodLiteral<NotificationWebhookEvent.LaboratoryNotification>;
3543
+ }>, "strip", z.ZodTypeAny, {
3544
+ type: NotificationWebhookEvent.LaboratoryNotification;
3545
+ messageId: string;
3546
+ when: string;
3547
+ requestId?: string | undefined;
3548
+ data?: unknown;
3549
+ }, {
3550
+ type: NotificationWebhookEvent.LaboratoryNotification;
3551
+ messageId: string;
3552
+ when: string;
3553
+ requestId?: string | undefined;
3554
+ data?: unknown;
3555
+ }>;
3556
+ payload: z.ZodObject<{
3557
+ url: z.ZodString;
3558
+ patientId: z.ZodString;
3559
+ externalId: z.ZodOptional<z.ZodString>;
3560
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
3561
+ specimenCollectedDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3562
+ }, "strip", z.ZodTypeAny, {
3563
+ patientId: string;
3564
+ url: string;
3565
+ externalId?: string | undefined;
3566
+ additionalIds?: Record<string, string[]> | undefined;
3567
+ specimenCollectedDate?: string | undefined;
3568
+ }, {
3569
+ patientId: string;
3570
+ url: string;
3571
+ externalId?: string | undefined;
3572
+ additionalIds?: Record<string, string[]> | undefined;
3573
+ specimenCollectedDate?: string | undefined;
3574
+ }>;
3575
+ }, "strip", z.ZodTypeAny, {
3576
+ meta: {
3577
+ type: NotificationWebhookEvent.LaboratoryNotification;
3578
+ messageId: string;
3579
+ when: string;
3580
+ requestId?: string | undefined;
3581
+ data?: unknown;
3582
+ };
3583
+ payload: {
3584
+ patientId: string;
3585
+ url: string;
3586
+ externalId?: string | undefined;
3587
+ additionalIds?: Record<string, string[]> | undefined;
3588
+ specimenCollectedDate?: string | undefined;
3589
+ };
3590
+ }, {
3591
+ meta: {
3592
+ type: NotificationWebhookEvent.LaboratoryNotification;
3593
+ messageId: string;
3594
+ when: string;
3595
+ requestId?: string | undefined;
3596
+ data?: unknown;
3597
+ };
3598
+ payload: {
3599
+ patientId: string;
3600
+ url: string;
3601
+ externalId?: string | undefined;
3602
+ additionalIds?: Record<string, string[]> | undefined;
3603
+ specimenCollectedDate?: string | undefined;
3604
+ };
3605
+ }>, z.ZodObject<{
3606
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3607
+ messageId: z.ZodString;
3608
+ requestId: z.ZodOptional<z.ZodString>;
3609
+ when: z.ZodEffects<z.ZodString, string, string>;
3610
+ /**
3611
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3612
+ */
3613
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3614
+ }, {
3615
+ type: z.ZodLiteral<"network-query.hie">;
3616
+ }>, "strip", z.ZodTypeAny, {
3617
+ type: "network-query.hie";
3618
+ messageId: string;
3619
+ when: string;
3620
+ requestId?: string | undefined;
3621
+ data?: unknown;
3622
+ }, {
3623
+ type: "network-query.hie";
3624
+ messageId: string;
3625
+ when: string;
3626
+ requestId?: string | undefined;
3627
+ data?: unknown;
3628
+ }>;
3629
+ payload: z.ZodObject<{
3630
+ patientId: z.ZodString;
3631
+ externalId: z.ZodOptional<z.ZodString>;
3632
+ consolidatedDataUrl: z.ZodString;
3633
+ source: z.ZodObject<{
3634
+ type: z.ZodEnum<["hie", "pharmacy", "lab"]>;
3635
+ source: z.ZodOptional<z.ZodString>;
3636
+ status: z.ZodEnum<["completed", "failed"]>;
3637
+ completedAt: z.ZodEffects<z.ZodString, string, string>;
3638
+ }, "strip", z.ZodTypeAny, {
3639
+ type: "hie" | "pharmacy" | "lab";
3640
+ status: "completed" | "failed";
3641
+ completedAt: string;
3642
+ source?: string | undefined;
3643
+ }, {
3644
+ type: "hie" | "pharmacy" | "lab";
3645
+ status: "completed" | "failed";
3646
+ completedAt: string;
3647
+ source?: string | undefined;
3648
+ }>;
3649
+ }, "strip", z.ZodTypeAny, {
3650
+ patientId: string;
3651
+ consolidatedDataUrl: string;
3652
+ source: {
3653
+ type: "hie" | "pharmacy" | "lab";
3654
+ status: "completed" | "failed";
3655
+ completedAt: string;
3656
+ source?: string | undefined;
3657
+ };
3658
+ externalId?: string | undefined;
3659
+ }, {
3660
+ patientId: string;
3661
+ consolidatedDataUrl: string;
3662
+ source: {
3663
+ type: "hie" | "pharmacy" | "lab";
3664
+ status: "completed" | "failed";
3665
+ completedAt: string;
3666
+ source?: string | undefined;
3667
+ };
3668
+ externalId?: string | undefined;
3669
+ }>;
3670
+ }, "strip", z.ZodTypeAny, {
3671
+ meta: {
3672
+ type: "network-query.hie";
3673
+ messageId: string;
3674
+ when: string;
3675
+ requestId?: string | undefined;
3676
+ data?: unknown;
3677
+ };
3678
+ payload: {
3679
+ patientId: string;
3680
+ consolidatedDataUrl: string;
3681
+ source: {
3682
+ type: "hie" | "pharmacy" | "lab";
3683
+ status: "completed" | "failed";
3684
+ completedAt: string;
3685
+ source?: string | undefined;
3686
+ };
3687
+ externalId?: string | undefined;
3688
+ };
3689
+ }, {
3690
+ meta: {
3691
+ type: "network-query.hie";
3692
+ messageId: string;
3693
+ when: string;
3694
+ requestId?: string | undefined;
3695
+ data?: unknown;
3696
+ };
3697
+ payload: {
3698
+ patientId: string;
3699
+ consolidatedDataUrl: string;
3700
+ source: {
3701
+ type: "hie" | "pharmacy" | "lab";
3702
+ status: "completed" | "failed";
3703
+ completedAt: string;
3704
+ source?: string | undefined;
3705
+ };
3706
+ externalId?: string | undefined;
3707
+ };
3708
+ }>, z.ZodObject<{
3709
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3710
+ messageId: z.ZodString;
3711
+ requestId: z.ZodOptional<z.ZodString>;
3712
+ when: z.ZodEffects<z.ZodString, string, string>;
3713
+ /**
3714
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3715
+ */
3716
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3717
+ }, {
3718
+ type: z.ZodLiteral<"network-query.pharmacy">;
3719
+ }>, "strip", z.ZodTypeAny, {
3720
+ type: "network-query.pharmacy";
3721
+ messageId: string;
3722
+ when: string;
3723
+ requestId?: string | undefined;
3724
+ data?: unknown;
3725
+ }, {
3726
+ type: "network-query.pharmacy";
3727
+ messageId: string;
3728
+ when: string;
3729
+ requestId?: string | undefined;
3730
+ data?: unknown;
3731
+ }>;
3732
+ payload: z.ZodObject<{
3733
+ patientId: z.ZodString;
3734
+ externalId: z.ZodOptional<z.ZodString>;
3735
+ consolidatedDataUrl: z.ZodString;
3736
+ source: z.ZodObject<{
3737
+ type: z.ZodEnum<["hie", "pharmacy", "lab"]>;
3738
+ source: z.ZodOptional<z.ZodString>;
3739
+ status: z.ZodEnum<["completed", "failed"]>;
3740
+ completedAt: z.ZodEffects<z.ZodString, string, string>;
3741
+ }, "strip", z.ZodTypeAny, {
3742
+ type: "hie" | "pharmacy" | "lab";
3743
+ status: "completed" | "failed";
3744
+ completedAt: string;
3745
+ source?: string | undefined;
3746
+ }, {
3747
+ type: "hie" | "pharmacy" | "lab";
3748
+ status: "completed" | "failed";
3749
+ completedAt: string;
3750
+ source?: string | undefined;
3751
+ }>;
3752
+ }, "strip", z.ZodTypeAny, {
3753
+ patientId: string;
3754
+ consolidatedDataUrl: string;
3755
+ source: {
3756
+ type: "hie" | "pharmacy" | "lab";
3757
+ status: "completed" | "failed";
3758
+ completedAt: string;
3759
+ source?: string | undefined;
3760
+ };
3761
+ externalId?: string | undefined;
3762
+ }, {
3763
+ patientId: string;
3764
+ consolidatedDataUrl: string;
3765
+ source: {
3766
+ type: "hie" | "pharmacy" | "lab";
3767
+ status: "completed" | "failed";
3768
+ completedAt: string;
3769
+ source?: string | undefined;
3770
+ };
3771
+ externalId?: string | undefined;
3772
+ }>;
3773
+ }, "strip", z.ZodTypeAny, {
3774
+ meta: {
3775
+ type: "network-query.pharmacy";
3776
+ messageId: string;
3777
+ when: string;
3778
+ requestId?: string | undefined;
3779
+ data?: unknown;
3780
+ };
3781
+ payload: {
3782
+ patientId: string;
3783
+ consolidatedDataUrl: string;
3784
+ source: {
3785
+ type: "hie" | "pharmacy" | "lab";
3786
+ status: "completed" | "failed";
3787
+ completedAt: string;
3788
+ source?: string | undefined;
3789
+ };
3790
+ externalId?: string | undefined;
3791
+ };
3792
+ }, {
3793
+ meta: {
3794
+ type: "network-query.pharmacy";
3795
+ messageId: string;
3796
+ when: string;
3797
+ requestId?: string | undefined;
3798
+ data?: unknown;
3799
+ };
3800
+ payload: {
3801
+ patientId: string;
3802
+ consolidatedDataUrl: string;
3803
+ source: {
3804
+ type: "hie" | "pharmacy" | "lab";
3805
+ status: "completed" | "failed";
3806
+ completedAt: string;
3807
+ source?: string | undefined;
3808
+ };
3809
+ externalId?: string | undefined;
3810
+ };
3811
+ }>, z.ZodObject<{
3812
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3813
+ messageId: z.ZodString;
3814
+ requestId: z.ZodOptional<z.ZodString>;
3815
+ when: z.ZodEffects<z.ZodString, string, string>;
3816
+ /**
3817
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3818
+ */
3819
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3820
+ }, {
3821
+ type: z.ZodLiteral<"network-query.lab">;
3822
+ }>, "strip", z.ZodTypeAny, {
3823
+ type: "network-query.lab";
3824
+ messageId: string;
3825
+ when: string;
3826
+ requestId?: string | undefined;
3827
+ data?: unknown;
3828
+ }, {
3829
+ type: "network-query.lab";
3830
+ messageId: string;
3831
+ when: string;
3832
+ requestId?: string | undefined;
3833
+ data?: unknown;
3834
+ }>;
3835
+ payload: z.ZodObject<{
3836
+ patientId: z.ZodString;
3837
+ externalId: z.ZodOptional<z.ZodString>;
3838
+ consolidatedDataUrl: z.ZodString;
3839
+ source: z.ZodObject<{
3840
+ type: z.ZodEnum<["hie", "pharmacy", "lab"]>;
3841
+ source: z.ZodOptional<z.ZodString>;
3842
+ status: z.ZodEnum<["completed", "failed"]>;
3843
+ completedAt: z.ZodEffects<z.ZodString, string, string>;
3844
+ }, "strip", z.ZodTypeAny, {
3845
+ type: "hie" | "pharmacy" | "lab";
3846
+ status: "completed" | "failed";
3847
+ completedAt: string;
3848
+ source?: string | undefined;
3849
+ }, {
3850
+ type: "hie" | "pharmacy" | "lab";
3851
+ status: "completed" | "failed";
3852
+ completedAt: string;
3853
+ source?: string | undefined;
3854
+ }>;
3855
+ }, "strip", z.ZodTypeAny, {
3856
+ patientId: string;
3857
+ consolidatedDataUrl: string;
3858
+ source: {
3859
+ type: "hie" | "pharmacy" | "lab";
3860
+ status: "completed" | "failed";
3861
+ completedAt: string;
3862
+ source?: string | undefined;
3863
+ };
3864
+ externalId?: string | undefined;
3865
+ }, {
3866
+ patientId: string;
3867
+ consolidatedDataUrl: string;
3868
+ source: {
3869
+ type: "hie" | "pharmacy" | "lab";
3870
+ status: "completed" | "failed";
3871
+ completedAt: string;
3872
+ source?: string | undefined;
3873
+ };
3874
+ externalId?: string | undefined;
3875
+ }>;
3876
+ }, "strip", z.ZodTypeAny, {
3877
+ meta: {
3878
+ type: "network-query.lab";
3879
+ messageId: string;
3880
+ when: string;
3881
+ requestId?: string | undefined;
3882
+ data?: unknown;
3883
+ };
3884
+ payload: {
3885
+ patientId: string;
3886
+ consolidatedDataUrl: string;
3887
+ source: {
3888
+ type: "hie" | "pharmacy" | "lab";
3889
+ status: "completed" | "failed";
3890
+ completedAt: string;
3891
+ source?: string | undefined;
3892
+ };
3893
+ externalId?: string | undefined;
3894
+ };
3895
+ }, {
3896
+ meta: {
3897
+ type: "network-query.lab";
3898
+ messageId: string;
3899
+ when: string;
3900
+ requestId?: string | undefined;
3901
+ data?: unknown;
3902
+ };
3903
+ payload: {
3904
+ patientId: string;
3905
+ consolidatedDataUrl: string;
3906
+ source: {
3907
+ type: "hie" | "pharmacy" | "lab";
3908
+ status: "completed" | "failed";
3909
+ completedAt: string;
3910
+ source?: string | undefined;
3911
+ };
3912
+ externalId?: string | undefined;
3913
+ };
3914
+ }>, z.ZodObject<{
3915
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3916
+ messageId: z.ZodString;
3917
+ requestId: z.ZodOptional<z.ZodString>;
3918
+ when: z.ZodEffects<z.ZodString, string, string>;
3919
+ /**
3920
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3921
+ */
3922
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3923
+ }, {
3924
+ type: z.ZodLiteral<"patient.admit">;
3925
+ }>, "strip", z.ZodTypeAny, {
3926
+ type: "patient.admit";
3927
+ messageId: string;
3928
+ when: string;
3929
+ requestId?: string | undefined;
3930
+ data?: unknown;
3931
+ }, {
3932
+ type: "patient.admit";
3933
+ messageId: string;
3934
+ when: string;
3935
+ requestId?: string | undefined;
3936
+ data?: unknown;
3937
+ }>;
3938
+ payload: z.ZodObject<{
3939
+ url: z.ZodString;
3940
+ patientId: z.ZodString;
3941
+ externalId: z.ZodOptional<z.ZodString>;
3942
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
3943
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
3944
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3945
+ }, "strip", z.ZodTypeAny, {
3946
+ patientId: string;
3947
+ url: string;
3948
+ admitTimestamp: string;
3949
+ externalId?: string | undefined;
3950
+ additionalIds?: Record<string, string[]> | undefined;
3951
+ whenSourceSent?: string | undefined;
3952
+ }, {
3953
+ patientId: string;
3954
+ url: string;
3955
+ admitTimestamp: string;
3956
+ externalId?: string | undefined;
3957
+ additionalIds?: Record<string, string[]> | undefined;
3958
+ whenSourceSent?: string | undefined;
3959
+ }>;
3960
+ }, "strip", z.ZodTypeAny, {
3961
+ meta: {
3962
+ type: "patient.admit";
3963
+ messageId: string;
3964
+ when: string;
3965
+ requestId?: string | undefined;
3966
+ data?: unknown;
3967
+ };
3968
+ payload: {
3969
+ patientId: string;
3970
+ url: string;
3971
+ admitTimestamp: string;
3972
+ externalId?: string | undefined;
3973
+ additionalIds?: Record<string, string[]> | undefined;
3974
+ whenSourceSent?: string | undefined;
3975
+ };
3976
+ }, {
3977
+ meta: {
3978
+ type: "patient.admit";
3979
+ messageId: string;
3980
+ when: string;
3981
+ requestId?: string | undefined;
3982
+ data?: unknown;
3983
+ };
3984
+ payload: {
3985
+ patientId: string;
3986
+ url: string;
3987
+ admitTimestamp: string;
3988
+ externalId?: string | undefined;
3989
+ additionalIds?: Record<string, string[]> | undefined;
3990
+ whenSourceSent?: string | undefined;
3991
+ };
3992
+ }>, z.ZodObject<{
3993
+ meta: z.ZodObject<z.objectUtil.extendShape<{
3994
+ messageId: z.ZodString;
3995
+ requestId: z.ZodOptional<z.ZodString>;
3996
+ when: z.ZodEffects<z.ZodString, string, string>;
3997
+ /**
3998
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
3999
+ */
4000
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
4001
+ }, {
4002
+ type: z.ZodLiteral<"patient.transfer">;
4003
+ }>, "strip", z.ZodTypeAny, {
4004
+ type: "patient.transfer";
4005
+ messageId: string;
4006
+ when: string;
4007
+ requestId?: string | undefined;
4008
+ data?: unknown;
4009
+ }, {
4010
+ type: "patient.transfer";
4011
+ messageId: string;
4012
+ when: string;
4013
+ requestId?: string | undefined;
4014
+ data?: unknown;
4015
+ }>;
4016
+ payload: z.ZodObject<{
4017
+ url: z.ZodString;
4018
+ patientId: z.ZodString;
4019
+ externalId: z.ZodOptional<z.ZodString>;
4020
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4021
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
4022
+ transfers: z.ZodArray<z.ZodObject<{
4023
+ timestamp: z.ZodEffects<z.ZodString, string, string>;
4024
+ sourceLocation: z.ZodObject<{
4025
+ name: z.ZodString;
4026
+ type: z.ZodString;
4027
+ }, "strip", z.ZodTypeAny, {
4028
+ type: string;
4029
+ name: string;
4030
+ }, {
4031
+ type: string;
4032
+ name: string;
4033
+ }>;
4034
+ destinationLocation: z.ZodObject<{
4035
+ name: z.ZodString;
4036
+ type: z.ZodString;
4037
+ }, "strip", z.ZodTypeAny, {
4038
+ type: string;
4039
+ name: string;
4040
+ }, {
4041
+ type: string;
4042
+ name: string;
4043
+ }>;
4044
+ }, "strip", z.ZodTypeAny, {
4045
+ timestamp: string;
4046
+ sourceLocation: {
4047
+ type: string;
4048
+ name: string;
4049
+ };
4050
+ destinationLocation: {
4051
+ type: string;
4052
+ name: string;
4053
+ };
4054
+ }, {
4055
+ timestamp: string;
4056
+ sourceLocation: {
4057
+ type: string;
4058
+ name: string;
4059
+ };
4060
+ destinationLocation: {
4061
+ type: string;
4062
+ name: string;
4063
+ };
4064
+ }>, "many">;
4065
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4066
+ }, "strip", z.ZodTypeAny, {
4067
+ patientId: string;
4068
+ url: string;
4069
+ admitTimestamp: string;
4070
+ transfers: {
4071
+ timestamp: string;
4072
+ sourceLocation: {
4073
+ type: string;
4074
+ name: string;
4075
+ };
4076
+ destinationLocation: {
4077
+ type: string;
4078
+ name: string;
4079
+ };
4080
+ }[];
4081
+ externalId?: string | undefined;
4082
+ additionalIds?: Record<string, string[]> | undefined;
4083
+ whenSourceSent?: string | undefined;
4084
+ }, {
4085
+ patientId: string;
4086
+ url: string;
4087
+ admitTimestamp: string;
4088
+ transfers: {
4089
+ timestamp: string;
4090
+ sourceLocation: {
4091
+ type: string;
4092
+ name: string;
4093
+ };
4094
+ destinationLocation: {
4095
+ type: string;
4096
+ name: string;
4097
+ };
4098
+ }[];
4099
+ externalId?: string | undefined;
4100
+ additionalIds?: Record<string, string[]> | undefined;
4101
+ whenSourceSent?: string | undefined;
4102
+ }>;
4103
+ }, "strip", z.ZodTypeAny, {
4104
+ meta: {
4105
+ type: "patient.transfer";
4106
+ messageId: string;
4107
+ when: string;
4108
+ requestId?: string | undefined;
4109
+ data?: unknown;
4110
+ };
4111
+ payload: {
4112
+ patientId: string;
4113
+ url: string;
4114
+ admitTimestamp: string;
4115
+ transfers: {
4116
+ timestamp: string;
4117
+ sourceLocation: {
4118
+ type: string;
4119
+ name: string;
4120
+ };
4121
+ destinationLocation: {
4122
+ type: string;
4123
+ name: string;
4124
+ };
4125
+ }[];
4126
+ externalId?: string | undefined;
4127
+ additionalIds?: Record<string, string[]> | undefined;
4128
+ whenSourceSent?: string | undefined;
4129
+ };
4130
+ }, {
4131
+ meta: {
4132
+ type: "patient.transfer";
4133
+ messageId: string;
4134
+ when: string;
4135
+ requestId?: string | undefined;
4136
+ data?: unknown;
4137
+ };
4138
+ payload: {
4139
+ patientId: string;
4140
+ url: string;
4141
+ admitTimestamp: string;
4142
+ transfers: {
4143
+ timestamp: string;
4144
+ sourceLocation: {
4145
+ type: string;
4146
+ name: string;
4147
+ };
4148
+ destinationLocation: {
4149
+ type: string;
4150
+ name: string;
4151
+ };
4152
+ }[];
4153
+ externalId?: string | undefined;
4154
+ additionalIds?: Record<string, string[]> | undefined;
4155
+ whenSourceSent?: string | undefined;
4156
+ };
4157
+ }>, z.ZodObject<{
4158
+ meta: z.ZodObject<z.objectUtil.extendShape<{
4159
+ messageId: z.ZodString;
4160
+ requestId: z.ZodOptional<z.ZodString>;
4161
+ when: z.ZodEffects<z.ZodString, string, string>;
4162
+ /**
4163
+ * The metadata sent by the customer when they triggered the operation that resulted in this webhook.
4164
+ */
4165
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
4166
+ }, {
4167
+ type: z.ZodLiteral<"patient.discharge">;
4168
+ }>, "strip", z.ZodTypeAny, {
4169
+ type: "patient.discharge";
4170
+ messageId: string;
4171
+ when: string;
4172
+ requestId?: string | undefined;
4173
+ data?: unknown;
4174
+ }, {
4175
+ type: "patient.discharge";
4176
+ messageId: string;
4177
+ when: string;
4178
+ requestId?: string | undefined;
4179
+ data?: unknown;
4180
+ }>;
4181
+ payload: z.ZodObject<{
4182
+ url: z.ZodString;
4183
+ patientId: z.ZodString;
4184
+ externalId: z.ZodOptional<z.ZodString>;
4185
+ additionalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4186
+ admitTimestamp: z.ZodEffects<z.ZodString, string, string>;
4187
+ dischargeTimestamp: z.ZodEffects<z.ZodString, string, string>;
4188
+ whenSourceSent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4189
+ }, "strip", z.ZodTypeAny, {
4190
+ patientId: string;
4191
+ url: string;
4192
+ admitTimestamp: string;
4193
+ dischargeTimestamp: string;
4194
+ externalId?: string | undefined;
4195
+ additionalIds?: Record<string, string[]> | undefined;
4196
+ whenSourceSent?: string | undefined;
4197
+ }, {
4198
+ patientId: string;
4199
+ url: string;
4200
+ admitTimestamp: string;
4201
+ dischargeTimestamp: string;
4202
+ externalId?: string | undefined;
4203
+ additionalIds?: Record<string, string[]> | undefined;
4204
+ whenSourceSent?: string | undefined;
4205
+ }>;
4206
+ }, "strip", z.ZodTypeAny, {
4207
+ meta: {
4208
+ type: "patient.discharge";
4209
+ messageId: string;
4210
+ when: string;
4211
+ requestId?: string | undefined;
4212
+ data?: unknown;
4213
+ };
4214
+ payload: {
4215
+ patientId: string;
4216
+ url: string;
4217
+ admitTimestamp: string;
4218
+ dischargeTimestamp: string;
4219
+ externalId?: string | undefined;
4220
+ additionalIds?: Record<string, string[]> | undefined;
4221
+ whenSourceSent?: string | undefined;
4222
+ };
4223
+ }, {
4224
+ meta: {
4225
+ type: "patient.discharge";
4226
+ messageId: string;
4227
+ when: string;
4228
+ requestId?: string | undefined;
4229
+ data?: unknown;
4230
+ };
4231
+ payload: {
4232
+ patientId: string;
4233
+ url: string;
4234
+ admitTimestamp: string;
4235
+ dischargeTimestamp: string;
4236
+ externalId?: string | undefined;
4237
+ additionalIds?: Record<string, string[]> | undefined;
4238
+ whenSourceSent?: string | undefined;
4239
+ };
4240
+ }>]>;
4241
+ export type WebhookRequest = z.infer<typeof webhookRequestSchema>;
4242
+ export declare class WebhookRequestParsingFailure {
4243
+ readonly errors: ZodError<WebhookRequest>;
4244
+ readonly flattened: ZodFormattedError<WebhookRequest>;
4245
+ constructor(errors: ZodError<WebhookRequest>, flattened: ZodFormattedError<WebhookRequest>);
4246
+ }
4247
+ export declare function isPingWebhookRequest(whRequest: WebhookRequest): whRequest is PingWebhookRequest;
4248
+ export declare function isConsolidatedWebhookRequest(whRequest: WebhookRequest): whRequest is ConsolidatedWebhookRequest;
4249
+ export declare function isDocumentDownloadWebhookRequest(whRequest: WebhookRequest): whRequest is DocumentDownloadWebhookRequest;
4250
+ export declare function isDocumentConversionWebhookRequest(whRequest: WebhookRequest): whRequest is DocumentConversionWebhookRequest;
4251
+ export declare function isDocumentBulkDownloadWebhookRequest(whRequest: WebhookRequest): whRequest is DocumentBulkDownloadWebhookRequest;
4252
+ export declare function isDocumentBulkDownloadWebhookRequestPaged(whRequest: WebhookRequest): whRequest is DocumentBulkDownloadWebhookRequestPaged;
4253
+ export declare function isBulkPatientImportWebhookRequest(whRequest: WebhookRequest): whRequest is BulkPatientImportWebhookRequest;
4254
+ export declare function isPharmacyNotificationWebhookRequest(whRequest: WebhookRequest): whRequest is PharmacyNotificationWebhookRequest;
4255
+ export declare function isLaboratoryNotificationWebhookRequest(whRequest: WebhookRequest): whRequest is LaboratoryNotificationWebhookRequest;
4256
+ export declare function isPatientAdmitWebhookRequest(whRequest: WebhookRequest): whRequest is PatientAdmitWebhookRequest;
4257
+ export declare function isPatientTransferWebhookRequest(whRequest: WebhookRequest): whRequest is PatientTransferWebhookRequest;
4258
+ export declare function isPatientDischargeWebhookRequest(whRequest: WebhookRequest): whRequest is PatientDischargeWebhookRequest;
4259
+ export declare function isNetworkQueryHieWebhookRequest(whRequest: WebhookRequest): whRequest is NetworkQueryHieWebhookRequest;
4260
+ export declare function isNetworkQueryPharmacyWebhookRequest(whRequest: WebhookRequest): whRequest is NetworkQueryPharmacyWebhookRequest;
4261
+ export declare function isNetworkQueryLabWebhookRequest(whRequest: WebhookRequest): whRequest is NetworkQueryLabWebhookRequest;
4262
+ export declare function isNetworkQueryWebhookRequest(whRequest: WebhookRequest): whRequest is NetworkQueryWebhookRequest;
4263
+ export {};
4264
+ //# sourceMappingURL=webhook-request.d.ts.map