@centricare/contract 0.3.2 → 0.3.5

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.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import z$1, { z } from 'zod';
2
- import * as mongoose from 'mongoose';
3
- import { Model, Schema } from 'mongoose';
2
+ import mongoose, { Schema } from 'mongoose';
4
3
  import { InferDocument } from '@nullix/zod-mongoose';
5
4
 
6
5
  /**
@@ -179,50 +178,1160 @@ declare const addressSchema: z.ZodObject<{
179
178
  }, z.core.$strip>;
180
179
  type Address = z.infer<typeof addressSchema>;
181
180
 
181
+ declare const objectIdSchema: z.ZodString;
182
+ type ObjectId = z.infer<typeof objectIdSchema>;
183
+
184
+ /**
185
+ * Standard base audit/timestamp fields.
186
+ *
187
+ * Includes `_id` and `schema_version` with defaults driven by the version
188
+ * constant each model passes in. All fields are required.
189
+ *
190
+ * @param version - The model's schema version constant (e.g. PATIENT_SCHEMA_VERSION)
191
+ */
192
+ declare const baseSchema: (version: number) => z.ZodObject<{
193
+ _id: z.ZodString;
194
+ created_at: z.ZodString;
195
+ created_by: z.ZodString;
196
+ updated_at: z.ZodString;
197
+ updated_by: z.ZodString;
198
+ schema_version: z.ZodDefault<z.ZodNumber>;
199
+ }, z.core.$strip>;
200
+ type BaseSchema = z.infer<ReturnType<typeof baseSchema>>;
201
+
202
+ /**
203
+ * Base audit/timestamp fields with a required `expired_at` field.
204
+ *
205
+ * For models that track expiration timestamps. Includes `_id` and
206
+ * `schema_version` with a default driven by the version constant each model
207
+ * passes in. All fields are required.
208
+ *
209
+ * @param version - The model's schema version constant
210
+ */
211
+ declare const baseSchemaWithExpiredAt: (version: number) => z.ZodObject<{
212
+ _id: z.ZodString;
213
+ created_at: z.ZodString;
214
+ created_by: z.ZodString;
215
+ updated_at: z.ZodString;
216
+ updated_by: z.ZodString;
217
+ expired_at: z.ZodString;
218
+ schema_version: z.ZodDefault<z.ZodNumber>;
219
+ }, z.core.$strip>;
220
+ type BaseSchemaWithExpiredAt = z.infer<ReturnType<typeof baseSchemaWithExpiredAt>>;
221
+
222
+ /**
223
+ * Current schema version for the Appointment model.
224
+ * Use this constant instead of a literal when setting schema_version.
225
+ */
226
+ declare const APPOINTMENT_SCHEMA_VERSION = 1;
227
+ declare const appointmentSchema: z.ZodObject<{
228
+ _id: z.ZodString;
229
+ created_at: z.ZodString;
230
+ created_by: z.ZodString;
231
+ updated_at: z.ZodString;
232
+ updated_by: z.ZodString;
233
+ schema_version: z.ZodDefault<z.ZodNumber>;
234
+ facility_id: z.ZodString;
235
+ organization_id: z.ZodString;
236
+ identifiers: z.ZodArray<z.ZodObject<{
237
+ system: z.ZodString;
238
+ value: z.ZodString;
239
+ display: z.ZodOptional<z.ZodString>;
240
+ valid: z.ZodOptional<z.ZodString>;
241
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
+ }, z.core.$strip>>;
243
+ patient: z.ZodUnion<readonly [z.ZodObject<{
244
+ image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
245
+ salutation: z.ZodOptional<z.ZodObject<{
246
+ system: z.ZodString;
247
+ value: z.ZodString;
248
+ display: z.ZodOptional<z.ZodString>;
249
+ valid: z.ZodOptional<z.ZodString>;
250
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
251
+ }, z.core.$strip>>;
252
+ organization_id: z.ZodOptional<z.ZodString>;
253
+ registering_facility_id: z.ZodOptional<z.ZodString>;
254
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
+ system: z.ZodString;
256
+ value: z.ZodString;
257
+ display: z.ZodOptional<z.ZodString>;
258
+ valid: z.ZodOptional<z.ZodString>;
259
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
260
+ }, z.core.$strip>>>;
261
+ first_name: z.ZodOptional<z.ZodString>;
262
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
263
+ last_name: z.ZodOptional<z.ZodString>;
264
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
265
+ demographic: z.ZodOptional<z.ZodObject<{
266
+ sex: z.ZodObject<{
267
+ system: z.ZodString;
268
+ value: z.ZodString;
269
+ display: z.ZodOptional<z.ZodString>;
270
+ valid: z.ZodOptional<z.ZodString>;
271
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
+ }, z.core.$strip>;
273
+ religion: z.ZodNullable<z.ZodObject<{
274
+ system: z.ZodString;
275
+ value: z.ZodString;
276
+ display: z.ZodOptional<z.ZodString>;
277
+ valid: z.ZodOptional<z.ZodString>;
278
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
+ }, z.core.$strip>>;
280
+ ethnicity: z.ZodNullable<z.ZodString>;
281
+ place_of_birth: z.ZodString;
282
+ date_of_birth: z.ZodString;
283
+ marital_status: z.ZodObject<{
284
+ system: z.ZodString;
285
+ value: z.ZodString;
286
+ display: z.ZodOptional<z.ZodString>;
287
+ valid: z.ZodOptional<z.ZodString>;
288
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
+ }, z.core.$strip>;
290
+ }, z.core.$strip>>;
291
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
292
+ system: z.ZodString;
293
+ value: z.ZodString;
294
+ display: z.ZodOptional<z.ZodString>;
295
+ valid: z.ZodOptional<z.ZodString>;
296
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
+ }, z.core.$strip>>>;
298
+ contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
299
+ system: z.ZodString;
300
+ value: z.ZodString;
301
+ display: z.ZodOptional<z.ZodString>;
302
+ valid: z.ZodOptional<z.ZodString>;
303
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
304
+ }, z.core.$strip>>>>;
305
+ address: z.ZodOptional<z.ZodObject<{
306
+ street: z.ZodString;
307
+ subdistrict: z.ZodObject<{
308
+ system: z.ZodString;
309
+ value: z.ZodString;
310
+ display: z.ZodOptional<z.ZodString>;
311
+ valid: z.ZodOptional<z.ZodString>;
312
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
313
+ }, z.core.$strip>;
314
+ district: z.ZodObject<{
315
+ system: z.ZodString;
316
+ value: z.ZodString;
317
+ display: z.ZodOptional<z.ZodString>;
318
+ valid: z.ZodOptional<z.ZodString>;
319
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
+ }, z.core.$strip>;
321
+ city: z.ZodObject<{
322
+ system: z.ZodString;
323
+ value: z.ZodString;
324
+ display: z.ZodOptional<z.ZodString>;
325
+ valid: z.ZodOptional<z.ZodString>;
326
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
327
+ }, z.core.$strip>;
328
+ province: z.ZodObject<{
329
+ system: z.ZodString;
330
+ value: z.ZodString;
331
+ display: z.ZodOptional<z.ZodString>;
332
+ valid: z.ZodOptional<z.ZodString>;
333
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
334
+ }, z.core.$strip>;
335
+ postal_code: z.ZodOptional<z.ZodString>;
336
+ }, z.core.$strip>>;
337
+ }, z.core.$strip>, z.ZodString]>;
338
+ queue_number_id: z.ZodString;
339
+ practitioner_id: z.ZodString;
340
+ unit_id: z.ZodString;
341
+ date: z.ZodString;
342
+ session: z.ZodString;
343
+ payer_type: z.ZodString;
344
+ method: z.ZodObject<{
345
+ system: z.ZodString;
346
+ value: z.ZodString;
347
+ display: z.ZodOptional<z.ZodString>;
348
+ valid: z.ZodOptional<z.ZodString>;
349
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
+ }, z.core.$strip>;
351
+ complaint: z.ZodString;
352
+ statuses: z.ZodArray<z.ZodObject<{
353
+ system: z.ZodString;
354
+ value: z.ZodString;
355
+ display: z.ZodOptional<z.ZodString>;
356
+ valid: z.ZodOptional<z.ZodString>;
357
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
358
+ }, z.core.$strip>>;
359
+ cancel_metadata: z.ZodObject<{
360
+ reason: z.ZodNullable<z.ZodString>;
361
+ user_id: z.ZodNullable<z.ZodString>;
362
+ timestamp: z.ZodNullable<z.ZodString>;
363
+ }, z.core.$strip>;
364
+ register_metadata: z.ZodObject<{
365
+ reason: z.ZodNullable<z.ZodString>;
366
+ user_id: z.ZodNullable<z.ZodString>;
367
+ timestamp: z.ZodNullable<z.ZodString>;
368
+ }, z.core.$strip>;
369
+ }, z.core.$strip>;
370
+ type Appointment = z.infer<typeof appointmentSchema>;
371
+ declare const AppointmentMongooseSchema: Schema;
372
+ type AppointmentDocument = InferDocument<typeof appointmentSchema>;
373
+ declare const AppointmentModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
374
+
375
+ /**
376
+ * Minimal Appointment schema (omits server-generated fields).
377
+ */
378
+ declare const appointmentMinimalSchema: z.ZodObject<{
379
+ date: z.ZodString;
380
+ patient: z.ZodUnion<readonly [z.ZodObject<{
381
+ image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
382
+ salutation: z.ZodOptional<z.ZodObject<{
383
+ system: z.ZodString;
384
+ value: z.ZodString;
385
+ display: z.ZodOptional<z.ZodString>;
386
+ valid: z.ZodOptional<z.ZodString>;
387
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
+ }, z.core.$strip>>;
389
+ organization_id: z.ZodOptional<z.ZodString>;
390
+ registering_facility_id: z.ZodOptional<z.ZodString>;
391
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
+ system: z.ZodString;
393
+ value: z.ZodString;
394
+ display: z.ZodOptional<z.ZodString>;
395
+ valid: z.ZodOptional<z.ZodString>;
396
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
397
+ }, z.core.$strip>>>;
398
+ first_name: z.ZodOptional<z.ZodString>;
399
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
400
+ last_name: z.ZodOptional<z.ZodString>;
401
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
402
+ demographic: z.ZodOptional<z.ZodObject<{
403
+ sex: z.ZodObject<{
404
+ system: z.ZodString;
405
+ value: z.ZodString;
406
+ display: z.ZodOptional<z.ZodString>;
407
+ valid: z.ZodOptional<z.ZodString>;
408
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
409
+ }, z.core.$strip>;
410
+ religion: z.ZodNullable<z.ZodObject<{
411
+ system: z.ZodString;
412
+ value: z.ZodString;
413
+ display: z.ZodOptional<z.ZodString>;
414
+ valid: z.ZodOptional<z.ZodString>;
415
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
416
+ }, z.core.$strip>>;
417
+ ethnicity: z.ZodNullable<z.ZodString>;
418
+ place_of_birth: z.ZodString;
419
+ date_of_birth: z.ZodString;
420
+ marital_status: z.ZodObject<{
421
+ system: z.ZodString;
422
+ value: z.ZodString;
423
+ display: z.ZodOptional<z.ZodString>;
424
+ valid: z.ZodOptional<z.ZodString>;
425
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
426
+ }, z.core.$strip>;
427
+ }, z.core.$strip>>;
428
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
+ system: z.ZodString;
430
+ value: z.ZodString;
431
+ display: z.ZodOptional<z.ZodString>;
432
+ valid: z.ZodOptional<z.ZodString>;
433
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
434
+ }, z.core.$strip>>>;
435
+ contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
436
+ system: z.ZodString;
437
+ value: z.ZodString;
438
+ display: z.ZodOptional<z.ZodString>;
439
+ valid: z.ZodOptional<z.ZodString>;
440
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
441
+ }, z.core.$strip>>>>;
442
+ address: z.ZodOptional<z.ZodObject<{
443
+ street: z.ZodString;
444
+ subdistrict: z.ZodObject<{
445
+ system: z.ZodString;
446
+ value: z.ZodString;
447
+ display: z.ZodOptional<z.ZodString>;
448
+ valid: z.ZodOptional<z.ZodString>;
449
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
450
+ }, z.core.$strip>;
451
+ district: z.ZodObject<{
452
+ system: z.ZodString;
453
+ value: z.ZodString;
454
+ display: z.ZodOptional<z.ZodString>;
455
+ valid: z.ZodOptional<z.ZodString>;
456
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
457
+ }, z.core.$strip>;
458
+ city: z.ZodObject<{
459
+ system: z.ZodString;
460
+ value: z.ZodString;
461
+ display: z.ZodOptional<z.ZodString>;
462
+ valid: z.ZodOptional<z.ZodString>;
463
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
464
+ }, z.core.$strip>;
465
+ province: z.ZodObject<{
466
+ system: z.ZodString;
467
+ value: z.ZodString;
468
+ display: z.ZodOptional<z.ZodString>;
469
+ valid: z.ZodOptional<z.ZodString>;
470
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
471
+ }, z.core.$strip>;
472
+ postal_code: z.ZodOptional<z.ZodString>;
473
+ }, z.core.$strip>>;
474
+ }, z.core.$strip>, z.ZodString]>;
475
+ organization_id: z.ZodString;
476
+ identifiers: z.ZodArray<z.ZodObject<{
477
+ system: z.ZodString;
478
+ value: z.ZodString;
479
+ display: z.ZodOptional<z.ZodString>;
480
+ valid: z.ZodOptional<z.ZodString>;
481
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
+ }, z.core.$strip>>;
483
+ statuses: z.ZodArray<z.ZodObject<{
484
+ system: z.ZodString;
485
+ value: z.ZodString;
486
+ display: z.ZodOptional<z.ZodString>;
487
+ valid: z.ZodOptional<z.ZodString>;
488
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
489
+ }, z.core.$strip>>;
490
+ session: z.ZodString;
491
+ facility_id: z.ZodString;
492
+ queue_number_id: z.ZodString;
493
+ practitioner_id: z.ZodString;
494
+ unit_id: z.ZodString;
495
+ payer_type: z.ZodString;
496
+ method: z.ZodObject<{
497
+ system: z.ZodString;
498
+ value: z.ZodString;
499
+ display: z.ZodOptional<z.ZodString>;
500
+ valid: z.ZodOptional<z.ZodString>;
501
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
502
+ }, z.core.$strip>;
503
+ complaint: z.ZodString;
504
+ cancel_metadata: z.ZodObject<{
505
+ reason: z.ZodNullable<z.ZodString>;
506
+ user_id: z.ZodNullable<z.ZodString>;
507
+ timestamp: z.ZodNullable<z.ZodString>;
508
+ }, z.core.$strip>;
509
+ register_metadata: z.ZodObject<{
510
+ reason: z.ZodNullable<z.ZodString>;
511
+ user_id: z.ZodNullable<z.ZodString>;
512
+ timestamp: z.ZodNullable<z.ZodString>;
513
+ }, z.core.$strip>;
514
+ }, z.core.$strip>;
515
+ type AppointmentMinimal = z.infer<typeof appointmentMinimalSchema>;
516
+
517
+ /**
518
+ * Partial Appointment schema (based on minimal, all optional).
519
+ */
520
+ declare const appointmentPartialSchema: z.ZodObject<{
521
+ date: z.ZodOptional<z.ZodString>;
522
+ patient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
523
+ image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
524
+ salutation: z.ZodOptional<z.ZodObject<{
525
+ system: z.ZodString;
526
+ value: z.ZodString;
527
+ display: z.ZodOptional<z.ZodString>;
528
+ valid: z.ZodOptional<z.ZodString>;
529
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
530
+ }, z.core.$strip>>;
531
+ organization_id: z.ZodOptional<z.ZodString>;
532
+ registering_facility_id: z.ZodOptional<z.ZodString>;
533
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
534
+ system: z.ZodString;
535
+ value: z.ZodString;
536
+ display: z.ZodOptional<z.ZodString>;
537
+ valid: z.ZodOptional<z.ZodString>;
538
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
539
+ }, z.core.$strip>>>;
540
+ first_name: z.ZodOptional<z.ZodString>;
541
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
542
+ last_name: z.ZodOptional<z.ZodString>;
543
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
544
+ demographic: z.ZodOptional<z.ZodObject<{
545
+ sex: z.ZodObject<{
546
+ system: z.ZodString;
547
+ value: z.ZodString;
548
+ display: z.ZodOptional<z.ZodString>;
549
+ valid: z.ZodOptional<z.ZodString>;
550
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
551
+ }, z.core.$strip>;
552
+ religion: z.ZodNullable<z.ZodObject<{
553
+ system: z.ZodString;
554
+ value: z.ZodString;
555
+ display: z.ZodOptional<z.ZodString>;
556
+ valid: z.ZodOptional<z.ZodString>;
557
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
558
+ }, z.core.$strip>>;
559
+ ethnicity: z.ZodNullable<z.ZodString>;
560
+ place_of_birth: z.ZodString;
561
+ date_of_birth: z.ZodString;
562
+ marital_status: z.ZodObject<{
563
+ system: z.ZodString;
564
+ value: z.ZodString;
565
+ display: z.ZodOptional<z.ZodString>;
566
+ valid: z.ZodOptional<z.ZodString>;
567
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
568
+ }, z.core.$strip>;
569
+ }, z.core.$strip>>;
570
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
571
+ system: z.ZodString;
572
+ value: z.ZodString;
573
+ display: z.ZodOptional<z.ZodString>;
574
+ valid: z.ZodOptional<z.ZodString>;
575
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
576
+ }, z.core.$strip>>>;
577
+ contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
578
+ system: z.ZodString;
579
+ value: z.ZodString;
580
+ display: z.ZodOptional<z.ZodString>;
581
+ valid: z.ZodOptional<z.ZodString>;
582
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
583
+ }, z.core.$strip>>>>;
584
+ address: z.ZodOptional<z.ZodObject<{
585
+ street: z.ZodString;
586
+ subdistrict: z.ZodObject<{
587
+ system: z.ZodString;
588
+ value: z.ZodString;
589
+ display: z.ZodOptional<z.ZodString>;
590
+ valid: z.ZodOptional<z.ZodString>;
591
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
592
+ }, z.core.$strip>;
593
+ district: z.ZodObject<{
594
+ system: z.ZodString;
595
+ value: z.ZodString;
596
+ display: z.ZodOptional<z.ZodString>;
597
+ valid: z.ZodOptional<z.ZodString>;
598
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
599
+ }, z.core.$strip>;
600
+ city: z.ZodObject<{
601
+ system: z.ZodString;
602
+ value: z.ZodString;
603
+ display: z.ZodOptional<z.ZodString>;
604
+ valid: z.ZodOptional<z.ZodString>;
605
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
606
+ }, z.core.$strip>;
607
+ province: z.ZodObject<{
608
+ system: z.ZodString;
609
+ value: z.ZodString;
610
+ display: z.ZodOptional<z.ZodString>;
611
+ valid: z.ZodOptional<z.ZodString>;
612
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
613
+ }, z.core.$strip>;
614
+ postal_code: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$strip>>;
616
+ }, z.core.$strip>, z.ZodString]>>;
617
+ organization_id: z.ZodOptional<z.ZodString>;
618
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
619
+ system: z.ZodString;
620
+ value: z.ZodString;
621
+ display: z.ZodOptional<z.ZodString>;
622
+ valid: z.ZodOptional<z.ZodString>;
623
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
624
+ }, z.core.$strip>>>;
625
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
626
+ system: z.ZodString;
627
+ value: z.ZodString;
628
+ display: z.ZodOptional<z.ZodString>;
629
+ valid: z.ZodOptional<z.ZodString>;
630
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
631
+ }, z.core.$strip>>>;
632
+ session: z.ZodOptional<z.ZodString>;
633
+ facility_id: z.ZodOptional<z.ZodString>;
634
+ queue_number_id: z.ZodOptional<z.ZodString>;
635
+ practitioner_id: z.ZodOptional<z.ZodString>;
636
+ unit_id: z.ZodOptional<z.ZodString>;
637
+ payer_type: z.ZodOptional<z.ZodString>;
638
+ method: z.ZodOptional<z.ZodObject<{
639
+ system: z.ZodString;
640
+ value: z.ZodString;
641
+ display: z.ZodOptional<z.ZodString>;
642
+ valid: z.ZodOptional<z.ZodString>;
643
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
644
+ }, z.core.$strip>>;
645
+ complaint: z.ZodOptional<z.ZodString>;
646
+ cancel_metadata: z.ZodOptional<z.ZodObject<{
647
+ reason: z.ZodNullable<z.ZodString>;
648
+ user_id: z.ZodNullable<z.ZodString>;
649
+ timestamp: z.ZodNullable<z.ZodString>;
650
+ }, z.core.$strip>>;
651
+ register_metadata: z.ZodOptional<z.ZodObject<{
652
+ reason: z.ZodNullable<z.ZodString>;
653
+ user_id: z.ZodNullable<z.ZodString>;
654
+ timestamp: z.ZodNullable<z.ZodString>;
655
+ }, z.core.$strip>>;
656
+ }, z.core.$strip>;
657
+ type AppointmentPartial = z.infer<typeof appointmentPartialSchema>;
658
+
659
+ /**
660
+ * Current schema version for the Encounter model.
661
+ * Use this constant instead of a literal when setting schema_version.
662
+ */
663
+ declare const ENCOUNTER_SCHEMA_VERSION = 1;
664
+ declare const encounterSchema: z.ZodObject<{
665
+ _id: z.ZodString;
666
+ created_at: z.ZodString;
667
+ created_by: z.ZodString;
668
+ updated_at: z.ZodString;
669
+ updated_by: z.ZodString;
670
+ schema_version: z.ZodDefault<z.ZodNumber>;
671
+ facility_id: z.ZodString;
672
+ organization_id: z.ZodString;
673
+ identifiers: z.ZodArray<z.ZodObject<{
674
+ system: z.ZodString;
675
+ value: z.ZodString;
676
+ display: z.ZodOptional<z.ZodString>;
677
+ valid: z.ZodOptional<z.ZodString>;
678
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
679
+ }, z.core.$strip>>;
680
+ type: z.ZodObject<{
681
+ system: z.ZodString;
682
+ value: z.ZodString;
683
+ display: z.ZodOptional<z.ZodString>;
684
+ valid: z.ZodOptional<z.ZodString>;
685
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
686
+ }, z.core.$strip>;
687
+ appointment_id: z.ZodNullable<z.ZodString>;
688
+ patient: z.ZodUnion<readonly [z.ZodObject<{
689
+ image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
690
+ salutation: z.ZodOptional<z.ZodObject<{
691
+ system: z.ZodString;
692
+ value: z.ZodString;
693
+ display: z.ZodOptional<z.ZodString>;
694
+ valid: z.ZodOptional<z.ZodString>;
695
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
696
+ }, z.core.$strip>>;
697
+ organization_id: z.ZodOptional<z.ZodString>;
698
+ registering_facility_id: z.ZodOptional<z.ZodString>;
699
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
700
+ system: z.ZodString;
701
+ value: z.ZodString;
702
+ display: z.ZodOptional<z.ZodString>;
703
+ valid: z.ZodOptional<z.ZodString>;
704
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
705
+ }, z.core.$strip>>>;
706
+ first_name: z.ZodOptional<z.ZodString>;
707
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
708
+ last_name: z.ZodOptional<z.ZodString>;
709
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
710
+ demographic: z.ZodOptional<z.ZodObject<{
711
+ sex: z.ZodObject<{
712
+ system: z.ZodString;
713
+ value: z.ZodString;
714
+ display: z.ZodOptional<z.ZodString>;
715
+ valid: z.ZodOptional<z.ZodString>;
716
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
717
+ }, z.core.$strip>;
718
+ religion: z.ZodNullable<z.ZodObject<{
719
+ system: z.ZodString;
720
+ value: z.ZodString;
721
+ display: z.ZodOptional<z.ZodString>;
722
+ valid: z.ZodOptional<z.ZodString>;
723
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
724
+ }, z.core.$strip>>;
725
+ ethnicity: z.ZodNullable<z.ZodString>;
726
+ place_of_birth: z.ZodString;
727
+ date_of_birth: z.ZodString;
728
+ marital_status: z.ZodObject<{
729
+ system: z.ZodString;
730
+ value: z.ZodString;
731
+ display: z.ZodOptional<z.ZodString>;
732
+ valid: z.ZodOptional<z.ZodString>;
733
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
734
+ }, z.core.$strip>;
735
+ }, z.core.$strip>>;
736
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
737
+ system: z.ZodString;
738
+ value: z.ZodString;
739
+ display: z.ZodOptional<z.ZodString>;
740
+ valid: z.ZodOptional<z.ZodString>;
741
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
742
+ }, z.core.$strip>>>;
743
+ contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
744
+ system: z.ZodString;
745
+ value: z.ZodString;
746
+ display: z.ZodOptional<z.ZodString>;
747
+ valid: z.ZodOptional<z.ZodString>;
748
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
749
+ }, z.core.$strip>>>>;
750
+ address: z.ZodOptional<z.ZodObject<{
751
+ street: z.ZodString;
752
+ subdistrict: z.ZodObject<{
753
+ system: z.ZodString;
754
+ value: z.ZodString;
755
+ display: z.ZodOptional<z.ZodString>;
756
+ valid: z.ZodOptional<z.ZodString>;
757
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
758
+ }, z.core.$strip>;
759
+ district: z.ZodObject<{
760
+ system: z.ZodString;
761
+ value: z.ZodString;
762
+ display: z.ZodOptional<z.ZodString>;
763
+ valid: z.ZodOptional<z.ZodString>;
764
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
765
+ }, z.core.$strip>;
766
+ city: z.ZodObject<{
767
+ system: z.ZodString;
768
+ value: z.ZodString;
769
+ display: z.ZodOptional<z.ZodString>;
770
+ valid: z.ZodOptional<z.ZodString>;
771
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
772
+ }, z.core.$strip>;
773
+ province: z.ZodObject<{
774
+ system: z.ZodString;
775
+ value: z.ZodString;
776
+ display: z.ZodOptional<z.ZodString>;
777
+ valid: z.ZodOptional<z.ZodString>;
778
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
779
+ }, z.core.$strip>;
780
+ postal_code: z.ZodOptional<z.ZodString>;
781
+ }, z.core.$strip>>;
782
+ }, z.core.$strip>, z.ZodString]>;
783
+ unit_id: z.ZodString;
784
+ practitioner_id: z.ZodNullable<z.ZodString>;
785
+ date: z.ZodString;
786
+ session: z.ZodString;
787
+ queue_number_id: z.ZodString;
788
+ statuses: z.ZodArray<z.ZodObject<{
789
+ system: z.ZodString;
790
+ value: z.ZodString;
791
+ display: z.ZodOptional<z.ZodString>;
792
+ valid: z.ZodOptional<z.ZodString>;
793
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
794
+ }, z.core.$strip>>;
795
+ cancel_metadata: z.ZodObject<{
796
+ reason: z.ZodNullable<z.ZodString>;
797
+ user_id: z.ZodNullable<z.ZodString>;
798
+ timestamp: z.ZodNullable<z.ZodString>;
799
+ }, z.core.$strip>;
800
+ discharge_metadata: z.ZodObject<{
801
+ reason: z.ZodNullable<z.ZodString>;
802
+ user_id: z.ZodNullable<z.ZodString>;
803
+ timestamp: z.ZodNullable<z.ZodString>;
804
+ }, z.core.$strip>;
805
+ }, z.core.$strip>;
806
+ type Encounter = z.infer<typeof encounterSchema>;
807
+ declare const EncounterMongooseSchema: Schema;
808
+ type EncounterDocument = InferDocument<typeof encounterSchema>;
809
+ declare const EncounterModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
810
+
811
+ /**
812
+ * Minimal Encounter schema (omits server-generated fields).
813
+ */
814
+ declare const encounterMinimalSchema: z.ZodObject<{
815
+ type: z.ZodObject<{
816
+ system: z.ZodString;
817
+ value: z.ZodString;
818
+ display: z.ZodOptional<z.ZodString>;
819
+ valid: z.ZodOptional<z.ZodString>;
820
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
821
+ }, z.core.$strip>;
822
+ date: z.ZodString;
823
+ patient: z.ZodUnion<readonly [z.ZodObject<{
824
+ image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
825
+ salutation: z.ZodOptional<z.ZodObject<{
826
+ system: z.ZodString;
827
+ value: z.ZodString;
828
+ display: z.ZodOptional<z.ZodString>;
829
+ valid: z.ZodOptional<z.ZodString>;
830
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
831
+ }, z.core.$strip>>;
832
+ organization_id: z.ZodOptional<z.ZodString>;
833
+ registering_facility_id: z.ZodOptional<z.ZodString>;
834
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
+ system: z.ZodString;
836
+ value: z.ZodString;
837
+ display: z.ZodOptional<z.ZodString>;
838
+ valid: z.ZodOptional<z.ZodString>;
839
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
840
+ }, z.core.$strip>>>;
841
+ first_name: z.ZodOptional<z.ZodString>;
842
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
843
+ last_name: z.ZodOptional<z.ZodString>;
844
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
845
+ demographic: z.ZodOptional<z.ZodObject<{
846
+ sex: z.ZodObject<{
847
+ system: z.ZodString;
848
+ value: z.ZodString;
849
+ display: z.ZodOptional<z.ZodString>;
850
+ valid: z.ZodOptional<z.ZodString>;
851
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
852
+ }, z.core.$strip>;
853
+ religion: z.ZodNullable<z.ZodObject<{
854
+ system: z.ZodString;
855
+ value: z.ZodString;
856
+ display: z.ZodOptional<z.ZodString>;
857
+ valid: z.ZodOptional<z.ZodString>;
858
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
859
+ }, z.core.$strip>>;
860
+ ethnicity: z.ZodNullable<z.ZodString>;
861
+ place_of_birth: z.ZodString;
862
+ date_of_birth: z.ZodString;
863
+ marital_status: z.ZodObject<{
864
+ system: z.ZodString;
865
+ value: z.ZodString;
866
+ display: z.ZodOptional<z.ZodString>;
867
+ valid: z.ZodOptional<z.ZodString>;
868
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
869
+ }, z.core.$strip>;
870
+ }, z.core.$strip>>;
871
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
872
+ system: z.ZodString;
873
+ value: z.ZodString;
874
+ display: z.ZodOptional<z.ZodString>;
875
+ valid: z.ZodOptional<z.ZodString>;
876
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
877
+ }, z.core.$strip>>>;
878
+ contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
879
+ system: z.ZodString;
880
+ value: z.ZodString;
881
+ display: z.ZodOptional<z.ZodString>;
882
+ valid: z.ZodOptional<z.ZodString>;
883
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
884
+ }, z.core.$strip>>>>;
885
+ address: z.ZodOptional<z.ZodObject<{
886
+ street: z.ZodString;
887
+ subdistrict: z.ZodObject<{
888
+ system: z.ZodString;
889
+ value: z.ZodString;
890
+ display: z.ZodOptional<z.ZodString>;
891
+ valid: z.ZodOptional<z.ZodString>;
892
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
893
+ }, z.core.$strip>;
894
+ district: z.ZodObject<{
895
+ system: z.ZodString;
896
+ value: z.ZodString;
897
+ display: z.ZodOptional<z.ZodString>;
898
+ valid: z.ZodOptional<z.ZodString>;
899
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
900
+ }, z.core.$strip>;
901
+ city: z.ZodObject<{
902
+ system: z.ZodString;
903
+ value: z.ZodString;
904
+ display: z.ZodOptional<z.ZodString>;
905
+ valid: z.ZodOptional<z.ZodString>;
906
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
907
+ }, z.core.$strip>;
908
+ province: z.ZodObject<{
909
+ system: z.ZodString;
910
+ value: z.ZodString;
911
+ display: z.ZodOptional<z.ZodString>;
912
+ valid: z.ZodOptional<z.ZodString>;
913
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
914
+ }, z.core.$strip>;
915
+ postal_code: z.ZodOptional<z.ZodString>;
916
+ }, z.core.$strip>>;
917
+ }, z.core.$strip>, z.ZodString]>;
918
+ organization_id: z.ZodString;
919
+ identifiers: z.ZodArray<z.ZodObject<{
920
+ system: z.ZodString;
921
+ value: z.ZodString;
922
+ display: z.ZodOptional<z.ZodString>;
923
+ valid: z.ZodOptional<z.ZodString>;
924
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
925
+ }, z.core.$strip>>;
926
+ statuses: z.ZodArray<z.ZodObject<{
927
+ system: z.ZodString;
928
+ value: z.ZodString;
929
+ display: z.ZodOptional<z.ZodString>;
930
+ valid: z.ZodOptional<z.ZodString>;
931
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
932
+ }, z.core.$strip>>;
933
+ session: z.ZodString;
934
+ facility_id: z.ZodString;
935
+ queue_number_id: z.ZodString;
936
+ practitioner_id: z.ZodNullable<z.ZodString>;
937
+ unit_id: z.ZodString;
938
+ cancel_metadata: z.ZodObject<{
939
+ reason: z.ZodNullable<z.ZodString>;
940
+ user_id: z.ZodNullable<z.ZodString>;
941
+ timestamp: z.ZodNullable<z.ZodString>;
942
+ }, z.core.$strip>;
943
+ appointment_id: z.ZodNullable<z.ZodString>;
944
+ discharge_metadata: z.ZodObject<{
945
+ reason: z.ZodNullable<z.ZodString>;
946
+ user_id: z.ZodNullable<z.ZodString>;
947
+ timestamp: z.ZodNullable<z.ZodString>;
948
+ }, z.core.$strip>;
949
+ }, z.core.$strip>;
950
+ type EncounterMinimal = z.infer<typeof encounterMinimalSchema>;
951
+
952
+ /**
953
+ * Partial Encounter schema (based on minimal, all optional).
954
+ */
955
+ declare const encounterPartialSchema: z.ZodObject<{
956
+ type: z.ZodOptional<z.ZodObject<{
957
+ system: z.ZodString;
958
+ value: z.ZodString;
959
+ display: z.ZodOptional<z.ZodString>;
960
+ valid: z.ZodOptional<z.ZodString>;
961
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
962
+ }, z.core.$strip>>;
963
+ date: z.ZodOptional<z.ZodString>;
964
+ patient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
965
+ image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
966
+ salutation: z.ZodOptional<z.ZodObject<{
967
+ system: z.ZodString;
968
+ value: z.ZodString;
969
+ display: z.ZodOptional<z.ZodString>;
970
+ valid: z.ZodOptional<z.ZodString>;
971
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
972
+ }, z.core.$strip>>;
973
+ organization_id: z.ZodOptional<z.ZodString>;
974
+ registering_facility_id: z.ZodOptional<z.ZodString>;
975
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
976
+ system: z.ZodString;
977
+ value: z.ZodString;
978
+ display: z.ZodOptional<z.ZodString>;
979
+ valid: z.ZodOptional<z.ZodString>;
980
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
981
+ }, z.core.$strip>>>;
982
+ first_name: z.ZodOptional<z.ZodString>;
983
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
984
+ last_name: z.ZodOptional<z.ZodString>;
985
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
986
+ demographic: z.ZodOptional<z.ZodObject<{
987
+ sex: z.ZodObject<{
988
+ system: z.ZodString;
989
+ value: z.ZodString;
990
+ display: z.ZodOptional<z.ZodString>;
991
+ valid: z.ZodOptional<z.ZodString>;
992
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
993
+ }, z.core.$strip>;
994
+ religion: z.ZodNullable<z.ZodObject<{
995
+ system: z.ZodString;
996
+ value: z.ZodString;
997
+ display: z.ZodOptional<z.ZodString>;
998
+ valid: z.ZodOptional<z.ZodString>;
999
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1000
+ }, z.core.$strip>>;
1001
+ ethnicity: z.ZodNullable<z.ZodString>;
1002
+ place_of_birth: z.ZodString;
1003
+ date_of_birth: z.ZodString;
1004
+ marital_status: z.ZodObject<{
1005
+ system: z.ZodString;
1006
+ value: z.ZodString;
1007
+ display: z.ZodOptional<z.ZodString>;
1008
+ valid: z.ZodOptional<z.ZodString>;
1009
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1010
+ }, z.core.$strip>;
1011
+ }, z.core.$strip>>;
1012
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1013
+ system: z.ZodString;
1014
+ value: z.ZodString;
1015
+ display: z.ZodOptional<z.ZodString>;
1016
+ valid: z.ZodOptional<z.ZodString>;
1017
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1018
+ }, z.core.$strip>>>;
1019
+ contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
+ system: z.ZodString;
1021
+ value: z.ZodString;
1022
+ display: z.ZodOptional<z.ZodString>;
1023
+ valid: z.ZodOptional<z.ZodString>;
1024
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1025
+ }, z.core.$strip>>>>;
1026
+ address: z.ZodOptional<z.ZodObject<{
1027
+ street: z.ZodString;
1028
+ subdistrict: z.ZodObject<{
1029
+ system: z.ZodString;
1030
+ value: z.ZodString;
1031
+ display: z.ZodOptional<z.ZodString>;
1032
+ valid: z.ZodOptional<z.ZodString>;
1033
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1034
+ }, z.core.$strip>;
1035
+ district: z.ZodObject<{
1036
+ system: z.ZodString;
1037
+ value: z.ZodString;
1038
+ display: z.ZodOptional<z.ZodString>;
1039
+ valid: z.ZodOptional<z.ZodString>;
1040
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1041
+ }, z.core.$strip>;
1042
+ city: z.ZodObject<{
1043
+ system: z.ZodString;
1044
+ value: z.ZodString;
1045
+ display: z.ZodOptional<z.ZodString>;
1046
+ valid: z.ZodOptional<z.ZodString>;
1047
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1048
+ }, z.core.$strip>;
1049
+ province: z.ZodObject<{
1050
+ system: z.ZodString;
1051
+ value: z.ZodString;
1052
+ display: z.ZodOptional<z.ZodString>;
1053
+ valid: z.ZodOptional<z.ZodString>;
1054
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1055
+ }, z.core.$strip>;
1056
+ postal_code: z.ZodOptional<z.ZodString>;
1057
+ }, z.core.$strip>>;
1058
+ }, z.core.$strip>, z.ZodString]>>;
1059
+ organization_id: z.ZodOptional<z.ZodString>;
1060
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1061
+ system: z.ZodString;
1062
+ value: z.ZodString;
1063
+ display: z.ZodOptional<z.ZodString>;
1064
+ valid: z.ZodOptional<z.ZodString>;
1065
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1066
+ }, z.core.$strip>>>;
1067
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1068
+ system: z.ZodString;
1069
+ value: z.ZodString;
1070
+ display: z.ZodOptional<z.ZodString>;
1071
+ valid: z.ZodOptional<z.ZodString>;
1072
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1073
+ }, z.core.$strip>>>;
1074
+ session: z.ZodOptional<z.ZodString>;
1075
+ facility_id: z.ZodOptional<z.ZodString>;
1076
+ queue_number_id: z.ZodOptional<z.ZodString>;
1077
+ practitioner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1078
+ unit_id: z.ZodOptional<z.ZodString>;
1079
+ cancel_metadata: z.ZodOptional<z.ZodObject<{
1080
+ reason: z.ZodNullable<z.ZodString>;
1081
+ user_id: z.ZodNullable<z.ZodString>;
1082
+ timestamp: z.ZodNullable<z.ZodString>;
1083
+ }, z.core.$strip>>;
1084
+ appointment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1085
+ discharge_metadata: z.ZodOptional<z.ZodObject<{
1086
+ reason: z.ZodNullable<z.ZodString>;
1087
+ user_id: z.ZodNullable<z.ZodString>;
1088
+ timestamp: z.ZodNullable<z.ZodString>;
1089
+ }, z.core.$strip>>;
1090
+ }, z.core.$strip>;
1091
+ type EncounterPartial = z.infer<typeof encounterPartialSchema>;
1092
+
1093
+ /**
1094
+ * Current schema version for the EncounterAdditional model.
1095
+ * Use this constant instead of a literal when setting schema_version.
1096
+ */
1097
+ declare const ENCOUNTER_ADDITIONAL_SCHEMA_VERSION = 1;
1098
+ declare const encounterAdditionalSchema: z.ZodObject<{
1099
+ _id: z.ZodString;
1100
+ created_at: z.ZodString;
1101
+ created_by: z.ZodString;
1102
+ updated_at: z.ZodString;
1103
+ updated_by: z.ZodString;
1104
+ schema_version: z.ZodDefault<z.ZodNumber>;
1105
+ encounter_id: z.ZodString;
1106
+ type: z.ZodObject<{
1107
+ system: z.ZodString;
1108
+ value: z.ZodString;
1109
+ display: z.ZodOptional<z.ZodString>;
1110
+ valid: z.ZodOptional<z.ZodString>;
1111
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1112
+ }, z.core.$strip>;
1113
+ data: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>]>;
1114
+ }, z.core.$strip>;
1115
+ type EncounterAdditional = z.infer<typeof encounterAdditionalSchema>;
1116
+ declare const EncounterAdditionalMongooseSchema: Schema;
1117
+ type EncounterAdditionalDocument = InferDocument<typeof encounterAdditionalSchema>;
1118
+ declare const EncounterAdditionalModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1119
+
1120
+ /**
1121
+ * Minimal EncounterAdditional schema (omits server-generated fields).
1122
+ */
1123
+ declare const encounterAdditionalMinimalSchema: z.ZodObject<{
1124
+ type: z.ZodObject<{
1125
+ system: z.ZodString;
1126
+ value: z.ZodString;
1127
+ display: z.ZodOptional<z.ZodString>;
1128
+ valid: z.ZodOptional<z.ZodString>;
1129
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1130
+ }, z.core.$strip>;
1131
+ data: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>]>;
1132
+ encounter_id: z.ZodString;
1133
+ }, z.core.$strip>;
1134
+ type EncounterAdditionalMinimal = z.infer<typeof encounterAdditionalMinimalSchema>;
1135
+
1136
+ /**
1137
+ * Partial EncounterAdditional schema (based on minimal, all optional).
1138
+ */
1139
+ declare const encounterAdditionalPartialSchema: z.ZodObject<{
1140
+ type: z.ZodOptional<z.ZodObject<{
1141
+ system: z.ZodString;
1142
+ value: z.ZodString;
1143
+ display: z.ZodOptional<z.ZodString>;
1144
+ valid: z.ZodOptional<z.ZodString>;
1145
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1146
+ }, z.core.$strip>>;
1147
+ data: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>]>>;
1148
+ encounter_id: z.ZodOptional<z.ZodString>;
1149
+ }, z.core.$strip>;
1150
+ type EncounterAdditionalPartial = z.infer<typeof encounterAdditionalPartialSchema>;
1151
+
1152
+ /**
1153
+ * Current schema version for the MedicalRecord model.
1154
+ * Use this constant instead of a literal when setting schema_version.
1155
+ */
1156
+ declare const MEDICAL_RECORD_SCHEMA_VERSION = 1;
1157
+ declare const medicalRecordSchema: z.ZodObject<{
1158
+ _id: z.ZodString;
1159
+ created_at: z.ZodString;
1160
+ created_by: z.ZodString;
1161
+ updated_at: z.ZodString;
1162
+ updated_by: z.ZodString;
1163
+ schema_version: z.ZodDefault<z.ZodNumber>;
1164
+ type: z.ZodObject<{
1165
+ system: z.ZodString;
1166
+ value: z.ZodString;
1167
+ display: z.ZodOptional<z.ZodString>;
1168
+ valid: z.ZodOptional<z.ZodString>;
1169
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1170
+ }, z.core.$strip>;
1171
+ identifiers: z.ZodArray<z.ZodObject<{
1172
+ system: z.ZodString;
1173
+ value: z.ZodString;
1174
+ display: z.ZodOptional<z.ZodString>;
1175
+ valid: z.ZodOptional<z.ZodString>;
1176
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1177
+ }, z.core.$strip>>;
1178
+ statuses: z.ZodArray<z.ZodObject<{
1179
+ system: z.ZodString;
1180
+ value: z.ZodString;
1181
+ display: z.ZodOptional<z.ZodString>;
1182
+ valid: z.ZodOptional<z.ZodString>;
1183
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1184
+ }, z.core.$strip>>;
1185
+ record_custodian_id: z.ZodString;
1186
+ locked_at: z.ZodString;
1187
+ components: z.ZodArray<z.ZodObject<{
1188
+ label: z.ZodObject<{
1189
+ system: z.ZodString;
1190
+ value: z.ZodString;
1191
+ display: z.ZodOptional<z.ZodString>;
1192
+ valid: z.ZodOptional<z.ZodString>;
1193
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1194
+ }, z.core.$strip>;
1195
+ value: z.ZodAny;
1196
+ recorded_by: z.ZodString;
1197
+ recorded_at: z.ZodString;
1198
+ validated: z.ZodDefault<z.ZodBoolean>;
1199
+ validated_at: z.ZodString;
1200
+ }, z.core.$strip>>;
1201
+ }, z.core.$strip>;
1202
+ type MedicalRecord = z.infer<typeof medicalRecordSchema>;
1203
+ declare const MedicalRecordMongooseSchema: Schema;
1204
+ type MedicalRecordDocument = InferDocument<typeof medicalRecordSchema>;
1205
+ declare const MedicalRecordModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1206
+
1207
+ /**
1208
+ * Minimal MedicalRecord schema (omits server-generated fields).
1209
+ */
1210
+ declare const medicalRecordMinimalSchema: z.ZodObject<{
1211
+ type: z.ZodObject<{
1212
+ system: z.ZodString;
1213
+ value: z.ZodString;
1214
+ display: z.ZodOptional<z.ZodString>;
1215
+ valid: z.ZodOptional<z.ZodString>;
1216
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1217
+ }, z.core.$strip>;
1218
+ identifiers: z.ZodArray<z.ZodObject<{
1219
+ system: z.ZodString;
1220
+ value: z.ZodString;
1221
+ display: z.ZodOptional<z.ZodString>;
1222
+ valid: z.ZodOptional<z.ZodString>;
1223
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1224
+ }, z.core.$strip>>;
1225
+ statuses: z.ZodArray<z.ZodObject<{
1226
+ system: z.ZodString;
1227
+ value: z.ZodString;
1228
+ display: z.ZodOptional<z.ZodString>;
1229
+ valid: z.ZodOptional<z.ZodString>;
1230
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1231
+ }, z.core.$strip>>;
1232
+ record_custodian_id: z.ZodString;
1233
+ locked_at: z.ZodString;
1234
+ components: z.ZodArray<z.ZodObject<{
1235
+ label: z.ZodObject<{
1236
+ system: z.ZodString;
1237
+ value: z.ZodString;
1238
+ display: z.ZodOptional<z.ZodString>;
1239
+ valid: z.ZodOptional<z.ZodString>;
1240
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1241
+ }, z.core.$strip>;
1242
+ value: z.ZodAny;
1243
+ recorded_by: z.ZodString;
1244
+ recorded_at: z.ZodString;
1245
+ validated: z.ZodDefault<z.ZodBoolean>;
1246
+ validated_at: z.ZodString;
1247
+ }, z.core.$strip>>;
1248
+ }, z.core.$strip>;
1249
+ type MedicalRecordMinimal = z.infer<typeof medicalRecordMinimalSchema>;
1250
+
182
1251
  /**
183
- * ObjectId schema for MongoDB document IDs.
184
- * Validates a 24-character hexadecimal string (MongoDB ObjectId format).
1252
+ * Partial MedicalRecord schema (based on minimal, all optional).
185
1253
  */
186
- declare const objectIdSchema: z.ZodString;
187
- type ObjectId = string;
1254
+ declare const medicalRecordPartialSchema: z.ZodObject<{
1255
+ type: z.ZodOptional<z.ZodObject<{
1256
+ system: z.ZodString;
1257
+ value: z.ZodString;
1258
+ display: z.ZodOptional<z.ZodString>;
1259
+ valid: z.ZodOptional<z.ZodString>;
1260
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1261
+ }, z.core.$strip>>;
1262
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1263
+ system: z.ZodString;
1264
+ value: z.ZodString;
1265
+ display: z.ZodOptional<z.ZodString>;
1266
+ valid: z.ZodOptional<z.ZodString>;
1267
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1268
+ }, z.core.$strip>>>;
1269
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1270
+ system: z.ZodString;
1271
+ value: z.ZodString;
1272
+ display: z.ZodOptional<z.ZodString>;
1273
+ valid: z.ZodOptional<z.ZodString>;
1274
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1275
+ }, z.core.$strip>>>;
1276
+ record_custodian_id: z.ZodOptional<z.ZodString>;
1277
+ locked_at: z.ZodOptional<z.ZodString>;
1278
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
1279
+ label: z.ZodObject<{
1280
+ system: z.ZodString;
1281
+ value: z.ZodString;
1282
+ display: z.ZodOptional<z.ZodString>;
1283
+ valid: z.ZodOptional<z.ZodString>;
1284
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1285
+ }, z.core.$strip>;
1286
+ value: z.ZodAny;
1287
+ recorded_by: z.ZodString;
1288
+ recorded_at: z.ZodString;
1289
+ validated: z.ZodDefault<z.ZodBoolean>;
1290
+ validated_at: z.ZodString;
1291
+ }, z.core.$strip>>>;
1292
+ }, z.core.$strip>;
1293
+ type MedicalRecordPartial = z.infer<typeof medicalRecordPartialSchema>;
188
1294
 
189
1295
  /**
190
- * Standard base audit/timestamp fields.
191
- *
192
- * Includes `_id` and `schema_version` with defaults driven by the version
193
- * constant each model passes in. All fields are required.
194
- *
195
- * @param version - The model's schema version constant (e.g. PATIENT_SCHEMA_VERSION)
1296
+ * Current schema version for the Note model.
1297
+ * Use this constant instead of a literal when setting schema_version.
196
1298
  */
197
- declare const baseSchema: (version: number) => z.ZodObject<{
1299
+ declare const NOTE_SCHEMA_VERSION = 1;
1300
+ declare const noteSchema: z.ZodObject<{
198
1301
  _id: z.ZodString;
199
1302
  created_at: z.ZodString;
200
1303
  created_by: z.ZodString;
201
1304
  updated_at: z.ZodString;
202
1305
  updated_by: z.ZodString;
203
1306
  schema_version: z.ZodDefault<z.ZodNumber>;
1307
+ scope: z.ZodString;
1308
+ reference_id: z.ZodString;
1309
+ note: z.ZodString;
204
1310
  }, z.core.$strip>;
205
- type BaseSchema = z.infer<ReturnType<typeof baseSchema>>;
1311
+ type Note = z.infer<typeof noteSchema>;
1312
+ declare const NoteMongooseSchema: Schema;
1313
+ type NoteDocument = InferDocument<typeof noteSchema>;
1314
+ declare const NoteModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
206
1315
 
207
1316
  /**
208
- * Base audit/timestamp fields with a required `expired_at` field.
209
- *
210
- * For models that track expiration timestamps. Includes `_id` and
211
- * `schema_version` with a default driven by the version constant each model
212
- * passes in. All fields are required.
213
- *
214
- * @param version - The model's schema version constant
1317
+ * Minimal Note schema (omits server-generated fields).
215
1318
  */
216
- declare const baseSchemaWithExpiredAt: (version: number) => z.ZodObject<{
217
- _id: z.ZodString;
218
- created_at: z.ZodString;
219
- created_by: z.ZodString;
220
- updated_at: z.ZodString;
221
- updated_by: z.ZodString;
222
- expired_at: z.ZodString;
223
- schema_version: z.ZodDefault<z.ZodNumber>;
1319
+ declare const noteMinimalSchema: z.ZodObject<{
1320
+ scope: z.ZodString;
1321
+ reference_id: z.ZodString;
1322
+ note: z.ZodString;
224
1323
  }, z.core.$strip>;
225
- type BaseSchemaWithExpiredAt = z.infer<ReturnType<typeof baseSchemaWithExpiredAt>>;
1324
+ type NoteMinimal = z.infer<typeof noteMinimalSchema>;
1325
+
1326
+ /**
1327
+ * Partial Note schema (based on minimal, all optional).
1328
+ */
1329
+ declare const notePartialSchema: z.ZodObject<{
1330
+ scope: z.ZodOptional<z.ZodString>;
1331
+ reference_id: z.ZodOptional<z.ZodString>;
1332
+ note: z.ZodOptional<z.ZodString>;
1333
+ }, z.core.$strip>;
1334
+ type NotePartial = z.infer<typeof notePartialSchema>;
226
1335
 
227
1336
  /**
228
1337
  * Current schema version for the User model.
@@ -302,65 +1411,7 @@ declare const userSchema: z.ZodObject<{
302
1411
  type User = z.infer<typeof userSchema>;
303
1412
  declare const UserMongooseSchema: Schema;
304
1413
  type UserDocument = InferDocument<typeof userSchema>;
305
- declare const UserModel: Model<{
306
- [x: number]: unknown;
307
- [x: symbol]: unknown;
308
- [x: string]: unknown;
309
- }, {}, {}, {
310
- id: string;
311
- }, mongoose.Document<unknown, {}, {
312
- [x: number]: unknown;
313
- [x: symbol]: unknown;
314
- [x: string]: unknown;
315
- }, {
316
- id: string;
317
- }, mongoose.DefaultSchemaOptions> & Omit<{
318
- [x: number]: unknown;
319
- [x: symbol]: unknown;
320
- [x: string]: unknown;
321
- } & Required<{
322
- _id: unknown;
323
- }> & {
324
- __v: number;
325
- }, "id"> & mongoose.HydratedDocumentOverrides<{
326
- id: string;
327
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
328
- [x: number]: unknown;
329
- [x: symbol]: unknown;
330
- [x: string]: unknown;
331
- }, mongoose.Document<unknown, {}, {
332
- [x: number]: unknown;
333
- [x: symbol]: unknown;
334
- [x: string]: unknown;
335
- }, {
336
- id: string;
337
- }, mongoose.DefaultSchemaOptions> & Omit<{
338
- [x: number]: unknown;
339
- [x: symbol]: unknown;
340
- [x: string]: unknown;
341
- } & Required<{
342
- _id: unknown;
343
- }> & {
344
- __v: number;
345
- }, "id"> & mongoose.HydratedDocumentOverrides<{
346
- id: string;
347
- }>, unknown, {
348
- [x: number]: {};
349
- [x: symbol]: {};
350
- [x: string]: {};
351
- } & Required<{
352
- _id: unknown;
353
- }> & {
354
- __v: number;
355
- }>, {
356
- [x: number]: {};
357
- [x: symbol]: {};
358
- [x: string]: {};
359
- } & Required<{
360
- _id: unknown;
361
- }> & {
362
- __v: number;
363
- }>;
1414
+ declare const UserModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
364
1415
 
365
1416
  /**
366
1417
  * Current schema version for the User settings record.
@@ -401,6 +1452,17 @@ declare const userMinimalSchema: z.ZodObject<{
401
1452
  image: z.ZodOptional<z.ZodString>;
402
1453
  salutation: z.ZodOptional<z.ZodString>;
403
1454
  email: z.ZodString;
1455
+ identifiers: z.ZodArray<z.ZodObject<{
1456
+ system: z.ZodString;
1457
+ value: z.ZodString;
1458
+ display: z.ZodOptional<z.ZodString>;
1459
+ valid: z.ZodOptional<z.ZodString>;
1460
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1461
+ }, z.core.$strip>>;
1462
+ first_name: z.ZodString;
1463
+ middle_name: z.ZodOptional<z.ZodString>;
1464
+ last_name: z.ZodString;
1465
+ title: z.ZodOptional<z.ZodString>;
404
1466
  demographic: z.ZodObject<{
405
1467
  sex: z.ZodObject<{
406
1468
  system: z.ZodString;
@@ -427,13 +1489,6 @@ declare const userMinimalSchema: z.ZodObject<{
427
1489
  date_of_birth: z.ZodNullable<z.ZodString>;
428
1490
  place_of_birth: z.ZodNullable<z.ZodString>;
429
1491
  }, z.core.$strip>;
430
- settings_id: z.ZodString;
431
- full_name: z.ZodString;
432
- first_name: z.ZodString;
433
- middle_name: z.ZodOptional<z.ZodString>;
434
- last_name: z.ZodString;
435
- title: z.ZodOptional<z.ZodString>;
436
- email_verified: z.ZodBoolean;
437
1492
  statuses: z.ZodArray<z.ZodObject<{
438
1493
  system: z.ZodString;
439
1494
  value: z.ZodString;
@@ -441,13 +1496,6 @@ declare const userMinimalSchema: z.ZodObject<{
441
1496
  valid: z.ZodOptional<z.ZodString>;
442
1497
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
443
1498
  }, z.core.$strip>>;
444
- identifiers: z.ZodArray<z.ZodObject<{
445
- system: z.ZodString;
446
- value: z.ZodString;
447
- display: z.ZodOptional<z.ZodString>;
448
- valid: z.ZodOptional<z.ZodString>;
449
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
450
- }, z.core.$strip>>;
451
1499
  contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
452
1500
  system: z.ZodString;
453
1501
  value: z.ZodString;
@@ -455,6 +1503,9 @@ declare const userMinimalSchema: z.ZodObject<{
455
1503
  valid: z.ZodOptional<z.ZodString>;
456
1504
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
457
1505
  }, z.core.$strip>>>;
1506
+ settings_id: z.ZodString;
1507
+ full_name: z.ZodString;
1508
+ email_verified: z.ZodBoolean;
458
1509
  }, z.core.$strip>;
459
1510
  type UserMinimal = z.infer<typeof userMinimalSchema>;
460
1511
 
@@ -465,6 +1516,17 @@ declare const userPartialSchema: z.ZodObject<{
465
1516
  image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
466
1517
  salutation: z.ZodOptional<z.ZodOptional<z.ZodString>>;
467
1518
  email: z.ZodOptional<z.ZodString>;
1519
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1520
+ system: z.ZodString;
1521
+ value: z.ZodString;
1522
+ display: z.ZodOptional<z.ZodString>;
1523
+ valid: z.ZodOptional<z.ZodString>;
1524
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1525
+ }, z.core.$strip>>>;
1526
+ first_name: z.ZodOptional<z.ZodString>;
1527
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1528
+ last_name: z.ZodOptional<z.ZodString>;
1529
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
468
1530
  demographic: z.ZodOptional<z.ZodObject<{
469
1531
  sex: z.ZodObject<{
470
1532
  system: z.ZodString;
@@ -491,13 +1553,6 @@ declare const userPartialSchema: z.ZodObject<{
491
1553
  date_of_birth: z.ZodNullable<z.ZodString>;
492
1554
  place_of_birth: z.ZodNullable<z.ZodString>;
493
1555
  }, z.core.$strip>>;
494
- settings_id: z.ZodOptional<z.ZodString>;
495
- full_name: z.ZodOptional<z.ZodString>;
496
- first_name: z.ZodOptional<z.ZodString>;
497
- middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
498
- last_name: z.ZodOptional<z.ZodString>;
499
- title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
500
- email_verified: z.ZodOptional<z.ZodBoolean>;
501
1556
  statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
1557
  system: z.ZodString;
503
1558
  value: z.ZodString;
@@ -505,13 +1560,6 @@ declare const userPartialSchema: z.ZodObject<{
505
1560
  valid: z.ZodOptional<z.ZodString>;
506
1561
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
507
1562
  }, z.core.$strip>>>;
508
- identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
- system: z.ZodString;
510
- value: z.ZodString;
511
- display: z.ZodOptional<z.ZodString>;
512
- valid: z.ZodOptional<z.ZodString>;
513
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
514
- }, z.core.$strip>>>;
515
1563
  contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
516
1564
  system: z.ZodString;
517
1565
  value: z.ZodString;
@@ -519,6 +1567,9 @@ declare const userPartialSchema: z.ZodObject<{
519
1567
  valid: z.ZodOptional<z.ZodString>;
520
1568
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
521
1569
  }, z.core.$strip>>>>;
1570
+ settings_id: z.ZodOptional<z.ZodString>;
1571
+ full_name: z.ZodOptional<z.ZodString>;
1572
+ email_verified: z.ZodOptional<z.ZodBoolean>;
522
1573
  }, z.core.$strip>;
523
1574
  type UserPartial = z.infer<typeof userPartialSchema>;
524
1575
 
@@ -548,65 +1599,7 @@ declare const assignmentSchema: z.ZodObject<{
548
1599
  type Assignment = z.infer<typeof assignmentSchema>;
549
1600
  declare const AssignmentMongooseSchema: Schema;
550
1601
  type AssignmentDocument = InferDocument<typeof assignmentSchema>;
551
- declare const AssignmentModel: Model<{
552
- [x: number]: unknown;
553
- [x: symbol]: unknown;
554
- [x: string]: unknown;
555
- }, {}, {}, {
556
- id: string;
557
- }, mongoose.Document<unknown, {}, {
558
- [x: number]: unknown;
559
- [x: symbol]: unknown;
560
- [x: string]: unknown;
561
- }, {
562
- id: string;
563
- }, mongoose.DefaultSchemaOptions> & Omit<{
564
- [x: number]: unknown;
565
- [x: symbol]: unknown;
566
- [x: string]: unknown;
567
- } & Required<{
568
- _id: unknown;
569
- }> & {
570
- __v: number;
571
- }, "id"> & mongoose.HydratedDocumentOverrides<{
572
- id: string;
573
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
574
- [x: number]: unknown;
575
- [x: symbol]: unknown;
576
- [x: string]: unknown;
577
- }, mongoose.Document<unknown, {}, {
578
- [x: number]: unknown;
579
- [x: symbol]: unknown;
580
- [x: string]: unknown;
581
- }, {
582
- id: string;
583
- }, mongoose.DefaultSchemaOptions> & Omit<{
584
- [x: number]: unknown;
585
- [x: symbol]: unknown;
586
- [x: string]: unknown;
587
- } & Required<{
588
- _id: unknown;
589
- }> & {
590
- __v: number;
591
- }, "id"> & mongoose.HydratedDocumentOverrides<{
592
- id: string;
593
- }>, unknown, {
594
- [x: number]: {};
595
- [x: symbol]: {};
596
- [x: string]: {};
597
- } & Required<{
598
- _id: unknown;
599
- }> & {
600
- __v: number;
601
- }>, {
602
- [x: number]: {};
603
- [x: symbol]: {};
604
- [x: string]: {};
605
- } & Required<{
606
- _id: unknown;
607
- }> & {
608
- __v: number;
609
- }>;
1602
+ declare const AssignmentModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
610
1603
 
611
1604
  /**
612
1605
  * Minimal Assignment schema (omits server-generated fields).
@@ -667,65 +1660,7 @@ declare const departmentSchema: z.ZodObject<{
667
1660
  type Department = z.infer<typeof departmentSchema>;
668
1661
  declare const DepartmentMongooseSchema: Schema;
669
1662
  type DepartmentDocument = InferDocument<typeof departmentSchema>;
670
- declare const DepartmentModel: Model<{
671
- [x: number]: unknown;
672
- [x: symbol]: unknown;
673
- [x: string]: unknown;
674
- }, {}, {}, {
675
- id: string;
676
- }, mongoose.Document<unknown, {}, {
677
- [x: number]: unknown;
678
- [x: symbol]: unknown;
679
- [x: string]: unknown;
680
- }, {
681
- id: string;
682
- }, mongoose.DefaultSchemaOptions> & Omit<{
683
- [x: number]: unknown;
684
- [x: symbol]: unknown;
685
- [x: string]: unknown;
686
- } & Required<{
687
- _id: unknown;
688
- }> & {
689
- __v: number;
690
- }, "id"> & mongoose.HydratedDocumentOverrides<{
691
- id: string;
692
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
693
- [x: number]: unknown;
694
- [x: symbol]: unknown;
695
- [x: string]: unknown;
696
- }, mongoose.Document<unknown, {}, {
697
- [x: number]: unknown;
698
- [x: symbol]: unknown;
699
- [x: string]: unknown;
700
- }, {
701
- id: string;
702
- }, mongoose.DefaultSchemaOptions> & Omit<{
703
- [x: number]: unknown;
704
- [x: symbol]: unknown;
705
- [x: string]: unknown;
706
- } & Required<{
707
- _id: unknown;
708
- }> & {
709
- __v: number;
710
- }, "id"> & mongoose.HydratedDocumentOverrides<{
711
- id: string;
712
- }>, unknown, {
713
- [x: number]: {};
714
- [x: symbol]: {};
715
- [x: string]: {};
716
- } & Required<{
717
- _id: unknown;
718
- }> & {
719
- __v: number;
720
- }>, {
721
- [x: number]: {};
722
- [x: symbol]: {};
723
- [x: string]: {};
724
- } & Required<{
725
- _id: unknown;
726
- }> & {
727
- __v: number;
728
- }>;
1663
+ declare const DepartmentModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
729
1664
 
730
1665
  /**
731
1666
  * Minimal Department schema (omits server-generated fields).
@@ -785,65 +1720,7 @@ declare const facilitySchema: z.ZodObject<{
785
1720
  type Facility = z.infer<typeof facilitySchema>;
786
1721
  declare const FacilityMongooseSchema: Schema;
787
1722
  type FacilityDocument = InferDocument<typeof facilitySchema>;
788
- declare const FacilityModel: Model<{
789
- [x: number]: unknown;
790
- [x: symbol]: unknown;
791
- [x: string]: unknown;
792
- }, {}, {}, {
793
- id: string;
794
- }, mongoose.Document<unknown, {}, {
795
- [x: number]: unknown;
796
- [x: symbol]: unknown;
797
- [x: string]: unknown;
798
- }, {
799
- id: string;
800
- }, mongoose.DefaultSchemaOptions> & Omit<{
801
- [x: number]: unknown;
802
- [x: symbol]: unknown;
803
- [x: string]: unknown;
804
- } & Required<{
805
- _id: unknown;
806
- }> & {
807
- __v: number;
808
- }, "id"> & mongoose.HydratedDocumentOverrides<{
809
- id: string;
810
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
811
- [x: number]: unknown;
812
- [x: symbol]: unknown;
813
- [x: string]: unknown;
814
- }, mongoose.Document<unknown, {}, {
815
- [x: number]: unknown;
816
- [x: symbol]: unknown;
817
- [x: string]: unknown;
818
- }, {
819
- id: string;
820
- }, mongoose.DefaultSchemaOptions> & Omit<{
821
- [x: number]: unknown;
822
- [x: symbol]: unknown;
823
- [x: string]: unknown;
824
- } & Required<{
825
- _id: unknown;
826
- }> & {
827
- __v: number;
828
- }, "id"> & mongoose.HydratedDocumentOverrides<{
829
- id: string;
830
- }>, unknown, {
831
- [x: number]: {};
832
- [x: symbol]: {};
833
- [x: string]: {};
834
- } & Required<{
835
- _id: unknown;
836
- }> & {
837
- __v: number;
838
- }>, {
839
- [x: number]: {};
840
- [x: symbol]: {};
841
- [x: string]: {};
842
- } & Required<{
843
- _id: unknown;
844
- }> & {
845
- __v: number;
846
- }>;
1723
+ declare const FacilityModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
847
1724
 
848
1725
  /**
849
1726
  * Current schema version for the Facility settings record.
@@ -904,9 +1781,9 @@ declare const facilityMinimalSchema: z.ZodObject<{
904
1781
  valid: z.ZodOptional<z.ZodString>;
905
1782
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
906
1783
  }, z.core.$strip>;
907
- settings_id: z.ZodString;
908
- name: z.ZodString;
909
1784
  organization_id: z.ZodString;
1785
+ name: z.ZodString;
1786
+ settings_id: z.ZodString;
910
1787
  member_count: z.ZodNumber;
911
1788
  }, z.core.$strip>;
912
1789
  type FacilityMinimal = z.infer<typeof facilityMinimalSchema>;
@@ -922,9 +1799,9 @@ declare const facilityPartialSchema: z.ZodObject<{
922
1799
  valid: z.ZodOptional<z.ZodString>;
923
1800
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
924
1801
  }, z.core.$strip>>;
925
- settings_id: z.ZodOptional<z.ZodString>;
926
- name: z.ZodOptional<z.ZodString>;
927
1802
  organization_id: z.ZodOptional<z.ZodString>;
1803
+ name: z.ZodOptional<z.ZodString>;
1804
+ settings_id: z.ZodOptional<z.ZodString>;
928
1805
  member_count: z.ZodOptional<z.ZodNumber>;
929
1806
  }, z.core.$strip>;
930
1807
  type FacilityPartial = z.infer<typeof facilityPartialSchema>;
@@ -969,65 +1846,7 @@ declare const locationSchema: z.ZodObject<{
969
1846
  type Location = z.infer<typeof locationSchema>;
970
1847
  declare const LocationMongooseSchema: Schema;
971
1848
  type LocationDocument = InferDocument<typeof locationSchema>;
972
- declare const LocationModel: Model<{
973
- [x: number]: unknown;
974
- [x: symbol]: unknown;
975
- [x: string]: unknown;
976
- }, {}, {}, {
977
- id: string;
978
- }, mongoose.Document<unknown, {}, {
979
- [x: number]: unknown;
980
- [x: symbol]: unknown;
981
- [x: string]: unknown;
982
- }, {
983
- id: string;
984
- }, mongoose.DefaultSchemaOptions> & Omit<{
985
- [x: number]: unknown;
986
- [x: symbol]: unknown;
987
- [x: string]: unknown;
988
- } & Required<{
989
- _id: unknown;
990
- }> & {
991
- __v: number;
992
- }, "id"> & mongoose.HydratedDocumentOverrides<{
993
- id: string;
994
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
995
- [x: number]: unknown;
996
- [x: symbol]: unknown;
997
- [x: string]: unknown;
998
- }, mongoose.Document<unknown, {}, {
999
- [x: number]: unknown;
1000
- [x: symbol]: unknown;
1001
- [x: string]: unknown;
1002
- }, {
1003
- id: string;
1004
- }, mongoose.DefaultSchemaOptions> & Omit<{
1005
- [x: number]: unknown;
1006
- [x: symbol]: unknown;
1007
- [x: string]: unknown;
1008
- } & Required<{
1009
- _id: unknown;
1010
- }> & {
1011
- __v: number;
1012
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1013
- id: string;
1014
- }>, unknown, {
1015
- [x: number]: {};
1016
- [x: symbol]: {};
1017
- [x: string]: {};
1018
- } & Required<{
1019
- _id: unknown;
1020
- }> & {
1021
- __v: number;
1022
- }>, {
1023
- [x: number]: {};
1024
- [x: symbol]: {};
1025
- [x: string]: {};
1026
- } & Required<{
1027
- _id: unknown;
1028
- }> & {
1029
- __v: number;
1030
- }>;
1849
+ declare const LocationModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1031
1850
 
1032
1851
  /**
1033
1852
  * Current schema version for the Location settings record.
@@ -1065,15 +1884,14 @@ type LocationSettingsKV = z.infer<typeof locationSettingsKVSchema>;
1065
1884
  * Minimal Location schema (omits server-generated fields).
1066
1885
  */
1067
1886
  declare const locationMinimalSchema: z.ZodObject<{
1068
- settings_id: z.ZodString;
1069
- statuses: z.ZodArray<z.ZodObject<{
1887
+ identifiers: z.ZodArray<z.ZodObject<{
1070
1888
  system: z.ZodString;
1071
1889
  value: z.ZodString;
1072
1890
  display: z.ZodOptional<z.ZodString>;
1073
1891
  valid: z.ZodOptional<z.ZodString>;
1074
1892
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1075
1893
  }, z.core.$strip>>;
1076
- identifiers: z.ZodArray<z.ZodObject<{
1894
+ statuses: z.ZodArray<z.ZodObject<{
1077
1895
  system: z.ZodString;
1078
1896
  value: z.ZodString;
1079
1897
  display: z.ZodOptional<z.ZodString>;
@@ -1081,6 +1899,7 @@ declare const locationMinimalSchema: z.ZodObject<{
1081
1899
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1082
1900
  }, z.core.$strip>>;
1083
1901
  name: z.ZodString;
1902
+ settings_id: z.ZodString;
1084
1903
  parent_id: z.ZodString;
1085
1904
  types: z.ZodArray<z.ZodObject<{
1086
1905
  system: z.ZodString;
@@ -1096,15 +1915,14 @@ type LocationMinimal = z.infer<typeof locationMinimalSchema>;
1096
1915
  * Partial Location schema (based on minimal, all optional).
1097
1916
  */
1098
1917
  declare const locationPartialSchema: z.ZodObject<{
1099
- settings_id: z.ZodOptional<z.ZodString>;
1100
- statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1918
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1101
1919
  system: z.ZodString;
1102
1920
  value: z.ZodString;
1103
1921
  display: z.ZodOptional<z.ZodString>;
1104
1922
  valid: z.ZodOptional<z.ZodString>;
1105
1923
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1106
1924
  }, z.core.$strip>>>;
1107
- identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1925
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1108
1926
  system: z.ZodString;
1109
1927
  value: z.ZodString;
1110
1928
  display: z.ZodOptional<z.ZodString>;
@@ -1112,6 +1930,7 @@ declare const locationPartialSchema: z.ZodObject<{
1112
1930
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1113
1931
  }, z.core.$strip>>>;
1114
1932
  name: z.ZodOptional<z.ZodString>;
1933
+ settings_id: z.ZodOptional<z.ZodString>;
1115
1934
  parent_id: z.ZodOptional<z.ZodString>;
1116
1935
  types: z.ZodOptional<z.ZodArray<z.ZodObject<{
1117
1936
  system: z.ZodString;
@@ -1140,65 +1959,7 @@ declare const memberSchema: z.ZodObject<{
1140
1959
  type Member = z.infer<typeof memberSchema>;
1141
1960
  declare const MemberMongooseSchema: Schema;
1142
1961
  type MemberDocument = InferDocument<typeof memberSchema>;
1143
- declare const MemberModel: Model<{
1144
- [x: number]: unknown;
1145
- [x: symbol]: unknown;
1146
- [x: string]: unknown;
1147
- }, {}, {}, {
1148
- id: string;
1149
- }, mongoose.Document<unknown, {}, {
1150
- [x: number]: unknown;
1151
- [x: symbol]: unknown;
1152
- [x: string]: unknown;
1153
- }, {
1154
- id: string;
1155
- }, mongoose.DefaultSchemaOptions> & Omit<{
1156
- [x: number]: unknown;
1157
- [x: symbol]: unknown;
1158
- [x: string]: unknown;
1159
- } & Required<{
1160
- _id: unknown;
1161
- }> & {
1162
- __v: number;
1163
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1164
- id: string;
1165
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1166
- [x: number]: unknown;
1167
- [x: symbol]: unknown;
1168
- [x: string]: unknown;
1169
- }, mongoose.Document<unknown, {}, {
1170
- [x: number]: unknown;
1171
- [x: symbol]: unknown;
1172
- [x: string]: unknown;
1173
- }, {
1174
- id: string;
1175
- }, mongoose.DefaultSchemaOptions> & Omit<{
1176
- [x: number]: unknown;
1177
- [x: symbol]: unknown;
1178
- [x: string]: unknown;
1179
- } & Required<{
1180
- _id: unknown;
1181
- }> & {
1182
- __v: number;
1183
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1184
- id: string;
1185
- }>, unknown, {
1186
- [x: number]: {};
1187
- [x: symbol]: {};
1188
- [x: string]: {};
1189
- } & Required<{
1190
- _id: unknown;
1191
- }> & {
1192
- __v: number;
1193
- }>, {
1194
- [x: number]: {};
1195
- [x: symbol]: {};
1196
- [x: string]: {};
1197
- } & Required<{
1198
- _id: unknown;
1199
- }> & {
1200
- __v: number;
1201
- }>;
1962
+ declare const MemberModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1202
1963
 
1203
1964
  /**
1204
1965
  * Minimal Member schema (omits server-generated fields).
@@ -1248,65 +2009,7 @@ declare const organizationSchema: z.ZodObject<{
1248
2009
  type Organization = z.infer<typeof organizationSchema>;
1249
2010
  declare const OrganizationMongooseSchema: Schema;
1250
2011
  type OrganizationDocument = InferDocument<typeof organizationSchema>;
1251
- declare const OrganizationModel: Model<{
1252
- [x: number]: unknown;
1253
- [x: symbol]: unknown;
1254
- [x: string]: unknown;
1255
- }, {}, {}, {
1256
- id: string;
1257
- }, mongoose.Document<unknown, {}, {
1258
- [x: number]: unknown;
1259
- [x: symbol]: unknown;
1260
- [x: string]: unknown;
1261
- }, {
1262
- id: string;
1263
- }, mongoose.DefaultSchemaOptions> & Omit<{
1264
- [x: number]: unknown;
1265
- [x: symbol]: unknown;
1266
- [x: string]: unknown;
1267
- } & Required<{
1268
- _id: unknown;
1269
- }> & {
1270
- __v: number;
1271
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1272
- id: string;
1273
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1274
- [x: number]: unknown;
1275
- [x: symbol]: unknown;
1276
- [x: string]: unknown;
1277
- }, mongoose.Document<unknown, {}, {
1278
- [x: number]: unknown;
1279
- [x: symbol]: unknown;
1280
- [x: string]: unknown;
1281
- }, {
1282
- id: string;
1283
- }, mongoose.DefaultSchemaOptions> & Omit<{
1284
- [x: number]: unknown;
1285
- [x: symbol]: unknown;
1286
- [x: string]: unknown;
1287
- } & Required<{
1288
- _id: unknown;
1289
- }> & {
1290
- __v: number;
1291
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1292
- id: string;
1293
- }>, unknown, {
1294
- [x: number]: {};
1295
- [x: symbol]: {};
1296
- [x: string]: {};
1297
- } & Required<{
1298
- _id: unknown;
1299
- }> & {
1300
- __v: number;
1301
- }>, {
1302
- [x: number]: {};
1303
- [x: symbol]: {};
1304
- [x: string]: {};
1305
- } & Required<{
1306
- _id: unknown;
1307
- }> & {
1308
- __v: number;
1309
- }>;
2012
+ declare const OrganizationModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1310
2013
 
1311
2014
  /**
1312
2015
  * Current schema version for the Organization settings record.
@@ -1354,8 +2057,8 @@ declare const organizationMinimalSchema: z.ZodObject<{
1354
2057
  valid: z.ZodOptional<z.ZodString>;
1355
2058
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1356
2059
  }, z.core.$strip>;
1357
- settings_id: z.ZodString;
1358
2060
  name: z.ZodString;
2061
+ settings_id: z.ZodString;
1359
2062
  slug: z.ZodString;
1360
2063
  logo: z.ZodOptional<z.ZodString>;
1361
2064
  }, z.core.$strip>;
@@ -1375,8 +2078,8 @@ declare const organizationPartialSchema: z.ZodObject<{
1375
2078
  valid: z.ZodOptional<z.ZodString>;
1376
2079
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1377
2080
  }, z.core.$strip>>;
1378
- settings_id: z.ZodOptional<z.ZodString>;
1379
2081
  name: z.ZodOptional<z.ZodString>;
2082
+ settings_id: z.ZodOptional<z.ZodString>;
1380
2083
  slug: z.ZodOptional<z.ZodString>;
1381
2084
  logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1382
2085
  }, z.core.$strip>;
@@ -1491,65 +2194,7 @@ declare const patientSchema: z.ZodObject<{
1491
2194
  type Patient = z.infer<typeof patientSchema>;
1492
2195
  declare const PatientMongooseSchema: Schema;
1493
2196
  type PatientDocument = InferDocument<typeof patientSchema>;
1494
- declare const PatientModel: Model<{
1495
- [x: number]: unknown;
1496
- [x: symbol]: unknown;
1497
- [x: string]: unknown;
1498
- }, {}, {}, {
1499
- id: string;
1500
- }, mongoose.Document<unknown, {}, {
1501
- [x: number]: unknown;
1502
- [x: symbol]: unknown;
1503
- [x: string]: unknown;
1504
- }, {
1505
- id: string;
1506
- }, mongoose.DefaultSchemaOptions> & Omit<{
1507
- [x: number]: unknown;
1508
- [x: symbol]: unknown;
1509
- [x: string]: unknown;
1510
- } & Required<{
1511
- _id: unknown;
1512
- }> & {
1513
- __v: number;
1514
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1515
- id: string;
1516
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1517
- [x: number]: unknown;
1518
- [x: symbol]: unknown;
1519
- [x: string]: unknown;
1520
- }, mongoose.Document<unknown, {}, {
1521
- [x: number]: unknown;
1522
- [x: symbol]: unknown;
1523
- [x: string]: unknown;
1524
- }, {
1525
- id: string;
1526
- }, mongoose.DefaultSchemaOptions> & Omit<{
1527
- [x: number]: unknown;
1528
- [x: symbol]: unknown;
1529
- [x: string]: unknown;
1530
- } & Required<{
1531
- _id: unknown;
1532
- }> & {
1533
- __v: number;
1534
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1535
- id: string;
1536
- }>, unknown, {
1537
- [x: number]: {};
1538
- [x: symbol]: {};
1539
- [x: string]: {};
1540
- } & Required<{
1541
- _id: unknown;
1542
- }> & {
1543
- __v: number;
1544
- }>, {
1545
- [x: number]: {};
1546
- [x: symbol]: {};
1547
- [x: string]: {};
1548
- } & Required<{
1549
- _id: unknown;
1550
- }> & {
1551
- __v: number;
1552
- }>;
2197
+ declare const PatientModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1553
2198
 
1554
2199
  /**
1555
2200
  * Minimal Patient schema (omits server-generated fields).
@@ -1563,6 +2208,19 @@ declare const patientMinimalSchema: z.ZodObject<{
1563
2208
  valid: z.ZodOptional<z.ZodString>;
1564
2209
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1565
2210
  }, z.core.$strip>;
2211
+ organization_id: z.ZodString;
2212
+ registering_facility_id: z.ZodString;
2213
+ identifiers: z.ZodArray<z.ZodObject<{
2214
+ system: z.ZodString;
2215
+ value: z.ZodString;
2216
+ display: z.ZodOptional<z.ZodString>;
2217
+ valid: z.ZodOptional<z.ZodString>;
2218
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2219
+ }, z.core.$strip>>;
2220
+ first_name: z.ZodString;
2221
+ middle_name: z.ZodOptional<z.ZodString>;
2222
+ last_name: z.ZodString;
2223
+ title: z.ZodOptional<z.ZodString>;
1566
2224
  demographic: z.ZodObject<{
1567
2225
  sex: z.ZodObject<{
1568
2226
  system: z.ZodString;
@@ -1589,10 +2247,6 @@ declare const patientMinimalSchema: z.ZodObject<{
1589
2247
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1590
2248
  }, z.core.$strip>;
1591
2249
  }, z.core.$strip>;
1592
- first_name: z.ZodString;
1593
- middle_name: z.ZodOptional<z.ZodString>;
1594
- last_name: z.ZodString;
1595
- title: z.ZodOptional<z.ZodString>;
1596
2250
  statuses: z.ZodArray<z.ZodObject<{
1597
2251
  system: z.ZodString;
1598
2252
  value: z.ZodString;
@@ -1600,13 +2254,6 @@ declare const patientMinimalSchema: z.ZodObject<{
1600
2254
  valid: z.ZodOptional<z.ZodString>;
1601
2255
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1602
2256
  }, z.core.$strip>>;
1603
- identifiers: z.ZodArray<z.ZodObject<{
1604
- system: z.ZodString;
1605
- value: z.ZodString;
1606
- display: z.ZodOptional<z.ZodString>;
1607
- valid: z.ZodOptional<z.ZodString>;
1608
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1609
- }, z.core.$strip>>;
1610
2257
  contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1611
2258
  system: z.ZodString;
1612
2259
  value: z.ZodString;
@@ -1614,8 +2261,6 @@ declare const patientMinimalSchema: z.ZodObject<{
1614
2261
  valid: z.ZodOptional<z.ZodString>;
1615
2262
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1616
2263
  }, z.core.$strip>>>;
1617
- organization_id: z.ZodString;
1618
- registering_facility_id: z.ZodString;
1619
2264
  address: z.ZodObject<{
1620
2265
  street: z.ZodString;
1621
2266
  subdistrict: z.ZodObject<{
@@ -1663,6 +2308,19 @@ declare const patientPartialSchema: z.ZodObject<{
1663
2308
  valid: z.ZodOptional<z.ZodString>;
1664
2309
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1665
2310
  }, z.core.$strip>>;
2311
+ organization_id: z.ZodOptional<z.ZodString>;
2312
+ registering_facility_id: z.ZodOptional<z.ZodString>;
2313
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2314
+ system: z.ZodString;
2315
+ value: z.ZodString;
2316
+ display: z.ZodOptional<z.ZodString>;
2317
+ valid: z.ZodOptional<z.ZodString>;
2318
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2319
+ }, z.core.$strip>>>;
2320
+ first_name: z.ZodOptional<z.ZodString>;
2321
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2322
+ last_name: z.ZodOptional<z.ZodString>;
2323
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1666
2324
  demographic: z.ZodOptional<z.ZodObject<{
1667
2325
  sex: z.ZodObject<{
1668
2326
  system: z.ZodString;
@@ -1689,10 +2347,6 @@ declare const patientPartialSchema: z.ZodObject<{
1689
2347
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1690
2348
  }, z.core.$strip>;
1691
2349
  }, z.core.$strip>>;
1692
- first_name: z.ZodOptional<z.ZodString>;
1693
- middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1694
- last_name: z.ZodOptional<z.ZodString>;
1695
- title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1696
2350
  statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1697
2351
  system: z.ZodString;
1698
2352
  value: z.ZodString;
@@ -1700,13 +2354,6 @@ declare const patientPartialSchema: z.ZodObject<{
1700
2354
  valid: z.ZodOptional<z.ZodString>;
1701
2355
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1702
2356
  }, z.core.$strip>>>;
1703
- identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1704
- system: z.ZodString;
1705
- value: z.ZodString;
1706
- display: z.ZodOptional<z.ZodString>;
1707
- valid: z.ZodOptional<z.ZodString>;
1708
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1709
- }, z.core.$strip>>>;
1710
2357
  contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1711
2358
  system: z.ZodString;
1712
2359
  value: z.ZodString;
@@ -1714,8 +2361,6 @@ declare const patientPartialSchema: z.ZodObject<{
1714
2361
  valid: z.ZodOptional<z.ZodString>;
1715
2362
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1716
2363
  }, z.core.$strip>>>>;
1717
- organization_id: z.ZodOptional<z.ZodString>;
1718
- registering_facility_id: z.ZodOptional<z.ZodString>;
1719
2364
  address: z.ZodOptional<z.ZodObject<{
1720
2365
  street: z.ZodString;
1721
2366
  subdistrict: z.ZodObject<{
@@ -1776,65 +2421,7 @@ declare const patientAdditionalSchema: z.ZodObject<{
1776
2421
  type PatientAdditional = z.infer<typeof patientAdditionalSchema>;
1777
2422
  declare const PatientAdditionalMongooseSchema: Schema;
1778
2423
  type PatientAdditionalDocument = InferDocument<typeof patientAdditionalSchema>;
1779
- declare const PatientAdditionalModel: Model<{
1780
- [x: number]: unknown;
1781
- [x: symbol]: unknown;
1782
- [x: string]: unknown;
1783
- }, {}, {}, {
1784
- id: string;
1785
- }, mongoose.Document<unknown, {}, {
1786
- [x: number]: unknown;
1787
- [x: symbol]: unknown;
1788
- [x: string]: unknown;
1789
- }, {
1790
- id: string;
1791
- }, mongoose.DefaultSchemaOptions> & Omit<{
1792
- [x: number]: unknown;
1793
- [x: symbol]: unknown;
1794
- [x: string]: unknown;
1795
- } & Required<{
1796
- _id: unknown;
1797
- }> & {
1798
- __v: number;
1799
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1800
- id: string;
1801
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1802
- [x: number]: unknown;
1803
- [x: symbol]: unknown;
1804
- [x: string]: unknown;
1805
- }, mongoose.Document<unknown, {}, {
1806
- [x: number]: unknown;
1807
- [x: symbol]: unknown;
1808
- [x: string]: unknown;
1809
- }, {
1810
- id: string;
1811
- }, mongoose.DefaultSchemaOptions> & Omit<{
1812
- [x: number]: unknown;
1813
- [x: symbol]: unknown;
1814
- [x: string]: unknown;
1815
- } & Required<{
1816
- _id: unknown;
1817
- }> & {
1818
- __v: number;
1819
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1820
- id: string;
1821
- }>, unknown, {
1822
- [x: number]: {};
1823
- [x: symbol]: {};
1824
- [x: string]: {};
1825
- } & Required<{
1826
- _id: unknown;
1827
- }> & {
1828
- __v: number;
1829
- }>, {
1830
- [x: number]: {};
1831
- [x: symbol]: {};
1832
- [x: string]: {};
1833
- } & Required<{
1834
- _id: unknown;
1835
- }> & {
1836
- __v: number;
1837
- }>;
2424
+ declare const PatientAdditionalModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1838
2425
 
1839
2426
  /**
1840
2427
  * Minimal PatientAdditional schema (omits server-generated fields).
@@ -1903,65 +2490,7 @@ declare const staffSchema: z.ZodObject<{
1903
2490
  type Staff = z.infer<typeof staffSchema>;
1904
2491
  declare const StaffMongooseSchema: Schema;
1905
2492
  type StaffDocument = InferDocument<typeof staffSchema>;
1906
- declare const StaffModel: Model<{
1907
- [x: number]: unknown;
1908
- [x: symbol]: unknown;
1909
- [x: string]: unknown;
1910
- }, {}, {}, {
1911
- id: string;
1912
- }, mongoose.Document<unknown, {}, {
1913
- [x: number]: unknown;
1914
- [x: symbol]: unknown;
1915
- [x: string]: unknown;
1916
- }, {
1917
- id: string;
1918
- }, mongoose.DefaultSchemaOptions> & Omit<{
1919
- [x: number]: unknown;
1920
- [x: symbol]: unknown;
1921
- [x: string]: unknown;
1922
- } & Required<{
1923
- _id: unknown;
1924
- }> & {
1925
- __v: number;
1926
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1927
- id: string;
1928
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1929
- [x: number]: unknown;
1930
- [x: symbol]: unknown;
1931
- [x: string]: unknown;
1932
- }, mongoose.Document<unknown, {}, {
1933
- [x: number]: unknown;
1934
- [x: symbol]: unknown;
1935
- [x: string]: unknown;
1936
- }, {
1937
- id: string;
1938
- }, mongoose.DefaultSchemaOptions> & Omit<{
1939
- [x: number]: unknown;
1940
- [x: symbol]: unknown;
1941
- [x: string]: unknown;
1942
- } & Required<{
1943
- _id: unknown;
1944
- }> & {
1945
- __v: number;
1946
- }, "id"> & mongoose.HydratedDocumentOverrides<{
1947
- id: string;
1948
- }>, unknown, {
1949
- [x: number]: {};
1950
- [x: symbol]: {};
1951
- [x: string]: {};
1952
- } & Required<{
1953
- _id: unknown;
1954
- }> & {
1955
- __v: number;
1956
- }>, {
1957
- [x: number]: {};
1958
- [x: symbol]: {};
1959
- [x: string]: {};
1960
- } & Required<{
1961
- _id: unknown;
1962
- }> & {
1963
- __v: number;
1964
- }>;
2493
+ declare const StaffModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
1965
2494
 
1966
2495
  /**
1967
2496
  * Minimal Staff schema (omits server-generated fields).
@@ -2050,65 +2579,7 @@ declare const unitSchema: z.ZodObject<{
2050
2579
  type Unit = z.infer<typeof unitSchema>;
2051
2580
  declare const UnitMongooseSchema: Schema;
2052
2581
  type UnitDocument = InferDocument<typeof unitSchema>;
2053
- declare const UnitModel: Model<{
2054
- [x: number]: unknown;
2055
- [x: symbol]: unknown;
2056
- [x: string]: unknown;
2057
- }, {}, {}, {
2058
- id: string;
2059
- }, mongoose.Document<unknown, {}, {
2060
- [x: number]: unknown;
2061
- [x: symbol]: unknown;
2062
- [x: string]: unknown;
2063
- }, {
2064
- id: string;
2065
- }, mongoose.DefaultSchemaOptions> & Omit<{
2066
- [x: number]: unknown;
2067
- [x: symbol]: unknown;
2068
- [x: string]: unknown;
2069
- } & Required<{
2070
- _id: unknown;
2071
- }> & {
2072
- __v: number;
2073
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2074
- id: string;
2075
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
2076
- [x: number]: unknown;
2077
- [x: symbol]: unknown;
2078
- [x: string]: unknown;
2079
- }, mongoose.Document<unknown, {}, {
2080
- [x: number]: unknown;
2081
- [x: symbol]: unknown;
2082
- [x: string]: unknown;
2083
- }, {
2084
- id: string;
2085
- }, mongoose.DefaultSchemaOptions> & Omit<{
2086
- [x: number]: unknown;
2087
- [x: symbol]: unknown;
2088
- [x: string]: unknown;
2089
- } & Required<{
2090
- _id: unknown;
2091
- }> & {
2092
- __v: number;
2093
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2094
- id: string;
2095
- }>, unknown, {
2096
- [x: number]: {};
2097
- [x: symbol]: {};
2098
- [x: string]: {};
2099
- } & Required<{
2100
- _id: unknown;
2101
- }> & {
2102
- __v: number;
2103
- }>, {
2104
- [x: number]: {};
2105
- [x: symbol]: {};
2106
- [x: string]: {};
2107
- } & Required<{
2108
- _id: unknown;
2109
- }> & {
2110
- __v: number;
2111
- }>;
2582
+ declare const UnitModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
2112
2583
 
2113
2584
  /**
2114
2585
  * Minimal Unit schema (omits server-generated fields).
@@ -2121,7 +2592,6 @@ declare const unitMinimalSchema: z.ZodObject<{
2121
2592
  valid: z.ZodOptional<z.ZodString>;
2122
2593
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2123
2594
  }, z.core.$strip>;
2124
- settings_id: z.ZodString;
2125
2595
  statuses: z.ZodArray<z.ZodObject<{
2126
2596
  system: z.ZodString;
2127
2597
  value: z.ZodString;
@@ -2131,6 +2601,7 @@ declare const unitMinimalSchema: z.ZodObject<{
2131
2601
  }, z.core.$strip>>;
2132
2602
  name: z.ZodString;
2133
2603
  facility_id: z.ZodString;
2604
+ settings_id: z.ZodString;
2134
2605
  department_id: z.ZodString;
2135
2606
  code: z.ZodString;
2136
2607
  }, z.core.$strip>;
@@ -2147,7 +2618,6 @@ declare const unitPartialSchema: z.ZodObject<{
2147
2618
  valid: z.ZodOptional<z.ZodString>;
2148
2619
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2149
2620
  }, z.core.$strip>>;
2150
- settings_id: z.ZodOptional<z.ZodString>;
2151
2621
  statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
2152
2622
  system: z.ZodString;
2153
2623
  value: z.ZodString;
@@ -2157,6 +2627,7 @@ declare const unitPartialSchema: z.ZodObject<{
2157
2627
  }, z.core.$strip>>>;
2158
2628
  name: z.ZodOptional<z.ZodString>;
2159
2629
  facility_id: z.ZodOptional<z.ZodString>;
2630
+ settings_id: z.ZodOptional<z.ZodString>;
2160
2631
  department_id: z.ZodOptional<z.ZodString>;
2161
2632
  code: z.ZodOptional<z.ZodString>;
2162
2633
  }, z.core.$strip>;
@@ -2190,65 +2661,7 @@ declare const practitionerScheduleSchema: z.ZodObject<{
2190
2661
  type PractitionerSchedule = z.infer<typeof practitionerScheduleSchema>;
2191
2662
  declare const PractitionerScheduleMongooseSchema: Schema;
2192
2663
  type PractitionerScheduleDocument = InferDocument<typeof practitionerScheduleSchema>;
2193
- declare const PractitionerScheduleModel: Model<{
2194
- [x: number]: unknown;
2195
- [x: symbol]: unknown;
2196
- [x: string]: unknown;
2197
- }, {}, {}, {
2198
- id: string;
2199
- }, mongoose.Document<unknown, {}, {
2200
- [x: number]: unknown;
2201
- [x: symbol]: unknown;
2202
- [x: string]: unknown;
2203
- }, {
2204
- id: string;
2205
- }, mongoose.DefaultSchemaOptions> & Omit<{
2206
- [x: number]: unknown;
2207
- [x: symbol]: unknown;
2208
- [x: string]: unknown;
2209
- } & Required<{
2210
- _id: unknown;
2211
- }> & {
2212
- __v: number;
2213
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2214
- id: string;
2215
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
2216
- [x: number]: unknown;
2217
- [x: symbol]: unknown;
2218
- [x: string]: unknown;
2219
- }, mongoose.Document<unknown, {}, {
2220
- [x: number]: unknown;
2221
- [x: symbol]: unknown;
2222
- [x: string]: unknown;
2223
- }, {
2224
- id: string;
2225
- }, mongoose.DefaultSchemaOptions> & Omit<{
2226
- [x: number]: unknown;
2227
- [x: symbol]: unknown;
2228
- [x: string]: unknown;
2229
- } & Required<{
2230
- _id: unknown;
2231
- }> & {
2232
- __v: number;
2233
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2234
- id: string;
2235
- }>, unknown, {
2236
- [x: number]: {};
2237
- [x: symbol]: {};
2238
- [x: string]: {};
2239
- } & Required<{
2240
- _id: unknown;
2241
- }> & {
2242
- __v: number;
2243
- }>, {
2244
- [x: number]: {};
2245
- [x: symbol]: {};
2246
- [x: string]: {};
2247
- } & Required<{
2248
- _id: unknown;
2249
- }> & {
2250
- __v: number;
2251
- }>;
2664
+ declare const PractitionerScheduleModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
2252
2665
 
2253
2666
  /**
2254
2667
  * Minimal PractitionerSchedule schema (omits server-generated fields).
@@ -2261,10 +2674,10 @@ declare const practitionerScheduleMinimalSchema: z.ZodObject<{
2261
2674
  valid: z.ZodOptional<z.ZodString>;
2262
2675
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2263
2676
  }, z.core.$strip>;
2264
- facility_id: z.ZodString;
2265
2677
  organization_id: z.ZodString;
2266
- staff_id: z.ZodString;
2678
+ facility_id: z.ZodString;
2267
2679
  unit_id: z.ZodString;
2680
+ staff_id: z.ZodString;
2268
2681
  day: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2269
2682
  }, z.core.$strip>;
2270
2683
  type PractitionerScheduleMinimal = z.infer<typeof practitionerScheduleMinimalSchema>;
@@ -2280,10 +2693,10 @@ declare const practitionerSchedulePartialSchema: z.ZodObject<{
2280
2693
  valid: z.ZodOptional<z.ZodString>;
2281
2694
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2282
2695
  }, z.core.$strip>>;
2283
- facility_id: z.ZodOptional<z.ZodString>;
2284
2696
  organization_id: z.ZodOptional<z.ZodString>;
2285
- staff_id: z.ZodOptional<z.ZodString>;
2697
+ facility_id: z.ZodOptional<z.ZodString>;
2286
2698
  unit_id: z.ZodOptional<z.ZodString>;
2699
+ staff_id: z.ZodOptional<z.ZodString>;
2287
2700
  day: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2288
2701
  }, z.core.$strip>;
2289
2702
  type PractitionerSchedulePartial = z.infer<typeof practitionerSchedulePartialSchema>;
@@ -2310,73 +2723,15 @@ declare const practitionerSessionSchema: z.ZodObject<{
2310
2723
  type PractitionerSession = z.infer<typeof practitionerSessionSchema>;
2311
2724
  declare const PractitionerSessionMongooseSchema: Schema;
2312
2725
  type PractitionerSessionDocument = InferDocument<typeof practitionerSessionSchema>;
2313
- declare const PractitionerSessionModel: Model<{
2314
- [x: number]: unknown;
2315
- [x: symbol]: unknown;
2316
- [x: string]: unknown;
2317
- }, {}, {}, {
2318
- id: string;
2319
- }, mongoose.Document<unknown, {}, {
2320
- [x: number]: unknown;
2321
- [x: symbol]: unknown;
2322
- [x: string]: unknown;
2323
- }, {
2324
- id: string;
2325
- }, mongoose.DefaultSchemaOptions> & Omit<{
2326
- [x: number]: unknown;
2327
- [x: symbol]: unknown;
2328
- [x: string]: unknown;
2329
- } & Required<{
2330
- _id: unknown;
2331
- }> & {
2332
- __v: number;
2333
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2334
- id: string;
2335
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
2336
- [x: number]: unknown;
2337
- [x: symbol]: unknown;
2338
- [x: string]: unknown;
2339
- }, mongoose.Document<unknown, {}, {
2340
- [x: number]: unknown;
2341
- [x: symbol]: unknown;
2342
- [x: string]: unknown;
2343
- }, {
2344
- id: string;
2345
- }, mongoose.DefaultSchemaOptions> & Omit<{
2346
- [x: number]: unknown;
2347
- [x: symbol]: unknown;
2348
- [x: string]: unknown;
2349
- } & Required<{
2350
- _id: unknown;
2351
- }> & {
2352
- __v: number;
2353
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2354
- id: string;
2355
- }>, unknown, {
2356
- [x: number]: {};
2357
- [x: symbol]: {};
2358
- [x: string]: {};
2359
- } & Required<{
2360
- _id: unknown;
2361
- }> & {
2362
- __v: number;
2363
- }>, {
2364
- [x: number]: {};
2365
- [x: symbol]: {};
2366
- [x: string]: {};
2367
- } & Required<{
2368
- _id: unknown;
2369
- }> & {
2370
- __v: number;
2371
- }>;
2726
+ declare const PractitionerSessionModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
2372
2727
 
2373
2728
  /**
2374
2729
  * Minimal PractitionerSession schema (omits server-generated fields).
2375
2730
  */
2376
2731
  declare const practitionerSessionMinimalSchema: z.ZodObject<{
2377
2732
  end: z.ZodString;
2378
- staff_id: z.ZodString;
2379
2733
  unit_id: z.ZodString;
2734
+ staff_id: z.ZodString;
2380
2735
  schedule_id: z.ZodString;
2381
2736
  start: z.ZodString;
2382
2737
  max_quota: z.ZodNumber;
@@ -2388,8 +2743,8 @@ type PractitionerSessionMinimal = z.infer<typeof practitionerSessionMinimalSchem
2388
2743
  */
2389
2744
  declare const practitionerSessionPartialSchema: z.ZodObject<{
2390
2745
  end: z.ZodOptional<z.ZodString>;
2391
- staff_id: z.ZodOptional<z.ZodString>;
2392
2746
  unit_id: z.ZodOptional<z.ZodString>;
2747
+ staff_id: z.ZodOptional<z.ZodString>;
2393
2748
  schedule_id: z.ZodOptional<z.ZodString>;
2394
2749
  start: z.ZodOptional<z.ZodString>;
2395
2750
  max_quota: z.ZodOptional<z.ZodNumber>;
@@ -2416,73 +2771,15 @@ declare const ksmSchema: z.ZodObject<{
2416
2771
  type Ksm = z.infer<typeof ksmSchema>;
2417
2772
  declare const KsmMongooseSchema: Schema;
2418
2773
  type KsmDocument = InferDocument<typeof ksmSchema>;
2419
- declare const KsmModel: Model<{
2420
- [x: number]: unknown;
2421
- [x: symbol]: unknown;
2422
- [x: string]: unknown;
2423
- }, {}, {}, {
2424
- id: string;
2425
- }, mongoose.Document<unknown, {}, {
2426
- [x: number]: unknown;
2427
- [x: symbol]: unknown;
2428
- [x: string]: unknown;
2429
- }, {
2430
- id: string;
2431
- }, mongoose.DefaultSchemaOptions> & Omit<{
2432
- [x: number]: unknown;
2433
- [x: symbol]: unknown;
2434
- [x: string]: unknown;
2435
- } & Required<{
2436
- _id: unknown;
2437
- }> & {
2438
- __v: number;
2439
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2440
- id: string;
2441
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
2442
- [x: number]: unknown;
2443
- [x: symbol]: unknown;
2444
- [x: string]: unknown;
2445
- }, mongoose.Document<unknown, {}, {
2446
- [x: number]: unknown;
2447
- [x: symbol]: unknown;
2448
- [x: string]: unknown;
2449
- }, {
2450
- id: string;
2451
- }, mongoose.DefaultSchemaOptions> & Omit<{
2452
- [x: number]: unknown;
2453
- [x: symbol]: unknown;
2454
- [x: string]: unknown;
2455
- } & Required<{
2456
- _id: unknown;
2457
- }> & {
2458
- __v: number;
2459
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2460
- id: string;
2461
- }>, unknown, {
2462
- [x: number]: {};
2463
- [x: symbol]: {};
2464
- [x: string]: {};
2465
- } & Required<{
2466
- _id: unknown;
2467
- }> & {
2468
- __v: number;
2469
- }>, {
2470
- [x: number]: {};
2471
- [x: symbol]: {};
2472
- [x: string]: {};
2473
- } & Required<{
2474
- _id: unknown;
2475
- }> & {
2476
- __v: number;
2477
- }>;
2774
+ declare const KsmModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
2478
2775
 
2479
2776
  /**
2480
2777
  * Minimal Ksm schema (omits server-generated fields).
2481
2778
  */
2482
2779
  declare const ksmMinimalSchema: z.ZodObject<{
2780
+ organization_id: z.ZodString;
2483
2781
  name: z.ZodString;
2484
2782
  facility_id: z.ZodString;
2485
- organization_id: z.ZodString;
2486
2783
  subspecialist: z.ZodArray<z.ZodString>;
2487
2784
  }, z.core.$strip>;
2488
2785
  type KsmMinimal = z.infer<typeof ksmMinimalSchema>;
@@ -2491,9 +2788,9 @@ type KsmMinimal = z.infer<typeof ksmMinimalSchema>;
2491
2788
  * Partial Ksm schema (based on minimal, all optional).
2492
2789
  */
2493
2790
  declare const ksmPartialSchema: z.ZodObject<{
2791
+ organization_id: z.ZodOptional<z.ZodString>;
2494
2792
  name: z.ZodOptional<z.ZodString>;
2495
2793
  facility_id: z.ZodOptional<z.ZodString>;
2496
- organization_id: z.ZodOptional<z.ZodString>;
2497
2794
  subspecialist: z.ZodOptional<z.ZodArray<z.ZodString>>;
2498
2795
  }, z.core.$strip>;
2499
2796
  type KsmPartial = z.infer<typeof ksmPartialSchema>;
@@ -2573,65 +2870,7 @@ declare const payerSchema: z.ZodObject<{
2573
2870
  type Payer = z.infer<typeof payerSchema>;
2574
2871
  declare const PayerMongooseSchema: Schema;
2575
2872
  type PayerDocument = InferDocument<typeof payerSchema>;
2576
- declare const PayerModel: Model<{
2577
- [x: number]: unknown;
2578
- [x: symbol]: unknown;
2579
- [x: string]: unknown;
2580
- }, {}, {}, {
2581
- id: string;
2582
- }, mongoose.Document<unknown, {}, {
2583
- [x: number]: unknown;
2584
- [x: symbol]: unknown;
2585
- [x: string]: unknown;
2586
- }, {
2587
- id: string;
2588
- }, mongoose.DefaultSchemaOptions> & Omit<{
2589
- [x: number]: unknown;
2590
- [x: symbol]: unknown;
2591
- [x: string]: unknown;
2592
- } & Required<{
2593
- _id: unknown;
2594
- }> & {
2595
- __v: number;
2596
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2597
- id: string;
2598
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
2599
- [x: number]: unknown;
2600
- [x: symbol]: unknown;
2601
- [x: string]: unknown;
2602
- }, mongoose.Document<unknown, {}, {
2603
- [x: number]: unknown;
2604
- [x: symbol]: unknown;
2605
- [x: string]: unknown;
2606
- }, {
2607
- id: string;
2608
- }, mongoose.DefaultSchemaOptions> & Omit<{
2609
- [x: number]: unknown;
2610
- [x: symbol]: unknown;
2611
- [x: string]: unknown;
2612
- } & Required<{
2613
- _id: unknown;
2614
- }> & {
2615
- __v: number;
2616
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2617
- id: string;
2618
- }>, unknown, {
2619
- [x: number]: {};
2620
- [x: symbol]: {};
2621
- [x: string]: {};
2622
- } & Required<{
2623
- _id: unknown;
2624
- }> & {
2625
- __v: number;
2626
- }>, {
2627
- [x: number]: {};
2628
- [x: symbol]: {};
2629
- [x: string]: {};
2630
- } & Required<{
2631
- _id: unknown;
2632
- }> & {
2633
- __v: number;
2634
- }>;
2873
+ declare const PayerModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
2635
2874
 
2636
2875
  /**
2637
2876
  * Current schema version for the Payer settings record.
@@ -2696,6 +2935,7 @@ declare const payerMinimalSchema: z.ZodObject<{
2696
2935
  valid: z.ZodOptional<z.ZodString>;
2697
2936
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2698
2937
  }, z.core.$strip>;
2938
+ organization_id: z.ZodString;
2699
2939
  statuses: z.ZodArray<z.ZodObject<{
2700
2940
  system: z.ZodString;
2701
2941
  value: z.ZodString;
@@ -2712,7 +2952,6 @@ declare const payerMinimalSchema: z.ZodObject<{
2712
2952
  }, z.core.$strip>>;
2713
2953
  name: z.ZodString;
2714
2954
  facility_id: z.ZodString;
2715
- organization_id: z.ZodString;
2716
2955
  code: z.ZodString;
2717
2956
  banks: z.ZodArray<z.ZodObject<{
2718
2957
  name: z.ZodString;
@@ -2762,6 +3001,7 @@ declare const payerPartialSchema: z.ZodObject<{
2762
3001
  valid: z.ZodOptional<z.ZodString>;
2763
3002
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2764
3003
  }, z.core.$strip>>;
3004
+ organization_id: z.ZodOptional<z.ZodString>;
2765
3005
  statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
2766
3006
  system: z.ZodString;
2767
3007
  value: z.ZodString;
@@ -2778,7 +3018,6 @@ declare const payerPartialSchema: z.ZodObject<{
2778
3018
  }, z.core.$strip>>>;
2779
3019
  name: z.ZodOptional<z.ZodString>;
2780
3020
  facility_id: z.ZodOptional<z.ZodString>;
2781
- organization_id: z.ZodOptional<z.ZodString>;
2782
3021
  code: z.ZodOptional<z.ZodString>;
2783
3022
  banks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2784
3023
  name: z.ZodString;
@@ -2855,72 +3094,14 @@ declare const queueSchema: z.ZodObject<{
2855
3094
  type Queue = z.infer<typeof queueSchema>;
2856
3095
  declare const QueueMongooseSchema: Schema;
2857
3096
  type QueueDocument = InferDocument<typeof queueSchema>;
2858
- declare const QueueModel: Model<{
2859
- [x: number]: unknown;
2860
- [x: symbol]: unknown;
2861
- [x: string]: unknown;
2862
- }, {}, {}, {
2863
- id: string;
2864
- }, mongoose.Document<unknown, {}, {
2865
- [x: number]: unknown;
2866
- [x: symbol]: unknown;
2867
- [x: string]: unknown;
2868
- }, {
2869
- id: string;
2870
- }, mongoose.DefaultSchemaOptions> & Omit<{
2871
- [x: number]: unknown;
2872
- [x: symbol]: unknown;
2873
- [x: string]: unknown;
2874
- } & Required<{
2875
- _id: unknown;
2876
- }> & {
2877
- __v: number;
2878
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2879
- id: string;
2880
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
2881
- [x: number]: unknown;
2882
- [x: symbol]: unknown;
2883
- [x: string]: unknown;
2884
- }, mongoose.Document<unknown, {}, {
2885
- [x: number]: unknown;
2886
- [x: symbol]: unknown;
2887
- [x: string]: unknown;
2888
- }, {
2889
- id: string;
2890
- }, mongoose.DefaultSchemaOptions> & Omit<{
2891
- [x: number]: unknown;
2892
- [x: symbol]: unknown;
2893
- [x: string]: unknown;
2894
- } & Required<{
2895
- _id: unknown;
2896
- }> & {
2897
- __v: number;
2898
- }, "id"> & mongoose.HydratedDocumentOverrides<{
2899
- id: string;
2900
- }>, unknown, {
2901
- [x: number]: {};
2902
- [x: symbol]: {};
2903
- [x: string]: {};
2904
- } & Required<{
2905
- _id: unknown;
2906
- }> & {
2907
- __v: number;
2908
- }>, {
2909
- [x: number]: {};
2910
- [x: symbol]: {};
2911
- [x: string]: {};
2912
- } & Required<{
2913
- _id: unknown;
2914
- }> & {
2915
- __v: number;
2916
- }>;
3097
+ declare const QueueModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
2917
3098
 
2918
3099
  /**
2919
3100
  * Minimal Queue schema (omits server-generated fields).
2920
3101
  */
2921
3102
  declare const queueMinimalSchema: z.ZodObject<{
2922
- facility_id: z.ZodString;
2923
3103
  organization_id: z.ZodString;
3104
+ facility_id: z.ZodString;
2924
3105
  unit_id: z.ZodString;
2925
3106
  payer_type: z.ZodString;
2926
3107
  line: z.ZodArray<z.ZodObject<{
@@ -2949,8 +3130,8 @@ type QueueMinimal = z.infer<typeof queueMinimalSchema>;
2949
3130
  * Partial Queue schema (based on minimal, all optional).
2950
3131
  */
2951
3132
  declare const queuePartialSchema: z.ZodObject<{
2952
- facility_id: z.ZodOptional<z.ZodString>;
2953
3133
  organization_id: z.ZodOptional<z.ZodString>;
3134
+ facility_id: z.ZodOptional<z.ZodString>;
2954
3135
  unit_id: z.ZodOptional<z.ZodString>;
2955
3136
  payer_type: z.ZodOptional<z.ZodString>;
2956
3137
  line: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3001,65 +3182,7 @@ declare const queueEventLogSchema: z.ZodObject<{
3001
3182
  type QueueEventLog = z.infer<typeof queueEventLogSchema>;
3002
3183
  declare const QueueEventLogMongooseSchema: Schema;
3003
3184
  type QueueEventLogDocument = InferDocument<typeof queueEventLogSchema>;
3004
- declare const QueueEventLogModel: Model<{
3005
- [x: number]: unknown;
3006
- [x: symbol]: unknown;
3007
- [x: string]: unknown;
3008
- }, {}, {}, {
3009
- id: string;
3010
- }, mongoose.Document<unknown, {}, {
3011
- [x: number]: unknown;
3012
- [x: symbol]: unknown;
3013
- [x: string]: unknown;
3014
- }, {
3015
- id: string;
3016
- }, mongoose.DefaultSchemaOptions> & Omit<{
3017
- [x: number]: unknown;
3018
- [x: symbol]: unknown;
3019
- [x: string]: unknown;
3020
- } & Required<{
3021
- _id: unknown;
3022
- }> & {
3023
- __v: number;
3024
- }, "id"> & mongoose.HydratedDocumentOverrides<{
3025
- id: string;
3026
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
3027
- [x: number]: unknown;
3028
- [x: symbol]: unknown;
3029
- [x: string]: unknown;
3030
- }, mongoose.Document<unknown, {}, {
3031
- [x: number]: unknown;
3032
- [x: symbol]: unknown;
3033
- [x: string]: unknown;
3034
- }, {
3035
- id: string;
3036
- }, mongoose.DefaultSchemaOptions> & Omit<{
3037
- [x: number]: unknown;
3038
- [x: symbol]: unknown;
3039
- [x: string]: unknown;
3040
- } & Required<{
3041
- _id: unknown;
3042
- }> & {
3043
- __v: number;
3044
- }, "id"> & mongoose.HydratedDocumentOverrides<{
3045
- id: string;
3046
- }>, unknown, {
3047
- [x: number]: {};
3048
- [x: symbol]: {};
3049
- [x: string]: {};
3050
- } & Required<{
3051
- _id: unknown;
3052
- }> & {
3053
- __v: number;
3054
- }>, {
3055
- [x: number]: {};
3056
- [x: symbol]: {};
3057
- [x: string]: {};
3058
- } & Required<{
3059
- _id: unknown;
3060
- }> & {
3061
- __v: number;
3062
- }>;
3185
+ declare const QueueEventLogModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
3063
3186
 
3064
3187
  /**
3065
3188
  * Minimal QueueEventLog schema (omits server-generated fields).
@@ -3125,65 +3248,7 @@ declare const queueNumberSchema: z.ZodObject<{
3125
3248
  type QueueNumber = z.infer<typeof queueNumberSchema>;
3126
3249
  declare const QueueNumberMongooseSchema: Schema;
3127
3250
  type QueueNumberDocument = InferDocument<typeof queueNumberSchema>;
3128
- declare const QueueNumberModel: Model<{
3129
- [x: number]: unknown;
3130
- [x: symbol]: unknown;
3131
- [x: string]: unknown;
3132
- }, {}, {}, {
3133
- id: string;
3134
- }, mongoose.Document<unknown, {}, {
3135
- [x: number]: unknown;
3136
- [x: symbol]: unknown;
3137
- [x: string]: unknown;
3138
- }, {
3139
- id: string;
3140
- }, mongoose.DefaultSchemaOptions> & Omit<{
3141
- [x: number]: unknown;
3142
- [x: symbol]: unknown;
3143
- [x: string]: unknown;
3144
- } & Required<{
3145
- _id: unknown;
3146
- }> & {
3147
- __v: number;
3148
- }, "id"> & mongoose.HydratedDocumentOverrides<{
3149
- id: string;
3150
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
3151
- [x: number]: unknown;
3152
- [x: symbol]: unknown;
3153
- [x: string]: unknown;
3154
- }, mongoose.Document<unknown, {}, {
3155
- [x: number]: unknown;
3156
- [x: symbol]: unknown;
3157
- [x: string]: unknown;
3158
- }, {
3159
- id: string;
3160
- }, mongoose.DefaultSchemaOptions> & Omit<{
3161
- [x: number]: unknown;
3162
- [x: symbol]: unknown;
3163
- [x: string]: unknown;
3164
- } & Required<{
3165
- _id: unknown;
3166
- }> & {
3167
- __v: number;
3168
- }, "id"> & mongoose.HydratedDocumentOverrides<{
3169
- id: string;
3170
- }>, unknown, {
3171
- [x: number]: {};
3172
- [x: symbol]: {};
3173
- [x: string]: {};
3174
- } & Required<{
3175
- _id: unknown;
3176
- }> & {
3177
- __v: number;
3178
- }>, {
3179
- [x: number]: {};
3180
- [x: symbol]: {};
3181
- [x: string]: {};
3182
- } & Required<{
3183
- _id: unknown;
3184
- }> & {
3185
- __v: number;
3186
- }>;
3251
+ declare const QueueNumberModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
3187
3252
 
3188
3253
  /**
3189
3254
  * Current schema version for the Queue Number settings record.
@@ -3249,8 +3314,8 @@ declare const queueNumberMinimalSchema: z.ZodObject<{
3249
3314
  session: z.ZodString;
3250
3315
  }, z.core.$strip>;
3251
3316
  sequence: z.ZodNumber;
3252
- facility_id: z.ZodString;
3253
3317
  organization_id: z.ZodString;
3318
+ facility_id: z.ZodString;
3254
3319
  patient_id: z.ZodString;
3255
3320
  prefix: z.ZodString;
3256
3321
  }, z.core.$strip>;
@@ -3269,8 +3334,8 @@ declare const queueNumberPartialSchema: z.ZodObject<{
3269
3334
  session: z.ZodString;
3270
3335
  }, z.core.$strip>>;
3271
3336
  sequence: z.ZodOptional<z.ZodNumber>;
3272
- facility_id: z.ZodOptional<z.ZodString>;
3273
3337
  organization_id: z.ZodOptional<z.ZodString>;
3338
+ facility_id: z.ZodOptional<z.ZodString>;
3274
3339
  patient_id: z.ZodOptional<z.ZodString>;
3275
3340
  prefix: z.ZodOptional<z.ZodString>;
3276
3341
  }, z.core.$strip>;
@@ -3303,65 +3368,7 @@ declare const articleSchema: z.ZodObject<{
3303
3368
  type Article = z.infer<typeof articleSchema>;
3304
3369
  declare const ArticleMongooseSchema: Schema;
3305
3370
  type ArticleDocument = InferDocument<typeof articleSchema>;
3306
- declare const ArticleModel: Model<{
3307
- [x: number]: unknown;
3308
- [x: symbol]: unknown;
3309
- [x: string]: unknown;
3310
- }, {}, {}, {
3311
- id: string;
3312
- }, mongoose.Document<unknown, {}, {
3313
- [x: number]: unknown;
3314
- [x: symbol]: unknown;
3315
- [x: string]: unknown;
3316
- }, {
3317
- id: string;
3318
- }, mongoose.DefaultSchemaOptions> & Omit<{
3319
- [x: number]: unknown;
3320
- [x: symbol]: unknown;
3321
- [x: string]: unknown;
3322
- } & Required<{
3323
- _id: unknown;
3324
- }> & {
3325
- __v: number;
3326
- }, "id"> & mongoose.HydratedDocumentOverrides<{
3327
- id: string;
3328
- }>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
3329
- [x: number]: unknown;
3330
- [x: symbol]: unknown;
3331
- [x: string]: unknown;
3332
- }, mongoose.Document<unknown, {}, {
3333
- [x: number]: unknown;
3334
- [x: symbol]: unknown;
3335
- [x: string]: unknown;
3336
- }, {
3337
- id: string;
3338
- }, mongoose.DefaultSchemaOptions> & Omit<{
3339
- [x: number]: unknown;
3340
- [x: symbol]: unknown;
3341
- [x: string]: unknown;
3342
- } & Required<{
3343
- _id: unknown;
3344
- }> & {
3345
- __v: number;
3346
- }, "id"> & mongoose.HydratedDocumentOverrides<{
3347
- id: string;
3348
- }>, unknown, {
3349
- [x: number]: {};
3350
- [x: symbol]: {};
3351
- [x: string]: {};
3352
- } & Required<{
3353
- _id: unknown;
3354
- }> & {
3355
- __v: number;
3356
- }>, {
3357
- [x: number]: {};
3358
- [x: symbol]: {};
3359
- [x: string]: {};
3360
- } & Required<{
3361
- _id: unknown;
3362
- }> & {
3363
- __v: number;
3364
- }>;
3371
+ declare const ArticleModel: mongoose.Model<any, {}, {}, {}, any, any, any>;
3365
3372
 
3366
3373
  /**
3367
3374
  * Minimal Article schema (omits server-generated fields).
@@ -3399,4 +3406,4 @@ declare const articlePartialSchema: z.ZodObject<{
3399
3406
  }, z.core.$strip>;
3400
3407
  type ArticlePartial = z.infer<typeof articlePartialSchema>;
3401
3408
 
3402
- export { ARTICLE_SCHEMA_VERSION, ASSIGNMENT_SCHEMA_VERSION, type Address, type ApiResponse, type Article, type ArticleDocument, type ArticleMinimal, ArticleModel, ArticleMongooseSchema, type ArticlePartial, type Assignment, type AssignmentDocument, type AssignmentMinimal, AssignmentModel, AssignmentMongooseSchema, type AssignmentPartial, type BaseSchema, type BaseSchemaWithExpiredAt, type CodedConcept, DEPARTMENT_SCHEMA_VERSION, type Demographic, type Department, type DepartmentDocument, type DepartmentMinimal, DepartmentModel, DepartmentMongooseSchema, type DepartmentPartial, FACILITY_SCHEMA_VERSION, FACILITY_SETTINGS_SCHEMA_VERSION, type Facility, type FacilityDocument, type FacilityMinimal, FacilityModel, FacilityMongooseSchema, type FacilityPartial, type FacilitySettings, type FacilitySettingsKV, KSM_SCHEMA_VERSION, type Ksm, type KsmDocument, type KsmMinimal, KsmModel, KsmMongooseSchema, type KsmPartial, LOCATION_SCHEMA_VERSION, LOCATION_SETTINGS_SCHEMA_VERSION, type Location, type LocationDocument, type LocationMinimal, LocationModel, LocationMongooseSchema, type LocationPartial, type LocationSettings, type LocationSettingsKV, MEMBER_SCHEMA_VERSION, type Member, type MemberDocument, type MemberMinimal, MemberModel, MemberMongooseSchema, type MemberPartial, type Metadata, ORGANIZATION_SCHEMA_VERSION, ORGANIZATION_SETTINGS_SCHEMA_VERSION, type ObjectId, type Organization, type OrganizationDocument, type OrganizationMinimal, OrganizationModel, OrganizationMongooseSchema, type OrganizationPartial, type OrganizationSettings, type OrganizationSettingsKV, PATIENT_ADDITIONAL_SCHEMA_VERSION, PATIENT_SCHEMA_VERSION, PAYER_SCHEMA_VERSION, PAYER_SETTINGS_SCHEMA_VERSION, PRACTITIONER_SCHEDULE_SCHEMA_VERSION, PRACTITIONER_SESSION_SCHEMA_VERSION, type Patient, type PatientAdditional, type PatientAdditionalDocument, type PatientAdditionalMinimal, PatientAdditionalModel, PatientAdditionalMongooseSchema, type PatientAdditionalPartial, type PatientDocument, type PatientMinimal, PatientModel, PatientMongooseSchema, type PatientPartial, type Payer, type PayerDocument, type PayerMinimal, PayerModel, PayerMongooseSchema, type PayerPartial, type PayerSettings, type PayerSettingsKV, type PractitionerSchedule, type PractitionerScheduleDocument, type PractitionerScheduleMinimal, PractitionerScheduleModel, PractitionerScheduleMongooseSchema, type PractitionerSchedulePartial, type PractitionerSession, type PractitionerSessionDocument, type PractitionerSessionMinimal, PractitionerSessionModel, PractitionerSessionMongooseSchema, type PractitionerSessionPartial, QUEUE_EVENT_LOG_SCHEMA_VERSION, QUEUE_NUMBER_SCHEMA_VERSION, QUEUE_NUMBER_SETTINGS_SCHEMA_VERSION, QUEUE_SCHEMA_VERSION, type Queue, type QueueDocument, type QueueEventLog, type QueueEventLogDocument, type QueueEventLogMinimal, QueueEventLogModel, QueueEventLogMongooseSchema, type QueueEventLogPartial, type QueueMinimal, QueueModel, QueueMongooseSchema, type QueueNumber, type QueueNumberDocument, type QueueNumberMinimal, QueueNumberModel, QueueNumberMongooseSchema, type QueueNumberPartial, type QueueNumberSettings, type QueueNumberSettingsKV, type QueuePartial, STAFF_SCHEMA_VERSION, type SettingOption, type SettingOptionType, type SingleResourceResponse, type Staff, type StaffDocument, type StaffMinimal, StaffModel, StaffMongooseSchema, type StaffPartial, type Timestamp, UNIT_SCHEMA_VERSION, USER_SCHEMA_VERSION, USER_SETTINGS_SCHEMA_VERSION, type Unit, type UnitDocument, type UnitMinimal, UnitModel, UnitMongooseSchema, type UnitPartial, type User, type UserDocument, type UserMinimal, UserModel, UserMongooseSchema, type UserPartial, type UserSettings, type UserSettingsKV, addressSchema, apiResponseSchema, articleMinimalSchema, articlePartialSchema, articleSchema, assignmentMinimalSchema, assignmentPartialSchema, assignmentSchema, baseSchema, baseSchemaWithExpiredAt, codedConceptSchema, demographicSchema, departmentMinimalSchema, departmentPartialSchema, departmentSchema, facilityMinimalSchema, facilityPartialSchema, facilitySchema, facilitySettingsKVSchema, facilitySettingsSchema, ksmMinimalSchema, ksmPartialSchema, ksmSchema, locationMinimalSchema, locationPartialSchema, locationSchema, locationSettingsKVSchema, locationSettingsSchema, memberMinimalSchema, memberPartialSchema, memberSchema, metadataSchema, objectIdSchema, organizationMinimalSchema, organizationPartialSchema, organizationSchema, organizationSettingsKVSchema, organizationSettingsSchema, patientAdditionalMinimalSchema, patientAdditionalPartialSchema, patientAdditionalSchema, patientMinimalSchema, patientPartialSchema, patientSchema, payerMinimalSchema, payerPartialSchema, payerSchema, payerSettingsKVSchema, payerSettingsSchema, practitionerScheduleMinimalSchema, practitionerSchedulePartialSchema, practitionerScheduleSchema, practitionerSessionMinimalSchema, practitionerSessionPartialSchema, practitionerSessionSchema, queueEventLogMinimalSchema, queueEventLogPartialSchema, queueEventLogSchema, queueMinimalSchema, queueNumberMinimalSchema, queueNumberPartialSchema, queueNumberSchema, queueNumberSettingsKVSchema, queueNumberSettingsSchema, queuePartialSchema, queueSchema, settingOptionSchema, settingOptionTypeSchema, singleResourceResponseSchema, staffMinimalSchema, staffPartialSchema, staffSchema, timestampSchema, unitMinimalSchema, unitPartialSchema, unitSchema, userMinimalSchema, userPartialSchema, userSchema, userSettingsKVSchema, userSettingsSchema };
3409
+ export { APPOINTMENT_SCHEMA_VERSION, ARTICLE_SCHEMA_VERSION, ASSIGNMENT_SCHEMA_VERSION, type Address, type ApiResponse, type Appointment, type AppointmentDocument, type AppointmentMinimal, AppointmentModel, AppointmentMongooseSchema, type AppointmentPartial, type Article, type ArticleDocument, type ArticleMinimal, ArticleModel, ArticleMongooseSchema, type ArticlePartial, type Assignment, type AssignmentDocument, type AssignmentMinimal, AssignmentModel, AssignmentMongooseSchema, type AssignmentPartial, type BaseSchema, type BaseSchemaWithExpiredAt, type CodedConcept, DEPARTMENT_SCHEMA_VERSION, type Demographic, type Department, type DepartmentDocument, type DepartmentMinimal, DepartmentModel, DepartmentMongooseSchema, type DepartmentPartial, ENCOUNTER_ADDITIONAL_SCHEMA_VERSION, ENCOUNTER_SCHEMA_VERSION, type Encounter, type EncounterAdditional, type EncounterAdditionalDocument, type EncounterAdditionalMinimal, EncounterAdditionalModel, EncounterAdditionalMongooseSchema, type EncounterAdditionalPartial, type EncounterDocument, type EncounterMinimal, EncounterModel, EncounterMongooseSchema, type EncounterPartial, FACILITY_SCHEMA_VERSION, FACILITY_SETTINGS_SCHEMA_VERSION, type Facility, type FacilityDocument, type FacilityMinimal, FacilityModel, FacilityMongooseSchema, type FacilityPartial, type FacilitySettings, type FacilitySettingsKV, KSM_SCHEMA_VERSION, type Ksm, type KsmDocument, type KsmMinimal, KsmModel, KsmMongooseSchema, type KsmPartial, LOCATION_SCHEMA_VERSION, LOCATION_SETTINGS_SCHEMA_VERSION, type Location, type LocationDocument, type LocationMinimal, LocationModel, LocationMongooseSchema, type LocationPartial, type LocationSettings, type LocationSettingsKV, MEDICAL_RECORD_SCHEMA_VERSION, MEMBER_SCHEMA_VERSION, type MedicalRecord, type MedicalRecordDocument, type MedicalRecordMinimal, MedicalRecordModel, MedicalRecordMongooseSchema, type MedicalRecordPartial, type Member, type MemberDocument, type MemberMinimal, MemberModel, MemberMongooseSchema, type MemberPartial, type Metadata, NOTE_SCHEMA_VERSION, type Note, type NoteDocument, type NoteMinimal, NoteModel, NoteMongooseSchema, type NotePartial, ORGANIZATION_SCHEMA_VERSION, ORGANIZATION_SETTINGS_SCHEMA_VERSION, type ObjectId, type Organization, type OrganizationDocument, type OrganizationMinimal, OrganizationModel, OrganizationMongooseSchema, type OrganizationPartial, type OrganizationSettings, type OrganizationSettingsKV, PATIENT_ADDITIONAL_SCHEMA_VERSION, PATIENT_SCHEMA_VERSION, PAYER_SCHEMA_VERSION, PAYER_SETTINGS_SCHEMA_VERSION, PRACTITIONER_SCHEDULE_SCHEMA_VERSION, PRACTITIONER_SESSION_SCHEMA_VERSION, type Patient, type PatientAdditional, type PatientAdditionalDocument, type PatientAdditionalMinimal, PatientAdditionalModel, PatientAdditionalMongooseSchema, type PatientAdditionalPartial, type PatientDocument, type PatientMinimal, PatientModel, PatientMongooseSchema, type PatientPartial, type Payer, type PayerDocument, type PayerMinimal, PayerModel, PayerMongooseSchema, type PayerPartial, type PayerSettings, type PayerSettingsKV, type PractitionerSchedule, type PractitionerScheduleDocument, type PractitionerScheduleMinimal, PractitionerScheduleModel, PractitionerScheduleMongooseSchema, type PractitionerSchedulePartial, type PractitionerSession, type PractitionerSessionDocument, type PractitionerSessionMinimal, PractitionerSessionModel, PractitionerSessionMongooseSchema, type PractitionerSessionPartial, QUEUE_EVENT_LOG_SCHEMA_VERSION, QUEUE_NUMBER_SCHEMA_VERSION, QUEUE_NUMBER_SETTINGS_SCHEMA_VERSION, QUEUE_SCHEMA_VERSION, type Queue, type QueueDocument, type QueueEventLog, type QueueEventLogDocument, type QueueEventLogMinimal, QueueEventLogModel, QueueEventLogMongooseSchema, type QueueEventLogPartial, type QueueMinimal, QueueModel, QueueMongooseSchema, type QueueNumber, type QueueNumberDocument, type QueueNumberMinimal, QueueNumberModel, QueueNumberMongooseSchema, type QueueNumberPartial, type QueueNumberSettings, type QueueNumberSettingsKV, type QueuePartial, STAFF_SCHEMA_VERSION, type SettingOption, type SettingOptionType, type SingleResourceResponse, type Staff, type StaffDocument, type StaffMinimal, StaffModel, StaffMongooseSchema, type StaffPartial, type Timestamp, UNIT_SCHEMA_VERSION, USER_SCHEMA_VERSION, USER_SETTINGS_SCHEMA_VERSION, type Unit, type UnitDocument, type UnitMinimal, UnitModel, UnitMongooseSchema, type UnitPartial, type User, type UserDocument, type UserMinimal, UserModel, UserMongooseSchema, type UserPartial, type UserSettings, type UserSettingsKV, addressSchema, apiResponseSchema, appointmentMinimalSchema, appointmentPartialSchema, appointmentSchema, articleMinimalSchema, articlePartialSchema, articleSchema, assignmentMinimalSchema, assignmentPartialSchema, assignmentSchema, baseSchema, baseSchemaWithExpiredAt, codedConceptSchema, demographicSchema, departmentMinimalSchema, departmentPartialSchema, departmentSchema, encounterAdditionalMinimalSchema, encounterAdditionalPartialSchema, encounterAdditionalSchema, encounterMinimalSchema, encounterPartialSchema, encounterSchema, facilityMinimalSchema, facilityPartialSchema, facilitySchema, facilitySettingsKVSchema, facilitySettingsSchema, ksmMinimalSchema, ksmPartialSchema, ksmSchema, locationMinimalSchema, locationPartialSchema, locationSchema, locationSettingsKVSchema, locationSettingsSchema, medicalRecordMinimalSchema, medicalRecordPartialSchema, medicalRecordSchema, memberMinimalSchema, memberPartialSchema, memberSchema, metadataSchema, noteMinimalSchema, notePartialSchema, noteSchema, objectIdSchema, organizationMinimalSchema, organizationPartialSchema, organizationSchema, organizationSettingsKVSchema, organizationSettingsSchema, patientAdditionalMinimalSchema, patientAdditionalPartialSchema, patientAdditionalSchema, patientMinimalSchema, patientPartialSchema, patientSchema, payerMinimalSchema, payerPartialSchema, payerSchema, payerSettingsKVSchema, payerSettingsSchema, practitionerScheduleMinimalSchema, practitionerSchedulePartialSchema, practitionerScheduleSchema, practitionerSessionMinimalSchema, practitionerSessionPartialSchema, practitionerSessionSchema, queueEventLogMinimalSchema, queueEventLogPartialSchema, queueEventLogSchema, queueMinimalSchema, queueNumberMinimalSchema, queueNumberPartialSchema, queueNumberSchema, queueNumberSettingsKVSchema, queueNumberSettingsSchema, queuePartialSchema, queueSchema, settingOptionSchema, settingOptionTypeSchema, singleResourceResponseSchema, staffMinimalSchema, staffPartialSchema, staffSchema, timestampSchema, unitMinimalSchema, unitPartialSchema, unitSchema, userMinimalSchema, userPartialSchema, userSchema, userSettingsKVSchema, userSettingsSchema };