@centricare/contract 0.1.1 → 0.1.2

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 (371) hide show
  1. package/README.md +46 -26
  2. package/dist/commons/address.d.ts +35 -0
  3. package/dist/commons/address.d.ts.map +1 -0
  4. package/dist/commons/address.js +11 -0
  5. package/dist/commons/address.js.map +1 -0
  6. package/dist/commons/api-response.d.ts +8 -116
  7. package/dist/commons/api-response.d.ts.map +1 -1
  8. package/dist/commons/coded-concept.d.ts +3 -15
  9. package/dist/commons/coded-concept.d.ts.map +1 -1
  10. package/dist/commons/demographic.d.ts +29 -0
  11. package/dist/commons/demographic.d.ts.map +1 -0
  12. package/dist/commons/demographic.js +11 -0
  13. package/dist/commons/demographic.js.map +1 -0
  14. package/dist/commons/index.d.ts +3 -0
  15. package/dist/commons/index.d.ts.map +1 -1
  16. package/dist/commons/index.js +3 -0
  17. package/dist/commons/index.js.map +1 -1
  18. package/dist/commons/object-id.d.ts +8 -0
  19. package/dist/commons/object-id.d.ts.map +1 -0
  20. package/dist/commons/object-id.js +11 -0
  21. package/dist/commons/object-id.js.map +1 -0
  22. package/dist/commons/setting-option.d.ts +24 -16
  23. package/dist/commons/setting-option.d.ts.map +1 -1
  24. package/dist/models/assignment/assignment-minimal.schema.d.ts +18 -0
  25. package/dist/models/assignment/assignment-minimal.schema.d.ts.map +1 -0
  26. package/dist/models/assignment/assignment-minimal.schema.js +13 -0
  27. package/dist/models/assignment/assignment-minimal.schema.js.map +1 -0
  28. package/dist/models/assignment/assignment-partial.schema.d.ts +18 -0
  29. package/dist/models/assignment/assignment-partial.schema.d.ts.map +1 -0
  30. package/dist/models/assignment/assignment-partial.schema.js +6 -0
  31. package/dist/models/assignment/assignment-partial.schema.js.map +1 -0
  32. package/dist/models/assignment/assignment.schema.d.ts +84 -0
  33. package/dist/models/assignment/assignment.schema.d.ts.map +1 -0
  34. package/dist/models/assignment/assignment.schema.js +27 -0
  35. package/dist/models/assignment/assignment.schema.js.map +1 -0
  36. package/dist/models/assignment/index.d.ts +4 -0
  37. package/dist/models/assignment/index.d.ts.map +1 -0
  38. package/dist/models/assignment/index.js +4 -0
  39. package/dist/models/assignment/index.js.map +1 -0
  40. package/dist/models/department/department-minimal.schema.d.ts +17 -0
  41. package/dist/models/department/department-minimal.schema.d.ts.map +1 -0
  42. package/dist/models/department/department-minimal.schema.js +13 -0
  43. package/dist/models/department/department-minimal.schema.js.map +1 -0
  44. package/dist/models/department/department-partial.schema.d.ts +17 -0
  45. package/dist/models/department/department-partial.schema.d.ts.map +1 -0
  46. package/dist/models/department/department-partial.schema.js +6 -0
  47. package/dist/models/department/department-partial.schema.js.map +1 -0
  48. package/dist/models/department/department.schema.d.ts +83 -0
  49. package/dist/models/department/department.schema.d.ts.map +1 -0
  50. package/dist/models/department/department.schema.js +20 -0
  51. package/dist/models/department/department.schema.js.map +1 -0
  52. package/dist/models/department/index.d.ts +4 -0
  53. package/dist/models/department/index.d.ts.map +1 -0
  54. package/dist/models/department/index.js +4 -0
  55. package/dist/models/department/index.js.map +1 -0
  56. package/dist/models/facility/facility-minimal.schema.d.ts +19 -0
  57. package/dist/models/facility/facility-minimal.schema.d.ts.map +1 -0
  58. package/dist/models/facility/facility-minimal.schema.js +10 -0
  59. package/dist/models/facility/facility-minimal.schema.js.map +1 -0
  60. package/dist/models/facility/facility-partial.schema.d.ts +19 -0
  61. package/dist/models/facility/facility-partial.schema.d.ts.map +1 -0
  62. package/dist/models/facility/facility-partial.schema.js +6 -0
  63. package/dist/models/facility/facility-partial.schema.js.map +1 -0
  64. package/dist/models/facility/facility-settings.schema.d.ts +16 -0
  65. package/dist/models/facility/facility-settings.schema.d.ts.map +1 -0
  66. package/dist/models/facility/facility-settings.schema.js +12 -0
  67. package/dist/models/facility/facility-settings.schema.js.map +1 -0
  68. package/dist/models/facility/facility.schema.d.ts +82 -0
  69. package/dist/models/facility/facility.schema.d.ts.map +1 -0
  70. package/dist/models/facility/facility.schema.js +23 -0
  71. package/dist/models/facility/facility.schema.js.map +1 -0
  72. package/dist/models/facility/index.d.ts +5 -0
  73. package/dist/models/facility/index.d.ts.map +1 -0
  74. package/dist/models/facility/index.js +5 -0
  75. package/dist/models/facility/index.js.map +1 -0
  76. package/dist/models/index.d.ts +17 -0
  77. package/dist/models/index.d.ts.map +1 -1
  78. package/dist/models/index.js +17 -0
  79. package/dist/models/index.js.map +1 -1
  80. package/dist/models/ksm/index.d.ts +4 -0
  81. package/dist/models/ksm/index.d.ts.map +1 -0
  82. package/dist/models/ksm/index.js +4 -0
  83. package/dist/models/ksm/index.js.map +1 -0
  84. package/dist/models/ksm/ksm-minimal.schema.d.ts +12 -0
  85. package/dist/models/ksm/ksm-minimal.schema.d.ts.map +1 -0
  86. package/dist/models/ksm/ksm-minimal.schema.js +13 -0
  87. package/dist/models/ksm/ksm-minimal.schema.js.map +1 -0
  88. package/dist/models/ksm/ksm-partial.schema.d.ts +12 -0
  89. package/dist/models/ksm/ksm-partial.schema.d.ts.map +1 -0
  90. package/dist/models/ksm/ksm-partial.schema.js +6 -0
  91. package/dist/models/ksm/ksm-partial.schema.js.map +1 -0
  92. package/dist/models/ksm/ksm.schema.d.ts +78 -0
  93. package/dist/models/ksm/ksm.schema.d.ts.map +1 -0
  94. package/dist/models/ksm/ksm.schema.js +23 -0
  95. package/dist/models/ksm/ksm.schema.js.map +1 -0
  96. package/dist/models/location/index.d.ts +5 -0
  97. package/dist/models/location/index.d.ts.map +1 -0
  98. package/dist/models/location/index.js +5 -0
  99. package/dist/models/location/index.js.map +1 -0
  100. package/dist/models/location/location-minimal.schema.d.ts +33 -0
  101. package/dist/models/location/location-minimal.schema.d.ts.map +1 -0
  102. package/dist/models/location/location-minimal.schema.js +12 -0
  103. package/dist/models/location/location-minimal.schema.js.map +1 -0
  104. package/dist/models/location/location-partial.schema.d.ts +33 -0
  105. package/dist/models/location/location-partial.schema.d.ts.map +1 -0
  106. package/dist/models/location/location-partial.schema.js +6 -0
  107. package/dist/models/location/location-partial.schema.js.map +1 -0
  108. package/dist/models/location/location-settings.schema.d.ts +8 -0
  109. package/dist/models/location/location-settings.schema.d.ts.map +1 -0
  110. package/dist/models/location/location-settings.schema.js +7 -0
  111. package/dist/models/location/location-settings.schema.js.map +1 -0
  112. package/dist/models/location/location.schema.d.ts +98 -0
  113. package/dist/models/location/location.schema.d.ts.map +1 -0
  114. package/dist/models/location/location.schema.js +30 -0
  115. package/dist/models/location/location.schema.js.map +1 -0
  116. package/dist/models/member/index.d.ts +4 -0
  117. package/dist/models/member/index.d.ts.map +1 -0
  118. package/dist/models/member/index.js +4 -0
  119. package/dist/models/member/index.js.map +1 -0
  120. package/dist/models/member/member-minimal.schema.d.ts +11 -0
  121. package/dist/models/member/member-minimal.schema.d.ts.map +1 -0
  122. package/dist/models/member/member-minimal.schema.js +9 -0
  123. package/dist/models/member/member-minimal.schema.js.map +1 -0
  124. package/dist/models/member/member-partial.schema.d.ts +11 -0
  125. package/dist/models/member/member-partial.schema.d.ts.map +1 -0
  126. package/dist/models/member/member-partial.schema.js +6 -0
  127. package/dist/models/member/member-partial.schema.js.map +1 -0
  128. package/dist/models/member/member.schema.d.ts +73 -0
  129. package/dist/models/member/member.schema.d.ts.map +1 -0
  130. package/dist/models/member/member.schema.js +16 -0
  131. package/dist/models/member/member.schema.js.map +1 -0
  132. package/dist/models/organization/index.d.ts +5 -0
  133. package/dist/models/organization/index.d.ts.map +1 -0
  134. package/dist/models/organization/index.js +5 -0
  135. package/dist/models/organization/index.js.map +1 -0
  136. package/dist/models/organization/organization-minimal.schema.d.ts +22 -0
  137. package/dist/models/organization/organization-minimal.schema.d.ts.map +1 -0
  138. package/dist/models/organization/organization-minimal.schema.js +9 -0
  139. package/dist/models/organization/organization-minimal.schema.js.map +1 -0
  140. package/dist/models/organization/organization-partial.schema.d.ts +22 -0
  141. package/dist/models/organization/organization-partial.schema.d.ts.map +1 -0
  142. package/dist/models/organization/organization-partial.schema.js +6 -0
  143. package/dist/models/organization/organization-partial.schema.js.map +1 -0
  144. package/dist/models/organization/organization-settings.schema.d.ts +8 -0
  145. package/dist/models/organization/organization-settings.schema.d.ts.map +1 -0
  146. package/dist/models/organization/organization-settings.schema.js +7 -0
  147. package/dist/models/organization/organization-settings.schema.js.map +1 -0
  148. package/dist/models/organization/organization.schema.d.ts +84 -0
  149. package/dist/models/organization/organization.schema.d.ts.map +1 -0
  150. package/dist/models/organization/organization.schema.js +24 -0
  151. package/dist/models/organization/organization.schema.js.map +1 -0
  152. package/dist/models/patient/index.d.ts +4 -0
  153. package/dist/models/patient/index.d.ts.map +1 -0
  154. package/dist/models/patient/index.js +4 -0
  155. package/dist/models/patient/index.js.map +1 -0
  156. package/dist/models/patient/patient-minimal.schema.d.ts +95 -0
  157. package/dist/models/patient/patient-minimal.schema.d.ts.map +1 -0
  158. package/dist/models/patient/patient-minimal.schema.js +13 -0
  159. package/dist/models/patient/patient-minimal.schema.js.map +1 -0
  160. package/dist/models/patient/patient-partial.schema.d.ts +95 -0
  161. package/dist/models/patient/patient-partial.schema.d.ts.map +1 -0
  162. package/dist/models/patient/patient-partial.schema.js +6 -0
  163. package/dist/models/patient/patient-partial.schema.js.map +1 -0
  164. package/dist/models/patient/patient.schema.d.ts +161 -0
  165. package/dist/models/patient/patient.schema.d.ts.map +1 -0
  166. package/dist/models/patient/patient.schema.js +35 -0
  167. package/dist/models/patient/patient.schema.js.map +1 -0
  168. package/dist/models/patient-additional/index.d.ts +4 -0
  169. package/dist/models/patient-additional/index.d.ts.map +1 -0
  170. package/dist/models/patient-additional/index.js +4 -0
  171. package/dist/models/patient-additional/index.js.map +1 -0
  172. package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts +17 -0
  173. package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts.map +1 -0
  174. package/dist/models/patient-additional/patient-additional-minimal.schema.js +13 -0
  175. package/dist/models/patient-additional/patient-additional-minimal.schema.js.map +1 -0
  176. package/dist/models/patient-additional/patient-additional-partial.schema.d.ts +17 -0
  177. package/dist/models/patient-additional/patient-additional-partial.schema.d.ts.map +1 -0
  178. package/dist/models/patient-additional/patient-additional-partial.schema.js +6 -0
  179. package/dist/models/patient-additional/patient-additional-partial.schema.js.map +1 -0
  180. package/dist/models/patient-additional/patient-additional.schema.d.ts +83 -0
  181. package/dist/models/patient-additional/patient-additional.schema.d.ts.map +1 -0
  182. package/dist/models/patient-additional/patient-additional.schema.js +21 -0
  183. package/dist/models/patient-additional/patient-additional.schema.js.map +1 -0
  184. package/dist/models/payer/index.d.ts +5 -0
  185. package/dist/models/payer/index.d.ts.map +1 -0
  186. package/dist/models/payer/index.js +5 -0
  187. package/dist/models/payer/index.js.map +1 -0
  188. package/dist/models/payer/payer-minimal.schema.d.ts +67 -0
  189. package/dist/models/payer/payer-minimal.schema.d.ts.map +1 -0
  190. package/dist/models/payer/payer-minimal.schema.js +13 -0
  191. package/dist/models/payer/payer-minimal.schema.js.map +1 -0
  192. package/dist/models/payer/payer-partial.schema.d.ts +67 -0
  193. package/dist/models/payer/payer-partial.schema.d.ts.map +1 -0
  194. package/dist/models/payer/payer-partial.schema.js +6 -0
  195. package/dist/models/payer/payer-partial.schema.js.map +1 -0
  196. package/dist/models/payer/payer-settings.schema.d.ts +27 -0
  197. package/dist/models/payer/payer-settings.schema.d.ts.map +1 -0
  198. package/dist/models/payer/payer-settings.schema.js +20 -0
  199. package/dist/models/payer/payer-settings.schema.js.map +1 -0
  200. package/dist/models/payer/payer.schema.d.ts +133 -0
  201. package/dist/models/payer/payer.schema.d.ts.map +1 -0
  202. package/dist/models/payer/payer.schema.js +47 -0
  203. package/dist/models/payer/payer.schema.js.map +1 -0
  204. package/dist/models/practitioner-schedule/index.d.ts +4 -0
  205. package/dist/models/practitioner-schedule/index.d.ts.map +1 -0
  206. package/dist/models/practitioner-schedule/index.js +4 -0
  207. package/dist/models/practitioner-schedule/index.js.map +1 -0
  208. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts +20 -0
  209. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts.map +1 -0
  210. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js +13 -0
  211. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js.map +1 -0
  212. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts +20 -0
  213. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts.map +1 -0
  214. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js +6 -0
  215. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js.map +1 -0
  216. package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts +86 -0
  217. package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts.map +1 -0
  218. package/dist/models/practitioner-schedule/practitioner-schedule.schema.js +26 -0
  219. package/dist/models/practitioner-schedule/practitioner-schedule.schema.js.map +1 -0
  220. package/dist/models/practitioner-session/index.d.ts +4 -0
  221. package/dist/models/practitioner-session/index.d.ts.map +1 -0
  222. package/dist/models/practitioner-session/index.js +4 -0
  223. package/dist/models/practitioner-session/index.js.map +1 -0
  224. package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts +14 -0
  225. package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts.map +1 -0
  226. package/dist/models/practitioner-session/practitioner-session-minimal.schema.js +13 -0
  227. package/dist/models/practitioner-session/practitioner-session-minimal.schema.js.map +1 -0
  228. package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts +14 -0
  229. package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts.map +1 -0
  230. package/dist/models/practitioner-session/practitioner-session-partial.schema.js +6 -0
  231. package/dist/models/practitioner-session/practitioner-session-partial.schema.js.map +1 -0
  232. package/dist/models/practitioner-session/practitioner-session.schema.d.ts +80 -0
  233. package/dist/models/practitioner-session/practitioner-session.schema.d.ts.map +1 -0
  234. package/dist/models/practitioner-session/practitioner-session.schema.js +26 -0
  235. package/dist/models/practitioner-session/practitioner-session.schema.js.map +1 -0
  236. package/dist/models/queue/index.d.ts +5 -0
  237. package/dist/models/queue/index.d.ts.map +1 -0
  238. package/dist/models/queue/index.js +5 -0
  239. package/dist/models/queue/index.js.map +1 -0
  240. package/dist/models/queue/queue-minimal.schema.d.ts +31 -0
  241. package/dist/models/queue/queue-minimal.schema.d.ts.map +1 -0
  242. package/dist/models/queue/queue-minimal.schema.js +13 -0
  243. package/dist/models/queue/queue-minimal.schema.js.map +1 -0
  244. package/dist/models/queue/queue-partial.schema.d.ts +31 -0
  245. package/dist/models/queue/queue-partial.schema.d.ts.map +1 -0
  246. package/dist/models/queue/queue-partial.schema.js +6 -0
  247. package/dist/models/queue/queue-partial.schema.js.map +1 -0
  248. package/dist/models/queue/queue-settings.schema.d.ts +27 -0
  249. package/dist/models/queue/queue-settings.schema.d.ts.map +1 -0
  250. package/dist/models/queue/queue-settings.schema.js +22 -0
  251. package/dist/models/queue/queue-settings.schema.js.map +1 -0
  252. package/dist/models/queue/queue.schema.d.ts +97 -0
  253. package/dist/models/queue/queue.schema.d.ts.map +1 -0
  254. package/dist/models/queue/queue.schema.js +32 -0
  255. package/dist/models/queue/queue.schema.js.map +1 -0
  256. package/dist/models/queue-event-log/index.d.ts +4 -0
  257. package/dist/models/queue-event-log/index.d.ts.map +1 -0
  258. package/dist/models/queue-event-log/index.js +4 -0
  259. package/dist/models/queue-event-log/index.js.map +1 -0
  260. package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts +18 -0
  261. package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts.map +1 -0
  262. package/dist/models/queue-event-log/queue-event-log-minimal.schema.js +13 -0
  263. package/dist/models/queue-event-log/queue-event-log-minimal.schema.js.map +1 -0
  264. package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts +18 -0
  265. package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts.map +1 -0
  266. package/dist/models/queue-event-log/queue-event-log-partial.schema.js +6 -0
  267. package/dist/models/queue-event-log/queue-event-log-partial.schema.js.map +1 -0
  268. package/dist/models/queue-event-log/queue-event-log.schema.d.ts +84 -0
  269. package/dist/models/queue-event-log/queue-event-log.schema.d.ts.map +1 -0
  270. package/dist/models/queue-event-log/queue-event-log.schema.js +25 -0
  271. package/dist/models/queue-event-log/queue-event-log.schema.js.map +1 -0
  272. package/dist/models/queue-number/index.d.ts +5 -0
  273. package/dist/models/queue-number/index.d.ts.map +1 -0
  274. package/dist/models/queue-number/index.js +5 -0
  275. package/dist/models/queue-number/index.js.map +1 -0
  276. package/dist/models/queue-number/queue-number-minimal.schema.d.ts +21 -0
  277. package/dist/models/queue-number/queue-number-minimal.schema.d.ts.map +1 -0
  278. package/dist/models/queue-number/queue-number-minimal.schema.js +14 -0
  279. package/dist/models/queue-number/queue-number-minimal.schema.js.map +1 -0
  280. package/dist/models/queue-number/queue-number-partial.schema.d.ts +21 -0
  281. package/dist/models/queue-number/queue-number-partial.schema.d.ts.map +1 -0
  282. package/dist/models/queue-number/queue-number-partial.schema.js +6 -0
  283. package/dist/models/queue-number/queue-number-partial.schema.js.map +1 -0
  284. package/dist/models/queue-number/queue-number-settings.schema.d.ts +27 -0
  285. package/dist/models/queue-number/queue-number-settings.schema.d.ts.map +1 -0
  286. package/dist/models/queue-number/queue-number-settings.schema.js +22 -0
  287. package/dist/models/queue-number/queue-number-settings.schema.js.map +1 -0
  288. package/dist/models/queue-number/queue-number.schema.d.ts +88 -0
  289. package/dist/models/queue-number/queue-number.schema.d.ts.map +1 -0
  290. package/dist/models/queue-number/queue-number.schema.js +42 -0
  291. package/dist/models/queue-number/queue-number.schema.js.map +1 -0
  292. package/dist/models/settings/index.d.ts +4 -0
  293. package/dist/models/settings/index.d.ts.map +1 -0
  294. package/dist/models/settings/index.js +4 -0
  295. package/dist/models/settings/index.js.map +1 -0
  296. package/dist/models/settings/settings-minimal.schema.d.ts +26 -0
  297. package/dist/models/settings/settings-minimal.schema.d.ts.map +1 -0
  298. package/dist/models/settings/settings-minimal.schema.js +11 -0
  299. package/dist/models/settings/settings-minimal.schema.js.map +1 -0
  300. package/dist/models/settings/settings-partial.schema.d.ts +26 -0
  301. package/dist/models/settings/settings-partial.schema.d.ts.map +1 -0
  302. package/dist/models/settings/settings-partial.schema.js +6 -0
  303. package/dist/models/settings/settings-partial.schema.js.map +1 -0
  304. package/dist/models/settings/settings.schema.d.ts +96 -0
  305. package/dist/models/settings/settings.schema.d.ts.map +1 -0
  306. package/dist/models/settings/settings.schema.js +25 -0
  307. package/dist/models/settings/settings.schema.js.map +1 -0
  308. package/dist/models/staff/index.d.ts +4 -0
  309. package/dist/models/staff/index.d.ts.map +1 -0
  310. package/dist/models/staff/index.js +4 -0
  311. package/dist/models/staff/index.js.map +1 -0
  312. package/dist/models/staff/staff-minimal.schema.d.ts +27 -0
  313. package/dist/models/staff/staff-minimal.schema.d.ts.map +1 -0
  314. package/dist/models/staff/staff-minimal.schema.js +13 -0
  315. package/dist/models/staff/staff-minimal.schema.js.map +1 -0
  316. package/dist/models/staff/staff-partial.schema.d.ts +27 -0
  317. package/dist/models/staff/staff-partial.schema.d.ts.map +1 -0
  318. package/dist/models/staff/staff-partial.schema.js +6 -0
  319. package/dist/models/staff/staff-partial.schema.js.map +1 -0
  320. package/dist/models/staff/staff.schema.d.ts +93 -0
  321. package/dist/models/staff/staff.schema.d.ts.map +1 -0
  322. package/dist/models/staff/staff.schema.js +25 -0
  323. package/dist/models/staff/staff.schema.js.map +1 -0
  324. package/dist/models/unit/index.d.ts +4 -0
  325. package/dist/models/unit/index.d.ts.map +1 -0
  326. package/dist/models/unit/index.js +4 -0
  327. package/dist/models/unit/index.js.map +1 -0
  328. package/dist/models/unit/unit-minimal.schema.d.ts +27 -0
  329. package/dist/models/unit/unit-minimal.schema.d.ts.map +1 -0
  330. package/dist/models/unit/unit-minimal.schema.js +13 -0
  331. package/dist/models/unit/unit-minimal.schema.js.map +1 -0
  332. package/dist/models/unit/unit-partial.schema.d.ts +27 -0
  333. package/dist/models/unit/unit-partial.schema.d.ts.map +1 -0
  334. package/dist/models/unit/unit-partial.schema.js +6 -0
  335. package/dist/models/unit/unit-partial.schema.js.map +1 -0
  336. package/dist/models/unit/unit.schema.d.ts +93 -0
  337. package/dist/models/unit/unit.schema.d.ts.map +1 -0
  338. package/dist/models/unit/unit.schema.js +27 -0
  339. package/dist/models/unit/unit.schema.js.map +1 -0
  340. package/dist/models/user/index.d.ts +5 -0
  341. package/dist/models/user/index.d.ts.map +1 -0
  342. package/dist/models/user/index.js +5 -0
  343. package/dist/models/user/index.js.map +1 -0
  344. package/dist/models/user/user-minimal.schema.d.ts +65 -0
  345. package/dist/models/user/user-minimal.schema.d.ts.map +1 -0
  346. package/dist/models/user/user-minimal.schema.js +10 -0
  347. package/dist/models/user/user-minimal.schema.js.map +1 -0
  348. package/dist/models/user/user-partial.schema.d.ts +65 -0
  349. package/dist/models/user/user-partial.schema.d.ts.map +1 -0
  350. package/dist/models/user/user-partial.schema.js +6 -0
  351. package/dist/models/user/user-partial.schema.js.map +1 -0
  352. package/dist/models/user/user-settings.schema.d.ts +8 -0
  353. package/dist/models/user/user-settings.schema.d.ts.map +1 -0
  354. package/dist/models/user/user-settings.schema.js +7 -0
  355. package/dist/models/user/user-settings.schema.js.map +1 -0
  356. package/dist/models/user/user.schema.d.ts +134 -0
  357. package/dist/models/user/user.schema.d.ts.map +1 -0
  358. package/dist/models/{user.js → user/user.schema.js} +10 -30
  359. package/dist/models/user/user.schema.js.map +1 -0
  360. package/package.json +14 -2
  361. package/dist/example.test.d.ts +0 -6
  362. package/dist/example.test.d.ts.map +0 -1
  363. package/dist/example.test.js +0 -147
  364. package/dist/example.test.js.map +0 -1
  365. package/dist/models/settings.d.ts +0 -189
  366. package/dist/models/settings.d.ts.map +0 -1
  367. package/dist/models/settings.js +0 -34
  368. package/dist/models/settings.js.map +0 -1
  369. package/dist/models/user.d.ts +0 -1110
  370. package/dist/models/user.d.ts.map +0 -1
  371. package/dist/models/user.js.map +0 -1
@@ -3,4 +3,21 @@
3
3
  */
4
4
  export * from "./user";
5
5
  export * from "./settings";
6
+ export * from "./assignment";
7
+ export * from "./department";
8
+ export * from "./facility";
9
+ export * from "./location";
10
+ export * from "./member";
11
+ export * from "./organization";
12
+ export * from "./patient";
13
+ export * from "./patient-additional";
14
+ export * from "./staff";
15
+ export * from "./unit";
16
+ export * from "./practitioner-schedule";
17
+ export * from "./practitioner-session";
18
+ export * from "./ksm";
19
+ export * from "./payer";
20
+ export * from "./queue";
21
+ export * from "./queue-event-log";
22
+ export * from "./queue-number";
6
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./ksm.schema";
2
+ export * from "./ksm-minimal.schema";
3
+ export * from "./ksm-partial.schema";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/ksm/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./ksm.schema";
2
+ export * from "./ksm-minimal.schema";
3
+ export * from "./ksm-partial.schema";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/ksm/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Minimal ksm schema (omits server-generated fields).
4
+ */
5
+ export declare const ksmMinimalSchema: z.ZodObject<{
6
+ name: z.ZodString;
7
+ facility_id: z.ZodString;
8
+ organization_id: z.ZodString;
9
+ subspecialist: z.ZodArray<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ export type KsmMinimal = z.infer<typeof ksmMinimalSchema>;
12
+ //# sourceMappingURL=ksm-minimal.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ksm-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/ksm/ksm-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;iBAO3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { ksmSchema } from "./ksm.schema";
2
+ /**
3
+ * Minimal ksm schema (omits server-generated fields).
4
+ */
5
+ export const ksmMinimalSchema = ksmSchema.omit({
6
+ id: true,
7
+ created_at: true,
8
+ created_by: true,
9
+ updated_at: true,
10
+ updated_by: true,
11
+ schema_version: true,
12
+ });
13
+ //# sourceMappingURL=ksm-minimal.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ksm-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/ksm/ksm-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAY,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC;IAC7C,EAAE,EAAE,IAAI;IACR,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;CACrB,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Partial ksm schema (based on minimal, all fields optional).
4
+ */
5
+ export declare const ksmPartialSchema: z.ZodObject<{
6
+ name: z.ZodOptional<z.ZodString>;
7
+ facility_id: z.ZodOptional<z.ZodString>;
8
+ organization_id: z.ZodOptional<z.ZodString>;
9
+ subspecialist: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ }, z.core.$strip>;
11
+ export type KsmPartial = z.infer<typeof ksmPartialSchema>;
12
+ //# sourceMappingURL=ksm-partial.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ksm-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/ksm/ksm-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;iBAA6B,CAAC;AAE3D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ksmMinimalSchema } from "./ksm-minimal.schema";
2
+ /**
3
+ * Partial ksm schema (based on minimal, all fields optional).
4
+ */
5
+ export const ksmPartialSchema = ksmMinimalSchema.partial();
6
+ //# sourceMappingURL=ksm-partial.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ksm-partial.schema.js","sourceRoot":"","sources":["../../../src/models/ksm/ksm-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,sBAAsB,CAAC;AAEzE;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,EAAE,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { z } from "zod";
2
+ import { type Schema as MongooseSchema, type Model as MongooseModel } from "mongoose";
3
+ import type { InferDocument } from "@nullix/zod-mongoose";
4
+ export declare const ksmSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ organization_id: z.ZodString;
7
+ facility_id: z.ZodString;
8
+ name: z.ZodString;
9
+ subspecialist: z.ZodArray<z.ZodString>;
10
+ created_at: z.ZodString;
11
+ created_by: z.ZodString;
12
+ updated_at: z.ZodNullable<z.ZodString>;
13
+ updated_by: z.ZodNullable<z.ZodString>;
14
+ schema_version: z.ZodDefault<z.ZodNumber>;
15
+ }, z.core.$strip>;
16
+ export type Ksm = z.infer<typeof ksmSchema>;
17
+ export declare const KsmMongooseSchema: MongooseSchema;
18
+ export type KsmDocument = InferDocument<typeof ksmSchema>;
19
+ export declare const KsmModel: MongooseModel<{
20
+ [x: number]: unknown;
21
+ [x: symbol]: unknown;
22
+ [x: string]: unknown;
23
+ }, {}, {}, {
24
+ id: string;
25
+ }, import("mongoose").Document<unknown, {}, {
26
+ [x: number]: unknown;
27
+ [x: symbol]: unknown;
28
+ [x: string]: unknown;
29
+ }, {
30
+ id: string;
31
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
32
+ [x: number]: unknown;
33
+ [x: symbol]: unknown;
34
+ [x: string]: unknown;
35
+ } & Required<{
36
+ _id: unknown;
37
+ }> & {
38
+ __v: number;
39
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
40
+ id: string;
41
+ }>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
42
+ [x: number]: unknown;
43
+ [x: symbol]: unknown;
44
+ [x: string]: unknown;
45
+ }, import("mongoose").Document<unknown, {}, {
46
+ [x: number]: unknown;
47
+ [x: symbol]: unknown;
48
+ [x: string]: unknown;
49
+ }, {
50
+ id: string;
51
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
52
+ [x: number]: unknown;
53
+ [x: symbol]: unknown;
54
+ [x: string]: unknown;
55
+ } & Required<{
56
+ _id: unknown;
57
+ }> & {
58
+ __v: number;
59
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
60
+ id: string;
61
+ }>, unknown, {
62
+ [x: number]: {};
63
+ [x: symbol]: {};
64
+ [x: string]: {};
65
+ } & Required<{
66
+ _id: unknown;
67
+ }> & {
68
+ __v: number;
69
+ }>, {
70
+ [x: number]: {};
71
+ [x: symbol]: {};
72
+ [x: string]: {};
73
+ } & Required<{
74
+ _id: unknown;
75
+ }> & {
76
+ __v: number;
77
+ }>;
78
+ //# sourceMappingURL=ksm.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ksm.schema.d.ts","sourceRoot":"","sources":["../../../src/models/ksm/ksm.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,eAAO,MAAM,SAAS;;;;;;;;;;;iBAapB,CAAC;AAEH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAE5C,eAAO,MAAM,iBAAiB,EAAE,cAA4C,CAAC;AAC7E,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC,OAAO,SAAS,CAAC,CAAC;AAG1D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ import { toMongooseSchema } from "@nullix/zod-mongoose";
3
+ import { objectIdSchema } from "../../commons/object-id";
4
+ import { model } from "mongoose";
5
+ import { timestampSchema } from "../../commons/timestamp";
6
+ export const ksmSchema = z.object({
7
+ id: z.string().uuid({ message: "id must be a valid UUID" }),
8
+ organization_id: objectIdSchema,
9
+ facility_id: objectIdSchema,
10
+ name: z.string().min(1, { message: "name is required" }),
11
+ subspecialist: z
12
+ .array(z.string())
13
+ .min(1, { message: "subspecialist is required" }),
14
+ created_at: timestampSchema,
15
+ created_by: z.string().min(1, { message: "created_by is required" }),
16
+ updated_at: timestampSchema.nullable(),
17
+ updated_by: z.string().nullable(),
18
+ schema_version: z.number().int().positive().default(1),
19
+ });
20
+ export const KsmMongooseSchema = toMongooseSchema(ksmSchema);
21
+ const KsmModelName = "medical_staff_groups";
22
+ export const KsmModel = model(KsmModelName, KsmMongooseSchema);
23
+ //# sourceMappingURL=ksm.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ksm.schema.js","sourceRoot":"","sources":["../../../src/models/ksm/ksm.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,KAAK,EAA8D,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAC3D,eAAe,EAAE,cAAc;IAC/B,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACnD,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpE,UAAU,EAAE,eAAe,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,iBAAiB,GAAmB,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAG7E,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAC5C,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./location.schema";
2
+ export * from "./location-settings.schema";
3
+ export * from "./location-minimal.schema";
4
+ export * from "./location-partial.schema";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/location/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./location.schema";
2
+ export * from "./location-settings.schema";
3
+ export * from "./location-minimal.schema";
4
+ export * from "./location-partial.schema";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/location/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Minimal location schema (omits server-generated fields).
4
+ */
5
+ export declare const locationMinimalSchema: z.ZodObject<{
6
+ settings_id: z.ZodString;
7
+ statuses: z.ZodArray<z.ZodObject<{
8
+ system: z.ZodString;
9
+ value: z.ZodString;
10
+ display: z.ZodOptional<z.ZodString>;
11
+ valid: z.ZodOptional<z.ZodString>;
12
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ }, z.core.$strip>>;
14
+ identifiers: z.ZodArray<z.ZodObject<{
15
+ system: z.ZodString;
16
+ value: z.ZodString;
17
+ display: z.ZodOptional<z.ZodString>;
18
+ valid: z.ZodOptional<z.ZodString>;
19
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ }, z.core.$strip>>;
21
+ name: z.ZodString;
22
+ schema_version: z.ZodDefault<z.ZodNumber>;
23
+ parent_id: z.ZodString;
24
+ types: z.ZodArray<z.ZodObject<{
25
+ system: z.ZodString;
26
+ value: z.ZodString;
27
+ display: z.ZodOptional<z.ZodString>;
28
+ valid: z.ZodOptional<z.ZodString>;
29
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ export type LocationMinimal = z.infer<typeof locationMinimalSchema>;
33
+ //# sourceMappingURL=location-minimal.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/location/location-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { locationSchema } from "./location.schema";
2
+ /**
3
+ * Minimal location schema (omits server-generated fields).
4
+ */
5
+ export const locationMinimalSchema = locationSchema.omit({
6
+ _id: true,
7
+ created_at: true,
8
+ created_by: true,
9
+ updated_at: true,
10
+ updated_by: true,
11
+ });
12
+ //# sourceMappingURL=location-minimal.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/location/location-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAiB,MAAM,mBAAmB,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC,IAAI,CAAC;IACvD,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Partial location schema (based on minimal, all fields optional).
4
+ */
5
+ export declare const locationPartialSchema: z.ZodObject<{
6
+ settings_id: z.ZodOptional<z.ZodString>;
7
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ system: z.ZodString;
9
+ value: z.ZodString;
10
+ display: z.ZodOptional<z.ZodString>;
11
+ valid: z.ZodOptional<z.ZodString>;
12
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ }, z.core.$strip>>>;
14
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ system: z.ZodString;
16
+ value: z.ZodString;
17
+ display: z.ZodOptional<z.ZodString>;
18
+ valid: z.ZodOptional<z.ZodString>;
19
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ }, z.core.$strip>>>;
21
+ name: z.ZodOptional<z.ZodString>;
22
+ schema_version: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
23
+ parent_id: z.ZodOptional<z.ZodString>;
24
+ types: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ system: z.ZodString;
26
+ value: z.ZodString;
27
+ display: z.ZodOptional<z.ZodString>;
28
+ valid: z.ZodOptional<z.ZodString>;
29
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ }, z.core.$strip>>>;
31
+ }, z.core.$strip>;
32
+ export type LocationPartial = z.infer<typeof locationPartialSchema>;
33
+ //# sourceMappingURL=location-partial.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/location/location-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { locationMinimalSchema } from "./location-minimal.schema";
2
+ /**
3
+ * Partial location schema (based on minimal, all fields optional).
4
+ */
5
+ export const locationPartialSchema = locationMinimalSchema.partial();
6
+ //# sourceMappingURL=location-partial.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-partial.schema.js","sourceRoot":"","sources":["../../../src/models/location/location-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAwB,MAAM,2BAA2B,CAAC;AAExF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,OAAO,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const locationSettingsSchema: z.ZodObject<{
3
+ sex_restriction: z.ZodOptional<z.ZodString>;
4
+ is_inventory_location: z.ZodDefault<z.ZodBoolean>;
5
+ room_has_ventilator: z.ZodDefault<z.ZodBoolean>;
6
+ }, z.core.$strip>;
7
+ export type LocationSettings = z.infer<typeof locationSettingsSchema>;
8
+ //# sourceMappingURL=location-settings.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-settings.schema.d.ts","sourceRoot":"","sources":["../../../src/models/location/location-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export const locationSettingsSchema = z.object({
3
+ sex_restriction: z.string().optional(),
4
+ is_inventory_location: z.boolean().default(false),
5
+ room_has_ventilator: z.boolean().default(false),
6
+ });
7
+ //# sourceMappingURL=location-settings.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-settings.schema.js","sourceRoot":"","sources":["../../../src/models/location/location-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACjD,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAChD,CAAC,CAAC"}
@@ -0,0 +1,98 @@
1
+ import { z } from "zod";
2
+ import { type Schema as MongooseSchema, type Model as MongooseModel } from "mongoose";
3
+ import type { InferDocument } from "@nullix/zod-mongoose";
4
+ export declare const locationSchema: z.ZodObject<{
5
+ _id: z.ZodString;
6
+ parent_id: z.ZodString;
7
+ identifiers: z.ZodArray<z.ZodObject<{
8
+ system: z.ZodString;
9
+ value: z.ZodString;
10
+ display: z.ZodOptional<z.ZodString>;
11
+ valid: z.ZodOptional<z.ZodString>;
12
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ }, z.core.$strip>>;
14
+ name: z.ZodString;
15
+ types: z.ZodArray<z.ZodObject<{
16
+ system: z.ZodString;
17
+ value: z.ZodString;
18
+ display: z.ZodOptional<z.ZodString>;
19
+ valid: z.ZodOptional<z.ZodString>;
20
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ }, z.core.$strip>>;
22
+ statuses: z.ZodArray<z.ZodObject<{
23
+ system: z.ZodString;
24
+ value: z.ZodString;
25
+ display: z.ZodOptional<z.ZodString>;
26
+ valid: z.ZodOptional<z.ZodString>;
27
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ }, z.core.$strip>>;
29
+ settings_id: z.ZodString;
30
+ created_at: z.ZodString;
31
+ created_by: z.ZodString;
32
+ updated_at: z.ZodString;
33
+ updated_by: z.ZodString;
34
+ schema_version: z.ZodDefault<z.ZodNumber>;
35
+ }, z.core.$strip>;
36
+ export type Location = z.infer<typeof locationSchema>;
37
+ export declare const LocationMongooseSchema: MongooseSchema;
38
+ export type LocationDocument = InferDocument<typeof locationSchema>;
39
+ export declare const LocationModel: MongooseModel<{
40
+ [x: number]: unknown;
41
+ [x: symbol]: unknown;
42
+ [x: string]: unknown;
43
+ }, {}, {}, {
44
+ id: string;
45
+ }, import("mongoose").Document<unknown, {}, {
46
+ [x: number]: unknown;
47
+ [x: symbol]: unknown;
48
+ [x: string]: unknown;
49
+ }, {
50
+ id: string;
51
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
52
+ [x: number]: unknown;
53
+ [x: symbol]: unknown;
54
+ [x: string]: unknown;
55
+ } & Required<{
56
+ _id: unknown;
57
+ }> & {
58
+ __v: number;
59
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
60
+ id: string;
61
+ }>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
62
+ [x: number]: unknown;
63
+ [x: symbol]: unknown;
64
+ [x: string]: unknown;
65
+ }, import("mongoose").Document<unknown, {}, {
66
+ [x: number]: unknown;
67
+ [x: symbol]: unknown;
68
+ [x: string]: unknown;
69
+ }, {
70
+ id: string;
71
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
72
+ [x: number]: unknown;
73
+ [x: symbol]: unknown;
74
+ [x: string]: unknown;
75
+ } & Required<{
76
+ _id: unknown;
77
+ }> & {
78
+ __v: number;
79
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
80
+ id: string;
81
+ }>, unknown, {
82
+ [x: number]: {};
83
+ [x: symbol]: {};
84
+ [x: string]: {};
85
+ } & Required<{
86
+ _id: unknown;
87
+ }> & {
88
+ __v: number;
89
+ }>, {
90
+ [x: number]: {};
91
+ [x: symbol]: {};
92
+ [x: string]: {};
93
+ } & Required<{
94
+ _id: unknown;
95
+ }> & {
96
+ __v: number;
97
+ }>;
98
+ //# sourceMappingURL=location.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.schema.d.ts","sourceRoot":"","sources":["../../../src/models/location/location.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAK1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,sBAAsB,EAAE,cAAiD,CAAC;AACvF,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,OAAO,cAAc,CAAC,CAAC;AAGpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmD,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ import { toMongooseSchema } from "@nullix/zod-mongoose";
3
+ import { model } from "mongoose";
4
+ import { objectIdSchema } from "../../commons/object-id";
5
+ import { codedConceptSchema } from "../../commons";
6
+ import { timestampSchema } from "../../commons/timestamp";
7
+ export const locationSchema = z.object({
8
+ _id: objectIdSchema,
9
+ parent_id: objectIdSchema,
10
+ identifiers: z.array(codedConceptSchema).nonempty({
11
+ message: "identifiers must contain at least one CodedConcept",
12
+ }),
13
+ name: z.string().min(1, { message: "name is required" }),
14
+ types: z.array(codedConceptSchema).nonempty({
15
+ message: "types must contain at least one CodedConcept",
16
+ }),
17
+ statuses: z.array(codedConceptSchema).nonempty({
18
+ message: "statuses must contain at least one CodedConcept",
19
+ }),
20
+ settings_id: objectIdSchema,
21
+ created_at: timestampSchema,
22
+ created_by: z.string(),
23
+ updated_at: timestampSchema,
24
+ updated_by: z.string(),
25
+ schema_version: z.number().int().positive().default(1),
26
+ });
27
+ export const LocationMongooseSchema = toMongooseSchema(locationSchema);
28
+ const LocationModelName = "locations";
29
+ export const LocationModel = model(LocationModelName, LocationMongooseSchema);
30
+ //# sourceMappingURL=location.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.schema.js","sourceRoot":"","sources":["../../../src/models/location/location.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,EAA8D,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,cAAc;IACnB,SAAS,EAAE,cAAc;IACzB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC;QAChD,OAAO,EAAE,oDAAoD;KAC9D,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC;QAC1C,OAAO,EAAE,8CAA8C;KACxD,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC;QAC7C,OAAO,EAAE,iDAAiD;KAC3D,CAAC;IACF,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,sBAAsB,GAAmB,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAGvF,MAAM,iBAAiB,GAAG,WAAW,CAAC;AACtC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./member.schema";
2
+ export * from "./member-minimal.schema";
3
+ export * from "./member-partial.schema";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/member/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./member.schema";
2
+ export * from "./member-minimal.schema";
3
+ export * from "./member-partial.schema";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/member/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Minimal member schema (omits server-generated fields).
4
+ */
5
+ export declare const memberMinimalSchema: z.ZodObject<{
6
+ organization_id: z.ZodString;
7
+ user_id: z.ZodString;
8
+ role: z.ZodString;
9
+ }, z.core.$strip>;
10
+ export type MemberMinimal = z.infer<typeof memberMinimalSchema>;
11
+ //# sourceMappingURL=member-minimal.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/member/member-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;iBAG9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { memberSchema } from "./member.schema";
2
+ /**
3
+ * Minimal member schema (omits server-generated fields).
4
+ */
5
+ export const memberMinimalSchema = memberSchema.omit({
6
+ id: true,
7
+ created_at: true,
8
+ });
9
+ //# sourceMappingURL=member-minimal.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/member/member-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAe,MAAM,iBAAiB,CAAC;AAE5D;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC,IAAI,CAAC;IACnD,EAAE,EAAE,IAAI;IACR,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Partial member schema (based on minimal, all fields optional).
4
+ */
5
+ export declare const memberPartialSchema: z.ZodObject<{
6
+ organization_id: z.ZodOptional<z.ZodString>;
7
+ user_id: z.ZodOptional<z.ZodString>;
8
+ role: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export type MemberPartial = z.infer<typeof memberPartialSchema>;
11
+ //# sourceMappingURL=member-partial.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/member/member-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;iBAAgC,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { memberMinimalSchema } from "./member-minimal.schema";
2
+ /**
3
+ * Partial member schema (based on minimal, all fields optional).
4
+ */
5
+ export const memberPartialSchema = memberMinimalSchema.partial();
6
+ //# sourceMappingURL=member-partial.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-partial.schema.js","sourceRoot":"","sources":["../../../src/models/member/member-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAsB,MAAM,yBAAyB,CAAC;AAElF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,OAAO,EAAE,CAAC"}