@metriport/shared 0.33.0 → 0.33.1

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 (507) hide show
  1. package/dist/__tests__/env-setup.js +17 -7
  2. package/dist/__tests__/env-setup.js.map +1 -1
  3. package/dist/common/__tests__/demographics.test.js +59 -3
  4. package/dist/common/__tests__/demographics.test.js.map +1 -1
  5. package/dist/common/__tests__/npi.js +1 -2
  6. package/dist/common/__tests__/npi.js.map +1 -1
  7. package/dist/common/__tests__/oid.js +1 -2
  8. package/dist/common/__tests__/oid.js.map +1 -1
  9. package/dist/common/__tests__/retry.test.js.map +1 -1
  10. package/dist/common/__tests__/string.test.js +24 -0
  11. package/dist/common/__tests__/string.test.js.map +1 -1
  12. package/dist/common/__tests__/validate-npi.test.js.map +1 -1
  13. package/dist/common/array.js +1 -2
  14. package/dist/common/array.js.map +1 -1
  15. package/dist/common/boolean.js +2 -3
  16. package/dist/common/boolean.js.map +1 -1
  17. package/dist/common/date.js +18 -18
  18. package/dist/common/date.js.map +1 -1
  19. package/dist/common/demographics.d.ts +3 -3
  20. package/dist/common/demographics.d.ts.map +1 -1
  21. package/dist/common/demographics.js +26 -19
  22. package/dist/common/demographics.js.map +1 -1
  23. package/dist/common/duration.js +1 -2
  24. package/dist/common/duration.js.map +1 -1
  25. package/dist/common/email.js +1 -2
  26. package/dist/common/email.js.map +1 -1
  27. package/dist/common/env-var.js +7 -7
  28. package/dist/common/env-var.js.map +1 -1
  29. package/dist/common/filter-map.js +1 -2
  30. package/dist/common/filter-map.js.map +1 -1
  31. package/dist/common/general.d.ts +4 -0
  32. package/dist/common/general.d.ts.map +1 -1
  33. package/dist/common/general.js +8 -2
  34. package/dist/common/general.js.map +1 -1
  35. package/dist/common/html.js +1 -2
  36. package/dist/common/html.js.map +1 -1
  37. package/dist/common/merge-settings.js +1 -2
  38. package/dist/common/merge-settings.js.map +1 -1
  39. package/dist/common/net.js +1 -2
  40. package/dist/common/net.js.map +1 -1
  41. package/dist/common/normalize-oid.js +2 -3
  42. package/dist/common/normalize-oid.js.map +1 -1
  43. package/dist/common/numbers.js +6 -7
  44. package/dist/common/numbers.js.map +1 -1
  45. package/dist/common/purpose-of-use.d.ts +13 -0
  46. package/dist/common/purpose-of-use.d.ts.map +1 -1
  47. package/dist/common/purpose-of-use.js +18 -2
  48. package/dist/common/purpose-of-use.js.map +1 -1
  49. package/dist/common/response.js +2 -3
  50. package/dist/common/response.js.map +1 -1
  51. package/dist/common/retry.js +4 -4
  52. package/dist/common/retry.js.map +1 -1
  53. package/dist/common/sleep.js +2 -3
  54. package/dist/common/sleep.js.map +1 -1
  55. package/dist/common/string.d.ts +6 -0
  56. package/dist/common/string.d.ts.map +1 -1
  57. package/dist/common/string.js +14 -6
  58. package/dist/common/string.js.map +1 -1
  59. package/dist/common/timer.d.ts.map +1 -1
  60. package/dist/common/timer.js +1 -2
  61. package/dist/common/timer.js.map +1 -1
  62. package/dist/common/title-case.js +2 -3
  63. package/dist/common/title-case.js.map +1 -1
  64. package/dist/common/types.js +2 -3
  65. package/dist/common/types.js.map +1 -1
  66. package/dist/common/uuid.js +1 -2
  67. package/dist/common/uuid.js.map +1 -1
  68. package/dist/common/validate-npi.js +1 -2
  69. package/dist/common/validate-npi.js.map +1 -1
  70. package/dist/common/xml-parser.js +1 -2
  71. package/dist/common/xml-parser.js.map +1 -1
  72. package/dist/common/zod.js.map +1 -1
  73. package/dist/domain/__tests__/dob.test.js.map +1 -1
  74. package/dist/domain/__tests__/gender.test.js.map +1 -1
  75. package/dist/domain/address/__tests__/country.test.js.map +1 -1
  76. package/dist/domain/address/__tests__/state.test.js.map +1 -1
  77. package/dist/domain/address/__tests__/territory.test.js.map +1 -1
  78. package/dist/domain/address/__tests__/zip.test.js +5 -5
  79. package/dist/domain/address/__tests__/zip.test.js.map +1 -1
  80. package/dist/domain/address/city.js +1 -2
  81. package/dist/domain/address/city.js.map +1 -1
  82. package/dist/domain/address/country.js +3 -3
  83. package/dist/domain/address/country.js.map +1 -1
  84. package/dist/domain/address/index.js +2 -3
  85. package/dist/domain/address/index.js.map +1 -1
  86. package/dist/domain/address/state.js +6 -6
  87. package/dist/domain/address/state.js.map +1 -1
  88. package/dist/domain/address/territory.js +4 -4
  89. package/dist/domain/address/territory.js.map +1 -1
  90. package/dist/domain/address/zip.js +7 -7
  91. package/dist/domain/address/zip.js.map +1 -1
  92. package/dist/domain/baseDto.js +1 -2
  93. package/dist/domain/baseDto.js.map +1 -1
  94. package/dist/domain/cohort.d.ts +14 -11
  95. package/dist/domain/cohort.d.ts.map +1 -1
  96. package/dist/domain/cohort.js +14 -11
  97. package/dist/domain/cohort.js.map +1 -1
  98. package/dist/domain/consolidated/ai-brief-cache-mode.d.ts +11 -0
  99. package/dist/domain/consolidated/ai-brief-cache-mode.d.ts.map +1 -0
  100. package/dist/domain/consolidated/ai-brief-cache-mode.js +17 -0
  101. package/dist/domain/consolidated/ai-brief-cache-mode.js.map +1 -0
  102. package/dist/domain/consolidated/filename.d.ts +4 -0
  103. package/dist/domain/consolidated/filename.d.ts.map +1 -0
  104. package/dist/domain/consolidated/filename.js +7 -0
  105. package/dist/domain/consolidated/filename.js.map +1 -0
  106. package/dist/domain/consolidated/index.d.ts +4 -0
  107. package/dist/domain/consolidated/index.d.ts.map +1 -0
  108. package/dist/domain/consolidated/index.js +20 -0
  109. package/dist/domain/consolidated/index.js.map +1 -0
  110. package/dist/domain/consolidated/recreate/event-type.d.ts +7 -0
  111. package/dist/domain/consolidated/recreate/event-type.d.ts.map +1 -0
  112. package/dist/domain/consolidated/recreate/event-type.js +11 -0
  113. package/dist/domain/consolidated/recreate/event-type.js.map +1 -0
  114. package/dist/domain/consolidated/recreate/index.d.ts +3 -0
  115. package/dist/domain/consolidated/recreate/index.d.ts.map +1 -0
  116. package/dist/domain/consolidated/recreate/index.js +19 -0
  117. package/dist/domain/consolidated/recreate/index.js.map +1 -0
  118. package/dist/domain/consolidated/recreate/supported-event-types.d.ts +8 -0
  119. package/dist/domain/consolidated/recreate/supported-event-types.d.ts.map +1 -0
  120. package/dist/domain/consolidated/recreate/supported-event-types.js +26 -0
  121. package/dist/domain/consolidated/recreate/supported-event-types.js.map +1 -0
  122. package/dist/domain/contact/__tests__/phone.test.js.map +1 -1
  123. package/dist/domain/contact/email.js +9 -9
  124. package/dist/domain/contact/email.js.map +1 -1
  125. package/dist/domain/contact/phone.js +7 -7
  126. package/dist/domain/contact/phone.js.map +1 -1
  127. package/dist/domain/cql-engine/transform.d.ts +2 -2
  128. package/dist/domain/cql-engine/transform.js.map +1 -1
  129. package/dist/domain/cursor-utils.js +3 -4
  130. package/dist/domain/cursor-utils.js.map +1 -1
  131. package/dist/domain/customer.d.ts +30 -24
  132. package/dist/domain/customer.d.ts.map +1 -1
  133. package/dist/domain/customer.js +6 -1
  134. package/dist/domain/customer.js.map +1 -1
  135. package/dist/domain/db.d.ts +10 -5
  136. package/dist/domain/db.d.ts.map +1 -1
  137. package/dist/domain/db.js +20 -1
  138. package/dist/domain/db.js.map +1 -1
  139. package/dist/domain/dob.js +2 -3
  140. package/dist/domain/dob.js.map +1 -1
  141. package/dist/domain/externalId.js +1 -2
  142. package/dist/domain/externalId.js.map +1 -1
  143. package/dist/domain/gender.js +3 -3
  144. package/dist/domain/gender.js.map +1 -1
  145. package/dist/domain/job/job-status.d.ts.map +1 -1
  146. package/dist/domain/job/job-status.js +4 -4
  147. package/dist/domain/job/job-status.js.map +1 -1
  148. package/dist/domain/job/patient-job.d.ts.map +1 -1
  149. package/dist/domain/job/types.d.ts.map +1 -1
  150. package/dist/domain/job/types.js +2 -2
  151. package/dist/domain/job/types.js.map +1 -1
  152. package/dist/domain/metriport.d.ts.map +1 -1
  153. package/dist/domain/network-query/__tests__/source.test.js +13 -13
  154. package/dist/domain/network-query/__tests__/source.test.js.map +1 -1
  155. package/dist/domain/network-query/index.d.ts +1 -0
  156. package/dist/domain/network-query/index.d.ts.map +1 -1
  157. package/dist/domain/network-query/index.js +1 -0
  158. package/dist/domain/network-query/index.js.map +1 -1
  159. package/dist/domain/network-query/query.d.ts +308 -8
  160. package/dist/domain/network-query/query.d.ts.map +1 -1
  161. package/dist/domain/network-query/query.js +6 -2
  162. package/dist/domain/network-query/query.js.map +1 -1
  163. package/dist/domain/network-query/source.d.ts +439 -30
  164. package/dist/domain/network-query/source.d.ts.map +1 -1
  165. package/dist/domain/network-query/source.js +132 -18
  166. package/dist/domain/network-query/source.js.map +1 -1
  167. package/dist/domain/network-query/supported-event-types.d.ts +18 -0
  168. package/dist/domain/network-query/supported-event-types.d.ts.map +1 -0
  169. package/dist/domain/network-query/supported-event-types.js +60 -0
  170. package/dist/domain/network-query/supported-event-types.js.map +1 -0
  171. package/dist/domain/notification-webhooks/index.d.ts +2 -0
  172. package/dist/domain/notification-webhooks/index.d.ts.map +1 -0
  173. package/dist/domain/notification-webhooks/index.js +18 -0
  174. package/dist/domain/notification-webhooks/index.js.map +1 -0
  175. package/dist/domain/notification-webhooks/types.d.ts +29 -0
  176. package/dist/domain/notification-webhooks/types.d.ts.map +1 -0
  177. package/dist/domain/notification-webhooks/types.js +17 -0
  178. package/dist/domain/notification-webhooks/types.js.map +1 -0
  179. package/dist/domain/organization.d.ts +20 -20
  180. package/dist/domain/organization.js +2 -2
  181. package/dist/domain/organization.js.map +1 -1
  182. package/dist/domain/pagination-v2.d.ts +24 -24
  183. package/dist/domain/pagination-v2.d.ts.map +1 -1
  184. package/dist/domain/pagination-v2.js +2 -2
  185. package/dist/domain/pagination-v2.js.map +1 -1
  186. package/dist/domain/pagination.d.ts +2 -2
  187. package/dist/domain/pagination.js +2 -2
  188. package/dist/domain/pagination.js.map +1 -1
  189. package/dist/domain/patient/__tests__/ssn.test.js.map +1 -1
  190. package/dist/domain/patient/patient-import/__tests__/status.test.js.map +1 -1
  191. package/dist/domain/patient/patient-import/__tests__/types.js +2 -3
  192. package/dist/domain/patient/patient-import/__tests__/types.js.map +1 -1
  193. package/dist/domain/patient/patient-import/create.js +2 -2
  194. package/dist/domain/patient/patient-import/create.js.map +1 -1
  195. package/dist/domain/patient/patient-import/metadata.js +2 -3
  196. package/dist/domain/patient/patient-import/metadata.js.map +1 -1
  197. package/dist/domain/patient/patient-import/schemas.d.ts +5 -5
  198. package/dist/domain/patient/patient-import/status.d.ts.map +1 -1
  199. package/dist/domain/patient/patient-import/status.js +3 -3
  200. package/dist/domain/patient/patient-import/status.js.map +1 -1
  201. package/dist/domain/patient/patient-import/types.d.ts.map +1 -1
  202. package/dist/domain/patient/patient-import/types.js +3 -3
  203. package/dist/domain/patient/patient-import/types.js.map +1 -1
  204. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +137 -4
  205. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -1
  206. package/dist/domain/patient/patient-monitoring/discharge-requery.js +13 -3
  207. package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -1
  208. package/dist/domain/patient/patient-monitoring/utils.d.ts +19 -2
  209. package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -1
  210. package/dist/domain/patient/patient-monitoring/utils.js +26 -10
  211. package/dist/domain/patient/patient-monitoring/utils.js.map +1 -1
  212. package/dist/domain/patient/patient-settings.d.ts +4 -4
  213. package/dist/domain/patient/patient-settings.js.map +1 -1
  214. package/dist/domain/patient/ssn.js +2 -3
  215. package/dist/domain/patient/ssn.js.map +1 -1
  216. package/dist/domain/patient-or-all.js +2 -2
  217. package/dist/domain/patient-or-all.js.map +1 -1
  218. package/dist/domain/patient.d.ts +24 -24
  219. package/dist/domain/rate-limiting/index.d.ts +1 -1
  220. package/dist/domain/rate-limiting/index.d.ts.map +1 -1
  221. package/dist/domain/rate-limiting/index.js +12 -3
  222. package/dist/domain/rate-limiting/index.js.map +1 -1
  223. package/dist/domain/roster/patient-roster-added-by.d.ts +6 -0
  224. package/dist/domain/roster/patient-roster-added-by.d.ts.map +1 -0
  225. package/dist/domain/roster/patient-roster-added-by.js +19 -0
  226. package/dist/domain/roster/patient-roster-added-by.js.map +1 -0
  227. package/dist/domain/roster/patient-roster.d.ts +5 -1
  228. package/dist/domain/roster/patient-roster.d.ts.map +1 -1
  229. package/dist/domain/roster/roster-status.d.ts.map +1 -1
  230. package/dist/domain/roster/roster-status.js +5 -5
  231. package/dist/domain/roster/roster-status.js.map +1 -1
  232. package/dist/domain/tcm-encounter.d.ts +74 -74
  233. package/dist/domain/tcm-encounter.d.ts.map +1 -1
  234. package/dist/domain/tcm-encounter.js.map +1 -1
  235. package/dist/error/bad-request.d.ts.map +1 -1
  236. package/dist/error/bad-request.js.map +1 -1
  237. package/dist/error/metriport-error.d.ts.map +1 -1
  238. package/dist/error/metriport-error.js +2 -2
  239. package/dist/error/metriport-error.js.map +1 -1
  240. package/dist/error/not-found.d.ts.map +1 -1
  241. package/dist/error/not-found.js.map +1 -1
  242. package/dist/error/shared.js +5 -6
  243. package/dist/error/shared.js.map +1 -1
  244. package/dist/error/too-many-requests.d.ts.map +1 -1
  245. package/dist/error/too-many-requests.js.map +1 -1
  246. package/dist/external/ehr/practicefusion/shared.js +1 -2
  247. package/dist/external/ehr/practicefusion/shared.js.map +1 -1
  248. package/dist/external/hl7v2/constants.d.ts +8 -1
  249. package/dist/external/hl7v2/constants.d.ts.map +1 -1
  250. package/dist/external/hl7v2/constants.js +22 -2
  251. package/dist/external/hl7v2/constants.js.map +1 -1
  252. package/dist/external/ihe/constants.d.ts.map +1 -1
  253. package/dist/external/ihe/constants.js +50 -50
  254. package/dist/external/ihe/constants.js.map +1 -1
  255. package/dist/external/ihe/shared.js +4 -5
  256. package/dist/external/ihe/shared.js.map +1 -1
  257. package/dist/external/zod/__tests__/iso-date.test.js +32 -32
  258. package/dist/external/zod/__tests__/iso-date.test.js.map +1 -1
  259. package/dist/external/zod/date.js +2 -2
  260. package/dist/external/zod/date.js.map +1 -1
  261. package/dist/external/zod/string.d.ts +4 -4
  262. package/dist/external/zod/string.d.ts.map +1 -1
  263. package/dist/external/zod/string.js +4 -4
  264. package/dist/external/zod/string.js.map +1 -1
  265. package/dist/external/zod/us-state.js +1 -2
  266. package/dist/external/zod/us-state.js.map +1 -1
  267. package/dist/index.d.ts +15 -12
  268. package/dist/index.d.ts.map +1 -1
  269. package/dist/index.js +35 -20
  270. package/dist/index.js.map +1 -1
  271. package/dist/interface/external/ehr/athenahealth/allergy.d.ts +12 -12
  272. package/dist/interface/external/ehr/athenahealth/allergy.js.map +1 -1
  273. package/dist/interface/external/ehr/athenahealth/appointment.d.ts +12 -12
  274. package/dist/interface/external/ehr/athenahealth/appointment.js.map +1 -1
  275. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +51 -51
  276. package/dist/interface/external/ehr/athenahealth/department.js.map +1 -1
  277. package/dist/interface/external/ehr/athenahealth/encounter.d.ts +4 -4
  278. package/dist/interface/external/ehr/athenahealth/family-history.d.ts +52 -52
  279. package/dist/interface/external/ehr/athenahealth/jwt-token.d.ts +4 -4
  280. package/dist/interface/external/ehr/athenahealth/jwt-token.js.map +1 -1
  281. package/dist/interface/external/ehr/athenahealth/patient.js.map +1 -1
  282. package/dist/interface/external/ehr/canvas/allergen.d.ts +2 -2
  283. package/dist/interface/external/ehr/canvas/appointment.d.ts +32 -32
  284. package/dist/interface/external/ehr/canvas/appointment.js.map +1 -1
  285. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts +49 -52
  286. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts.map +1 -1
  287. package/dist/interface/external/ehr/canvas/cx-mapping.js +0 -1
  288. package/dist/interface/external/ehr/canvas/cx-mapping.js.map +1 -1
  289. package/dist/interface/external/ehr/canvas/external-event.d.ts +4 -4
  290. package/dist/interface/external/ehr/canvas/external-event.d.ts.map +1 -1
  291. package/dist/interface/external/ehr/canvas/external-event.js.map +1 -1
  292. package/dist/interface/external/ehr/canvas/jwt-token.d.ts +8 -8
  293. package/dist/interface/external/ehr/canvas/jwt-token.js.map +1 -1
  294. package/dist/interface/external/ehr/canvas/note.js.map +1 -1
  295. package/dist/interface/external/ehr/eclinicalworks/cx-mapping.d.ts +49 -49
  296. package/dist/interface/external/ehr/eclinicalworks/jwt-token.d.ts +2 -2
  297. package/dist/interface/external/ehr/eclinicalworks/jwt-token.js.map +1 -1
  298. package/dist/interface/external/ehr/elation/appointment.d.ts +8 -8
  299. package/dist/interface/external/ehr/elation/appointment.js.map +1 -1
  300. package/dist/interface/external/ehr/elation/cx-mapping.d.ts +55 -55
  301. package/dist/interface/external/ehr/elation/event.d.ts +25 -25
  302. package/dist/interface/external/ehr/elation/jwt-token.d.ts +4 -4
  303. package/dist/interface/external/ehr/elation/jwt-token.js.map +1 -1
  304. package/dist/interface/external/ehr/elation/patient.d.ts +18 -18
  305. package/dist/interface/external/ehr/elation/practice.d.ts +6 -6
  306. package/dist/interface/external/ehr/elation/practice.js.map +1 -1
  307. package/dist/interface/external/ehr/elation/subscription.d.ts +8 -8
  308. package/dist/interface/external/ehr/elation/subscription.d.ts.map +1 -1
  309. package/dist/interface/external/ehr/elation/subscription.js +2 -2
  310. package/dist/interface/external/ehr/elation/subscription.js.map +1 -1
  311. package/dist/interface/external/ehr/embed/jwt-token.d.ts +2 -2
  312. package/dist/interface/external/ehr/embed/jwt-token.js.map +1 -1
  313. package/dist/interface/external/ehr/fhir-resource.d.ts +38 -38
  314. package/dist/interface/external/ehr/fhir-resource.js +4 -4
  315. package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
  316. package/dist/interface/external/ehr/healthie/allergy.d.ts +64 -64
  317. package/dist/interface/external/ehr/healthie/allergy.js.map +1 -1
  318. package/dist/interface/external/ehr/healthie/appointment.js.map +1 -1
  319. package/dist/interface/external/ehr/healthie/condition.d.ts +10 -10
  320. package/dist/interface/external/ehr/healthie/condition.js.map +1 -1
  321. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts +485 -60
  322. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts.map +1 -1
  323. package/dist/interface/external/ehr/healthie/cx-mapping.js +20 -4
  324. package/dist/interface/external/ehr/healthie/cx-mapping.js.map +1 -1
  325. package/dist/interface/external/ehr/healthie/event.d.ts +18 -4
  326. package/dist/interface/external/ehr/healthie/event.d.ts.map +1 -1
  327. package/dist/interface/external/ehr/healthie/event.js +6 -1
  328. package/dist/interface/external/ehr/healthie/event.js.map +1 -1
  329. package/dist/interface/external/ehr/healthie/form-answer-group.d.ts +605 -0
  330. package/dist/interface/external/ehr/healthie/form-answer-group.d.ts.map +1 -0
  331. package/dist/interface/external/ehr/healthie/form-answer-group.js +51 -0
  332. package/dist/interface/external/ehr/healthie/form-answer-group.js.map +1 -0
  333. package/dist/interface/external/ehr/healthie/immunization.js.map +1 -1
  334. package/dist/interface/external/ehr/healthie/index.d.ts +1 -0
  335. package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -1
  336. package/dist/interface/external/ehr/healthie/index.js +1 -0
  337. package/dist/interface/external/ehr/healthie/index.js.map +1 -1
  338. package/dist/interface/external/ehr/healthie/jwt-token.d.ts +2 -2
  339. package/dist/interface/external/ehr/healthie/jwt-token.js.map +1 -1
  340. package/dist/interface/external/ehr/healthie/lab.d.ts +64 -64
  341. package/dist/interface/external/ehr/healthie/lab.js.map +1 -1
  342. package/dist/interface/external/ehr/healthie/medication.d.ts +52 -52
  343. package/dist/interface/external/ehr/healthie/medication.js.map +1 -1
  344. package/dist/interface/external/ehr/healthie/patient.d.ts +145 -106
  345. package/dist/interface/external/ehr/healthie/patient.d.ts.map +1 -1
  346. package/dist/interface/external/ehr/healthie/patient.js +9 -6
  347. package/dist/interface/external/ehr/healthie/patient.js.map +1 -1
  348. package/dist/interface/external/ehr/healthie/subscription.d.ts +30 -21
  349. package/dist/interface/external/ehr/healthie/subscription.d.ts.map +1 -1
  350. package/dist/interface/external/ehr/healthie/subscription.js +21 -4
  351. package/dist/interface/external/ehr/healthie/subscription.js.map +1 -1
  352. package/dist/interface/external/ehr/patient.d.ts +44 -44
  353. package/dist/interface/external/ehr/patient.js.map +1 -1
  354. package/dist/interface/external/ehr/practicefusion/appointment.d.ts +21 -21
  355. package/dist/interface/external/ehr/practicefusion/appointment.js.map +1 -1
  356. package/dist/interface/external/ehr/practicefusion/cx-mapping.d.ts +51 -51
  357. package/dist/interface/external/ehr/practicefusion/jwt-token.d.ts +4 -4
  358. package/dist/interface/external/ehr/practicefusion/jwt-token.js.map +1 -1
  359. package/dist/interface/external/ehr/practicefusion/refresh-token.d.ts +2 -2
  360. package/dist/interface/external/ehr/practitioner.d.ts +6 -6
  361. package/dist/interface/external/ehr/salesforce/cx-mapping.d.ts +49 -49
  362. package/dist/interface/external/ehr/salesforce/jwt-token.d.ts +3 -3
  363. package/dist/interface/external/ehr/salesforce/jwt-token.js.map +1 -1
  364. package/dist/interface/external/ehr/salesforce/patient.d.ts +4 -4
  365. package/dist/interface/external/ehr/salesforce/patient.js.map +1 -1
  366. package/dist/interface/external/ehr/shared.d.ts +1133 -80
  367. package/dist/interface/external/ehr/shared.d.ts.map +1 -1
  368. package/dist/interface/external/ehr/shared.js +64 -2
  369. package/dist/interface/external/ehr/shared.js.map +1 -1
  370. package/dist/interface/external/ehr/source.d.ts +1 -0
  371. package/dist/interface/external/ehr/source.d.ts.map +1 -1
  372. package/dist/interface/external/ehr/source.js +10 -9
  373. package/dist/interface/external/ehr/source.js.map +1 -1
  374. package/dist/interface/external/quest/roster.d.ts.map +1 -1
  375. package/dist/interface/external/quest/roster.js +6 -6
  376. package/dist/interface/external/quest/roster.js.map +1 -1
  377. package/dist/interface/external/quest/source.js.map +1 -1
  378. package/dist/interface/external/surescripts/added-by.d.ts +8 -0
  379. package/dist/interface/external/surescripts/added-by.d.ts.map +1 -0
  380. package/dist/interface/external/surescripts/added-by.js +23 -0
  381. package/dist/interface/external/surescripts/added-by.js.map +1 -0
  382. package/dist/interface/external/surescripts/code-list-qualifier.d.ts.map +1 -1
  383. package/dist/interface/external/surescripts/dea-schedule.d.ts.map +1 -1
  384. package/dist/interface/external/surescripts/dea-schedule.js +2 -2
  385. package/dist/interface/external/surescripts/dea-schedule.js.map +1 -1
  386. package/dist/interface/external/surescripts/index.d.ts +2 -0
  387. package/dist/interface/external/surescripts/index.d.ts.map +1 -1
  388. package/dist/interface/external/surescripts/index.js +2 -0
  389. package/dist/interface/external/surescripts/index.js.map +1 -1
  390. package/dist/interface/external/surescripts/ncpdp.d.ts.map +1 -1
  391. package/dist/interface/external/surescripts/ncpdp.js +2 -2
  392. package/dist/interface/external/surescripts/ncpdp.js.map +1 -1
  393. package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -1
  394. package/dist/interface/external/surescripts/payment-code.js +11 -11
  395. package/dist/interface/external/surescripts/payment-code.js.map +1 -1
  396. package/dist/interface/external/surescripts/plan-code.d.ts.map +1 -1
  397. package/dist/interface/external/surescripts/plan-code.js +2 -2
  398. package/dist/interface/external/surescripts/plan-code.js.map +1 -1
  399. package/dist/interface/external/surescripts/realtime-pulls/file-name.d.ts +15 -0
  400. package/dist/interface/external/surescripts/realtime-pulls/file-name.d.ts.map +1 -0
  401. package/dist/interface/external/surescripts/realtime-pulls/file-name.js +19 -0
  402. package/dist/interface/external/surescripts/realtime-pulls/file-name.js.map +1 -0
  403. package/dist/interface/external/surescripts/realtime-pulls/index.d.ts +3 -0
  404. package/dist/interface/external/surescripts/realtime-pulls/index.d.ts.map +1 -0
  405. package/dist/interface/external/surescripts/realtime-pulls/index.js +19 -0
  406. package/dist/interface/external/surescripts/realtime-pulls/index.js.map +1 -0
  407. package/dist/interface/external/surescripts/realtime-pulls/status-codes.d.ts +91 -0
  408. package/dist/interface/external/surescripts/realtime-pulls/status-codes.d.ts.map +1 -0
  409. package/dist/interface/external/surescripts/realtime-pulls/status-codes.js +64 -0
  410. package/dist/interface/external/surescripts/realtime-pulls/status-codes.js.map +1 -0
  411. package/dist/interface/external/surescripts/roster.d.ts +2 -0
  412. package/dist/interface/external/surescripts/roster.d.ts.map +1 -1
  413. package/dist/interface/external/surescripts/roster.js +16 -5
  414. package/dist/interface/external/surescripts/roster.js.map +1 -1
  415. package/dist/interface/internal/cohort.d.ts +240 -240
  416. package/dist/interface/internal/cohort.d.ts.map +1 -1
  417. package/dist/interface/internal/cohort.js +10 -6
  418. package/dist/interface/internal/cohort.js.map +1 -1
  419. package/dist/interface/internal/consolidated.d.ts +359 -10
  420. package/dist/interface/internal/consolidated.d.ts.map +1 -1
  421. package/dist/interface/internal/consolidated.js +24 -3
  422. package/dist/interface/internal/consolidated.js.map +1 -1
  423. package/dist/interface/internal/customer.d.ts +14 -0
  424. package/dist/interface/internal/customer.d.ts.map +1 -0
  425. package/dist/interface/internal/customer.js +28 -0
  426. package/dist/interface/internal/customer.js.map +1 -0
  427. package/dist/interface/internal/document-query.d.ts +2 -2
  428. package/dist/interface/internal/index.d.ts +1 -0
  429. package/dist/interface/internal/index.d.ts.map +1 -1
  430. package/dist/interface/internal/index.js +1 -0
  431. package/dist/interface/internal/index.js.map +1 -1
  432. package/dist/interface/schema/feedback.d.ts +2 -2
  433. package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.d.ts +2 -0
  434. package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.d.ts.map +1 -0
  435. package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.js +79 -0
  436. package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.js.map +1 -0
  437. package/dist/medical/fhir/bundle.js +3 -4
  438. package/dist/medical/fhir/bundle.js.map +1 -1
  439. package/dist/medical/fhir/coding.js +4 -5
  440. package/dist/medical/fhir/coding.js.map +1 -1
  441. package/dist/medical/fhir/constants.js.map +1 -1
  442. package/dist/medical/fhir/conversion.d.ts.map +1 -1
  443. package/dist/medical/fhir/imaging-detection.d.ts +3 -16
  444. package/dist/medical/fhir/imaging-detection.d.ts.map +1 -1
  445. package/dist/medical/fhir/imaging-detection.js +35 -35
  446. package/dist/medical/fhir/imaging-detection.js.map +1 -1
  447. package/dist/medical/fhir/observations.js +4 -5
  448. package/dist/medical/fhir/observations.js.map +1 -1
  449. package/dist/medical/fhir/procedure-category-from-cpt.d.ts +4 -0
  450. package/dist/medical/fhir/procedure-category-from-cpt.d.ts.map +1 -0
  451. package/dist/medical/fhir/procedure-category-from-cpt.js +106 -0
  452. package/dist/medical/fhir/procedure-category-from-cpt.js.map +1 -0
  453. package/dist/medical/fhir/procedure-category.d.ts +12 -0
  454. package/dist/medical/fhir/procedure-category.d.ts.map +1 -0
  455. package/dist/medical/fhir/procedure-category.js +45 -0
  456. package/dist/medical/fhir/procedure-category.js.map +1 -0
  457. package/dist/medical/fhir/procedure-type.d.ts.map +1 -1
  458. package/dist/medical/fhir/procedure-type.js +3 -3
  459. package/dist/medical/fhir/procedure-type.js.map +1 -1
  460. package/dist/medical/fhir/resources.d.ts.map +1 -1
  461. package/dist/medical/fhir/resources.js.map +1 -1
  462. package/dist/medical/fhir/specialty-codes.d.ts.map +1 -1
  463. package/dist/medical/index.d.ts +2 -0
  464. package/dist/medical/index.d.ts.map +1 -1
  465. package/dist/medical/index.js +2 -0
  466. package/dist/medical/index.js.map +1 -1
  467. package/dist/medical/webhook/webhook-request.d.ts +1899 -833
  468. package/dist/medical/webhook/webhook-request.d.ts.map +1 -1
  469. package/dist/medical/webhook/webhook-request.js +95 -19
  470. package/dist/medical/webhook/webhook-request.js.map +1 -1
  471. package/dist/net/__tests__/axios.d.ts +6 -7
  472. package/dist/net/__tests__/axios.d.ts.map +1 -1
  473. package/dist/net/__tests__/axios.js +22 -12
  474. package/dist/net/__tests__/axios.js.map +1 -1
  475. package/dist/net/__tests__/retry.test.js +17 -7
  476. package/dist/net/__tests__/retry.test.js.map +1 -1
  477. package/dist/net/error.d.ts +1 -1
  478. package/dist/net/error.d.ts.map +1 -1
  479. package/dist/net/error.js +22 -12
  480. package/dist/net/error.js.map +1 -1
  481. package/dist/net/http.js +6 -7
  482. package/dist/net/http.js.map +1 -1
  483. package/dist/net/retry.d.ts +1 -0
  484. package/dist/net/retry.d.ts.map +1 -1
  485. package/dist/net/retry.js +10 -9
  486. package/dist/net/retry.js.map +1 -1
  487. package/dist/net/url.js +1 -2
  488. package/dist/net/url.js.map +1 -1
  489. package/dist/util/base64.d.ts +14 -2
  490. package/dist/util/base64.d.ts.map +1 -1
  491. package/dist/util/base64.js +30 -5
  492. package/dist/util/base64.js.map +1 -1
  493. package/dist/util/duration.js +2 -3
  494. package/dist/util/duration.js.map +1 -1
  495. package/dist/util/sqs-delay-from-uuid.js +2 -2
  496. package/dist/util/sqs-delay-from-uuid.js.map +1 -1
  497. package/dist/util/stack-trace.d.ts +17 -0
  498. package/dist/util/stack-trace.d.ts.map +1 -0
  499. package/dist/util/stack-trace.js +32 -0
  500. package/dist/util/stack-trace.js.map +1 -0
  501. package/dist/util/uuid-v7.d.ts +1 -1
  502. package/dist/util/uuid-v7.d.ts.map +1 -1
  503. package/dist/util/uuid-v7.js +23 -13
  504. package/dist/util/uuid-v7.js.map +1 -1
  505. package/dist/util/zod.js +2 -2
  506. package/dist/util/zod.js.map +1 -1
  507. package/package.json +41 -11
@@ -18,49 +18,49 @@ export declare const elationAppointmentEventSchema: z.ZodObject<{
18
18
  }>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  id: string;
21
- status: {
22
- status: string;
23
- };
24
21
  patient: string;
25
22
  created_date: string;
26
23
  last_modified_date: string;
27
- }, {
28
- id: string;
29
24
  status: {
30
25
  status: string;
31
26
  };
27
+ }, {
28
+ id: string;
32
29
  patient: string;
33
30
  created_date: string;
34
31
  last_modified_date: string;
32
+ status: {
33
+ status: string;
34
+ };
35
35
  }>;
36
36
  }, "strip", z.ZodTypeAny, {
37
+ event_id: string;
38
+ application_id: string;
39
+ resource: "appointments";
40
+ action: "deleted" | "saved";
37
41
  data: {
38
42
  id: string;
39
- status: {
40
- status: string;
41
- };
42
43
  patient: string;
43
44
  created_date: string;
44
45
  last_modified_date: string;
46
+ status: {
47
+ status: string;
48
+ };
45
49
  };
46
- resource: "appointments";
50
+ }, {
47
51
  event_id: string;
48
52
  application_id: string;
49
- action: "saved" | "deleted";
50
- }, {
53
+ resource: "appointments";
54
+ action: "deleted" | "saved";
51
55
  data: {
52
56
  id: string;
53
- status: {
54
- status: string;
55
- };
56
57
  patient: string;
57
58
  created_date: string;
58
59
  last_modified_date: string;
60
+ status: {
61
+ status: string;
62
+ };
59
63
  };
60
- resource: "appointments";
61
- event_id: string;
62
- application_id: string;
63
- action: "saved" | "deleted";
64
64
  }>;
65
65
  export type ElationAppointmentEvent = z.infer<typeof elationAppointmentEventSchema>;
66
66
  export declare const elationPatientEventSchema: z.ZodObject<{
@@ -82,25 +82,25 @@ export declare const elationPatientEventSchema: z.ZodObject<{
82
82
  last_modified: string;
83
83
  }>;
84
84
  }, "strip", z.ZodTypeAny, {
85
+ event_id: string;
86
+ application_id: string;
87
+ resource: "patients";
88
+ action: "deleted" | "saved";
85
89
  data: {
86
90
  id: string;
87
91
  created_date: string;
88
92
  last_modified: string;
89
93
  };
90
- resource: "patients";
94
+ }, {
91
95
  event_id: string;
92
96
  application_id: string;
93
- action: "saved" | "deleted";
94
- }, {
97
+ resource: "patients";
98
+ action: "deleted" | "saved";
95
99
  data: {
96
100
  id: string;
97
101
  created_date: string;
98
102
  last_modified: string;
99
103
  };
100
- resource: "patients";
101
- event_id: string;
102
- application_id: string;
103
- action: "saved" | "deleted";
104
104
  }>;
105
105
  export type ElationPatientEvent = z.infer<typeof elationPatientEventSchema>;
106
106
  //# sourceMappingURL=event.d.ts.map
@@ -6,13 +6,13 @@ export declare const elationDashJwtTokenDataSchema: z.ZodObject<{
6
6
  patientId: z.ZodString;
7
7
  source: z.ZodLiteral<"elation">;
8
8
  }, "strip", z.ZodTypeAny, {
9
+ practiceId: string;
9
10
  patientId: string;
10
11
  source: "elation";
11
- practiceId: string;
12
12
  }, {
13
+ practiceId: string;
13
14
  patientId: string;
14
15
  source: "elation";
15
- practiceId: string;
16
16
  }>;
17
17
  export type ElationDashJwtTokenData = z.infer<typeof elationDashJwtTokenDataSchema>;
18
18
  export declare const elationClientSource: "elation-client";
@@ -21,13 +21,13 @@ export declare const elationClientJwtTokenDataSchema: z.ZodObject<{
21
21
  cxId: z.ZodString;
22
22
  source: z.ZodLiteral<"elation-client">;
23
23
  }, "strip", z.ZodTypeAny, {
24
+ practiceId: string;
24
25
  cxId: string;
25
26
  source: "elation-client";
26
- practiceId: string;
27
27
  }, {
28
+ practiceId: string;
28
29
  cxId: string;
29
30
  source: "elation-client";
30
- practiceId: string;
31
31
  }>;
32
32
  export type ElationClientJwtTokenData = z.infer<typeof elationClientJwtTokenDataSchema>;
33
33
  export declare const elationClientJwtTokenResponseSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAA2D;AAE9C,QAAA,iBAAiB,GAAG,mBAAU,CAAC,OAAgB,CAAC;AAChD,QAAA,6BAA6B,GAAG,aAAC,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,yBAAiB,EAAE,CAAC;CAC1C,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,GAAG,mBAAU,CAAC,OAAO,GAAG,2BAAkB,EAAW,CAAC;AAC5E,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,2BAAmB,EAAE,CAAC;CAC5C,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
1
+ {"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAA2D;AAE9C,QAAA,iBAAiB,GAAG,mBAAU,CAAC,OAAgB,CAAC;AAChD,QAAA,6BAA6B,GAAG,aAAC,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,QAAA,iBAAiB,EAAE,CAAC;CAC1C,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,GAAG,mBAAU,CAAC,OAAO,GAAG,2BAAkB,EAAW,CAAC;AAC5E,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,QAAA,mBAAmB,EAAE,CAAC;CAC5C,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
@@ -12,16 +12,16 @@ export declare const patientSchema: z.ZodObject<{
12
12
  zip: z.ZodNullable<z.ZodString>;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  state: string | null;
15
- city: string | null;
16
- zip: string | null;
17
15
  address_line1: string | null;
18
16
  address_line2: string | null;
19
- }, {
20
- state: string | null;
21
17
  city: string | null;
22
18
  zip: string | null;
19
+ }, {
20
+ state: string | null;
23
21
  address_line1: string | null;
24
22
  address_line2: string | null;
23
+ city: string | null;
24
+ zip: string | null;
25
25
  }>>;
26
26
  dob: z.ZodString;
27
27
  phones: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -40,45 +40,45 @@ export declare const patientSchema: z.ZodObject<{
40
40
  }>, "many">>;
41
41
  ssn: z.ZodNullable<z.ZodString>;
42
42
  }, "strip", z.ZodTypeAny, {
43
+ first_name: string | null;
44
+ last_name: string | null;
45
+ middle_name: string | null;
46
+ sex: string;
43
47
  address: {
44
48
  state: string | null;
45
- city: string | null;
46
- zip: string | null;
47
49
  address_line1: string | null;
48
50
  address_line2: string | null;
51
+ city: string | null;
52
+ zip: string | null;
49
53
  } | null;
50
54
  dob: string;
51
- ssn: string | null;
52
- first_name: string | null;
53
- last_name: string | null;
54
- middle_name: string | null;
55
- sex: string;
56
55
  phones: {
57
56
  phone: string;
58
57
  }[] | null;
59
58
  emails: {
60
59
  email: string;
61
60
  }[] | null;
61
+ ssn: string | null;
62
62
  }, {
63
+ first_name: string | null;
64
+ last_name: string | null;
65
+ middle_name: string | null;
66
+ sex: string;
63
67
  address: {
64
68
  state: string | null;
65
- city: string | null;
66
- zip: string | null;
67
69
  address_line1: string | null;
68
70
  address_line2: string | null;
71
+ city: string | null;
72
+ zip: string | null;
69
73
  } | null;
70
74
  dob: string;
71
- ssn: string | null;
72
- first_name: string | null;
73
- last_name: string | null;
74
- middle_name: string | null;
75
- sex: string;
76
75
  phones: {
77
76
  phone: string;
78
77
  }[] | null;
79
78
  emails: {
80
79
  email: string;
81
80
  }[] | null;
81
+ ssn: string | null;
82
82
  }>;
83
83
  export type Patient = z.infer<typeof patientSchema>;
84
84
  declare const metadata: z.ZodObject<{
@@ -5,12 +5,12 @@ export declare const practiceSchema: z.ZodObject<{
5
5
  status: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  id: string;
8
- status: string;
9
8
  physicians: string[];
9
+ status: string;
10
10
  }, {
11
11
  id: string;
12
- status: string;
13
12
  physicians: string[];
13
+ status: string;
14
14
  }>;
15
15
  export type Practice = z.infer<typeof practiceSchema>;
16
16
  export declare const practicesSchema: z.ZodObject<{
@@ -20,24 +20,24 @@ export declare const practicesSchema: z.ZodObject<{
20
20
  status: z.ZodString;
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  id: string;
23
- status: string;
24
23
  physicians: string[];
24
+ status: string;
25
25
  }, {
26
26
  id: string;
27
- status: string;
28
27
  physicians: string[];
28
+ status: string;
29
29
  }>, "many">;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  results: {
32
32
  id: string;
33
- status: string;
34
33
  physicians: string[];
34
+ status: string;
35
35
  }[];
36
36
  }, {
37
37
  results: {
38
38
  id: string;
39
- status: string;
40
39
  physicians: string[];
40
+ status: string;
41
41
  }[];
42
42
  }>;
43
43
  export type Practices = z.infer<typeof practicesSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"practice.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/practice.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC;CACjC,CAAC,CAAC"}
1
+ {"version":3,"file":"practice.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/practice.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,QAAA,cAAc,CAAC;CACjC,CAAC,CAAC"}
@@ -7,10 +7,10 @@ export declare const subscriptionSchema: z.ZodObject<{
7
7
  resource: z.ZodEnum<["appointments", "patients"]>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  id: string;
10
- resource: "patients" | "appointments";
10
+ resource: "appointments" | "patients";
11
11
  }, {
12
12
  id: string;
13
- resource: "patients" | "appointments";
13
+ resource: "appointments" | "patients";
14
14
  }>;
15
15
  export type Subscription = z.infer<typeof subscriptionSchema>;
16
16
  export declare const subscriptionsSchema: z.ZodObject<{
@@ -19,20 +19,20 @@ export declare const subscriptionsSchema: z.ZodObject<{
19
19
  resource: z.ZodEnum<["appointments", "patients"]>;
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  id: string;
22
- resource: "patients" | "appointments";
22
+ resource: "appointments" | "patients";
23
23
  }, {
24
24
  id: string;
25
- resource: "patients" | "appointments";
25
+ resource: "appointments" | "patients";
26
26
  }>, "many">;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  results: {
29
29
  id: string;
30
- resource: "patients" | "appointments";
30
+ resource: "appointments" | "patients";
31
31
  }[];
32
32
  }, {
33
33
  results: {
34
34
  id: string;
35
- resource: "patients" | "appointments";
35
+ resource: "appointments" | "patients";
36
36
  }[];
37
37
  }>;
38
38
  export type Subscriptions = z.infer<typeof subscriptionsSchema>;
@@ -41,11 +41,11 @@ export declare const createdSubscriptionSchema: z.ZodObject<{
41
41
  target: z.ZodString;
42
42
  signing_pub_key: z.ZodString;
43
43
  }, "strip", z.ZodTypeAny, {
44
- resource: "patients" | "appointments";
44
+ resource: "appointments" | "patients";
45
45
  target: string;
46
46
  signing_pub_key: string;
47
47
  }, {
48
- resource: "patients" | "appointments";
48
+ resource: "appointments" | "patients";
49
49
  target: string;
50
50
  signing_pub_key: string;
51
51
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,uCAAwC,CAAC;AAC3E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,oBAAoB,CAEzF;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,YAAI,cAAc,EAAE,UAAU,CAAU,CAAC;AAC3E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,oBAAoB,CAEzF;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createdSubscriptionSchema = exports.subscriptionsSchema = exports.subscriptionSchema = exports.isSubscriptionResource = exports.subscriptionResources = void 0;
3
+ exports.createdSubscriptionSchema = exports.subscriptionsSchema = exports.subscriptionSchema = exports.subscriptionResources = void 0;
4
+ exports.isSubscriptionResource = isSubscriptionResource;
4
5
  const zod_1 = require("zod");
5
6
  exports.subscriptionResources = ["appointments", "patients"];
6
7
  function isSubscriptionResource(resource) {
7
8
  return exports.subscriptionResources.includes(resource);
8
9
  }
9
- exports.isSubscriptionResource = isSubscriptionResource;
10
10
  exports.subscriptionSchema = zod_1.z.object({
11
11
  id: zod_1.z.coerce.string(),
12
12
  resource: zod_1.z.enum(exports.subscriptionResources),
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG,CAAC,cAAc,EAAE,UAAU,CAAU,CAAC;AAE3E,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,OAAO,6BAAqB,CAAC,QAAQ,CAAC,QAAgC,CAAC,CAAC;AAC1E,CAAC;AAFD,wDAEC;AAEY,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,6BAAqB,CAAC;CACxC,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,0BAAkB,CAAC,KAAK,EAAE;CACpC,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,6BAAqB,CAAC;IACvC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
1
+ {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG,CAAC,cAAc,EAAE,UAAU,CAAU,CAAC;AAE3E,gCAAuC,QAAgB;IACrD,OAAO,QAAA,qBAAqB,CAAC,QAAQ,CAAC,QAAgC,CAAC,CAAC;AAC1E,CAAC;AAEY,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,QAAA,qBAAqB,CAAC;CACxC,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,QAAA,kBAAkB,CAAC,KAAK,EAAE;CACpC,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,QAAA,qBAAqB,CAAC;IACvC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
@@ -10,12 +10,12 @@ export declare const embedDashJwtTokenDataSchema: z.ZodObject<{
10
10
  source: z.ZodLiteral<"embed">;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  cxId: string;
13
- source: "embed";
14
13
  practiceId: string;
14
+ source: "embed";
15
15
  }, {
16
16
  cxId: string;
17
- source: "embed";
18
17
  practiceId: string;
18
+ source: "embed";
19
19
  }>;
20
20
  export type EmbedDashJwtTokenData = z.infer<typeof embedDashJwtTokenDataSchema>;
21
21
  export declare const createEmbedTokenSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,6BAAwB;AACxB,sCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEV,QAAA,eAAe,GAAG,qBAAY,CAAC,KAAc,CAAC;AAC9C,QAAA,oBAAoB,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AACnD,QAAA,oBAAoB,GAAG,4BAAoB,CAAC,SAAS,EAAE,CAAC;AAExD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,uBAAe,EAAE,CAAC;CACxC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,4BAAoB,CAAC,CAAC,QAAQ,EAAE;CACtF,CAAC,CAAC"}
1
+ {"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,6BAAwB;AACxB,sCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEV,QAAA,eAAe,GAAG,qBAAY,CAAC,KAAc,CAAC;AAC9C,QAAA,oBAAoB,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AACnD,QAAA,oBAAoB,GAAG,QAAA,oBAAoB,CAAC,SAAS,EAAE,CAAC;AAExD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,QAAA,eAAe,EAAE,CAAC;CACxC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,QAAA,oBAAoB,CAAC,CAAC,QAAQ,EAAE;CACtF,CAAC,CAAC"}
@@ -4,11 +4,11 @@ export declare const ehrFhirResourceSchema: z.ZodIntersection<z.ZodObject<{
4
4
  id: z.ZodOptional<z.ZodString>;
5
5
  resourceType: z.ZodOptional<z.ZodString>;
6
6
  }, "strip", z.ZodTypeAny, {
7
- resourceType?: string | undefined;
8
7
  id?: string | undefined;
9
- }, {
10
8
  resourceType?: string | undefined;
9
+ }, {
11
10
  id?: string | undefined;
11
+ resourceType?: string | undefined;
12
12
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
13
13
  export type EhrFhirResource = z.infer<typeof ehrFhirResourceSchema>;
14
14
  export declare const ehrFhirResourceBundleEntrySchema: z.ZodObject<{
@@ -16,21 +16,21 @@ export declare const ehrFhirResourceBundleEntrySchema: z.ZodObject<{
16
16
  id: z.ZodOptional<z.ZodString>;
17
17
  resourceType: z.ZodOptional<z.ZodString>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- resourceType?: string | undefined;
20
19
  id?: string | undefined;
21
- }, {
22
20
  resourceType?: string | undefined;
21
+ }, {
23
22
  id?: string | undefined;
23
+ resourceType?: string | undefined;
24
24
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  resource?: ({
27
- resourceType?: string | undefined;
28
27
  id?: string | undefined;
28
+ resourceType?: string | undefined;
29
29
  } & Record<string, any>) | undefined;
30
30
  }, {
31
31
  resource?: ({
32
- resourceType?: string | undefined;
33
32
  id?: string | undefined;
33
+ resourceType?: string | undefined;
34
34
  } & Record<string, any>) | undefined;
35
35
  }>;
36
36
  export type EhrFhirResourceBundleEntry = z.infer<typeof ehrFhirResourceBundleEntrySchema>;
@@ -40,11 +40,11 @@ export declare const ehrFhirResourceBundleSchema: z.ZodObject<z.objectUtil.exten
40
40
  relation: z.ZodString;
41
41
  url: z.ZodString;
42
42
  }, "strip", z.ZodTypeAny, {
43
- url: string;
44
43
  relation: string;
45
- }, {
46
44
  url: string;
45
+ }, {
47
46
  relation: string;
47
+ url: string;
48
48
  }>, "many">>;
49
49
  }, {
50
50
  entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -52,45 +52,45 @@ export declare const ehrFhirResourceBundleSchema: z.ZodObject<z.objectUtil.exten
52
52
  id: z.ZodOptional<z.ZodString>;
53
53
  resourceType: z.ZodOptional<z.ZodString>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- resourceType?: string | undefined;
56
55
  id?: string | undefined;
57
- }, {
58
56
  resourceType?: string | undefined;
57
+ }, {
59
58
  id?: string | undefined;
59
+ resourceType?: string | undefined;
60
60
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  resource?: ({
63
- resourceType?: string | undefined;
64
63
  id?: string | undefined;
64
+ resourceType?: string | undefined;
65
65
  } & Record<string, any>) | undefined;
66
66
  }, {
67
67
  resource?: ({
68
- resourceType?: string | undefined;
69
68
  id?: string | undefined;
69
+ resourceType?: string | undefined;
70
70
  } & Record<string, any>) | undefined;
71
71
  }>, "many">>;
72
72
  }>, "strip", z.ZodTypeAny, {
73
73
  resourceType: "Bundle";
74
74
  link?: {
75
- url: string;
76
75
  relation: string;
76
+ url: string;
77
77
  }[] | undefined;
78
78
  entry?: {
79
79
  resource?: ({
80
- resourceType?: string | undefined;
81
80
  id?: string | undefined;
81
+ resourceType?: string | undefined;
82
82
  } & Record<string, any>) | undefined;
83
83
  }[] | undefined;
84
84
  }, {
85
85
  resourceType: "Bundle";
86
86
  link?: {
87
- url: string;
88
87
  relation: string;
88
+ url: string;
89
89
  }[] | undefined;
90
90
  entry?: {
91
91
  resource?: ({
92
- resourceType?: string | undefined;
93
92
  id?: string | undefined;
93
+ resourceType?: string | undefined;
94
94
  } & Record<string, any>) | undefined;
95
95
  }[] | undefined;
96
96
  }>;
@@ -99,11 +99,11 @@ export declare const ehrStrictFhirResourceSchema: z.ZodIntersection<z.ZodObject<
99
99
  id: z.ZodString;
100
100
  resourceType: z.ZodString;
101
101
  }, "strip", z.ZodTypeAny, {
102
- resourceType: string;
103
102
  id: string;
104
- }, {
105
103
  resourceType: string;
104
+ }, {
106
105
  id: string;
106
+ resourceType: string;
107
107
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
108
108
  export type EhrStrictFhirResource = z.infer<typeof ehrStrictFhirResourceSchema>;
109
109
  export declare const ehrStrictFhirResourceBundleEntrySchema: z.ZodObject<{
@@ -111,21 +111,21 @@ export declare const ehrStrictFhirResourceBundleEntrySchema: z.ZodObject<{
111
111
  id: z.ZodString;
112
112
  resourceType: z.ZodString;
113
113
  }, "strip", z.ZodTypeAny, {
114
- resourceType: string;
115
114
  id: string;
116
- }, {
117
115
  resourceType: string;
116
+ }, {
118
117
  id: string;
118
+ resourceType: string;
119
119
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  resource: {
122
- resourceType: string;
123
122
  id: string;
123
+ resourceType: string;
124
124
  } & Record<string, any>;
125
125
  }, {
126
126
  resource: {
127
- resourceType: string;
128
127
  id: string;
128
+ resourceType: string;
129
129
  } & Record<string, any>;
130
130
  }>;
131
131
  export type EhrStrictFhirResourceBundleEntry = z.infer<typeof ehrStrictFhirResourceBundleEntrySchema>;
@@ -135,11 +135,11 @@ export declare const ehrStrictFhirResourceBundleSchema: z.ZodObject<z.objectUtil
135
135
  relation: z.ZodString;
136
136
  url: z.ZodString;
137
137
  }, "strip", z.ZodTypeAny, {
138
- url: string;
139
138
  relation: string;
140
- }, {
141
139
  url: string;
140
+ }, {
142
141
  relation: string;
142
+ url: string;
143
143
  }>, "many">>;
144
144
  }, {
145
145
  entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -147,45 +147,45 @@ export declare const ehrStrictFhirResourceBundleSchema: z.ZodObject<z.objectUtil
147
147
  id: z.ZodString;
148
148
  resourceType: z.ZodString;
149
149
  }, "strip", z.ZodTypeAny, {
150
- resourceType: string;
151
150
  id: string;
152
- }, {
153
151
  resourceType: string;
152
+ }, {
154
153
  id: string;
154
+ resourceType: string;
155
155
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
157
  resource: {
158
- resourceType: string;
159
158
  id: string;
159
+ resourceType: string;
160
160
  } & Record<string, any>;
161
161
  }, {
162
162
  resource: {
163
- resourceType: string;
164
163
  id: string;
164
+ resourceType: string;
165
165
  } & Record<string, any>;
166
166
  }>, "many">>;
167
167
  }>, "strip", z.ZodTypeAny, {
168
168
  resourceType: "Bundle";
169
169
  link?: {
170
- url: string;
171
170
  relation: string;
171
+ url: string;
172
172
  }[] | undefined;
173
173
  entry?: {
174
174
  resource: {
175
- resourceType: string;
176
175
  id: string;
176
+ resourceType: string;
177
177
  } & Record<string, any>;
178
178
  }[] | undefined;
179
179
  }, {
180
180
  resourceType: "Bundle";
181
181
  link?: {
182
- url: string;
183
182
  relation: string;
183
+ url: string;
184
184
  }[] | undefined;
185
185
  entry?: {
186
186
  resource: {
187
- resourceType: string;
188
187
  id: string;
188
+ resourceType: string;
189
189
  } & Record<string, any>;
190
190
  }[] | undefined;
191
191
  }>;
@@ -208,14 +208,14 @@ export declare const fhirOperationOutcomeIssueSchema: z.ZodObject<{
208
208
  text: string;
209
209
  }>;
210
210
  }, "strip", z.ZodTypeAny, {
211
- code: string;
212
211
  severity: string;
212
+ code: string;
213
213
  details: {
214
214
  text: string;
215
215
  };
216
216
  }, {
217
- code: string;
218
217
  severity: string;
218
+ code: string;
219
219
  details: {
220
220
  text: string;
221
221
  };
@@ -234,14 +234,14 @@ export declare const fhirOperationOutcomeSchema: z.ZodObject<{
234
234
  text: string;
235
235
  }>;
236
236
  }, "strip", z.ZodTypeAny, {
237
- code: string;
238
237
  severity: string;
238
+ code: string;
239
239
  details: {
240
240
  text: string;
241
241
  };
242
242
  }, {
243
- code: string;
244
243
  severity: string;
244
+ code: string;
245
245
  details: {
246
246
  text: string;
247
247
  };
@@ -249,8 +249,8 @@ export declare const fhirOperationOutcomeSchema: z.ZodObject<{
249
249
  }, "strip", z.ZodTypeAny, {
250
250
  resourceType: "OperationOutcome";
251
251
  issue: {
252
- code: string;
253
252
  severity: string;
253
+ code: string;
254
254
  details: {
255
255
  text: string;
256
256
  };
@@ -258,8 +258,8 @@ export declare const fhirOperationOutcomeSchema: z.ZodObject<{
258
258
  }, {
259
259
  resourceType: "OperationOutcome";
260
260
  issue: {
261
- code: string;
262
261
  severity: string;
262
+ code: string;
263
263
  details: {
264
264
  text: string;
265
265
  };
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.getDefaultBundle = exports.createStrictBundleFromResourceList = exports.createBundleFromResourceList = exports.ehrStrictFhirResourceBundleSchema = exports.ehrStrictFhirResourceBundleEntrySchema = exports.ehrStrictFhirResourceSchema = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceBundleEntrySchema = exports.ehrFhirResourceSchema = void 0;
3
+ exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.ehrStrictFhirResourceBundleSchema = exports.ehrStrictFhirResourceBundleEntrySchema = exports.ehrStrictFhirResourceSchema = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceBundleEntrySchema = exports.ehrFhirResourceSchema = void 0;
4
+ exports.createBundleFromResourceList = createBundleFromResourceList;
5
+ exports.createStrictBundleFromResourceList = createStrictBundleFromResourceList;
6
+ exports.getDefaultBundle = getDefaultBundle;
4
7
  const zod_1 = require("zod");
5
8
  const ehrFhirResourceSharedFieldsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
6
9
  const ehrFhirBundleSharedFieldsSchema = zod_1.z.object({
@@ -33,21 +36,18 @@ function createBundleFromResourceList(resourceList) {
33
36
  entry: resourceList.map(resource => ({ resource })),
34
37
  };
35
38
  }
36
- exports.createBundleFromResourceList = createBundleFromResourceList;
37
39
  function createStrictBundleFromResourceList(resourceList) {
38
40
  return {
39
41
  resourceType: "Bundle",
40
42
  entry: resourceList.map(resource => ({ resource })),
41
43
  };
42
44
  }
43
- exports.createStrictBundleFromResourceList = createStrictBundleFromResourceList;
44
45
  function getDefaultBundle() {
45
46
  return {
46
47
  resourceType: "Bundle",
47
48
  entry: [],
48
49
  };
49
50
  }
50
- exports.getDefaultBundle = getDefaultBundle;
51
51
  exports.fhirOperationOutcomeIssueSchema = zod_1.z.object({
52
52
  severity: zod_1.z.string(),
53
53
  code: zod_1.z.string(),