@centricare/contract 0.1.2 → 0.2.0
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/README.md +28 -67
- package/dist/index.cjs +1469 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +3324 -0
- package/dist/index.d.ts +3322 -5
- package/dist/index.mjs +1325 -0
- package/dist/index.mjs.map +1 -0
- package/dist/registry/index.cjs +412 -0
- package/dist/registry/index.cjs.map +1 -0
- package/dist/registry/index.d.mts +60 -0
- package/dist/registry/index.d.ts +60 -0
- package/dist/registry/index.mjs +405 -0
- package/dist/registry/index.mjs.map +1 -0
- package/package.json +18 -9
- package/dist/commons/address.d.ts +0 -35
- package/dist/commons/address.d.ts.map +0 -1
- package/dist/commons/address.js +0 -11
- package/dist/commons/address.js.map +0 -1
- package/dist/commons/api-response.d.ts +0 -70
- package/dist/commons/api-response.d.ts.map +0 -1
- package/dist/commons/api-response.js +0 -49
- package/dist/commons/api-response.js.map +0 -1
- package/dist/commons/coded-concept.d.ts +0 -16
- package/dist/commons/coded-concept.d.ts.map +0 -1
- package/dist/commons/coded-concept.js +0 -20
- package/dist/commons/coded-concept.js.map +0 -1
- package/dist/commons/demographic.d.ts +0 -29
- package/dist/commons/demographic.d.ts.map +0 -1
- package/dist/commons/demographic.js +0 -11
- package/dist/commons/demographic.js.map +0 -1
- package/dist/commons/index.d.ts +0 -12
- package/dist/commons/index.d.ts.map +0 -1
- package/dist/commons/index.js +0 -12
- package/dist/commons/index.js.map +0 -1
- package/dist/commons/object-id.d.ts +0 -8
- package/dist/commons/object-id.d.ts.map +0 -1
- package/dist/commons/object-id.js +0 -11
- package/dist/commons/object-id.js.map +0 -1
- package/dist/commons/setting-option.d.ts +0 -45
- package/dist/commons/setting-option.d.ts.map +0 -1
- package/dist/commons/setting-option.js +0 -27
- package/dist/commons/setting-option.js.map +0 -1
- package/dist/commons/timestamp.d.ts +0 -7
- package/dist/commons/timestamp.d.ts.map +0 -1
- package/dist/commons/timestamp.js +0 -9
- package/dist/commons/timestamp.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/models/assignment/assignment-minimal.schema.d.ts +0 -18
- package/dist/models/assignment/assignment-minimal.schema.d.ts.map +0 -1
- package/dist/models/assignment/assignment-minimal.schema.js +0 -13
- package/dist/models/assignment/assignment-minimal.schema.js.map +0 -1
- package/dist/models/assignment/assignment-partial.schema.d.ts +0 -18
- package/dist/models/assignment/assignment-partial.schema.d.ts.map +0 -1
- package/dist/models/assignment/assignment-partial.schema.js +0 -6
- package/dist/models/assignment/assignment-partial.schema.js.map +0 -1
- package/dist/models/assignment/assignment.schema.d.ts +0 -84
- package/dist/models/assignment/assignment.schema.d.ts.map +0 -1
- package/dist/models/assignment/assignment.schema.js +0 -27
- package/dist/models/assignment/assignment.schema.js.map +0 -1
- package/dist/models/assignment/index.d.ts +0 -4
- package/dist/models/assignment/index.d.ts.map +0 -1
- package/dist/models/assignment/index.js +0 -4
- package/dist/models/assignment/index.js.map +0 -1
- package/dist/models/department/department-minimal.schema.d.ts +0 -17
- package/dist/models/department/department-minimal.schema.d.ts.map +0 -1
- package/dist/models/department/department-minimal.schema.js +0 -13
- package/dist/models/department/department-minimal.schema.js.map +0 -1
- package/dist/models/department/department-partial.schema.d.ts +0 -17
- package/dist/models/department/department-partial.schema.d.ts.map +0 -1
- package/dist/models/department/department-partial.schema.js +0 -6
- package/dist/models/department/department-partial.schema.js.map +0 -1
- package/dist/models/department/department.schema.d.ts +0 -83
- package/dist/models/department/department.schema.d.ts.map +0 -1
- package/dist/models/department/department.schema.js +0 -20
- package/dist/models/department/department.schema.js.map +0 -1
- package/dist/models/department/index.d.ts +0 -4
- package/dist/models/department/index.d.ts.map +0 -1
- package/dist/models/department/index.js +0 -4
- package/dist/models/department/index.js.map +0 -1
- package/dist/models/facility/facility-minimal.schema.d.ts +0 -19
- package/dist/models/facility/facility-minimal.schema.d.ts.map +0 -1
- package/dist/models/facility/facility-minimal.schema.js +0 -10
- package/dist/models/facility/facility-minimal.schema.js.map +0 -1
- package/dist/models/facility/facility-partial.schema.d.ts +0 -19
- package/dist/models/facility/facility-partial.schema.d.ts.map +0 -1
- package/dist/models/facility/facility-partial.schema.js +0 -6
- package/dist/models/facility/facility-partial.schema.js.map +0 -1
- package/dist/models/facility/facility-settings.schema.d.ts +0 -16
- package/dist/models/facility/facility-settings.schema.d.ts.map +0 -1
- package/dist/models/facility/facility-settings.schema.js +0 -12
- package/dist/models/facility/facility-settings.schema.js.map +0 -1
- package/dist/models/facility/facility.schema.d.ts +0 -82
- package/dist/models/facility/facility.schema.d.ts.map +0 -1
- package/dist/models/facility/facility.schema.js +0 -23
- package/dist/models/facility/facility.schema.js.map +0 -1
- package/dist/models/facility/index.d.ts +0 -5
- package/dist/models/facility/index.d.ts.map +0 -1
- package/dist/models/facility/index.js +0 -5
- package/dist/models/facility/index.js.map +0 -1
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js +0 -23
- package/dist/models/index.js.map +0 -1
- package/dist/models/ksm/index.d.ts +0 -4
- package/dist/models/ksm/index.d.ts.map +0 -1
- package/dist/models/ksm/index.js +0 -4
- package/dist/models/ksm/index.js.map +0 -1
- package/dist/models/ksm/ksm-minimal.schema.d.ts +0 -12
- package/dist/models/ksm/ksm-minimal.schema.d.ts.map +0 -1
- package/dist/models/ksm/ksm-minimal.schema.js +0 -13
- package/dist/models/ksm/ksm-minimal.schema.js.map +0 -1
- package/dist/models/ksm/ksm-partial.schema.d.ts +0 -12
- package/dist/models/ksm/ksm-partial.schema.d.ts.map +0 -1
- package/dist/models/ksm/ksm-partial.schema.js +0 -6
- package/dist/models/ksm/ksm-partial.schema.js.map +0 -1
- package/dist/models/ksm/ksm.schema.d.ts +0 -78
- package/dist/models/ksm/ksm.schema.d.ts.map +0 -1
- package/dist/models/ksm/ksm.schema.js +0 -23
- package/dist/models/ksm/ksm.schema.js.map +0 -1
- package/dist/models/location/index.d.ts +0 -5
- package/dist/models/location/index.d.ts.map +0 -1
- package/dist/models/location/index.js +0 -5
- package/dist/models/location/index.js.map +0 -1
- package/dist/models/location/location-minimal.schema.d.ts +0 -33
- package/dist/models/location/location-minimal.schema.d.ts.map +0 -1
- package/dist/models/location/location-minimal.schema.js +0 -12
- package/dist/models/location/location-minimal.schema.js.map +0 -1
- package/dist/models/location/location-partial.schema.d.ts +0 -33
- package/dist/models/location/location-partial.schema.d.ts.map +0 -1
- package/dist/models/location/location-partial.schema.js +0 -6
- package/dist/models/location/location-partial.schema.js.map +0 -1
- package/dist/models/location/location-settings.schema.d.ts +0 -8
- package/dist/models/location/location-settings.schema.d.ts.map +0 -1
- package/dist/models/location/location-settings.schema.js +0 -7
- package/dist/models/location/location-settings.schema.js.map +0 -1
- package/dist/models/location/location.schema.d.ts +0 -98
- package/dist/models/location/location.schema.d.ts.map +0 -1
- package/dist/models/location/location.schema.js +0 -30
- package/dist/models/location/location.schema.js.map +0 -1
- package/dist/models/member/index.d.ts +0 -4
- package/dist/models/member/index.d.ts.map +0 -1
- package/dist/models/member/index.js +0 -4
- package/dist/models/member/index.js.map +0 -1
- package/dist/models/member/member-minimal.schema.d.ts +0 -11
- package/dist/models/member/member-minimal.schema.d.ts.map +0 -1
- package/dist/models/member/member-minimal.schema.js +0 -9
- package/dist/models/member/member-minimal.schema.js.map +0 -1
- package/dist/models/member/member-partial.schema.d.ts +0 -11
- package/dist/models/member/member-partial.schema.d.ts.map +0 -1
- package/dist/models/member/member-partial.schema.js +0 -6
- package/dist/models/member/member-partial.schema.js.map +0 -1
- package/dist/models/member/member.schema.d.ts +0 -73
- package/dist/models/member/member.schema.d.ts.map +0 -1
- package/dist/models/member/member.schema.js +0 -16
- package/dist/models/member/member.schema.js.map +0 -1
- package/dist/models/organization/index.d.ts +0 -5
- package/dist/models/organization/index.d.ts.map +0 -1
- package/dist/models/organization/index.js +0 -5
- package/dist/models/organization/index.js.map +0 -1
- package/dist/models/organization/organization-minimal.schema.d.ts +0 -22
- package/dist/models/organization/organization-minimal.schema.d.ts.map +0 -1
- package/dist/models/organization/organization-minimal.schema.js +0 -9
- package/dist/models/organization/organization-minimal.schema.js.map +0 -1
- package/dist/models/organization/organization-partial.schema.d.ts +0 -22
- package/dist/models/organization/organization-partial.schema.d.ts.map +0 -1
- package/dist/models/organization/organization-partial.schema.js +0 -6
- package/dist/models/organization/organization-partial.schema.js.map +0 -1
- package/dist/models/organization/organization-settings.schema.d.ts +0 -8
- package/dist/models/organization/organization-settings.schema.d.ts.map +0 -1
- package/dist/models/organization/organization-settings.schema.js +0 -7
- package/dist/models/organization/organization-settings.schema.js.map +0 -1
- package/dist/models/organization/organization.schema.d.ts +0 -84
- package/dist/models/organization/organization.schema.d.ts.map +0 -1
- package/dist/models/organization/organization.schema.js +0 -24
- package/dist/models/organization/organization.schema.js.map +0 -1
- package/dist/models/patient/index.d.ts +0 -4
- package/dist/models/patient/index.d.ts.map +0 -1
- package/dist/models/patient/index.js +0 -4
- package/dist/models/patient/index.js.map +0 -1
- package/dist/models/patient/patient-minimal.schema.d.ts +0 -95
- package/dist/models/patient/patient-minimal.schema.d.ts.map +0 -1
- package/dist/models/patient/patient-minimal.schema.js +0 -13
- package/dist/models/patient/patient-minimal.schema.js.map +0 -1
- package/dist/models/patient/patient-partial.schema.d.ts +0 -95
- package/dist/models/patient/patient-partial.schema.d.ts.map +0 -1
- package/dist/models/patient/patient-partial.schema.js +0 -6
- package/dist/models/patient/patient-partial.schema.js.map +0 -1
- package/dist/models/patient/patient.schema.d.ts +0 -161
- package/dist/models/patient/patient.schema.d.ts.map +0 -1
- package/dist/models/patient/patient.schema.js +0 -35
- package/dist/models/patient/patient.schema.js.map +0 -1
- package/dist/models/patient-additional/index.d.ts +0 -4
- package/dist/models/patient-additional/index.d.ts.map +0 -1
- package/dist/models/patient-additional/index.js +0 -4
- package/dist/models/patient-additional/index.js.map +0 -1
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts +0 -17
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts.map +0 -1
- package/dist/models/patient-additional/patient-additional-minimal.schema.js +0 -13
- package/dist/models/patient-additional/patient-additional-minimal.schema.js.map +0 -1
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts +0 -17
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts.map +0 -1
- package/dist/models/patient-additional/patient-additional-partial.schema.js +0 -6
- package/dist/models/patient-additional/patient-additional-partial.schema.js.map +0 -1
- package/dist/models/patient-additional/patient-additional.schema.d.ts +0 -83
- package/dist/models/patient-additional/patient-additional.schema.d.ts.map +0 -1
- package/dist/models/patient-additional/patient-additional.schema.js +0 -21
- package/dist/models/patient-additional/patient-additional.schema.js.map +0 -1
- package/dist/models/payer/index.d.ts +0 -5
- package/dist/models/payer/index.d.ts.map +0 -1
- package/dist/models/payer/index.js +0 -5
- package/dist/models/payer/index.js.map +0 -1
- package/dist/models/payer/payer-minimal.schema.d.ts +0 -67
- package/dist/models/payer/payer-minimal.schema.d.ts.map +0 -1
- package/dist/models/payer/payer-minimal.schema.js +0 -13
- package/dist/models/payer/payer-minimal.schema.js.map +0 -1
- package/dist/models/payer/payer-partial.schema.d.ts +0 -67
- package/dist/models/payer/payer-partial.schema.d.ts.map +0 -1
- package/dist/models/payer/payer-partial.schema.js +0 -6
- package/dist/models/payer/payer-partial.schema.js.map +0 -1
- package/dist/models/payer/payer-settings.schema.d.ts +0 -27
- package/dist/models/payer/payer-settings.schema.d.ts.map +0 -1
- package/dist/models/payer/payer-settings.schema.js +0 -20
- package/dist/models/payer/payer-settings.schema.js.map +0 -1
- package/dist/models/payer/payer.schema.d.ts +0 -133
- package/dist/models/payer/payer.schema.d.ts.map +0 -1
- package/dist/models/payer/payer.schema.js +0 -47
- package/dist/models/payer/payer.schema.js.map +0 -1
- package/dist/models/practitioner-schedule/index.d.ts +0 -4
- package/dist/models/practitioner-schedule/index.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/index.js +0 -4
- package/dist/models/practitioner-schedule/index.js.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts +0 -20
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js +0 -13
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts +0 -20
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js +0 -6
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts +0 -86
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js +0 -26
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js.map +0 -1
- package/dist/models/practitioner-session/index.d.ts +0 -4
- package/dist/models/practitioner-session/index.d.ts.map +0 -1
- package/dist/models/practitioner-session/index.js +0 -4
- package/dist/models/practitioner-session/index.js.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts +0 -14
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js +0 -13
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts +0 -14
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js +0 -6
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js.map +0 -1
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts +0 -80
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts.map +0 -1
- package/dist/models/practitioner-session/practitioner-session.schema.js +0 -26
- package/dist/models/practitioner-session/practitioner-session.schema.js.map +0 -1
- package/dist/models/queue/index.d.ts +0 -5
- package/dist/models/queue/index.d.ts.map +0 -1
- package/dist/models/queue/index.js +0 -5
- package/dist/models/queue/index.js.map +0 -1
- package/dist/models/queue/queue-minimal.schema.d.ts +0 -31
- package/dist/models/queue/queue-minimal.schema.d.ts.map +0 -1
- package/dist/models/queue/queue-minimal.schema.js +0 -13
- package/dist/models/queue/queue-minimal.schema.js.map +0 -1
- package/dist/models/queue/queue-partial.schema.d.ts +0 -31
- package/dist/models/queue/queue-partial.schema.d.ts.map +0 -1
- package/dist/models/queue/queue-partial.schema.js +0 -6
- package/dist/models/queue/queue-partial.schema.js.map +0 -1
- package/dist/models/queue/queue-settings.schema.d.ts +0 -27
- package/dist/models/queue/queue-settings.schema.d.ts.map +0 -1
- package/dist/models/queue/queue-settings.schema.js +0 -22
- package/dist/models/queue/queue-settings.schema.js.map +0 -1
- package/dist/models/queue/queue.schema.d.ts +0 -97
- package/dist/models/queue/queue.schema.d.ts.map +0 -1
- package/dist/models/queue/queue.schema.js +0 -32
- package/dist/models/queue/queue.schema.js.map +0 -1
- package/dist/models/queue-event-log/index.d.ts +0 -4
- package/dist/models/queue-event-log/index.d.ts.map +0 -1
- package/dist/models/queue-event-log/index.js +0 -4
- package/dist/models/queue-event-log/index.js.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts +0 -18
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js +0 -13
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts +0 -18
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js +0 -6
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js.map +0 -1
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts +0 -84
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts.map +0 -1
- package/dist/models/queue-event-log/queue-event-log.schema.js +0 -25
- package/dist/models/queue-event-log/queue-event-log.schema.js.map +0 -1
- package/dist/models/queue-number/index.d.ts +0 -5
- package/dist/models/queue-number/index.d.ts.map +0 -1
- package/dist/models/queue-number/index.js +0 -5
- package/dist/models/queue-number/index.js.map +0 -1
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts +0 -21
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number-minimal.schema.js +0 -14
- package/dist/models/queue-number/queue-number-minimal.schema.js.map +0 -1
- package/dist/models/queue-number/queue-number-partial.schema.d.ts +0 -21
- package/dist/models/queue-number/queue-number-partial.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number-partial.schema.js +0 -6
- package/dist/models/queue-number/queue-number-partial.schema.js.map +0 -1
- package/dist/models/queue-number/queue-number-settings.schema.d.ts +0 -27
- package/dist/models/queue-number/queue-number-settings.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number-settings.schema.js +0 -22
- package/dist/models/queue-number/queue-number-settings.schema.js.map +0 -1
- package/dist/models/queue-number/queue-number.schema.d.ts +0 -88
- package/dist/models/queue-number/queue-number.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number.schema.js +0 -42
- package/dist/models/queue-number/queue-number.schema.js.map +0 -1
- package/dist/models/settings/index.d.ts +0 -4
- package/dist/models/settings/index.d.ts.map +0 -1
- package/dist/models/settings/index.js +0 -4
- package/dist/models/settings/index.js.map +0 -1
- package/dist/models/settings/settings-minimal.schema.d.ts +0 -26
- package/dist/models/settings/settings-minimal.schema.d.ts.map +0 -1
- package/dist/models/settings/settings-minimal.schema.js +0 -11
- package/dist/models/settings/settings-minimal.schema.js.map +0 -1
- package/dist/models/settings/settings-partial.schema.d.ts +0 -26
- package/dist/models/settings/settings-partial.schema.d.ts.map +0 -1
- package/dist/models/settings/settings-partial.schema.js +0 -6
- package/dist/models/settings/settings-partial.schema.js.map +0 -1
- package/dist/models/settings/settings.schema.d.ts +0 -96
- package/dist/models/settings/settings.schema.d.ts.map +0 -1
- package/dist/models/settings/settings.schema.js +0 -25
- package/dist/models/settings/settings.schema.js.map +0 -1
- package/dist/models/staff/index.d.ts +0 -4
- package/dist/models/staff/index.d.ts.map +0 -1
- package/dist/models/staff/index.js +0 -4
- package/dist/models/staff/index.js.map +0 -1
- package/dist/models/staff/staff-minimal.schema.d.ts +0 -27
- package/dist/models/staff/staff-minimal.schema.d.ts.map +0 -1
- package/dist/models/staff/staff-minimal.schema.js +0 -13
- package/dist/models/staff/staff-minimal.schema.js.map +0 -1
- package/dist/models/staff/staff-partial.schema.d.ts +0 -27
- package/dist/models/staff/staff-partial.schema.d.ts.map +0 -1
- package/dist/models/staff/staff-partial.schema.js +0 -6
- package/dist/models/staff/staff-partial.schema.js.map +0 -1
- package/dist/models/staff/staff.schema.d.ts +0 -93
- package/dist/models/staff/staff.schema.d.ts.map +0 -1
- package/dist/models/staff/staff.schema.js +0 -25
- package/dist/models/staff/staff.schema.js.map +0 -1
- package/dist/models/unit/index.d.ts +0 -4
- package/dist/models/unit/index.d.ts.map +0 -1
- package/dist/models/unit/index.js +0 -4
- package/dist/models/unit/index.js.map +0 -1
- package/dist/models/unit/unit-minimal.schema.d.ts +0 -27
- package/dist/models/unit/unit-minimal.schema.d.ts.map +0 -1
- package/dist/models/unit/unit-minimal.schema.js +0 -13
- package/dist/models/unit/unit-minimal.schema.js.map +0 -1
- package/dist/models/unit/unit-partial.schema.d.ts +0 -27
- package/dist/models/unit/unit-partial.schema.d.ts.map +0 -1
- package/dist/models/unit/unit-partial.schema.js +0 -6
- package/dist/models/unit/unit-partial.schema.js.map +0 -1
- package/dist/models/unit/unit.schema.d.ts +0 -93
- package/dist/models/unit/unit.schema.d.ts.map +0 -1
- package/dist/models/unit/unit.schema.js +0 -27
- package/dist/models/unit/unit.schema.js.map +0 -1
- package/dist/models/user/index.d.ts +0 -5
- package/dist/models/user/index.d.ts.map +0 -1
- package/dist/models/user/index.js +0 -5
- package/dist/models/user/index.js.map +0 -1
- package/dist/models/user/user-minimal.schema.d.ts +0 -65
- package/dist/models/user/user-minimal.schema.d.ts.map +0 -1
- package/dist/models/user/user-minimal.schema.js +0 -10
- package/dist/models/user/user-minimal.schema.js.map +0 -1
- package/dist/models/user/user-partial.schema.d.ts +0 -65
- package/dist/models/user/user-partial.schema.d.ts.map +0 -1
- package/dist/models/user/user-partial.schema.js +0 -6
- package/dist/models/user/user-partial.schema.js.map +0 -1
- package/dist/models/user/user-settings.schema.d.ts +0 -8
- package/dist/models/user/user-settings.schema.d.ts.map +0 -1
- package/dist/models/user/user-settings.schema.js +0 -7
- package/dist/models/user/user-settings.schema.js.map +0 -1
- package/dist/models/user/user.schema.d.ts +0 -134
- package/dist/models/user/user.schema.d.ts.map +0 -1
- package/dist/models/user/user.schema.js +0 -39
- package/dist/models/user/user.schema.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,3324 @@
|
|
|
1
|
+
import z$1, { z } from 'zod';
|
|
2
|
+
import * as mongoose from 'mongoose';
|
|
3
|
+
import { Model, Schema } from 'mongoose';
|
|
4
|
+
import { InferDocument } from '@nullix/zod-mongoose';
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Standardized Zod schemas used across CentriCare projects.
|
|
7
|
+
* ISO 8601 timestamp string.
|
|
4
8
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
declare const timestampSchema: z.ZodString;
|
|
10
|
+
type Timestamp = z.infer<typeof timestampSchema>;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Pagination metadata included in every standardized API response.
|
|
14
|
+
*/
|
|
15
|
+
declare const metadataSchema: z.ZodObject<{
|
|
16
|
+
total: z.ZodNumber;
|
|
17
|
+
offset: z.ZodNumber;
|
|
18
|
+
limit: z.ZodNumber;
|
|
19
|
+
next: z.ZodNullable<z.ZodString>;
|
|
20
|
+
previous: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
type Metadata = z.infer<typeof metadataSchema>;
|
|
23
|
+
/**
|
|
24
|
+
* Standardized API response envelope used by CentriCare services.
|
|
25
|
+
* Based on /Docs/API/1. Standardized Response.md
|
|
26
|
+
*
|
|
27
|
+
* {
|
|
28
|
+
* "success": true,
|
|
29
|
+
* "message": "Successfully do something",
|
|
30
|
+
* "status_code": "200",
|
|
31
|
+
* "data": [],
|
|
32
|
+
* "metadata": {
|
|
33
|
+
* "total": 1,
|
|
34
|
+
* "offset": 0,
|
|
35
|
+
* "limit": 1,
|
|
36
|
+
* "next": null,
|
|
37
|
+
* "previous": null
|
|
38
|
+
* }
|
|
39
|
+
* }
|
|
40
|
+
*/
|
|
41
|
+
declare const apiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
42
|
+
success: z.ZodBoolean;
|
|
43
|
+
message: z.ZodString;
|
|
44
|
+
status_code: z.ZodString;
|
|
45
|
+
data: z.ZodArray<T>;
|
|
46
|
+
metadata: z.ZodObject<{
|
|
47
|
+
total: z.ZodNumber;
|
|
48
|
+
offset: z.ZodNumber;
|
|
49
|
+
limit: z.ZodNumber;
|
|
50
|
+
next: z.ZodNullable<z.ZodString>;
|
|
51
|
+
previous: z.ZodNullable<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
type ApiResponse<T> = {
|
|
55
|
+
success: boolean;
|
|
56
|
+
message: string;
|
|
57
|
+
status_code: string;
|
|
58
|
+
data: T[];
|
|
59
|
+
metadata: Metadata;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Schema for a single-resource API response.
|
|
63
|
+
* For single-resource requests, metadata.total is always 1,
|
|
64
|
+
* offset and limit default to 0, and next/previous are null.
|
|
65
|
+
*/
|
|
66
|
+
declare const singleResourceResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
67
|
+
success: z.ZodBoolean;
|
|
68
|
+
message: z.ZodString;
|
|
69
|
+
status_code: z.ZodString;
|
|
70
|
+
data: z.ZodArray<T>;
|
|
71
|
+
metadata: z.ZodObject<{
|
|
72
|
+
total: z.ZodNumber;
|
|
73
|
+
offset: z.ZodNumber;
|
|
74
|
+
limit: z.ZodNumber;
|
|
75
|
+
next: z.ZodNullable<z.ZodString>;
|
|
76
|
+
previous: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
type SingleResourceResponse<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof singleResourceResponseSchema<T>>>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The type of a setting option value.
|
|
83
|
+
*
|
|
84
|
+
* Accepts "string", "number", "boolean", "date", or an array of those
|
|
85
|
+
* for options with multiple choices. Also accepts any valid registry system
|
|
86
|
+
* path (e.g. "crn:status:system") for options whose input type is determined
|
|
87
|
+
* by a registry code system.
|
|
88
|
+
*/
|
|
89
|
+
declare const settingOptionTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
90
|
+
string: "string";
|
|
91
|
+
number: "number";
|
|
92
|
+
boolean: "boolean";
|
|
93
|
+
date: "date";
|
|
94
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
95
|
+
string: "string";
|
|
96
|
+
number: "number";
|
|
97
|
+
boolean: "boolean";
|
|
98
|
+
date: "date";
|
|
99
|
+
}>>, z.ZodString]>;
|
|
100
|
+
type SettingOptionType = z.infer<typeof settingOptionTypeSchema>;
|
|
101
|
+
/**
|
|
102
|
+
* A single setting option item.
|
|
103
|
+
*
|
|
104
|
+
* - `default` and `value` can be null but cannot be undefined or missing.
|
|
105
|
+
*/
|
|
106
|
+
declare const settingOptionSchema: z.ZodObject<{
|
|
107
|
+
field: z.ZodString;
|
|
108
|
+
label: z.ZodOptional<z.ZodString>;
|
|
109
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
110
|
+
string: "string";
|
|
111
|
+
number: "number";
|
|
112
|
+
boolean: "boolean";
|
|
113
|
+
date: "date";
|
|
114
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
115
|
+
string: "string";
|
|
116
|
+
number: "number";
|
|
117
|
+
boolean: "boolean";
|
|
118
|
+
date: "date";
|
|
119
|
+
}>>, z.ZodString]>;
|
|
120
|
+
default: z.ZodNullable<z.ZodString>;
|
|
121
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
type SettingOption = z.infer<typeof settingOptionSchema>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* CodedConcept - A data type for coded system values based on a defined code system.
|
|
127
|
+
* Used across CentriCare models for statuses, identifiers, contacts, demographic fields, etc.
|
|
128
|
+
*
|
|
129
|
+
* Accepts only codes and code systems registered in the CentriCare Registry.
|
|
130
|
+
* The system must exist in the registry, and the value must be valid for that system.
|
|
131
|
+
*/
|
|
132
|
+
declare const codedConceptSchema: z.ZodObject<{
|
|
133
|
+
system: z.ZodString;
|
|
134
|
+
value: z.ZodString;
|
|
135
|
+
display: z.ZodOptional<z.ZodString>;
|
|
136
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
137
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
type CodedConcept = z.infer<typeof codedConceptSchema>;
|
|
140
|
+
|
|
141
|
+
declare const demographicSchema: z$1.ZodObject<{
|
|
142
|
+
sex: z$1.ZodObject<{
|
|
143
|
+
system: z$1.ZodString;
|
|
144
|
+
value: z$1.ZodString;
|
|
145
|
+
display: z$1.ZodOptional<z$1.ZodString>;
|
|
146
|
+
valid: z$1.ZodOptional<z$1.ZodString>;
|
|
147
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
148
|
+
}, z$1.core.$strip>;
|
|
149
|
+
religion: z$1.ZodObject<{
|
|
150
|
+
system: z$1.ZodString;
|
|
151
|
+
value: z$1.ZodString;
|
|
152
|
+
display: z$1.ZodOptional<z$1.ZodString>;
|
|
153
|
+
valid: z$1.ZodOptional<z$1.ZodString>;
|
|
154
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
155
|
+
}, z$1.core.$strip>;
|
|
156
|
+
ethnicity: z$1.ZodOptional<z$1.ZodString>;
|
|
157
|
+
marital_status: z$1.ZodObject<{
|
|
158
|
+
system: z$1.ZodString;
|
|
159
|
+
value: z$1.ZodString;
|
|
160
|
+
display: z$1.ZodOptional<z$1.ZodString>;
|
|
161
|
+
valid: z$1.ZodOptional<z$1.ZodString>;
|
|
162
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
163
|
+
}, z$1.core.$strip>;
|
|
164
|
+
date_of_birth: z$1.ZodString;
|
|
165
|
+
place_of_birth: z$1.ZodOptional<z$1.ZodString>;
|
|
166
|
+
}, z$1.core.$strip>;
|
|
167
|
+
type Demographic = z$1.infer<typeof demographicSchema>;
|
|
168
|
+
|
|
169
|
+
declare const addressSchema: z.ZodObject<{
|
|
170
|
+
street: z.ZodString;
|
|
171
|
+
subdistrict: z.ZodObject<{
|
|
172
|
+
system: z.ZodString;
|
|
173
|
+
value: z.ZodString;
|
|
174
|
+
display: z.ZodOptional<z.ZodString>;
|
|
175
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
176
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
district: z.ZodObject<{
|
|
179
|
+
system: z.ZodString;
|
|
180
|
+
value: z.ZodString;
|
|
181
|
+
display: z.ZodOptional<z.ZodString>;
|
|
182
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
183
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
city: z.ZodObject<{
|
|
186
|
+
system: z.ZodString;
|
|
187
|
+
value: z.ZodString;
|
|
188
|
+
display: z.ZodOptional<z.ZodString>;
|
|
189
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
190
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
province: z.ZodObject<{
|
|
193
|
+
system: z.ZodString;
|
|
194
|
+
value: z.ZodString;
|
|
195
|
+
display: z.ZodOptional<z.ZodString>;
|
|
196
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
197
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
type Address = z.infer<typeof addressSchema>;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* ObjectId schema for MongoDB document IDs.
|
|
205
|
+
* Validates a 24-character hexadecimal string (MongoDB ObjectId format).
|
|
206
|
+
*/
|
|
207
|
+
declare const objectIdSchema: z.ZodString;
|
|
208
|
+
type ObjectId = string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Current schema version for the User model.
|
|
212
|
+
*
|
|
213
|
+
* The persisted record does not include a schema_version field; this constant
|
|
214
|
+
* tracks the shape consumers are validating against.
|
|
215
|
+
*/
|
|
216
|
+
declare const USER_SCHEMA_VERSION = 1;
|
|
217
|
+
/**
|
|
218
|
+
* Full user record schema.
|
|
219
|
+
*
|
|
220
|
+
* Based on /Docs/Data/Data+Model/User
|
|
221
|
+
* Auto-generated fields: id, created_at, updated_at (by Better Auth)
|
|
222
|
+
*/
|
|
223
|
+
declare const userSchema: z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
full_name: z.ZodString;
|
|
226
|
+
first_name: z.ZodString;
|
|
227
|
+
middle_name: z.ZodOptional<z.ZodString>;
|
|
228
|
+
last_name: z.ZodString;
|
|
229
|
+
salutation: z.ZodOptional<z.ZodString>;
|
|
230
|
+
title: z.ZodOptional<z.ZodString>;
|
|
231
|
+
email: z.ZodString;
|
|
232
|
+
email_verified: z.ZodBoolean;
|
|
233
|
+
image: z.ZodOptional<z.ZodString>;
|
|
234
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
235
|
+
system: z.ZodString;
|
|
236
|
+
value: z.ZodString;
|
|
237
|
+
display: z.ZodOptional<z.ZodString>;
|
|
238
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
239
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
242
|
+
system: z.ZodString;
|
|
243
|
+
value: z.ZodString;
|
|
244
|
+
display: z.ZodOptional<z.ZodString>;
|
|
245
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
246
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
demographic: z.ZodObject<{
|
|
249
|
+
sex: z.ZodObject<{
|
|
250
|
+
system: z.ZodString;
|
|
251
|
+
value: z.ZodString;
|
|
252
|
+
display: z.ZodOptional<z.ZodString>;
|
|
253
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
254
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
religion: z.ZodObject<{
|
|
257
|
+
system: z.ZodString;
|
|
258
|
+
value: z.ZodString;
|
|
259
|
+
display: z.ZodOptional<z.ZodString>;
|
|
260
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
261
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
264
|
+
marital_status: z.ZodObject<{
|
|
265
|
+
system: z.ZodString;
|
|
266
|
+
value: z.ZodString;
|
|
267
|
+
display: z.ZodOptional<z.ZodString>;
|
|
268
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
269
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
date_of_birth: z.ZodString;
|
|
272
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
275
|
+
system: z.ZodString;
|
|
276
|
+
value: z.ZodString;
|
|
277
|
+
display: z.ZodOptional<z.ZodString>;
|
|
278
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
279
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
280
|
+
}, z.core.$strip>>>;
|
|
281
|
+
settings_id: z.ZodString;
|
|
282
|
+
created_at: z.ZodString;
|
|
283
|
+
updated_at: z.ZodString;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
type User = z.infer<typeof userSchema>;
|
|
286
|
+
declare const UserMongooseSchema: Schema;
|
|
287
|
+
type UserDocument = InferDocument<typeof userSchema>;
|
|
288
|
+
declare const UserModel: Model<{
|
|
289
|
+
[x: number]: unknown;
|
|
290
|
+
[x: symbol]: unknown;
|
|
291
|
+
[x: string]: unknown;
|
|
292
|
+
}, {}, {}, {
|
|
293
|
+
id: string;
|
|
294
|
+
}, mongoose.Document<unknown, {}, {
|
|
295
|
+
[x: number]: unknown;
|
|
296
|
+
[x: symbol]: unknown;
|
|
297
|
+
[x: string]: unknown;
|
|
298
|
+
}, {
|
|
299
|
+
id: string;
|
|
300
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
301
|
+
[x: number]: unknown;
|
|
302
|
+
[x: symbol]: unknown;
|
|
303
|
+
[x: string]: unknown;
|
|
304
|
+
} & Required<{
|
|
305
|
+
_id: unknown;
|
|
306
|
+
}> & {
|
|
307
|
+
__v: number;
|
|
308
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
309
|
+
id: string;
|
|
310
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
311
|
+
[x: number]: unknown;
|
|
312
|
+
[x: symbol]: unknown;
|
|
313
|
+
[x: string]: unknown;
|
|
314
|
+
}, mongoose.Document<unknown, {}, {
|
|
315
|
+
[x: number]: unknown;
|
|
316
|
+
[x: symbol]: unknown;
|
|
317
|
+
[x: string]: unknown;
|
|
318
|
+
}, {
|
|
319
|
+
id: string;
|
|
320
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
321
|
+
[x: number]: unknown;
|
|
322
|
+
[x: symbol]: unknown;
|
|
323
|
+
[x: string]: unknown;
|
|
324
|
+
} & Required<{
|
|
325
|
+
_id: unknown;
|
|
326
|
+
}> & {
|
|
327
|
+
__v: number;
|
|
328
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
329
|
+
id: string;
|
|
330
|
+
}>, unknown, {
|
|
331
|
+
[x: number]: {};
|
|
332
|
+
[x: symbol]: {};
|
|
333
|
+
[x: string]: {};
|
|
334
|
+
} & Required<{
|
|
335
|
+
_id: unknown;
|
|
336
|
+
}> & {
|
|
337
|
+
__v: number;
|
|
338
|
+
}>, {
|
|
339
|
+
[x: number]: {};
|
|
340
|
+
[x: symbol]: {};
|
|
341
|
+
[x: string]: {};
|
|
342
|
+
} & Required<{
|
|
343
|
+
_id: unknown;
|
|
344
|
+
}> & {
|
|
345
|
+
__v: number;
|
|
346
|
+
}>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Current schema version for the User settings record.
|
|
350
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
351
|
+
*/
|
|
352
|
+
declare const USER_SETTINGS_SCHEMA_VERSION = 1;
|
|
353
|
+
declare const userSettingsSchema: z.ZodObject<{
|
|
354
|
+
_id: z.ZodString;
|
|
355
|
+
scope: z.ZodString;
|
|
356
|
+
options: z.ZodArray<z.ZodObject<{
|
|
357
|
+
field: z.ZodString;
|
|
358
|
+
label: z.ZodOptional<z.ZodString>;
|
|
359
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
360
|
+
string: "string";
|
|
361
|
+
number: "number";
|
|
362
|
+
boolean: "boolean";
|
|
363
|
+
date: "date";
|
|
364
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
365
|
+
string: "string";
|
|
366
|
+
number: "number";
|
|
367
|
+
boolean: "boolean";
|
|
368
|
+
date: "date";
|
|
369
|
+
}>>, z.ZodString]>;
|
|
370
|
+
default: z.ZodNullable<z.ZodString>;
|
|
371
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
updated_at: z.ZodString;
|
|
374
|
+
updated_by: z.ZodString;
|
|
375
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
declare const userSettingsKVSchema: z.ZodObject<{
|
|
378
|
+
lock_screen: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
+
lock_screen_pin: z.ZodOptional<z.ZodString>;
|
|
380
|
+
language: z.ZodDefault<z.ZodString>;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
type UserSettings = z.infer<typeof userSettingsSchema>;
|
|
383
|
+
type UserSettingsKV = z.infer<typeof userSettingsKVSchema>;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Minimal user schema (omits server-generated fields).
|
|
387
|
+
*/
|
|
388
|
+
declare const userMinimalSchema: z.ZodObject<{
|
|
389
|
+
salutation: z.ZodOptional<z.ZodString>;
|
|
390
|
+
email: z.ZodString;
|
|
391
|
+
demographic: z.ZodObject<{
|
|
392
|
+
sex: z.ZodObject<{
|
|
393
|
+
system: z.ZodString;
|
|
394
|
+
value: z.ZodString;
|
|
395
|
+
display: z.ZodOptional<z.ZodString>;
|
|
396
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
397
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
398
|
+
}, z.core.$strip>;
|
|
399
|
+
religion: z.ZodObject<{
|
|
400
|
+
system: z.ZodString;
|
|
401
|
+
value: z.ZodString;
|
|
402
|
+
display: z.ZodOptional<z.ZodString>;
|
|
403
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
404
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
407
|
+
marital_status: z.ZodObject<{
|
|
408
|
+
system: z.ZodString;
|
|
409
|
+
value: z.ZodString;
|
|
410
|
+
display: z.ZodOptional<z.ZodString>;
|
|
411
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
412
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
date_of_birth: z.ZodString;
|
|
415
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
settings_id: z.ZodString;
|
|
418
|
+
full_name: z.ZodString;
|
|
419
|
+
first_name: z.ZodString;
|
|
420
|
+
middle_name: z.ZodOptional<z.ZodString>;
|
|
421
|
+
last_name: z.ZodString;
|
|
422
|
+
title: z.ZodOptional<z.ZodString>;
|
|
423
|
+
email_verified: z.ZodBoolean;
|
|
424
|
+
image: z.ZodOptional<z.ZodString>;
|
|
425
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
426
|
+
system: z.ZodString;
|
|
427
|
+
value: z.ZodString;
|
|
428
|
+
display: z.ZodOptional<z.ZodString>;
|
|
429
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
430
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
431
|
+
}, z.core.$strip>>;
|
|
432
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
433
|
+
system: z.ZodString;
|
|
434
|
+
value: z.ZodString;
|
|
435
|
+
display: z.ZodOptional<z.ZodString>;
|
|
436
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
437
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
440
|
+
system: z.ZodString;
|
|
441
|
+
value: z.ZodString;
|
|
442
|
+
display: z.ZodOptional<z.ZodString>;
|
|
443
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
444
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
445
|
+
}, z.core.$strip>>>;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
type UserMinimal = z.infer<typeof userMinimalSchema>;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Partial user schema (based on minimal, all fields optional).
|
|
451
|
+
*/
|
|
452
|
+
declare const userPartialSchema: z.ZodObject<{
|
|
453
|
+
salutation: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
454
|
+
email: z.ZodOptional<z.ZodString>;
|
|
455
|
+
demographic: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
sex: z.ZodObject<{
|
|
457
|
+
system: z.ZodString;
|
|
458
|
+
value: z.ZodString;
|
|
459
|
+
display: z.ZodOptional<z.ZodString>;
|
|
460
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
461
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
religion: z.ZodObject<{
|
|
464
|
+
system: z.ZodString;
|
|
465
|
+
value: z.ZodString;
|
|
466
|
+
display: z.ZodOptional<z.ZodString>;
|
|
467
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
468
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
471
|
+
marital_status: z.ZodObject<{
|
|
472
|
+
system: z.ZodString;
|
|
473
|
+
value: z.ZodString;
|
|
474
|
+
display: z.ZodOptional<z.ZodString>;
|
|
475
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
476
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
date_of_birth: z.ZodString;
|
|
479
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
482
|
+
full_name: z.ZodOptional<z.ZodString>;
|
|
483
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
484
|
+
middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
485
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
486
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
487
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
489
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
490
|
+
system: z.ZodString;
|
|
491
|
+
value: z.ZodString;
|
|
492
|
+
display: z.ZodOptional<z.ZodString>;
|
|
493
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
494
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
495
|
+
}, z.core.$strip>>>;
|
|
496
|
+
identifiers: z.ZodOptional<z.ZodArray<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
|
+
contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
504
|
+
system: z.ZodString;
|
|
505
|
+
value: z.ZodString;
|
|
506
|
+
display: z.ZodOptional<z.ZodString>;
|
|
507
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
508
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
509
|
+
}, z.core.$strip>>>>;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
type UserPartial = z.infer<typeof userPartialSchema>;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Current schema version for the Assignment model.
|
|
515
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
516
|
+
*/
|
|
517
|
+
declare const ASSIGNMENT_SCHEMA_VERSION = 1;
|
|
518
|
+
declare const assignmentSchema: z.ZodObject<{
|
|
519
|
+
_id: z.ZodString;
|
|
520
|
+
facility_id: z.ZodString;
|
|
521
|
+
type: z.ZodObject<{
|
|
522
|
+
system: z.ZodString;
|
|
523
|
+
value: z.ZodString;
|
|
524
|
+
display: z.ZodOptional<z.ZodString>;
|
|
525
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
526
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
}, z.core.$strip>;
|
|
528
|
+
for: z.ZodString;
|
|
529
|
+
assigned_to: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>;
|
|
530
|
+
created_at: z.ZodString;
|
|
531
|
+
created_by: z.ZodString;
|
|
532
|
+
updated_at: z.ZodString;
|
|
533
|
+
updated_by: z.ZodString;
|
|
534
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
type Assignment = z.infer<typeof assignmentSchema>;
|
|
537
|
+
declare const AssignmentMongooseSchema: Schema;
|
|
538
|
+
type AssignmentDocument = InferDocument<typeof assignmentSchema>;
|
|
539
|
+
declare const AssignmentModel: Model<{
|
|
540
|
+
[x: number]: unknown;
|
|
541
|
+
[x: symbol]: unknown;
|
|
542
|
+
[x: string]: unknown;
|
|
543
|
+
}, {}, {}, {
|
|
544
|
+
id: string;
|
|
545
|
+
}, mongoose.Document<unknown, {}, {
|
|
546
|
+
[x: number]: unknown;
|
|
547
|
+
[x: symbol]: unknown;
|
|
548
|
+
[x: string]: unknown;
|
|
549
|
+
}, {
|
|
550
|
+
id: string;
|
|
551
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
552
|
+
[x: number]: unknown;
|
|
553
|
+
[x: symbol]: unknown;
|
|
554
|
+
[x: string]: unknown;
|
|
555
|
+
} & Required<{
|
|
556
|
+
_id: unknown;
|
|
557
|
+
}> & {
|
|
558
|
+
__v: number;
|
|
559
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
560
|
+
id: string;
|
|
561
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
562
|
+
[x: number]: unknown;
|
|
563
|
+
[x: symbol]: unknown;
|
|
564
|
+
[x: string]: unknown;
|
|
565
|
+
}, mongoose.Document<unknown, {}, {
|
|
566
|
+
[x: number]: unknown;
|
|
567
|
+
[x: symbol]: unknown;
|
|
568
|
+
[x: string]: unknown;
|
|
569
|
+
}, {
|
|
570
|
+
id: string;
|
|
571
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
572
|
+
[x: number]: unknown;
|
|
573
|
+
[x: symbol]: unknown;
|
|
574
|
+
[x: string]: unknown;
|
|
575
|
+
} & Required<{
|
|
576
|
+
_id: unknown;
|
|
577
|
+
}> & {
|
|
578
|
+
__v: number;
|
|
579
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
580
|
+
id: string;
|
|
581
|
+
}>, unknown, {
|
|
582
|
+
[x: number]: {};
|
|
583
|
+
[x: symbol]: {};
|
|
584
|
+
[x: string]: {};
|
|
585
|
+
} & Required<{
|
|
586
|
+
_id: unknown;
|
|
587
|
+
}> & {
|
|
588
|
+
__v: number;
|
|
589
|
+
}>, {
|
|
590
|
+
[x: number]: {};
|
|
591
|
+
[x: symbol]: {};
|
|
592
|
+
[x: string]: {};
|
|
593
|
+
} & Required<{
|
|
594
|
+
_id: unknown;
|
|
595
|
+
}> & {
|
|
596
|
+
__v: number;
|
|
597
|
+
}>;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Minimal assignment schema (omits server-generated fields).
|
|
601
|
+
*/
|
|
602
|
+
declare const assignmentMinimalSchema: z.ZodObject<{
|
|
603
|
+
type: z.ZodObject<{
|
|
604
|
+
system: z.ZodString;
|
|
605
|
+
value: z.ZodString;
|
|
606
|
+
display: z.ZodOptional<z.ZodString>;
|
|
607
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
608
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
609
|
+
}, z.core.$strip>;
|
|
610
|
+
facility_id: z.ZodString;
|
|
611
|
+
for: z.ZodString;
|
|
612
|
+
assigned_to: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>;
|
|
613
|
+
}, z.core.$strip>;
|
|
614
|
+
type AssignmentMinimal = z.infer<typeof assignmentMinimalSchema>;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Partial assignment schema (based on minimal, all fields optional).
|
|
618
|
+
*/
|
|
619
|
+
declare const assignmentPartialSchema: z.ZodObject<{
|
|
620
|
+
type: z.ZodOptional<z.ZodObject<{
|
|
621
|
+
system: z.ZodString;
|
|
622
|
+
value: z.ZodString;
|
|
623
|
+
display: z.ZodOptional<z.ZodString>;
|
|
624
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
625
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
626
|
+
}, z.core.$strip>>;
|
|
627
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
628
|
+
for: z.ZodOptional<z.ZodString>;
|
|
629
|
+
assigned_to: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>>;
|
|
630
|
+
}, z.core.$strip>;
|
|
631
|
+
type AssignmentPartial = z.infer<typeof assignmentPartialSchema>;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Current schema version for the Department model.
|
|
635
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
636
|
+
*/
|
|
637
|
+
declare const DEPARTMENT_SCHEMA_VERSION = 1;
|
|
638
|
+
declare const departmentSchema: z.ZodObject<{
|
|
639
|
+
_id: z.ZodString;
|
|
640
|
+
facility_id: z.ZodString;
|
|
641
|
+
name: z.ZodString;
|
|
642
|
+
type: z.ZodObject<{
|
|
643
|
+
system: z.ZodString;
|
|
644
|
+
value: z.ZodString;
|
|
645
|
+
display: z.ZodOptional<z.ZodString>;
|
|
646
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
647
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
648
|
+
}, z.core.$strip>;
|
|
649
|
+
created_at: z.ZodString;
|
|
650
|
+
created_by: z.ZodString;
|
|
651
|
+
updated_at: z.ZodString;
|
|
652
|
+
updated_by: z.ZodString;
|
|
653
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
654
|
+
}, z.core.$strip>;
|
|
655
|
+
type Department = z.infer<typeof departmentSchema>;
|
|
656
|
+
declare const DepartmentMongooseSchema: Schema;
|
|
657
|
+
type DepartmentDocument = InferDocument<typeof departmentSchema>;
|
|
658
|
+
declare const DepartmentModel: Model<{
|
|
659
|
+
[x: number]: unknown;
|
|
660
|
+
[x: symbol]: unknown;
|
|
661
|
+
[x: string]: unknown;
|
|
662
|
+
}, {}, {}, {
|
|
663
|
+
id: string;
|
|
664
|
+
}, mongoose.Document<unknown, {}, {
|
|
665
|
+
[x: number]: unknown;
|
|
666
|
+
[x: symbol]: unknown;
|
|
667
|
+
[x: string]: unknown;
|
|
668
|
+
}, {
|
|
669
|
+
id: string;
|
|
670
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
671
|
+
[x: number]: unknown;
|
|
672
|
+
[x: symbol]: unknown;
|
|
673
|
+
[x: string]: unknown;
|
|
674
|
+
} & Required<{
|
|
675
|
+
_id: unknown;
|
|
676
|
+
}> & {
|
|
677
|
+
__v: number;
|
|
678
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
679
|
+
id: string;
|
|
680
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
681
|
+
[x: number]: unknown;
|
|
682
|
+
[x: symbol]: unknown;
|
|
683
|
+
[x: string]: unknown;
|
|
684
|
+
}, mongoose.Document<unknown, {}, {
|
|
685
|
+
[x: number]: unknown;
|
|
686
|
+
[x: symbol]: unknown;
|
|
687
|
+
[x: string]: unknown;
|
|
688
|
+
}, {
|
|
689
|
+
id: string;
|
|
690
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
691
|
+
[x: number]: unknown;
|
|
692
|
+
[x: symbol]: unknown;
|
|
693
|
+
[x: string]: unknown;
|
|
694
|
+
} & Required<{
|
|
695
|
+
_id: unknown;
|
|
696
|
+
}> & {
|
|
697
|
+
__v: number;
|
|
698
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
699
|
+
id: string;
|
|
700
|
+
}>, unknown, {
|
|
701
|
+
[x: number]: {};
|
|
702
|
+
[x: symbol]: {};
|
|
703
|
+
[x: string]: {};
|
|
704
|
+
} & Required<{
|
|
705
|
+
_id: unknown;
|
|
706
|
+
}> & {
|
|
707
|
+
__v: number;
|
|
708
|
+
}>, {
|
|
709
|
+
[x: number]: {};
|
|
710
|
+
[x: symbol]: {};
|
|
711
|
+
[x: string]: {};
|
|
712
|
+
} & Required<{
|
|
713
|
+
_id: unknown;
|
|
714
|
+
}> & {
|
|
715
|
+
__v: number;
|
|
716
|
+
}>;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Minimal department schema (omits server-generated fields).
|
|
720
|
+
*/
|
|
721
|
+
declare const departmentMinimalSchema: z.ZodObject<{
|
|
722
|
+
type: z.ZodObject<{
|
|
723
|
+
system: z.ZodString;
|
|
724
|
+
value: z.ZodString;
|
|
725
|
+
display: z.ZodOptional<z.ZodString>;
|
|
726
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
727
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
name: z.ZodString;
|
|
730
|
+
facility_id: z.ZodString;
|
|
731
|
+
}, z.core.$strip>;
|
|
732
|
+
type DepartmentMinimal = z.infer<typeof departmentMinimalSchema>;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Partial department schema (based on minimal, all fields optional).
|
|
736
|
+
*/
|
|
737
|
+
declare const departmentPartialSchema: z.ZodObject<{
|
|
738
|
+
type: z.ZodOptional<z.ZodObject<{
|
|
739
|
+
system: z.ZodString;
|
|
740
|
+
value: z.ZodString;
|
|
741
|
+
display: z.ZodOptional<z.ZodString>;
|
|
742
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
743
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
name: z.ZodOptional<z.ZodString>;
|
|
746
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
type DepartmentPartial = z.infer<typeof departmentPartialSchema>;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Current schema version for the Facility model.
|
|
752
|
+
*
|
|
753
|
+
* The persisted record does not include a schema_version field; this constant
|
|
754
|
+
* tracks the shape consumers are validating against.
|
|
755
|
+
*/
|
|
756
|
+
declare const FACILITY_SCHEMA_VERSION = 1;
|
|
757
|
+
declare const facilitySchema: z.ZodObject<{
|
|
758
|
+
id: z.ZodString;
|
|
759
|
+
name: z.ZodString;
|
|
760
|
+
member_count: z.ZodNumber;
|
|
761
|
+
organization_id: z.ZodString;
|
|
762
|
+
status: z.ZodObject<{
|
|
763
|
+
system: z.ZodString;
|
|
764
|
+
value: z.ZodString;
|
|
765
|
+
display: z.ZodOptional<z.ZodString>;
|
|
766
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
767
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
768
|
+
}, z.core.$strip>;
|
|
769
|
+
settings_id: z.ZodString;
|
|
770
|
+
createdAt: z.ZodString;
|
|
771
|
+
updatedAt: z.ZodString;
|
|
772
|
+
}, z.core.$strip>;
|
|
773
|
+
type Facility = z.infer<typeof facilitySchema>;
|
|
774
|
+
declare const FacilityMongooseSchema: Schema;
|
|
775
|
+
type FacilityDocument = InferDocument<typeof facilitySchema>;
|
|
776
|
+
declare const FacilityModel: Model<{
|
|
777
|
+
[x: number]: unknown;
|
|
778
|
+
[x: symbol]: unknown;
|
|
779
|
+
[x: string]: unknown;
|
|
780
|
+
}, {}, {}, {
|
|
781
|
+
id: string;
|
|
782
|
+
}, mongoose.Document<unknown, {}, {
|
|
783
|
+
[x: number]: unknown;
|
|
784
|
+
[x: symbol]: unknown;
|
|
785
|
+
[x: string]: unknown;
|
|
786
|
+
}, {
|
|
787
|
+
id: string;
|
|
788
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
789
|
+
[x: number]: unknown;
|
|
790
|
+
[x: symbol]: unknown;
|
|
791
|
+
[x: string]: unknown;
|
|
792
|
+
} & Required<{
|
|
793
|
+
_id: unknown;
|
|
794
|
+
}> & {
|
|
795
|
+
__v: number;
|
|
796
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
797
|
+
id: string;
|
|
798
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
799
|
+
[x: number]: unknown;
|
|
800
|
+
[x: symbol]: unknown;
|
|
801
|
+
[x: string]: unknown;
|
|
802
|
+
}, mongoose.Document<unknown, {}, {
|
|
803
|
+
[x: number]: unknown;
|
|
804
|
+
[x: symbol]: unknown;
|
|
805
|
+
[x: string]: unknown;
|
|
806
|
+
}, {
|
|
807
|
+
id: string;
|
|
808
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
809
|
+
[x: number]: unknown;
|
|
810
|
+
[x: symbol]: unknown;
|
|
811
|
+
[x: string]: unknown;
|
|
812
|
+
} & Required<{
|
|
813
|
+
_id: unknown;
|
|
814
|
+
}> & {
|
|
815
|
+
__v: number;
|
|
816
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
817
|
+
id: string;
|
|
818
|
+
}>, unknown, {
|
|
819
|
+
[x: number]: {};
|
|
820
|
+
[x: symbol]: {};
|
|
821
|
+
[x: string]: {};
|
|
822
|
+
} & Required<{
|
|
823
|
+
_id: unknown;
|
|
824
|
+
}> & {
|
|
825
|
+
__v: number;
|
|
826
|
+
}>, {
|
|
827
|
+
[x: number]: {};
|
|
828
|
+
[x: symbol]: {};
|
|
829
|
+
[x: string]: {};
|
|
830
|
+
} & Required<{
|
|
831
|
+
_id: unknown;
|
|
832
|
+
}> & {
|
|
833
|
+
__v: number;
|
|
834
|
+
}>;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Current schema version for the Facility settings record.
|
|
838
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
839
|
+
*/
|
|
840
|
+
declare const FACILITY_SETTINGS_SCHEMA_VERSION = 1;
|
|
841
|
+
declare const facilitySettingsSchema: z.ZodObject<{
|
|
842
|
+
_id: z.ZodString;
|
|
843
|
+
scope: z.ZodString;
|
|
844
|
+
options: z.ZodArray<z.ZodObject<{
|
|
845
|
+
field: z.ZodString;
|
|
846
|
+
label: z.ZodOptional<z.ZodString>;
|
|
847
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
848
|
+
string: "string";
|
|
849
|
+
number: "number";
|
|
850
|
+
boolean: "boolean";
|
|
851
|
+
date: "date";
|
|
852
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
853
|
+
string: "string";
|
|
854
|
+
number: "number";
|
|
855
|
+
boolean: "boolean";
|
|
856
|
+
date: "date";
|
|
857
|
+
}>>, z.ZodString]>;
|
|
858
|
+
default: z.ZodNullable<z.ZodString>;
|
|
859
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
860
|
+
}, z.core.$strip>>;
|
|
861
|
+
updated_at: z.ZodString;
|
|
862
|
+
updated_by: z.ZodString;
|
|
863
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
864
|
+
}, z.core.$strip>;
|
|
865
|
+
declare const facilitySettingsKVSchema: z.ZodObject<{
|
|
866
|
+
branding_logo: z.ZodOptional<z.ZodString>;
|
|
867
|
+
satusehat_org_id: z.ZodOptional<z.ZodString>;
|
|
868
|
+
satusehat_client_id: z.ZodOptional<z.ZodString>;
|
|
869
|
+
satusehat_client_secret: z.ZodOptional<z.ZodString>;
|
|
870
|
+
queue_number_separator: z.ZodOptional<z.ZodString>;
|
|
871
|
+
queue_number_prefix: z.ZodDefault<z.ZodEnum<{
|
|
872
|
+
none: "none";
|
|
873
|
+
payer: "payer";
|
|
874
|
+
}>>;
|
|
875
|
+
queue_no_response_count: z.ZodDefault<z.ZodNumber>;
|
|
876
|
+
queue_skip_no_response: z.ZodDefault<z.ZodBoolean>;
|
|
877
|
+
}, z.core.$strip>;
|
|
878
|
+
type FacilitySettings = z.infer<typeof facilitySettingsSchema>;
|
|
879
|
+
type FacilitySettingsKV = z.infer<typeof facilitySettingsKVSchema>;
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Minimal facility schema (omits server-generated fields).
|
|
883
|
+
*/
|
|
884
|
+
declare const facilityMinimalSchema: z.ZodObject<{
|
|
885
|
+
status: z.ZodObject<{
|
|
886
|
+
system: z.ZodString;
|
|
887
|
+
value: z.ZodString;
|
|
888
|
+
display: z.ZodOptional<z.ZodString>;
|
|
889
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
890
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
891
|
+
}, z.core.$strip>;
|
|
892
|
+
settings_id: z.ZodString;
|
|
893
|
+
name: z.ZodString;
|
|
894
|
+
organization_id: z.ZodString;
|
|
895
|
+
member_count: z.ZodNumber;
|
|
896
|
+
}, z.core.$strip>;
|
|
897
|
+
type FacilityMinimal = z.infer<typeof facilityMinimalSchema>;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Partial facility schema (based on minimal, all fields optional).
|
|
901
|
+
*/
|
|
902
|
+
declare const facilityPartialSchema: z.ZodObject<{
|
|
903
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
904
|
+
system: z.ZodString;
|
|
905
|
+
value: z.ZodString;
|
|
906
|
+
display: z.ZodOptional<z.ZodString>;
|
|
907
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
908
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
909
|
+
}, z.core.$strip>>;
|
|
910
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
911
|
+
name: z.ZodOptional<z.ZodString>;
|
|
912
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
913
|
+
member_count: z.ZodOptional<z.ZodNumber>;
|
|
914
|
+
}, z.core.$strip>;
|
|
915
|
+
type FacilityPartial = z.infer<typeof facilityPartialSchema>;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Current schema version for the Location model.
|
|
919
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
920
|
+
*/
|
|
921
|
+
declare const LOCATION_SCHEMA_VERSION = 1;
|
|
922
|
+
declare const locationSchema: z.ZodObject<{
|
|
923
|
+
_id: z.ZodString;
|
|
924
|
+
parent_id: z.ZodString;
|
|
925
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
926
|
+
system: z.ZodString;
|
|
927
|
+
value: z.ZodString;
|
|
928
|
+
display: z.ZodOptional<z.ZodString>;
|
|
929
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
930
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
931
|
+
}, z.core.$strip>>;
|
|
932
|
+
name: z.ZodString;
|
|
933
|
+
types: z.ZodArray<z.ZodObject<{
|
|
934
|
+
system: z.ZodString;
|
|
935
|
+
value: z.ZodString;
|
|
936
|
+
display: z.ZodOptional<z.ZodString>;
|
|
937
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
938
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
939
|
+
}, z.core.$strip>>;
|
|
940
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
941
|
+
system: z.ZodString;
|
|
942
|
+
value: z.ZodString;
|
|
943
|
+
display: z.ZodOptional<z.ZodString>;
|
|
944
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
945
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
946
|
+
}, z.core.$strip>>;
|
|
947
|
+
settings_id: z.ZodString;
|
|
948
|
+
created_at: z.ZodString;
|
|
949
|
+
created_by: z.ZodString;
|
|
950
|
+
updated_at: z.ZodString;
|
|
951
|
+
updated_by: z.ZodString;
|
|
952
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
953
|
+
}, z.core.$strip>;
|
|
954
|
+
type Location = z.infer<typeof locationSchema>;
|
|
955
|
+
declare const LocationMongooseSchema: Schema;
|
|
956
|
+
type LocationDocument = InferDocument<typeof locationSchema>;
|
|
957
|
+
declare const LocationModel: Model<{
|
|
958
|
+
[x: number]: unknown;
|
|
959
|
+
[x: symbol]: unknown;
|
|
960
|
+
[x: string]: unknown;
|
|
961
|
+
}, {}, {}, {
|
|
962
|
+
id: string;
|
|
963
|
+
}, mongoose.Document<unknown, {}, {
|
|
964
|
+
[x: number]: unknown;
|
|
965
|
+
[x: symbol]: unknown;
|
|
966
|
+
[x: string]: unknown;
|
|
967
|
+
}, {
|
|
968
|
+
id: string;
|
|
969
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
970
|
+
[x: number]: unknown;
|
|
971
|
+
[x: symbol]: unknown;
|
|
972
|
+
[x: string]: unknown;
|
|
973
|
+
} & Required<{
|
|
974
|
+
_id: unknown;
|
|
975
|
+
}> & {
|
|
976
|
+
__v: number;
|
|
977
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
978
|
+
id: string;
|
|
979
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
980
|
+
[x: number]: unknown;
|
|
981
|
+
[x: symbol]: unknown;
|
|
982
|
+
[x: string]: unknown;
|
|
983
|
+
}, mongoose.Document<unknown, {}, {
|
|
984
|
+
[x: number]: unknown;
|
|
985
|
+
[x: symbol]: unknown;
|
|
986
|
+
[x: string]: unknown;
|
|
987
|
+
}, {
|
|
988
|
+
id: string;
|
|
989
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
990
|
+
[x: number]: unknown;
|
|
991
|
+
[x: symbol]: unknown;
|
|
992
|
+
[x: string]: unknown;
|
|
993
|
+
} & Required<{
|
|
994
|
+
_id: unknown;
|
|
995
|
+
}> & {
|
|
996
|
+
__v: number;
|
|
997
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
998
|
+
id: string;
|
|
999
|
+
}>, unknown, {
|
|
1000
|
+
[x: number]: {};
|
|
1001
|
+
[x: symbol]: {};
|
|
1002
|
+
[x: string]: {};
|
|
1003
|
+
} & Required<{
|
|
1004
|
+
_id: unknown;
|
|
1005
|
+
}> & {
|
|
1006
|
+
__v: number;
|
|
1007
|
+
}>, {
|
|
1008
|
+
[x: number]: {};
|
|
1009
|
+
[x: symbol]: {};
|
|
1010
|
+
[x: string]: {};
|
|
1011
|
+
} & Required<{
|
|
1012
|
+
_id: unknown;
|
|
1013
|
+
}> & {
|
|
1014
|
+
__v: number;
|
|
1015
|
+
}>;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Current schema version for the Location settings record.
|
|
1019
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
1020
|
+
*/
|
|
1021
|
+
declare const LOCATION_SETTINGS_SCHEMA_VERSION = 1;
|
|
1022
|
+
declare const locationSettingsSchema: z.ZodObject<{
|
|
1023
|
+
_id: z.ZodString;
|
|
1024
|
+
scope: z.ZodString;
|
|
1025
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1026
|
+
field: z.ZodString;
|
|
1027
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1029
|
+
string: "string";
|
|
1030
|
+
number: "number";
|
|
1031
|
+
boolean: "boolean";
|
|
1032
|
+
date: "date";
|
|
1033
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1034
|
+
string: "string";
|
|
1035
|
+
number: "number";
|
|
1036
|
+
boolean: "boolean";
|
|
1037
|
+
date: "date";
|
|
1038
|
+
}>>, z.ZodString]>;
|
|
1039
|
+
default: z.ZodNullable<z.ZodString>;
|
|
1040
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
1041
|
+
}, z.core.$strip>>;
|
|
1042
|
+
updated_at: z.ZodString;
|
|
1043
|
+
updated_by: z.ZodString;
|
|
1044
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
1045
|
+
}, z.core.$strip>;
|
|
1046
|
+
declare const locationSettingsKVSchema: z.ZodObject<{
|
|
1047
|
+
sex_restriction: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
is_inventory_location: z.ZodDefault<z.ZodBoolean>;
|
|
1049
|
+
room_has_ventilator: z.ZodDefault<z.ZodBoolean>;
|
|
1050
|
+
}, z.core.$strip>;
|
|
1051
|
+
type LocationSettings = z.infer<typeof locationSettingsSchema>;
|
|
1052
|
+
type LocationSettingsKV = z.infer<typeof locationSettingsKVSchema>;
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Minimal location schema (omits server-generated fields).
|
|
1056
|
+
*/
|
|
1057
|
+
declare const locationMinimalSchema: z.ZodObject<{
|
|
1058
|
+
settings_id: z.ZodString;
|
|
1059
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
1060
|
+
system: z.ZodString;
|
|
1061
|
+
value: z.ZodString;
|
|
1062
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1063
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1065
|
+
}, z.core.$strip>>;
|
|
1066
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
1067
|
+
system: z.ZodString;
|
|
1068
|
+
value: z.ZodString;
|
|
1069
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1072
|
+
}, z.core.$strip>>;
|
|
1073
|
+
name: z.ZodString;
|
|
1074
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
1075
|
+
parent_id: z.ZodString;
|
|
1076
|
+
types: z.ZodArray<z.ZodObject<{
|
|
1077
|
+
system: z.ZodString;
|
|
1078
|
+
value: z.ZodString;
|
|
1079
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1080
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1082
|
+
}, z.core.$strip>>;
|
|
1083
|
+
}, z.core.$strip>;
|
|
1084
|
+
type LocationMinimal = z.infer<typeof locationMinimalSchema>;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Partial location schema (based on minimal, all fields optional).
|
|
1088
|
+
*/
|
|
1089
|
+
declare const locationPartialSchema: z.ZodObject<{
|
|
1090
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1092
|
+
system: z.ZodString;
|
|
1093
|
+
value: z.ZodString;
|
|
1094
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1095
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1097
|
+
}, z.core.$strip>>>;
|
|
1098
|
+
identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1099
|
+
system: z.ZodString;
|
|
1100
|
+
value: z.ZodString;
|
|
1101
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1104
|
+
}, z.core.$strip>>>;
|
|
1105
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
schema_version: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1107
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
types: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1109
|
+
system: z.ZodString;
|
|
1110
|
+
value: z.ZodString;
|
|
1111
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1112
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1114
|
+
}, z.core.$strip>>>;
|
|
1115
|
+
}, z.core.$strip>;
|
|
1116
|
+
type LocationPartial = z.infer<typeof locationPartialSchema>;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Current schema version for the Member model.
|
|
1120
|
+
*
|
|
1121
|
+
* The persisted record does not include a schema_version field; this constant
|
|
1122
|
+
* tracks the shape consumers are validating against.
|
|
1123
|
+
*/
|
|
1124
|
+
declare const MEMBER_SCHEMA_VERSION = 1;
|
|
1125
|
+
declare const memberSchema: z.ZodObject<{
|
|
1126
|
+
id: z.ZodString;
|
|
1127
|
+
user_id: z.ZodString;
|
|
1128
|
+
organization_id: z.ZodString;
|
|
1129
|
+
role: z.ZodString;
|
|
1130
|
+
created_at: z.ZodString;
|
|
1131
|
+
}, z.core.$strip>;
|
|
1132
|
+
type Member = z.infer<typeof memberSchema>;
|
|
1133
|
+
declare const MemberMongooseSchema: Schema;
|
|
1134
|
+
type MemberDocument = InferDocument<typeof memberSchema>;
|
|
1135
|
+
declare const MemberModel: Model<{
|
|
1136
|
+
[x: number]: unknown;
|
|
1137
|
+
[x: symbol]: unknown;
|
|
1138
|
+
[x: string]: unknown;
|
|
1139
|
+
}, {}, {}, {
|
|
1140
|
+
id: string;
|
|
1141
|
+
}, mongoose.Document<unknown, {}, {
|
|
1142
|
+
[x: number]: unknown;
|
|
1143
|
+
[x: symbol]: unknown;
|
|
1144
|
+
[x: string]: unknown;
|
|
1145
|
+
}, {
|
|
1146
|
+
id: string;
|
|
1147
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1148
|
+
[x: number]: unknown;
|
|
1149
|
+
[x: symbol]: unknown;
|
|
1150
|
+
[x: string]: unknown;
|
|
1151
|
+
} & Required<{
|
|
1152
|
+
_id: unknown;
|
|
1153
|
+
}> & {
|
|
1154
|
+
__v: number;
|
|
1155
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1156
|
+
id: string;
|
|
1157
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1158
|
+
[x: number]: unknown;
|
|
1159
|
+
[x: symbol]: unknown;
|
|
1160
|
+
[x: string]: unknown;
|
|
1161
|
+
}, mongoose.Document<unknown, {}, {
|
|
1162
|
+
[x: number]: unknown;
|
|
1163
|
+
[x: symbol]: unknown;
|
|
1164
|
+
[x: string]: unknown;
|
|
1165
|
+
}, {
|
|
1166
|
+
id: string;
|
|
1167
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1168
|
+
[x: number]: unknown;
|
|
1169
|
+
[x: symbol]: unknown;
|
|
1170
|
+
[x: string]: unknown;
|
|
1171
|
+
} & Required<{
|
|
1172
|
+
_id: unknown;
|
|
1173
|
+
}> & {
|
|
1174
|
+
__v: number;
|
|
1175
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1176
|
+
id: string;
|
|
1177
|
+
}>, unknown, {
|
|
1178
|
+
[x: number]: {};
|
|
1179
|
+
[x: symbol]: {};
|
|
1180
|
+
[x: string]: {};
|
|
1181
|
+
} & Required<{
|
|
1182
|
+
_id: unknown;
|
|
1183
|
+
}> & {
|
|
1184
|
+
__v: number;
|
|
1185
|
+
}>, {
|
|
1186
|
+
[x: number]: {};
|
|
1187
|
+
[x: symbol]: {};
|
|
1188
|
+
[x: string]: {};
|
|
1189
|
+
} & Required<{
|
|
1190
|
+
_id: unknown;
|
|
1191
|
+
}> & {
|
|
1192
|
+
__v: number;
|
|
1193
|
+
}>;
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Minimal member schema (omits server-generated fields).
|
|
1197
|
+
*/
|
|
1198
|
+
declare const memberMinimalSchema: z.ZodObject<{
|
|
1199
|
+
organization_id: z.ZodString;
|
|
1200
|
+
user_id: z.ZodString;
|
|
1201
|
+
role: z.ZodString;
|
|
1202
|
+
}, z.core.$strip>;
|
|
1203
|
+
type MemberMinimal = z.infer<typeof memberMinimalSchema>;
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Partial member schema (based on minimal, all fields optional).
|
|
1207
|
+
*/
|
|
1208
|
+
declare const memberPartialSchema: z.ZodObject<{
|
|
1209
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
}, z.core.$strip>;
|
|
1213
|
+
type MemberPartial = z.infer<typeof memberPartialSchema>;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Current schema version for the Organization model.
|
|
1217
|
+
*
|
|
1218
|
+
* The persisted record does not include a schema_version field; this constant
|
|
1219
|
+
* tracks the shape consumers are validating against.
|
|
1220
|
+
*/
|
|
1221
|
+
declare const ORGANIZATION_SCHEMA_VERSION = 1;
|
|
1222
|
+
declare const organizationSchema: z.ZodObject<{
|
|
1223
|
+
id: z.ZodString;
|
|
1224
|
+
name: z.ZodString;
|
|
1225
|
+
slug: z.ZodString;
|
|
1226
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
1227
|
+
status: z.ZodObject<{
|
|
1228
|
+
system: z.ZodString;
|
|
1229
|
+
value: z.ZodString;
|
|
1230
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1233
|
+
}, z.core.$strip>;
|
|
1234
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1235
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
}, z.core.$strip>>;
|
|
1237
|
+
settings_id: z.ZodString;
|
|
1238
|
+
created_at: z.ZodString;
|
|
1239
|
+
}, z.core.$strip>;
|
|
1240
|
+
type Organization = z.infer<typeof organizationSchema>;
|
|
1241
|
+
declare const OrganizationMongooseSchema: Schema;
|
|
1242
|
+
type OrganizationDocument = InferDocument<typeof organizationSchema>;
|
|
1243
|
+
declare const OrganizationModel: Model<{
|
|
1244
|
+
[x: number]: unknown;
|
|
1245
|
+
[x: symbol]: unknown;
|
|
1246
|
+
[x: string]: unknown;
|
|
1247
|
+
}, {}, {}, {
|
|
1248
|
+
id: string;
|
|
1249
|
+
}, mongoose.Document<unknown, {}, {
|
|
1250
|
+
[x: number]: unknown;
|
|
1251
|
+
[x: symbol]: unknown;
|
|
1252
|
+
[x: string]: unknown;
|
|
1253
|
+
}, {
|
|
1254
|
+
id: string;
|
|
1255
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1256
|
+
[x: number]: unknown;
|
|
1257
|
+
[x: symbol]: unknown;
|
|
1258
|
+
[x: string]: unknown;
|
|
1259
|
+
} & Required<{
|
|
1260
|
+
_id: unknown;
|
|
1261
|
+
}> & {
|
|
1262
|
+
__v: number;
|
|
1263
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1264
|
+
id: string;
|
|
1265
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1266
|
+
[x: number]: unknown;
|
|
1267
|
+
[x: symbol]: unknown;
|
|
1268
|
+
[x: string]: unknown;
|
|
1269
|
+
}, mongoose.Document<unknown, {}, {
|
|
1270
|
+
[x: number]: unknown;
|
|
1271
|
+
[x: symbol]: unknown;
|
|
1272
|
+
[x: string]: unknown;
|
|
1273
|
+
}, {
|
|
1274
|
+
id: string;
|
|
1275
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1276
|
+
[x: number]: unknown;
|
|
1277
|
+
[x: symbol]: unknown;
|
|
1278
|
+
[x: string]: unknown;
|
|
1279
|
+
} & Required<{
|
|
1280
|
+
_id: unknown;
|
|
1281
|
+
}> & {
|
|
1282
|
+
__v: number;
|
|
1283
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1284
|
+
id: string;
|
|
1285
|
+
}>, unknown, {
|
|
1286
|
+
[x: number]: {};
|
|
1287
|
+
[x: symbol]: {};
|
|
1288
|
+
[x: string]: {};
|
|
1289
|
+
} & Required<{
|
|
1290
|
+
_id: unknown;
|
|
1291
|
+
}> & {
|
|
1292
|
+
__v: number;
|
|
1293
|
+
}>, {
|
|
1294
|
+
[x: number]: {};
|
|
1295
|
+
[x: symbol]: {};
|
|
1296
|
+
[x: string]: {};
|
|
1297
|
+
} & Required<{
|
|
1298
|
+
_id: unknown;
|
|
1299
|
+
}> & {
|
|
1300
|
+
__v: number;
|
|
1301
|
+
}>;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Current schema version for the Organization settings record.
|
|
1305
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
1306
|
+
*/
|
|
1307
|
+
declare const ORGANIZATION_SETTINGS_SCHEMA_VERSION = 1;
|
|
1308
|
+
declare const organizationSettingsSchema: z.ZodObject<{
|
|
1309
|
+
_id: z.ZodString;
|
|
1310
|
+
scope: z.ZodString;
|
|
1311
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1312
|
+
field: z.ZodString;
|
|
1313
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1314
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1315
|
+
string: "string";
|
|
1316
|
+
number: "number";
|
|
1317
|
+
boolean: "boolean";
|
|
1318
|
+
date: "date";
|
|
1319
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1320
|
+
string: "string";
|
|
1321
|
+
number: "number";
|
|
1322
|
+
boolean: "boolean";
|
|
1323
|
+
date: "date";
|
|
1324
|
+
}>>, z.ZodString]>;
|
|
1325
|
+
default: z.ZodNullable<z.ZodString>;
|
|
1326
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
1327
|
+
}, z.core.$strip>>;
|
|
1328
|
+
updated_at: z.ZodString;
|
|
1329
|
+
updated_by: z.ZodString;
|
|
1330
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
1331
|
+
}, z.core.$strip>;
|
|
1332
|
+
declare const organizationSettingsKVSchema: z.ZodObject<{
|
|
1333
|
+
patient_mrn_length: z.ZodDefault<z.ZodNumber>;
|
|
1334
|
+
patient_mrn_separator: z.ZodDefault<z.ZodString>;
|
|
1335
|
+
member_invite_duration: z.ZodDefault<z.ZodNumber>;
|
|
1336
|
+
}, z.core.$strip>;
|
|
1337
|
+
type OrganizationSettings = z.infer<typeof organizationSettingsSchema>;
|
|
1338
|
+
type OrganizationSettingsKV = z.infer<typeof organizationSettingsKVSchema>;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Minimal organization schema (omits server-generated fields).
|
|
1342
|
+
*/
|
|
1343
|
+
declare const organizationMinimalSchema: z.ZodObject<{
|
|
1344
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1345
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
}, z.core.$strip>>;
|
|
1347
|
+
status: z.ZodObject<{
|
|
1348
|
+
system: z.ZodString;
|
|
1349
|
+
value: z.ZodString;
|
|
1350
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1353
|
+
}, z.core.$strip>;
|
|
1354
|
+
settings_id: z.ZodString;
|
|
1355
|
+
name: z.ZodString;
|
|
1356
|
+
slug: z.ZodString;
|
|
1357
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
}, z.core.$strip>;
|
|
1359
|
+
type OrganizationMinimal = z.infer<typeof organizationMinimalSchema>;
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Partial organization schema (based on minimal, all fields optional).
|
|
1363
|
+
*/
|
|
1364
|
+
declare const organizationPartialSchema: z.ZodObject<{
|
|
1365
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1366
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
}, z.core.$strip>>>;
|
|
1368
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
1369
|
+
system: z.ZodString;
|
|
1370
|
+
value: z.ZodString;
|
|
1371
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1374
|
+
}, z.core.$strip>>;
|
|
1375
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1378
|
+
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1379
|
+
}, z.core.$strip>;
|
|
1380
|
+
type OrganizationPartial = z.infer<typeof organizationPartialSchema>;
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Current schema version for the Patient model.
|
|
1384
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
1385
|
+
*/
|
|
1386
|
+
declare const PATIENT_SCHEMA_VERSION = 1;
|
|
1387
|
+
declare const patientSchema: z.ZodObject<{
|
|
1388
|
+
_id: z.ZodString;
|
|
1389
|
+
organization_id: z.ZodString;
|
|
1390
|
+
registering_facility_id: z.ZodString;
|
|
1391
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
1392
|
+
system: z.ZodString;
|
|
1393
|
+
value: z.ZodString;
|
|
1394
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1395
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1397
|
+
}, z.core.$strip>>;
|
|
1398
|
+
salutation: z.ZodString;
|
|
1399
|
+
first_name: z.ZodString;
|
|
1400
|
+
middle_name: z.ZodOptional<z.ZodString>;
|
|
1401
|
+
last_name: z.ZodString;
|
|
1402
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
demographic: z.ZodObject<{
|
|
1405
|
+
sex: z.ZodObject<{
|
|
1406
|
+
system: z.ZodString;
|
|
1407
|
+
value: z.ZodString;
|
|
1408
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1411
|
+
}, z.core.$strip>;
|
|
1412
|
+
religion: z.ZodObject<{
|
|
1413
|
+
system: z.ZodString;
|
|
1414
|
+
value: z.ZodString;
|
|
1415
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1416
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1418
|
+
}, z.core.$strip>;
|
|
1419
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
1420
|
+
marital_status: z.ZodObject<{
|
|
1421
|
+
system: z.ZodString;
|
|
1422
|
+
value: z.ZodString;
|
|
1423
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1426
|
+
}, z.core.$strip>;
|
|
1427
|
+
date_of_birth: z.ZodString;
|
|
1428
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
1429
|
+
}, z.core.$strip>;
|
|
1430
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
1431
|
+
system: z.ZodString;
|
|
1432
|
+
value: z.ZodString;
|
|
1433
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1435
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1436
|
+
}, z.core.$strip>>;
|
|
1437
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1438
|
+
system: z.ZodString;
|
|
1439
|
+
value: z.ZodString;
|
|
1440
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1443
|
+
}, z.core.$strip>>>;
|
|
1444
|
+
address: z.ZodObject<{
|
|
1445
|
+
street: z.ZodString;
|
|
1446
|
+
subdistrict: z.ZodObject<{
|
|
1447
|
+
system: z.ZodString;
|
|
1448
|
+
value: z.ZodString;
|
|
1449
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1450
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1451
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1452
|
+
}, z.core.$strip>;
|
|
1453
|
+
district: z.ZodObject<{
|
|
1454
|
+
system: z.ZodString;
|
|
1455
|
+
value: z.ZodString;
|
|
1456
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1458
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1459
|
+
}, z.core.$strip>;
|
|
1460
|
+
city: z.ZodObject<{
|
|
1461
|
+
system: z.ZodString;
|
|
1462
|
+
value: z.ZodString;
|
|
1463
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1464
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1465
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1466
|
+
}, z.core.$strip>;
|
|
1467
|
+
province: z.ZodObject<{
|
|
1468
|
+
system: z.ZodString;
|
|
1469
|
+
value: z.ZodString;
|
|
1470
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1473
|
+
}, z.core.$strip>;
|
|
1474
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
1475
|
+
}, z.core.$strip>;
|
|
1476
|
+
created_at: z.ZodString;
|
|
1477
|
+
created_by: z.ZodString;
|
|
1478
|
+
updated_at: z.ZodString;
|
|
1479
|
+
updated_by: z.ZodString;
|
|
1480
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
1481
|
+
}, z.core.$strip>;
|
|
1482
|
+
type Patient = z.infer<typeof patientSchema>;
|
|
1483
|
+
declare const PatientMongooseSchema: Schema;
|
|
1484
|
+
type PatientDocument = InferDocument<typeof patientSchema>;
|
|
1485
|
+
declare const PatientModel: Model<{
|
|
1486
|
+
[x: number]: unknown;
|
|
1487
|
+
[x: symbol]: unknown;
|
|
1488
|
+
[x: string]: unknown;
|
|
1489
|
+
}, {}, {}, {
|
|
1490
|
+
id: string;
|
|
1491
|
+
}, mongoose.Document<unknown, {}, {
|
|
1492
|
+
[x: number]: unknown;
|
|
1493
|
+
[x: symbol]: unknown;
|
|
1494
|
+
[x: string]: unknown;
|
|
1495
|
+
}, {
|
|
1496
|
+
id: string;
|
|
1497
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1498
|
+
[x: number]: unknown;
|
|
1499
|
+
[x: symbol]: unknown;
|
|
1500
|
+
[x: string]: unknown;
|
|
1501
|
+
} & Required<{
|
|
1502
|
+
_id: unknown;
|
|
1503
|
+
}> & {
|
|
1504
|
+
__v: number;
|
|
1505
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1506
|
+
id: string;
|
|
1507
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1508
|
+
[x: number]: unknown;
|
|
1509
|
+
[x: symbol]: unknown;
|
|
1510
|
+
[x: string]: unknown;
|
|
1511
|
+
}, mongoose.Document<unknown, {}, {
|
|
1512
|
+
[x: number]: unknown;
|
|
1513
|
+
[x: symbol]: unknown;
|
|
1514
|
+
[x: string]: unknown;
|
|
1515
|
+
}, {
|
|
1516
|
+
id: string;
|
|
1517
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1518
|
+
[x: number]: unknown;
|
|
1519
|
+
[x: symbol]: unknown;
|
|
1520
|
+
[x: string]: unknown;
|
|
1521
|
+
} & Required<{
|
|
1522
|
+
_id: unknown;
|
|
1523
|
+
}> & {
|
|
1524
|
+
__v: number;
|
|
1525
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1526
|
+
id: string;
|
|
1527
|
+
}>, unknown, {
|
|
1528
|
+
[x: number]: {};
|
|
1529
|
+
[x: symbol]: {};
|
|
1530
|
+
[x: string]: {};
|
|
1531
|
+
} & Required<{
|
|
1532
|
+
_id: unknown;
|
|
1533
|
+
}> & {
|
|
1534
|
+
__v: number;
|
|
1535
|
+
}>, {
|
|
1536
|
+
[x: number]: {};
|
|
1537
|
+
[x: symbol]: {};
|
|
1538
|
+
[x: string]: {};
|
|
1539
|
+
} & Required<{
|
|
1540
|
+
_id: unknown;
|
|
1541
|
+
}> & {
|
|
1542
|
+
__v: number;
|
|
1543
|
+
}>;
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Minimal patient schema (omits server-generated fields).
|
|
1547
|
+
*/
|
|
1548
|
+
declare const patientMinimalSchema: z.ZodObject<{
|
|
1549
|
+
salutation: z.ZodString;
|
|
1550
|
+
demographic: z.ZodObject<{
|
|
1551
|
+
sex: z.ZodObject<{
|
|
1552
|
+
system: z.ZodString;
|
|
1553
|
+
value: z.ZodString;
|
|
1554
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1557
|
+
}, z.core.$strip>;
|
|
1558
|
+
religion: z.ZodObject<{
|
|
1559
|
+
system: z.ZodString;
|
|
1560
|
+
value: z.ZodString;
|
|
1561
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1562
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1564
|
+
}, z.core.$strip>;
|
|
1565
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
marital_status: z.ZodObject<{
|
|
1567
|
+
system: z.ZodString;
|
|
1568
|
+
value: z.ZodString;
|
|
1569
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1570
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1572
|
+
}, z.core.$strip>;
|
|
1573
|
+
date_of_birth: z.ZodString;
|
|
1574
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
}, z.core.$strip>;
|
|
1576
|
+
first_name: z.ZodString;
|
|
1577
|
+
middle_name: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
last_name: z.ZodString;
|
|
1579
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1580
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
1582
|
+
system: z.ZodString;
|
|
1583
|
+
value: z.ZodString;
|
|
1584
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1586
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1587
|
+
}, z.core.$strip>>;
|
|
1588
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
1589
|
+
system: z.ZodString;
|
|
1590
|
+
value: z.ZodString;
|
|
1591
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1594
|
+
}, z.core.$strip>>;
|
|
1595
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1596
|
+
system: z.ZodString;
|
|
1597
|
+
value: z.ZodString;
|
|
1598
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1599
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1600
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1601
|
+
}, z.core.$strip>>>;
|
|
1602
|
+
organization_id: z.ZodString;
|
|
1603
|
+
registering_facility_id: z.ZodString;
|
|
1604
|
+
address: z.ZodObject<{
|
|
1605
|
+
street: z.ZodString;
|
|
1606
|
+
subdistrict: z.ZodObject<{
|
|
1607
|
+
system: z.ZodString;
|
|
1608
|
+
value: z.ZodString;
|
|
1609
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1610
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1611
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1612
|
+
}, z.core.$strip>;
|
|
1613
|
+
district: z.ZodObject<{
|
|
1614
|
+
system: z.ZodString;
|
|
1615
|
+
value: z.ZodString;
|
|
1616
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1617
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1618
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1619
|
+
}, z.core.$strip>;
|
|
1620
|
+
city: z.ZodObject<{
|
|
1621
|
+
system: z.ZodString;
|
|
1622
|
+
value: z.ZodString;
|
|
1623
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1624
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1625
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1626
|
+
}, z.core.$strip>;
|
|
1627
|
+
province: z.ZodObject<{
|
|
1628
|
+
system: z.ZodString;
|
|
1629
|
+
value: z.ZodString;
|
|
1630
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1631
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1632
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1633
|
+
}, z.core.$strip>;
|
|
1634
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
1635
|
+
}, z.core.$strip>;
|
|
1636
|
+
}, z.core.$strip>;
|
|
1637
|
+
type PatientMinimal = z.infer<typeof patientMinimalSchema>;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* Partial patient schema (based on minimal, all fields optional).
|
|
1641
|
+
*/
|
|
1642
|
+
declare const patientPartialSchema: z.ZodObject<{
|
|
1643
|
+
salutation: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
demographic: z.ZodOptional<z.ZodObject<{
|
|
1645
|
+
sex: z.ZodObject<{
|
|
1646
|
+
system: z.ZodString;
|
|
1647
|
+
value: z.ZodString;
|
|
1648
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1650
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1651
|
+
}, z.core.$strip>;
|
|
1652
|
+
religion: z.ZodObject<{
|
|
1653
|
+
system: z.ZodString;
|
|
1654
|
+
value: z.ZodString;
|
|
1655
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1658
|
+
}, z.core.$strip>;
|
|
1659
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
marital_status: z.ZodObject<{
|
|
1661
|
+
system: z.ZodString;
|
|
1662
|
+
value: z.ZodString;
|
|
1663
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1665
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1666
|
+
}, z.core.$strip>;
|
|
1667
|
+
date_of_birth: z.ZodString;
|
|
1668
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
}, z.core.$strip>>;
|
|
1670
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
1671
|
+
middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1672
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
1673
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1674
|
+
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1675
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1676
|
+
system: z.ZodString;
|
|
1677
|
+
value: z.ZodString;
|
|
1678
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1681
|
+
}, z.core.$strip>>>;
|
|
1682
|
+
identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1683
|
+
system: z.ZodString;
|
|
1684
|
+
value: z.ZodString;
|
|
1685
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1686
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1688
|
+
}, z.core.$strip>>>;
|
|
1689
|
+
contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1690
|
+
system: z.ZodString;
|
|
1691
|
+
value: z.ZodString;
|
|
1692
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1693
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1695
|
+
}, z.core.$strip>>>>;
|
|
1696
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
registering_facility_id: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
1699
|
+
street: z.ZodString;
|
|
1700
|
+
subdistrict: z.ZodObject<{
|
|
1701
|
+
system: z.ZodString;
|
|
1702
|
+
value: z.ZodString;
|
|
1703
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1705
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1706
|
+
}, z.core.$strip>;
|
|
1707
|
+
district: z.ZodObject<{
|
|
1708
|
+
system: z.ZodString;
|
|
1709
|
+
value: z.ZodString;
|
|
1710
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1711
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1713
|
+
}, z.core.$strip>;
|
|
1714
|
+
city: z.ZodObject<{
|
|
1715
|
+
system: z.ZodString;
|
|
1716
|
+
value: z.ZodString;
|
|
1717
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1720
|
+
}, z.core.$strip>;
|
|
1721
|
+
province: z.ZodObject<{
|
|
1722
|
+
system: z.ZodString;
|
|
1723
|
+
value: z.ZodString;
|
|
1724
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1725
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1726
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1727
|
+
}, z.core.$strip>;
|
|
1728
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
}, z.core.$strip>>;
|
|
1730
|
+
}, z.core.$strip>;
|
|
1731
|
+
type PatientPartial = z.infer<typeof patientPartialSchema>;
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Current schema version for the Patient Additional model.
|
|
1735
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
1736
|
+
*/
|
|
1737
|
+
declare const PATIENT_ADDITIONAL_SCHEMA_VERSION = 1;
|
|
1738
|
+
declare const patientAdditionalSchema: z.ZodObject<{
|
|
1739
|
+
id: z.ZodString;
|
|
1740
|
+
patient_id: z.ZodString;
|
|
1741
|
+
type: z.ZodObject<{
|
|
1742
|
+
system: z.ZodString;
|
|
1743
|
+
value: z.ZodString;
|
|
1744
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1746
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1747
|
+
}, z.core.$strip>;
|
|
1748
|
+
data: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>]>;
|
|
1749
|
+
created_at: z.ZodString;
|
|
1750
|
+
created_by: z.ZodString;
|
|
1751
|
+
updated_at: z.ZodString;
|
|
1752
|
+
updated_by: z.ZodString;
|
|
1753
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
1754
|
+
}, z.core.$strip>;
|
|
1755
|
+
type PatientAdditional = z.infer<typeof patientAdditionalSchema>;
|
|
1756
|
+
declare const PatientAdditionalMongooseSchema: Schema;
|
|
1757
|
+
type PatientAdditionalDocument = InferDocument<typeof patientAdditionalSchema>;
|
|
1758
|
+
declare const PatientAdditionalModel: Model<{
|
|
1759
|
+
[x: number]: unknown;
|
|
1760
|
+
[x: symbol]: unknown;
|
|
1761
|
+
[x: string]: unknown;
|
|
1762
|
+
}, {}, {}, {
|
|
1763
|
+
id: string;
|
|
1764
|
+
}, mongoose.Document<unknown, {}, {
|
|
1765
|
+
[x: number]: unknown;
|
|
1766
|
+
[x: symbol]: unknown;
|
|
1767
|
+
[x: string]: unknown;
|
|
1768
|
+
}, {
|
|
1769
|
+
id: string;
|
|
1770
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1771
|
+
[x: number]: unknown;
|
|
1772
|
+
[x: symbol]: unknown;
|
|
1773
|
+
[x: string]: unknown;
|
|
1774
|
+
} & Required<{
|
|
1775
|
+
_id: unknown;
|
|
1776
|
+
}> & {
|
|
1777
|
+
__v: number;
|
|
1778
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1779
|
+
id: string;
|
|
1780
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1781
|
+
[x: number]: unknown;
|
|
1782
|
+
[x: symbol]: unknown;
|
|
1783
|
+
[x: string]: unknown;
|
|
1784
|
+
}, mongoose.Document<unknown, {}, {
|
|
1785
|
+
[x: number]: unknown;
|
|
1786
|
+
[x: symbol]: unknown;
|
|
1787
|
+
[x: string]: unknown;
|
|
1788
|
+
}, {
|
|
1789
|
+
id: string;
|
|
1790
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1791
|
+
[x: number]: unknown;
|
|
1792
|
+
[x: symbol]: unknown;
|
|
1793
|
+
[x: string]: unknown;
|
|
1794
|
+
} & Required<{
|
|
1795
|
+
_id: unknown;
|
|
1796
|
+
}> & {
|
|
1797
|
+
__v: number;
|
|
1798
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1799
|
+
id: string;
|
|
1800
|
+
}>, unknown, {
|
|
1801
|
+
[x: number]: {};
|
|
1802
|
+
[x: symbol]: {};
|
|
1803
|
+
[x: string]: {};
|
|
1804
|
+
} & Required<{
|
|
1805
|
+
_id: unknown;
|
|
1806
|
+
}> & {
|
|
1807
|
+
__v: number;
|
|
1808
|
+
}>, {
|
|
1809
|
+
[x: number]: {};
|
|
1810
|
+
[x: symbol]: {};
|
|
1811
|
+
[x: string]: {};
|
|
1812
|
+
} & Required<{
|
|
1813
|
+
_id: unknown;
|
|
1814
|
+
}> & {
|
|
1815
|
+
__v: number;
|
|
1816
|
+
}>;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Minimal patient-additional schema (omits server-generated fields).
|
|
1820
|
+
*/
|
|
1821
|
+
declare const patientAdditionalMinimalSchema: z.ZodObject<{
|
|
1822
|
+
type: z.ZodObject<{
|
|
1823
|
+
system: z.ZodString;
|
|
1824
|
+
value: z.ZodString;
|
|
1825
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1826
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1828
|
+
}, z.core.$strip>;
|
|
1829
|
+
data: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>]>;
|
|
1830
|
+
patient_id: z.ZodString;
|
|
1831
|
+
}, z.core.$strip>;
|
|
1832
|
+
type PatientAdditionalMinimal = z.infer<typeof patientAdditionalMinimalSchema>;
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Partial patient-additional schema (based on minimal, all fields optional).
|
|
1836
|
+
*/
|
|
1837
|
+
declare const patientAdditionalPartialSchema: z.ZodObject<{
|
|
1838
|
+
type: z.ZodOptional<z.ZodObject<{
|
|
1839
|
+
system: z.ZodString;
|
|
1840
|
+
value: z.ZodString;
|
|
1841
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1843
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1844
|
+
}, z.core.$strip>>;
|
|
1845
|
+
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>]>>;
|
|
1846
|
+
patient_id: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
}, z.core.$strip>;
|
|
1848
|
+
type PatientAdditionalPartial = z.infer<typeof patientAdditionalPartialSchema>;
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Current schema version for the Staff model.
|
|
1852
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
1853
|
+
*/
|
|
1854
|
+
declare const STAFF_SCHEMA_VERSION = 1;
|
|
1855
|
+
declare const staffSchema: z.ZodObject<{
|
|
1856
|
+
id: z.ZodString;
|
|
1857
|
+
team_id: z.ZodString;
|
|
1858
|
+
user_id: z.ZodString;
|
|
1859
|
+
type: z.ZodObject<{
|
|
1860
|
+
system: z.ZodString;
|
|
1861
|
+
value: z.ZodString;
|
|
1862
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1865
|
+
}, z.core.$strip>;
|
|
1866
|
+
status: z.ZodObject<{
|
|
1867
|
+
system: z.ZodString;
|
|
1868
|
+
value: z.ZodString;
|
|
1869
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1872
|
+
}, z.core.$strip>;
|
|
1873
|
+
membership_key: z.ZodOptional<z.ZodString>;
|
|
1874
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1875
|
+
subspecialist: z.ZodOptional<z.ZodString>;
|
|
1876
|
+
created_at: z.ZodString;
|
|
1877
|
+
created_by: z.ZodString;
|
|
1878
|
+
updated_at: z.ZodString;
|
|
1879
|
+
updated_by: z.ZodString;
|
|
1880
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
1881
|
+
}, z.core.$strip>;
|
|
1882
|
+
type Staff = z.infer<typeof staffSchema>;
|
|
1883
|
+
declare const StaffMongooseSchema: Schema;
|
|
1884
|
+
type StaffDocument = InferDocument<typeof staffSchema>;
|
|
1885
|
+
declare const StaffModel: Model<{
|
|
1886
|
+
[x: number]: unknown;
|
|
1887
|
+
[x: symbol]: unknown;
|
|
1888
|
+
[x: string]: unknown;
|
|
1889
|
+
}, {}, {}, {
|
|
1890
|
+
id: string;
|
|
1891
|
+
}, mongoose.Document<unknown, {}, {
|
|
1892
|
+
[x: number]: unknown;
|
|
1893
|
+
[x: symbol]: unknown;
|
|
1894
|
+
[x: string]: unknown;
|
|
1895
|
+
}, {
|
|
1896
|
+
id: string;
|
|
1897
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1898
|
+
[x: number]: unknown;
|
|
1899
|
+
[x: symbol]: unknown;
|
|
1900
|
+
[x: string]: unknown;
|
|
1901
|
+
} & Required<{
|
|
1902
|
+
_id: unknown;
|
|
1903
|
+
}> & {
|
|
1904
|
+
__v: number;
|
|
1905
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1906
|
+
id: string;
|
|
1907
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1908
|
+
[x: number]: unknown;
|
|
1909
|
+
[x: symbol]: unknown;
|
|
1910
|
+
[x: string]: unknown;
|
|
1911
|
+
}, mongoose.Document<unknown, {}, {
|
|
1912
|
+
[x: number]: unknown;
|
|
1913
|
+
[x: symbol]: unknown;
|
|
1914
|
+
[x: string]: unknown;
|
|
1915
|
+
}, {
|
|
1916
|
+
id: string;
|
|
1917
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1918
|
+
[x: number]: unknown;
|
|
1919
|
+
[x: symbol]: unknown;
|
|
1920
|
+
[x: string]: unknown;
|
|
1921
|
+
} & Required<{
|
|
1922
|
+
_id: unknown;
|
|
1923
|
+
}> & {
|
|
1924
|
+
__v: number;
|
|
1925
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
1926
|
+
id: string;
|
|
1927
|
+
}>, unknown, {
|
|
1928
|
+
[x: number]: {};
|
|
1929
|
+
[x: symbol]: {};
|
|
1930
|
+
[x: string]: {};
|
|
1931
|
+
} & Required<{
|
|
1932
|
+
_id: unknown;
|
|
1933
|
+
}> & {
|
|
1934
|
+
__v: number;
|
|
1935
|
+
}>, {
|
|
1936
|
+
[x: number]: {};
|
|
1937
|
+
[x: symbol]: {};
|
|
1938
|
+
[x: string]: {};
|
|
1939
|
+
} & Required<{
|
|
1940
|
+
_id: unknown;
|
|
1941
|
+
}> & {
|
|
1942
|
+
__v: number;
|
|
1943
|
+
}>;
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* Minimal staff schema (omits server-generated fields).
|
|
1947
|
+
*/
|
|
1948
|
+
declare const staffMinimalSchema: z.ZodObject<{
|
|
1949
|
+
type: z.ZodObject<{
|
|
1950
|
+
system: z.ZodString;
|
|
1951
|
+
value: z.ZodString;
|
|
1952
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1955
|
+
}, z.core.$strip>;
|
|
1956
|
+
status: z.ZodObject<{
|
|
1957
|
+
system: z.ZodString;
|
|
1958
|
+
value: z.ZodString;
|
|
1959
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1960
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1961
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1962
|
+
}, z.core.$strip>;
|
|
1963
|
+
user_id: z.ZodString;
|
|
1964
|
+
team_id: z.ZodString;
|
|
1965
|
+
membership_key: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1967
|
+
subspecialist: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
}, z.core.$strip>;
|
|
1969
|
+
type StaffMinimal = z.infer<typeof staffMinimalSchema>;
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Partial staff schema (based on minimal, all fields optional).
|
|
1973
|
+
*/
|
|
1974
|
+
declare const staffPartialSchema: z.ZodObject<{
|
|
1975
|
+
type: z.ZodOptional<z.ZodObject<{
|
|
1976
|
+
system: z.ZodString;
|
|
1977
|
+
value: z.ZodString;
|
|
1978
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1979
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1980
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1981
|
+
}, z.core.$strip>>;
|
|
1982
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
1983
|
+
system: z.ZodString;
|
|
1984
|
+
value: z.ZodString;
|
|
1985
|
+
display: z.ZodOptional<z.ZodString>;
|
|
1986
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1988
|
+
}, z.core.$strip>>;
|
|
1989
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
1990
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
1991
|
+
membership_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1992
|
+
group: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1993
|
+
subspecialist: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1994
|
+
}, z.core.$strip>;
|
|
1995
|
+
type StaffPartial = z.infer<typeof staffPartialSchema>;
|
|
1996
|
+
|
|
1997
|
+
/**
|
|
1998
|
+
* Current schema version for the Unit model.
|
|
1999
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2000
|
+
*/
|
|
2001
|
+
declare const UNIT_SCHEMA_VERSION = 1;
|
|
2002
|
+
declare const unitSchema: z.ZodObject<{
|
|
2003
|
+
_id: z.ZodString;
|
|
2004
|
+
facility_id: z.ZodString;
|
|
2005
|
+
department_id: z.ZodString;
|
|
2006
|
+
name: z.ZodString;
|
|
2007
|
+
code: z.ZodString;
|
|
2008
|
+
type: z.ZodObject<{
|
|
2009
|
+
system: z.ZodString;
|
|
2010
|
+
value: z.ZodString;
|
|
2011
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2013
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2014
|
+
}, z.core.$strip>;
|
|
2015
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
2016
|
+
system: z.ZodString;
|
|
2017
|
+
value: z.ZodString;
|
|
2018
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2019
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2020
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2021
|
+
}, z.core.$strip>>;
|
|
2022
|
+
settings_id: z.ZodString;
|
|
2023
|
+
created_at: z.ZodString;
|
|
2024
|
+
created_by: z.ZodString;
|
|
2025
|
+
updated_at: z.ZodString;
|
|
2026
|
+
updated_by: z.ZodString;
|
|
2027
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2028
|
+
}, z.core.$strip>;
|
|
2029
|
+
type Unit = z.infer<typeof unitSchema>;
|
|
2030
|
+
declare const UnitMongooseSchema: Schema;
|
|
2031
|
+
type UnitDocument = InferDocument<typeof unitSchema>;
|
|
2032
|
+
declare const UnitModel: Model<{
|
|
2033
|
+
[x: number]: unknown;
|
|
2034
|
+
[x: symbol]: unknown;
|
|
2035
|
+
[x: string]: unknown;
|
|
2036
|
+
}, {}, {}, {
|
|
2037
|
+
id: string;
|
|
2038
|
+
}, mongoose.Document<unknown, {}, {
|
|
2039
|
+
[x: number]: unknown;
|
|
2040
|
+
[x: symbol]: unknown;
|
|
2041
|
+
[x: string]: unknown;
|
|
2042
|
+
}, {
|
|
2043
|
+
id: string;
|
|
2044
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2045
|
+
[x: number]: unknown;
|
|
2046
|
+
[x: symbol]: unknown;
|
|
2047
|
+
[x: string]: unknown;
|
|
2048
|
+
} & Required<{
|
|
2049
|
+
_id: unknown;
|
|
2050
|
+
}> & {
|
|
2051
|
+
__v: number;
|
|
2052
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2053
|
+
id: string;
|
|
2054
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
2055
|
+
[x: number]: unknown;
|
|
2056
|
+
[x: symbol]: unknown;
|
|
2057
|
+
[x: string]: unknown;
|
|
2058
|
+
}, mongoose.Document<unknown, {}, {
|
|
2059
|
+
[x: number]: unknown;
|
|
2060
|
+
[x: symbol]: unknown;
|
|
2061
|
+
[x: string]: unknown;
|
|
2062
|
+
}, {
|
|
2063
|
+
id: string;
|
|
2064
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2065
|
+
[x: number]: unknown;
|
|
2066
|
+
[x: symbol]: unknown;
|
|
2067
|
+
[x: string]: unknown;
|
|
2068
|
+
} & Required<{
|
|
2069
|
+
_id: unknown;
|
|
2070
|
+
}> & {
|
|
2071
|
+
__v: number;
|
|
2072
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2073
|
+
id: string;
|
|
2074
|
+
}>, unknown, {
|
|
2075
|
+
[x: number]: {};
|
|
2076
|
+
[x: symbol]: {};
|
|
2077
|
+
[x: string]: {};
|
|
2078
|
+
} & Required<{
|
|
2079
|
+
_id: unknown;
|
|
2080
|
+
}> & {
|
|
2081
|
+
__v: number;
|
|
2082
|
+
}>, {
|
|
2083
|
+
[x: number]: {};
|
|
2084
|
+
[x: symbol]: {};
|
|
2085
|
+
[x: string]: {};
|
|
2086
|
+
} & Required<{
|
|
2087
|
+
_id: unknown;
|
|
2088
|
+
}> & {
|
|
2089
|
+
__v: number;
|
|
2090
|
+
}>;
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Minimal unit schema (omits server-generated fields).
|
|
2094
|
+
*/
|
|
2095
|
+
declare const unitMinimalSchema: z.ZodObject<{
|
|
2096
|
+
type: z.ZodObject<{
|
|
2097
|
+
system: z.ZodString;
|
|
2098
|
+
value: z.ZodString;
|
|
2099
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2101
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2102
|
+
}, z.core.$strip>;
|
|
2103
|
+
settings_id: z.ZodString;
|
|
2104
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
2105
|
+
system: z.ZodString;
|
|
2106
|
+
value: z.ZodString;
|
|
2107
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2108
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2109
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2110
|
+
}, z.core.$strip>>;
|
|
2111
|
+
name: z.ZodString;
|
|
2112
|
+
facility_id: z.ZodString;
|
|
2113
|
+
department_id: z.ZodString;
|
|
2114
|
+
code: z.ZodString;
|
|
2115
|
+
}, z.core.$strip>;
|
|
2116
|
+
type UnitMinimal = z.infer<typeof unitMinimalSchema>;
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* Partial unit schema (based on minimal, all fields optional).
|
|
2120
|
+
*/
|
|
2121
|
+
declare const unitPartialSchema: z.ZodObject<{
|
|
2122
|
+
type: z.ZodOptional<z.ZodObject<{
|
|
2123
|
+
system: z.ZodString;
|
|
2124
|
+
value: z.ZodString;
|
|
2125
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2126
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2127
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2128
|
+
}, z.core.$strip>>;
|
|
2129
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
2130
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2131
|
+
system: z.ZodString;
|
|
2132
|
+
value: z.ZodString;
|
|
2133
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2136
|
+
}, z.core.$strip>>>;
|
|
2137
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2138
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
department_id: z.ZodOptional<z.ZodString>;
|
|
2140
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
}, z.core.$strip>;
|
|
2142
|
+
type UnitPartial = z.infer<typeof unitPartialSchema>;
|
|
2143
|
+
|
|
2144
|
+
/**
|
|
2145
|
+
* Current schema version for the Practitioner Schedule model.
|
|
2146
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2147
|
+
*/
|
|
2148
|
+
declare const PRACTITIONER_SCHEDULE_SCHEMA_VERSION = 1;
|
|
2149
|
+
declare const practitionerScheduleSchema: z.ZodObject<{
|
|
2150
|
+
organization_id: z.ZodString;
|
|
2151
|
+
facility_id: z.ZodString;
|
|
2152
|
+
staff_id: z.ZodString;
|
|
2153
|
+
unit_id: z.ZodString;
|
|
2154
|
+
type: z.ZodObject<{
|
|
2155
|
+
system: z.ZodString;
|
|
2156
|
+
value: z.ZodString;
|
|
2157
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2158
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2160
|
+
}, z.core.$strip>;
|
|
2161
|
+
day: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
2162
|
+
_id: z.ZodString;
|
|
2163
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2164
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
2165
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
2166
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
2167
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2168
|
+
}, z.core.$strip>;
|
|
2169
|
+
type PractitionerSchedule = z.infer<typeof practitionerScheduleSchema>;
|
|
2170
|
+
declare const PractitionerScheduleMongooseSchema: Schema;
|
|
2171
|
+
type PractitionerScheduleDocument = InferDocument<typeof practitionerScheduleSchema>;
|
|
2172
|
+
declare const PractitionerScheduleModel: Model<{
|
|
2173
|
+
[x: number]: unknown;
|
|
2174
|
+
[x: symbol]: unknown;
|
|
2175
|
+
[x: string]: unknown;
|
|
2176
|
+
}, {}, {}, {
|
|
2177
|
+
id: string;
|
|
2178
|
+
}, mongoose.Document<unknown, {}, {
|
|
2179
|
+
[x: number]: unknown;
|
|
2180
|
+
[x: symbol]: unknown;
|
|
2181
|
+
[x: string]: unknown;
|
|
2182
|
+
}, {
|
|
2183
|
+
id: string;
|
|
2184
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2185
|
+
[x: number]: unknown;
|
|
2186
|
+
[x: symbol]: unknown;
|
|
2187
|
+
[x: string]: unknown;
|
|
2188
|
+
} & Required<{
|
|
2189
|
+
_id: unknown;
|
|
2190
|
+
}> & {
|
|
2191
|
+
__v: number;
|
|
2192
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2193
|
+
id: string;
|
|
2194
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
2195
|
+
[x: number]: unknown;
|
|
2196
|
+
[x: symbol]: unknown;
|
|
2197
|
+
[x: string]: unknown;
|
|
2198
|
+
}, mongoose.Document<unknown, {}, {
|
|
2199
|
+
[x: number]: unknown;
|
|
2200
|
+
[x: symbol]: unknown;
|
|
2201
|
+
[x: string]: unknown;
|
|
2202
|
+
}, {
|
|
2203
|
+
id: string;
|
|
2204
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2205
|
+
[x: number]: unknown;
|
|
2206
|
+
[x: symbol]: unknown;
|
|
2207
|
+
[x: string]: unknown;
|
|
2208
|
+
} & Required<{
|
|
2209
|
+
_id: unknown;
|
|
2210
|
+
}> & {
|
|
2211
|
+
__v: number;
|
|
2212
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2213
|
+
id: string;
|
|
2214
|
+
}>, unknown, {
|
|
2215
|
+
[x: number]: {};
|
|
2216
|
+
[x: symbol]: {};
|
|
2217
|
+
[x: string]: {};
|
|
2218
|
+
} & Required<{
|
|
2219
|
+
_id: unknown;
|
|
2220
|
+
}> & {
|
|
2221
|
+
__v: number;
|
|
2222
|
+
}>, {
|
|
2223
|
+
[x: number]: {};
|
|
2224
|
+
[x: symbol]: {};
|
|
2225
|
+
[x: string]: {};
|
|
2226
|
+
} & Required<{
|
|
2227
|
+
_id: unknown;
|
|
2228
|
+
}> & {
|
|
2229
|
+
__v: number;
|
|
2230
|
+
}>;
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Minimal practitioner-schedule schema (omits server-generated fields).
|
|
2234
|
+
*/
|
|
2235
|
+
declare const practitionerScheduleMinimalSchema: z.ZodObject<{
|
|
2236
|
+
type: z.ZodObject<{
|
|
2237
|
+
system: z.ZodString;
|
|
2238
|
+
value: z.ZodString;
|
|
2239
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2240
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2241
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2242
|
+
}, z.core.$strip>;
|
|
2243
|
+
facility_id: z.ZodString;
|
|
2244
|
+
organization_id: z.ZodString;
|
|
2245
|
+
staff_id: z.ZodString;
|
|
2246
|
+
unit_id: z.ZodString;
|
|
2247
|
+
day: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
2248
|
+
}, z.core.$strip>;
|
|
2249
|
+
type PractitionerScheduleMinimal = z.infer<typeof practitionerScheduleMinimalSchema>;
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* Partial practitioner-schedule schema (based on minimal, all fields optional).
|
|
2253
|
+
*/
|
|
2254
|
+
declare const practitionerSchedulePartialSchema: z.ZodObject<{
|
|
2255
|
+
type: z.ZodOptional<z.ZodObject<{
|
|
2256
|
+
system: z.ZodString;
|
|
2257
|
+
value: z.ZodString;
|
|
2258
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2260
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2261
|
+
}, z.core.$strip>>;
|
|
2262
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
2263
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
2264
|
+
staff_id: z.ZodOptional<z.ZodString>;
|
|
2265
|
+
unit_id: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
day: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2267
|
+
}, z.core.$strip>;
|
|
2268
|
+
type PractitionerSchedulePartial = z.infer<typeof practitionerSchedulePartialSchema>;
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* Current schema version for the Practitioner Session model.
|
|
2272
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2273
|
+
*/
|
|
2274
|
+
declare const PRACTITIONER_SESSION_SCHEMA_VERSION = 1;
|
|
2275
|
+
declare const practitionerSessionSchema: z.ZodObject<{
|
|
2276
|
+
schedule_id: z.ZodString;
|
|
2277
|
+
staff_id: z.ZodString;
|
|
2278
|
+
unit_id: z.ZodString;
|
|
2279
|
+
start: z.ZodString;
|
|
2280
|
+
end: z.ZodString;
|
|
2281
|
+
max_quota: z.ZodNumber;
|
|
2282
|
+
_id: z.ZodString;
|
|
2283
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2284
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
2285
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
2286
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
2287
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2288
|
+
}, z.core.$strip>;
|
|
2289
|
+
type PractitionerSession = z.infer<typeof practitionerSessionSchema>;
|
|
2290
|
+
declare const PractitionerSessionMongooseSchema: Schema;
|
|
2291
|
+
type PractitionerSessionDocument = InferDocument<typeof practitionerSessionSchema>;
|
|
2292
|
+
declare const PractitionerSessionModel: Model<{
|
|
2293
|
+
[x: number]: unknown;
|
|
2294
|
+
[x: symbol]: unknown;
|
|
2295
|
+
[x: string]: unknown;
|
|
2296
|
+
}, {}, {}, {
|
|
2297
|
+
id: string;
|
|
2298
|
+
}, mongoose.Document<unknown, {}, {
|
|
2299
|
+
[x: number]: unknown;
|
|
2300
|
+
[x: symbol]: unknown;
|
|
2301
|
+
[x: string]: unknown;
|
|
2302
|
+
}, {
|
|
2303
|
+
id: string;
|
|
2304
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2305
|
+
[x: number]: unknown;
|
|
2306
|
+
[x: symbol]: unknown;
|
|
2307
|
+
[x: string]: unknown;
|
|
2308
|
+
} & Required<{
|
|
2309
|
+
_id: unknown;
|
|
2310
|
+
}> & {
|
|
2311
|
+
__v: number;
|
|
2312
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2313
|
+
id: string;
|
|
2314
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
2315
|
+
[x: number]: unknown;
|
|
2316
|
+
[x: symbol]: unknown;
|
|
2317
|
+
[x: string]: unknown;
|
|
2318
|
+
}, mongoose.Document<unknown, {}, {
|
|
2319
|
+
[x: number]: unknown;
|
|
2320
|
+
[x: symbol]: unknown;
|
|
2321
|
+
[x: string]: unknown;
|
|
2322
|
+
}, {
|
|
2323
|
+
id: string;
|
|
2324
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2325
|
+
[x: number]: unknown;
|
|
2326
|
+
[x: symbol]: unknown;
|
|
2327
|
+
[x: string]: unknown;
|
|
2328
|
+
} & Required<{
|
|
2329
|
+
_id: unknown;
|
|
2330
|
+
}> & {
|
|
2331
|
+
__v: number;
|
|
2332
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2333
|
+
id: string;
|
|
2334
|
+
}>, unknown, {
|
|
2335
|
+
[x: number]: {};
|
|
2336
|
+
[x: symbol]: {};
|
|
2337
|
+
[x: string]: {};
|
|
2338
|
+
} & Required<{
|
|
2339
|
+
_id: unknown;
|
|
2340
|
+
}> & {
|
|
2341
|
+
__v: number;
|
|
2342
|
+
}>, {
|
|
2343
|
+
[x: number]: {};
|
|
2344
|
+
[x: symbol]: {};
|
|
2345
|
+
[x: string]: {};
|
|
2346
|
+
} & Required<{
|
|
2347
|
+
_id: unknown;
|
|
2348
|
+
}> & {
|
|
2349
|
+
__v: number;
|
|
2350
|
+
}>;
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Minimal practitioner-session schema (omits server-generated fields).
|
|
2354
|
+
*/
|
|
2355
|
+
declare const practitionerSessionMinimalSchema: z.ZodObject<{
|
|
2356
|
+
end: z.ZodString;
|
|
2357
|
+
staff_id: z.ZodString;
|
|
2358
|
+
unit_id: z.ZodString;
|
|
2359
|
+
schedule_id: z.ZodString;
|
|
2360
|
+
start: z.ZodString;
|
|
2361
|
+
max_quota: z.ZodNumber;
|
|
2362
|
+
}, z.core.$strip>;
|
|
2363
|
+
type PractitionerSessionMinimal = z.infer<typeof practitionerSessionMinimalSchema>;
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* Partial practitioner-session schema (based on minimal, all fields optional).
|
|
2367
|
+
*/
|
|
2368
|
+
declare const practitionerSessionPartialSchema: z.ZodObject<{
|
|
2369
|
+
end: z.ZodOptional<z.ZodString>;
|
|
2370
|
+
staff_id: z.ZodOptional<z.ZodString>;
|
|
2371
|
+
unit_id: z.ZodOptional<z.ZodString>;
|
|
2372
|
+
schedule_id: z.ZodOptional<z.ZodString>;
|
|
2373
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2374
|
+
max_quota: z.ZodOptional<z.ZodNumber>;
|
|
2375
|
+
}, z.core.$strip>;
|
|
2376
|
+
type PractitionerSessionPartial = z.infer<typeof practitionerSessionPartialSchema>;
|
|
2377
|
+
|
|
2378
|
+
/**
|
|
2379
|
+
* Current schema version for the KSM model.
|
|
2380
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2381
|
+
*/
|
|
2382
|
+
declare const KSM_SCHEMA_VERSION = 1;
|
|
2383
|
+
declare const ksmSchema: z.ZodObject<{
|
|
2384
|
+
id: z.ZodString;
|
|
2385
|
+
organization_id: z.ZodString;
|
|
2386
|
+
facility_id: z.ZodString;
|
|
2387
|
+
name: z.ZodString;
|
|
2388
|
+
subspecialist: z.ZodArray<z.ZodString>;
|
|
2389
|
+
created_at: z.ZodString;
|
|
2390
|
+
created_by: z.ZodString;
|
|
2391
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
2392
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
2393
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2394
|
+
}, z.core.$strip>;
|
|
2395
|
+
type Ksm = z.infer<typeof ksmSchema>;
|
|
2396
|
+
declare const KsmMongooseSchema: Schema;
|
|
2397
|
+
type KsmDocument = InferDocument<typeof ksmSchema>;
|
|
2398
|
+
declare const KsmModel: Model<{
|
|
2399
|
+
[x: number]: unknown;
|
|
2400
|
+
[x: symbol]: unknown;
|
|
2401
|
+
[x: string]: unknown;
|
|
2402
|
+
}, {}, {}, {
|
|
2403
|
+
id: string;
|
|
2404
|
+
}, mongoose.Document<unknown, {}, {
|
|
2405
|
+
[x: number]: unknown;
|
|
2406
|
+
[x: symbol]: unknown;
|
|
2407
|
+
[x: string]: unknown;
|
|
2408
|
+
}, {
|
|
2409
|
+
id: string;
|
|
2410
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2411
|
+
[x: number]: unknown;
|
|
2412
|
+
[x: symbol]: unknown;
|
|
2413
|
+
[x: string]: unknown;
|
|
2414
|
+
} & Required<{
|
|
2415
|
+
_id: unknown;
|
|
2416
|
+
}> & {
|
|
2417
|
+
__v: number;
|
|
2418
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2419
|
+
id: string;
|
|
2420
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
2421
|
+
[x: number]: unknown;
|
|
2422
|
+
[x: symbol]: unknown;
|
|
2423
|
+
[x: string]: unknown;
|
|
2424
|
+
}, mongoose.Document<unknown, {}, {
|
|
2425
|
+
[x: number]: unknown;
|
|
2426
|
+
[x: symbol]: unknown;
|
|
2427
|
+
[x: string]: unknown;
|
|
2428
|
+
}, {
|
|
2429
|
+
id: string;
|
|
2430
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2431
|
+
[x: number]: unknown;
|
|
2432
|
+
[x: symbol]: unknown;
|
|
2433
|
+
[x: string]: unknown;
|
|
2434
|
+
} & Required<{
|
|
2435
|
+
_id: unknown;
|
|
2436
|
+
}> & {
|
|
2437
|
+
__v: number;
|
|
2438
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2439
|
+
id: string;
|
|
2440
|
+
}>, unknown, {
|
|
2441
|
+
[x: number]: {};
|
|
2442
|
+
[x: symbol]: {};
|
|
2443
|
+
[x: string]: {};
|
|
2444
|
+
} & Required<{
|
|
2445
|
+
_id: unknown;
|
|
2446
|
+
}> & {
|
|
2447
|
+
__v: number;
|
|
2448
|
+
}>, {
|
|
2449
|
+
[x: number]: {};
|
|
2450
|
+
[x: symbol]: {};
|
|
2451
|
+
[x: string]: {};
|
|
2452
|
+
} & Required<{
|
|
2453
|
+
_id: unknown;
|
|
2454
|
+
}> & {
|
|
2455
|
+
__v: number;
|
|
2456
|
+
}>;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* Minimal ksm schema (omits server-generated fields).
|
|
2460
|
+
*/
|
|
2461
|
+
declare const ksmMinimalSchema: z.ZodObject<{
|
|
2462
|
+
name: z.ZodString;
|
|
2463
|
+
facility_id: z.ZodString;
|
|
2464
|
+
organization_id: z.ZodString;
|
|
2465
|
+
subspecialist: z.ZodArray<z.ZodString>;
|
|
2466
|
+
}, z.core.$strip>;
|
|
2467
|
+
type KsmMinimal = z.infer<typeof ksmMinimalSchema>;
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* Partial ksm schema (based on minimal, all fields optional).
|
|
2471
|
+
*/
|
|
2472
|
+
declare const ksmPartialSchema: z.ZodObject<{
|
|
2473
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
2475
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
subspecialist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2477
|
+
}, z.core.$strip>;
|
|
2478
|
+
type KsmPartial = z.infer<typeof ksmPartialSchema>;
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Current schema version for the Payer model.
|
|
2482
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2483
|
+
*/
|
|
2484
|
+
declare const PAYER_SCHEMA_VERSION = 1;
|
|
2485
|
+
declare const payerSchema: z.ZodObject<{
|
|
2486
|
+
id: z.ZodString;
|
|
2487
|
+
organization_id: z.ZodString;
|
|
2488
|
+
facility_id: z.ZodString;
|
|
2489
|
+
code: z.ZodString;
|
|
2490
|
+
name: z.ZodString;
|
|
2491
|
+
category: z.ZodObject<{
|
|
2492
|
+
system: z.ZodString;
|
|
2493
|
+
value: z.ZodString;
|
|
2494
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2495
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2496
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2497
|
+
}, z.core.$strip>;
|
|
2498
|
+
type: z.ZodString;
|
|
2499
|
+
contacts: z.ZodArray<z.ZodObject<{
|
|
2500
|
+
system: z.ZodString;
|
|
2501
|
+
value: z.ZodString;
|
|
2502
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2503
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2504
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2505
|
+
}, z.core.$strip>>;
|
|
2506
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
2507
|
+
system: z.ZodString;
|
|
2508
|
+
value: z.ZodString;
|
|
2509
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2510
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2511
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2512
|
+
}, z.core.$strip>>;
|
|
2513
|
+
banks: z.ZodArray<z.ZodObject<{
|
|
2514
|
+
name: z.ZodString;
|
|
2515
|
+
account: z.ZodString;
|
|
2516
|
+
number: z.ZodString;
|
|
2517
|
+
}, z.core.$strip>>;
|
|
2518
|
+
variations: z.ZodArray<z.ZodObject<{
|
|
2519
|
+
code: z.ZodString;
|
|
2520
|
+
name: z.ZodString;
|
|
2521
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2522
|
+
start: z.ZodString;
|
|
2523
|
+
end: z.ZodOptional<z.ZodString>;
|
|
2524
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2525
|
+
system: z.ZodString;
|
|
2526
|
+
value: z.ZodString;
|
|
2527
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2528
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2529
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2530
|
+
}, z.core.$strip>>>;
|
|
2531
|
+
documents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2532
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
2533
|
+
system: z.ZodString;
|
|
2534
|
+
value: z.ZodString;
|
|
2535
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2538
|
+
}, z.core.$strip>>;
|
|
2539
|
+
banks: z.ZodArray<z.ZodObject<{
|
|
2540
|
+
name: z.ZodString;
|
|
2541
|
+
account: z.ZodString;
|
|
2542
|
+
number: z.ZodString;
|
|
2543
|
+
}, z.core.$strip>>;
|
|
2544
|
+
settings_id: z.ZodString;
|
|
2545
|
+
}, z.core.$strip>>;
|
|
2546
|
+
created_at: z.ZodString;
|
|
2547
|
+
created_by: z.ZodString;
|
|
2548
|
+
updated_at: z.ZodString;
|
|
2549
|
+
updated_by: z.ZodString;
|
|
2550
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2551
|
+
}, z.core.$strip>;
|
|
2552
|
+
type Payer = z.infer<typeof payerSchema>;
|
|
2553
|
+
declare const PayerMongooseSchema: Schema;
|
|
2554
|
+
type PayerDocument = InferDocument<typeof payerSchema>;
|
|
2555
|
+
declare const PayerModel: Model<{
|
|
2556
|
+
[x: number]: unknown;
|
|
2557
|
+
[x: symbol]: unknown;
|
|
2558
|
+
[x: string]: unknown;
|
|
2559
|
+
}, {}, {}, {
|
|
2560
|
+
id: string;
|
|
2561
|
+
}, mongoose.Document<unknown, {}, {
|
|
2562
|
+
[x: number]: unknown;
|
|
2563
|
+
[x: symbol]: unknown;
|
|
2564
|
+
[x: string]: unknown;
|
|
2565
|
+
}, {
|
|
2566
|
+
id: string;
|
|
2567
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2568
|
+
[x: number]: unknown;
|
|
2569
|
+
[x: symbol]: unknown;
|
|
2570
|
+
[x: string]: unknown;
|
|
2571
|
+
} & Required<{
|
|
2572
|
+
_id: unknown;
|
|
2573
|
+
}> & {
|
|
2574
|
+
__v: number;
|
|
2575
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2576
|
+
id: string;
|
|
2577
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
2578
|
+
[x: number]: unknown;
|
|
2579
|
+
[x: symbol]: unknown;
|
|
2580
|
+
[x: string]: unknown;
|
|
2581
|
+
}, mongoose.Document<unknown, {}, {
|
|
2582
|
+
[x: number]: unknown;
|
|
2583
|
+
[x: symbol]: unknown;
|
|
2584
|
+
[x: string]: unknown;
|
|
2585
|
+
}, {
|
|
2586
|
+
id: string;
|
|
2587
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2588
|
+
[x: number]: unknown;
|
|
2589
|
+
[x: symbol]: unknown;
|
|
2590
|
+
[x: string]: unknown;
|
|
2591
|
+
} & Required<{
|
|
2592
|
+
_id: unknown;
|
|
2593
|
+
}> & {
|
|
2594
|
+
__v: number;
|
|
2595
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2596
|
+
id: string;
|
|
2597
|
+
}>, unknown, {
|
|
2598
|
+
[x: number]: {};
|
|
2599
|
+
[x: symbol]: {};
|
|
2600
|
+
[x: string]: {};
|
|
2601
|
+
} & Required<{
|
|
2602
|
+
_id: unknown;
|
|
2603
|
+
}> & {
|
|
2604
|
+
__v: number;
|
|
2605
|
+
}>, {
|
|
2606
|
+
[x: number]: {};
|
|
2607
|
+
[x: symbol]: {};
|
|
2608
|
+
[x: string]: {};
|
|
2609
|
+
} & Required<{
|
|
2610
|
+
_id: unknown;
|
|
2611
|
+
}> & {
|
|
2612
|
+
__v: number;
|
|
2613
|
+
}>;
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* Current schema version for the Payer settings record.
|
|
2617
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2618
|
+
*/
|
|
2619
|
+
declare const PAYER_SETTINGS_SCHEMA_VERSION = 1;
|
|
2620
|
+
declare const payerSettingsSchema: z.ZodObject<{
|
|
2621
|
+
_id: z.ZodString;
|
|
2622
|
+
scope: z.ZodString;
|
|
2623
|
+
options: z.ZodArray<z.ZodObject<{
|
|
2624
|
+
field: z.ZodString;
|
|
2625
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2626
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2627
|
+
string: "string";
|
|
2628
|
+
number: "number";
|
|
2629
|
+
boolean: "boolean";
|
|
2630
|
+
date: "date";
|
|
2631
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2632
|
+
string: "string";
|
|
2633
|
+
number: "number";
|
|
2634
|
+
boolean: "boolean";
|
|
2635
|
+
date: "date";
|
|
2636
|
+
}>>, z.ZodString]>;
|
|
2637
|
+
default: z.ZodNullable<z.ZodString>;
|
|
2638
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
2639
|
+
}, z.core.$strip>>;
|
|
2640
|
+
updated_at: z.ZodString;
|
|
2641
|
+
updated_by: z.ZodString;
|
|
2642
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2643
|
+
}, z.core.$strip>;
|
|
2644
|
+
declare const payerSettingsKVSchema: z.ZodObject<{
|
|
2645
|
+
use_header_contact_info: z.ZodDefault<z.ZodBoolean>;
|
|
2646
|
+
use_header_bank_info: z.ZodDefault<z.ZodBoolean>;
|
|
2647
|
+
use_header_status_info: z.ZodDefault<z.ZodBoolean>;
|
|
2648
|
+
rules_drug_formulary: z.ZodOptional<z.ZodString>;
|
|
2649
|
+
rules_method: z.ZodOptional<z.ZodString>;
|
|
2650
|
+
rules_global_cover_outpatient: z.ZodDefault<z.ZodBoolean>;
|
|
2651
|
+
rules_global_cover_emergency: z.ZodDefault<z.ZodBoolean>;
|
|
2652
|
+
rules_global_tariff_calculation_date: z.ZodDefault<z.ZodEnum<{
|
|
2653
|
+
"transaction-date": "transaction-date";
|
|
2654
|
+
"billing-date": "billing-date";
|
|
2655
|
+
}>>;
|
|
2656
|
+
rules_global_margin_id: z.ZodOptional<z.ZodString>;
|
|
2657
|
+
rules_global_rule_type: z.ZodDefault<z.ZodEnum<{
|
|
2658
|
+
margin: "margin";
|
|
2659
|
+
plafond: "plafond";
|
|
2660
|
+
}>>;
|
|
2661
|
+
rules_admin_calculate: z.ZodDefault<z.ZodBoolean>;
|
|
2662
|
+
rules_admin_min_fee: z.ZodDefault<z.ZodNumber>;
|
|
2663
|
+
rules_admin_max_fee: z.ZodDefault<z.ZodNumber>;
|
|
2664
|
+
rules_admin_before_discount: z.ZodDefault<z.ZodBoolean>;
|
|
2665
|
+
rules_admin_covered: z.ZodDefault<z.ZodBoolean>;
|
|
2666
|
+
rules_item_restriction_id: z.ZodOptional<z.ZodString>;
|
|
2667
|
+
}, z.core.$strip>;
|
|
2668
|
+
type PayerSettings = z.infer<typeof payerSettingsSchema>;
|
|
2669
|
+
type PayerSettingsKV = z.infer<typeof payerSettingsKVSchema>;
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* Minimal payer schema (omits server-generated fields).
|
|
2673
|
+
*/
|
|
2674
|
+
declare const payerMinimalSchema: z.ZodObject<{
|
|
2675
|
+
type: z.ZodString;
|
|
2676
|
+
category: z.ZodObject<{
|
|
2677
|
+
system: z.ZodString;
|
|
2678
|
+
value: z.ZodString;
|
|
2679
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2680
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2681
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2682
|
+
}, z.core.$strip>;
|
|
2683
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
2684
|
+
system: z.ZodString;
|
|
2685
|
+
value: z.ZodString;
|
|
2686
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2687
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2688
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2689
|
+
}, z.core.$strip>>;
|
|
2690
|
+
contacts: z.ZodArray<z.ZodObject<{
|
|
2691
|
+
system: z.ZodString;
|
|
2692
|
+
value: z.ZodString;
|
|
2693
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2694
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2695
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2696
|
+
}, z.core.$strip>>;
|
|
2697
|
+
name: z.ZodString;
|
|
2698
|
+
facility_id: z.ZodString;
|
|
2699
|
+
organization_id: z.ZodString;
|
|
2700
|
+
code: z.ZodString;
|
|
2701
|
+
banks: z.ZodArray<z.ZodObject<{
|
|
2702
|
+
name: z.ZodString;
|
|
2703
|
+
account: z.ZodString;
|
|
2704
|
+
number: z.ZodString;
|
|
2705
|
+
}, z.core.$strip>>;
|
|
2706
|
+
variations: z.ZodArray<z.ZodObject<{
|
|
2707
|
+
code: z.ZodString;
|
|
2708
|
+
name: z.ZodString;
|
|
2709
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2710
|
+
start: z.ZodString;
|
|
2711
|
+
end: z.ZodOptional<z.ZodString>;
|
|
2712
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2713
|
+
system: z.ZodString;
|
|
2714
|
+
value: z.ZodString;
|
|
2715
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2716
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2717
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2718
|
+
}, z.core.$strip>>>;
|
|
2719
|
+
documents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2720
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
2721
|
+
system: z.ZodString;
|
|
2722
|
+
value: z.ZodString;
|
|
2723
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2724
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2725
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2726
|
+
}, z.core.$strip>>;
|
|
2727
|
+
banks: z.ZodArray<z.ZodObject<{
|
|
2728
|
+
name: z.ZodString;
|
|
2729
|
+
account: z.ZodString;
|
|
2730
|
+
number: z.ZodString;
|
|
2731
|
+
}, z.core.$strip>>;
|
|
2732
|
+
settings_id: z.ZodString;
|
|
2733
|
+
}, z.core.$strip>>;
|
|
2734
|
+
}, z.core.$strip>;
|
|
2735
|
+
type PayerMinimal = z.infer<typeof payerMinimalSchema>;
|
|
2736
|
+
|
|
2737
|
+
/**
|
|
2738
|
+
* Partial payer schema (based on minimal, all fields optional).
|
|
2739
|
+
*/
|
|
2740
|
+
declare const payerPartialSchema: z.ZodObject<{
|
|
2741
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2742
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
2743
|
+
system: z.ZodString;
|
|
2744
|
+
value: z.ZodString;
|
|
2745
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2746
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2747
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2748
|
+
}, z.core.$strip>>;
|
|
2749
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2750
|
+
system: z.ZodString;
|
|
2751
|
+
value: z.ZodString;
|
|
2752
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2753
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2754
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2755
|
+
}, z.core.$strip>>>;
|
|
2756
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2757
|
+
system: z.ZodString;
|
|
2758
|
+
value: z.ZodString;
|
|
2759
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2760
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2761
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2762
|
+
}, z.core.$strip>>>;
|
|
2763
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2764
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
2765
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
2766
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2767
|
+
banks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2768
|
+
name: z.ZodString;
|
|
2769
|
+
account: z.ZodString;
|
|
2770
|
+
number: z.ZodString;
|
|
2771
|
+
}, z.core.$strip>>>;
|
|
2772
|
+
variations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2773
|
+
code: z.ZodString;
|
|
2774
|
+
name: z.ZodString;
|
|
2775
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2776
|
+
start: z.ZodString;
|
|
2777
|
+
end: z.ZodOptional<z.ZodString>;
|
|
2778
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2779
|
+
system: z.ZodString;
|
|
2780
|
+
value: z.ZodString;
|
|
2781
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2782
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2783
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2784
|
+
}, z.core.$strip>>>;
|
|
2785
|
+
documents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2786
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
2787
|
+
system: z.ZodString;
|
|
2788
|
+
value: z.ZodString;
|
|
2789
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2790
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2791
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2792
|
+
}, z.core.$strip>>;
|
|
2793
|
+
banks: z.ZodArray<z.ZodObject<{
|
|
2794
|
+
name: z.ZodString;
|
|
2795
|
+
account: z.ZodString;
|
|
2796
|
+
number: z.ZodString;
|
|
2797
|
+
}, z.core.$strip>>;
|
|
2798
|
+
settings_id: z.ZodString;
|
|
2799
|
+
}, z.core.$strip>>>;
|
|
2800
|
+
}, z.core.$strip>;
|
|
2801
|
+
type PayerPartial = z.infer<typeof payerPartialSchema>;
|
|
2802
|
+
|
|
2803
|
+
/**
|
|
2804
|
+
* Current schema version for the Queue model.
|
|
2805
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2806
|
+
*/
|
|
2807
|
+
declare const QUEUE_SCHEMA_VERSION = 1;
|
|
2808
|
+
declare const queueSchema: z.ZodObject<{
|
|
2809
|
+
id: z.ZodString;
|
|
2810
|
+
organization_id: z.ZodString;
|
|
2811
|
+
facility_id: z.ZodString;
|
|
2812
|
+
unit_id: z.ZodString;
|
|
2813
|
+
payer_type: z.ZodString;
|
|
2814
|
+
line: z.ZodArray<z.ZodObject<{
|
|
2815
|
+
queue_number_id: z.ZodString;
|
|
2816
|
+
queue_number: z.ZodString;
|
|
2817
|
+
stage: z.ZodObject<{
|
|
2818
|
+
system: z.ZodString;
|
|
2819
|
+
value: z.ZodString;
|
|
2820
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2821
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2822
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2823
|
+
}, z.core.$strip>;
|
|
2824
|
+
status: z.ZodObject<{
|
|
2825
|
+
system: z.ZodString;
|
|
2826
|
+
value: z.ZodString;
|
|
2827
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2828
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2829
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2830
|
+
}, z.core.$strip>;
|
|
2831
|
+
call_count: z.ZodNumber;
|
|
2832
|
+
}, z.core.$strip>>;
|
|
2833
|
+
created_at: z.ZodString;
|
|
2834
|
+
created_by: z.ZodString;
|
|
2835
|
+
updated_at: z.ZodString;
|
|
2836
|
+
updated_by: z.ZodString;
|
|
2837
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2838
|
+
}, z.core.$strip>;
|
|
2839
|
+
type Queue = z.infer<typeof queueSchema>;
|
|
2840
|
+
declare const QueueMongooseSchema: Schema;
|
|
2841
|
+
type QueueDocument = InferDocument<typeof queueSchema>;
|
|
2842
|
+
declare const QueueModel: Model<{
|
|
2843
|
+
[x: number]: unknown;
|
|
2844
|
+
[x: symbol]: unknown;
|
|
2845
|
+
[x: string]: unknown;
|
|
2846
|
+
}, {}, {}, {
|
|
2847
|
+
id: string;
|
|
2848
|
+
}, mongoose.Document<unknown, {}, {
|
|
2849
|
+
[x: number]: unknown;
|
|
2850
|
+
[x: symbol]: unknown;
|
|
2851
|
+
[x: string]: unknown;
|
|
2852
|
+
}, {
|
|
2853
|
+
id: string;
|
|
2854
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2855
|
+
[x: number]: unknown;
|
|
2856
|
+
[x: symbol]: unknown;
|
|
2857
|
+
[x: string]: unknown;
|
|
2858
|
+
} & Required<{
|
|
2859
|
+
_id: unknown;
|
|
2860
|
+
}> & {
|
|
2861
|
+
__v: number;
|
|
2862
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2863
|
+
id: string;
|
|
2864
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
2865
|
+
[x: number]: unknown;
|
|
2866
|
+
[x: symbol]: unknown;
|
|
2867
|
+
[x: string]: unknown;
|
|
2868
|
+
}, mongoose.Document<unknown, {}, {
|
|
2869
|
+
[x: number]: unknown;
|
|
2870
|
+
[x: symbol]: unknown;
|
|
2871
|
+
[x: string]: unknown;
|
|
2872
|
+
}, {
|
|
2873
|
+
id: string;
|
|
2874
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
2875
|
+
[x: number]: unknown;
|
|
2876
|
+
[x: symbol]: unknown;
|
|
2877
|
+
[x: string]: unknown;
|
|
2878
|
+
} & Required<{
|
|
2879
|
+
_id: unknown;
|
|
2880
|
+
}> & {
|
|
2881
|
+
__v: number;
|
|
2882
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
2883
|
+
id: string;
|
|
2884
|
+
}>, unknown, {
|
|
2885
|
+
[x: number]: {};
|
|
2886
|
+
[x: symbol]: {};
|
|
2887
|
+
[x: string]: {};
|
|
2888
|
+
} & Required<{
|
|
2889
|
+
_id: unknown;
|
|
2890
|
+
}> & {
|
|
2891
|
+
__v: number;
|
|
2892
|
+
}>, {
|
|
2893
|
+
[x: number]: {};
|
|
2894
|
+
[x: symbol]: {};
|
|
2895
|
+
[x: string]: {};
|
|
2896
|
+
} & Required<{
|
|
2897
|
+
_id: unknown;
|
|
2898
|
+
}> & {
|
|
2899
|
+
__v: number;
|
|
2900
|
+
}>;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* Current schema version for the Queue settings record.
|
|
2904
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
2905
|
+
*/
|
|
2906
|
+
declare const QUEUE_SETTINGS_SCHEMA_VERSION = 1;
|
|
2907
|
+
declare const queueSettingsSchema: z.ZodObject<{
|
|
2908
|
+
_id: z.ZodString;
|
|
2909
|
+
scope: z.ZodString;
|
|
2910
|
+
options: z.ZodArray<z.ZodObject<{
|
|
2911
|
+
field: z.ZodString;
|
|
2912
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2913
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2914
|
+
string: "string";
|
|
2915
|
+
number: "number";
|
|
2916
|
+
boolean: "boolean";
|
|
2917
|
+
date: "date";
|
|
2918
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2919
|
+
string: "string";
|
|
2920
|
+
number: "number";
|
|
2921
|
+
boolean: "boolean";
|
|
2922
|
+
date: "date";
|
|
2923
|
+
}>>, z.ZodString]>;
|
|
2924
|
+
default: z.ZodNullable<z.ZodString>;
|
|
2925
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
2926
|
+
}, z.core.$strip>>;
|
|
2927
|
+
updated_at: z.ZodString;
|
|
2928
|
+
updated_by: z.ZodString;
|
|
2929
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
2930
|
+
}, z.core.$strip>;
|
|
2931
|
+
declare const queueSettingsKVSchema: z.ZodObject<{
|
|
2932
|
+
use_header_contact_info: z.ZodDefault<z.ZodBoolean>;
|
|
2933
|
+
use_header_bank_info: z.ZodDefault<z.ZodBoolean>;
|
|
2934
|
+
use_header_status_info: z.ZodDefault<z.ZodBoolean>;
|
|
2935
|
+
rules_drug_formulary: z.ZodOptional<z.ZodString>;
|
|
2936
|
+
rules_method: z.ZodOptional<z.ZodString>;
|
|
2937
|
+
rules_global_cover_outpatient: z.ZodDefault<z.ZodBoolean>;
|
|
2938
|
+
rules_global_cover_emergency: z.ZodDefault<z.ZodBoolean>;
|
|
2939
|
+
rules_global_tariff_calculation_date: z.ZodDefault<z.ZodEnum<{
|
|
2940
|
+
"transaction-date": "transaction-date";
|
|
2941
|
+
"billing-date": "billing-date";
|
|
2942
|
+
}>>;
|
|
2943
|
+
rules_global_margin_id: z.ZodOptional<z.ZodString>;
|
|
2944
|
+
rules_global_rule_type: z.ZodDefault<z.ZodEnum<{
|
|
2945
|
+
margin: "margin";
|
|
2946
|
+
plafond: "plafond";
|
|
2947
|
+
}>>;
|
|
2948
|
+
rules_admin_calculate: z.ZodDefault<z.ZodBoolean>;
|
|
2949
|
+
rules_admin_min_fee: z.ZodDefault<z.ZodNumber>;
|
|
2950
|
+
rules_admin_max_fee: z.ZodDefault<z.ZodNumber>;
|
|
2951
|
+
rules_admin_before_discount: z.ZodDefault<z.ZodBoolean>;
|
|
2952
|
+
rules_admin_covered: z.ZodDefault<z.ZodBoolean>;
|
|
2953
|
+
rules_item_restriction_id: z.ZodOptional<z.ZodString>;
|
|
2954
|
+
}, z.core.$strip>;
|
|
2955
|
+
type QueueSettings = z.infer<typeof queueSettingsSchema>;
|
|
2956
|
+
type QueueSettingsKV = z.infer<typeof queueSettingsKVSchema>;
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* Minimal queue schema (omits server-generated fields).
|
|
2960
|
+
*/
|
|
2961
|
+
declare const queueMinimalSchema: z.ZodObject<{
|
|
2962
|
+
facility_id: z.ZodString;
|
|
2963
|
+
organization_id: z.ZodString;
|
|
2964
|
+
unit_id: z.ZodString;
|
|
2965
|
+
payer_type: z.ZodString;
|
|
2966
|
+
line: z.ZodArray<z.ZodObject<{
|
|
2967
|
+
queue_number_id: z.ZodString;
|
|
2968
|
+
queue_number: z.ZodString;
|
|
2969
|
+
stage: z.ZodObject<{
|
|
2970
|
+
system: z.ZodString;
|
|
2971
|
+
value: z.ZodString;
|
|
2972
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2973
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2974
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2975
|
+
}, z.core.$strip>;
|
|
2976
|
+
status: z.ZodObject<{
|
|
2977
|
+
system: z.ZodString;
|
|
2978
|
+
value: z.ZodString;
|
|
2979
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2980
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
2981
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2982
|
+
}, z.core.$strip>;
|
|
2983
|
+
call_count: z.ZodNumber;
|
|
2984
|
+
}, z.core.$strip>>;
|
|
2985
|
+
}, z.core.$strip>;
|
|
2986
|
+
type QueueMinimal = z.infer<typeof queueMinimalSchema>;
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* Partial queue schema (based on minimal, all fields optional).
|
|
2990
|
+
*/
|
|
2991
|
+
declare const queuePartialSchema: z.ZodObject<{
|
|
2992
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
2993
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
2994
|
+
unit_id: z.ZodOptional<z.ZodString>;
|
|
2995
|
+
payer_type: z.ZodOptional<z.ZodString>;
|
|
2996
|
+
line: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2997
|
+
queue_number_id: z.ZodString;
|
|
2998
|
+
queue_number: z.ZodString;
|
|
2999
|
+
stage: z.ZodObject<{
|
|
3000
|
+
system: z.ZodString;
|
|
3001
|
+
value: z.ZodString;
|
|
3002
|
+
display: z.ZodOptional<z.ZodString>;
|
|
3003
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
3004
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3005
|
+
}, z.core.$strip>;
|
|
3006
|
+
status: z.ZodObject<{
|
|
3007
|
+
system: z.ZodString;
|
|
3008
|
+
value: z.ZodString;
|
|
3009
|
+
display: z.ZodOptional<z.ZodString>;
|
|
3010
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
3011
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3012
|
+
}, z.core.$strip>;
|
|
3013
|
+
call_count: z.ZodNumber;
|
|
3014
|
+
}, z.core.$strip>>>;
|
|
3015
|
+
}, z.core.$strip>;
|
|
3016
|
+
type QueuePartial = z.infer<typeof queuePartialSchema>;
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* Current schema version for the Queue Event Log model.
|
|
3020
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
3021
|
+
*/
|
|
3022
|
+
declare const QUEUE_EVENT_LOG_SCHEMA_VERSION = 1;
|
|
3023
|
+
declare const queueEventLogSchema: z.ZodObject<{
|
|
3024
|
+
id: z.ZodString;
|
|
3025
|
+
queue_number_id: z.ZodString;
|
|
3026
|
+
queue_number: z.ZodString;
|
|
3027
|
+
events: z.ZodArray<z.ZodObject<{
|
|
3028
|
+
system: z.ZodString;
|
|
3029
|
+
value: z.ZodString;
|
|
3030
|
+
display: z.ZodOptional<z.ZodString>;
|
|
3031
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
3032
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3033
|
+
}, z.core.$strip>>;
|
|
3034
|
+
count: z.ZodNumber;
|
|
3035
|
+
created_at: z.ZodString;
|
|
3036
|
+
created_by: z.ZodString;
|
|
3037
|
+
updated_at: z.ZodString;
|
|
3038
|
+
updated_by: z.ZodString;
|
|
3039
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
3040
|
+
}, z.core.$strip>;
|
|
3041
|
+
type QueueEventLog = z.infer<typeof queueEventLogSchema>;
|
|
3042
|
+
declare const QueueEventLogMongooseSchema: Schema;
|
|
3043
|
+
type QueueEventLogDocument = InferDocument<typeof queueEventLogSchema>;
|
|
3044
|
+
declare const QueueEventLogModel: Model<{
|
|
3045
|
+
[x: number]: unknown;
|
|
3046
|
+
[x: symbol]: unknown;
|
|
3047
|
+
[x: string]: unknown;
|
|
3048
|
+
}, {}, {}, {
|
|
3049
|
+
id: string;
|
|
3050
|
+
}, mongoose.Document<unknown, {}, {
|
|
3051
|
+
[x: number]: unknown;
|
|
3052
|
+
[x: symbol]: unknown;
|
|
3053
|
+
[x: string]: unknown;
|
|
3054
|
+
}, {
|
|
3055
|
+
id: string;
|
|
3056
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
3057
|
+
[x: number]: unknown;
|
|
3058
|
+
[x: symbol]: unknown;
|
|
3059
|
+
[x: string]: unknown;
|
|
3060
|
+
} & Required<{
|
|
3061
|
+
_id: unknown;
|
|
3062
|
+
}> & {
|
|
3063
|
+
__v: number;
|
|
3064
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
3065
|
+
id: string;
|
|
3066
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3067
|
+
[x: number]: unknown;
|
|
3068
|
+
[x: symbol]: unknown;
|
|
3069
|
+
[x: string]: unknown;
|
|
3070
|
+
}, mongoose.Document<unknown, {}, {
|
|
3071
|
+
[x: number]: unknown;
|
|
3072
|
+
[x: symbol]: unknown;
|
|
3073
|
+
[x: string]: unknown;
|
|
3074
|
+
}, {
|
|
3075
|
+
id: string;
|
|
3076
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
3077
|
+
[x: number]: unknown;
|
|
3078
|
+
[x: symbol]: unknown;
|
|
3079
|
+
[x: string]: unknown;
|
|
3080
|
+
} & Required<{
|
|
3081
|
+
_id: unknown;
|
|
3082
|
+
}> & {
|
|
3083
|
+
__v: number;
|
|
3084
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
3085
|
+
id: string;
|
|
3086
|
+
}>, unknown, {
|
|
3087
|
+
[x: number]: {};
|
|
3088
|
+
[x: symbol]: {};
|
|
3089
|
+
[x: string]: {};
|
|
3090
|
+
} & Required<{
|
|
3091
|
+
_id: unknown;
|
|
3092
|
+
}> & {
|
|
3093
|
+
__v: number;
|
|
3094
|
+
}>, {
|
|
3095
|
+
[x: number]: {};
|
|
3096
|
+
[x: symbol]: {};
|
|
3097
|
+
[x: string]: {};
|
|
3098
|
+
} & Required<{
|
|
3099
|
+
_id: unknown;
|
|
3100
|
+
}> & {
|
|
3101
|
+
__v: number;
|
|
3102
|
+
}>;
|
|
3103
|
+
|
|
3104
|
+
/**
|
|
3105
|
+
* Minimal queue-event-log schema (omits server-generated fields).
|
|
3106
|
+
*/
|
|
3107
|
+
declare const queueEventLogMinimalSchema: z.ZodObject<{
|
|
3108
|
+
queue_number_id: z.ZodString;
|
|
3109
|
+
queue_number: z.ZodString;
|
|
3110
|
+
events: z.ZodArray<z.ZodObject<{
|
|
3111
|
+
system: z.ZodString;
|
|
3112
|
+
value: z.ZodString;
|
|
3113
|
+
display: z.ZodOptional<z.ZodString>;
|
|
3114
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
3115
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3116
|
+
}, z.core.$strip>>;
|
|
3117
|
+
count: z.ZodNumber;
|
|
3118
|
+
}, z.core.$strip>;
|
|
3119
|
+
type QueueEventLogMinimal = z.infer<typeof queueEventLogMinimalSchema>;
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* Partial queue-event-log schema (based on minimal, all fields optional).
|
|
3123
|
+
*/
|
|
3124
|
+
declare const queueEventLogPartialSchema: z.ZodObject<{
|
|
3125
|
+
queue_number_id: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
queue_number: z.ZodOptional<z.ZodString>;
|
|
3127
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3128
|
+
system: z.ZodString;
|
|
3129
|
+
value: z.ZodString;
|
|
3130
|
+
display: z.ZodOptional<z.ZodString>;
|
|
3131
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
3132
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3133
|
+
}, z.core.$strip>>>;
|
|
3134
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
3135
|
+
}, z.core.$strip>;
|
|
3136
|
+
type QueueEventLogPartial = z.infer<typeof queueEventLogPartialSchema>;
|
|
3137
|
+
|
|
3138
|
+
/**
|
|
3139
|
+
* Current schema version for the Queue Number model.
|
|
3140
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
3141
|
+
*/
|
|
3142
|
+
declare const QUEUE_NUMBER_SCHEMA_VERSION = 1;
|
|
3143
|
+
declare const queueNumberSchema: z.ZodObject<{
|
|
3144
|
+
id: z.ZodString;
|
|
3145
|
+
organization_id: z.ZodString;
|
|
3146
|
+
facility_id: z.ZodString;
|
|
3147
|
+
patient_id: z.ZodString;
|
|
3148
|
+
metadata: z.ZodObject<{
|
|
3149
|
+
payer_type: z.ZodString;
|
|
3150
|
+
unit_id: z.ZodString;
|
|
3151
|
+
practitioner_id: z.ZodString;
|
|
3152
|
+
date: z.ZodString;
|
|
3153
|
+
session: z.ZodString;
|
|
3154
|
+
}, z.core.$strip>;
|
|
3155
|
+
sequence: z.ZodNumber;
|
|
3156
|
+
prefix: z.ZodString;
|
|
3157
|
+
number: z.ZodString;
|
|
3158
|
+
created_at: z.ZodString;
|
|
3159
|
+
created_by: z.ZodString;
|
|
3160
|
+
updated_at: z.ZodString;
|
|
3161
|
+
updated_by: z.ZodString;
|
|
3162
|
+
expired_at: z.ZodString;
|
|
3163
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
3164
|
+
}, z.core.$strip>;
|
|
3165
|
+
type QueueNumber = z.infer<typeof queueNumberSchema>;
|
|
3166
|
+
declare const QueueNumberMongooseSchema: Schema;
|
|
3167
|
+
type QueueNumberDocument = InferDocument<typeof queueNumberSchema>;
|
|
3168
|
+
declare const QueueNumberModel: Model<{
|
|
3169
|
+
[x: number]: unknown;
|
|
3170
|
+
[x: symbol]: unknown;
|
|
3171
|
+
[x: string]: unknown;
|
|
3172
|
+
}, {}, {}, {
|
|
3173
|
+
id: string;
|
|
3174
|
+
}, mongoose.Document<unknown, {}, {
|
|
3175
|
+
[x: number]: unknown;
|
|
3176
|
+
[x: symbol]: unknown;
|
|
3177
|
+
[x: string]: unknown;
|
|
3178
|
+
}, {
|
|
3179
|
+
id: string;
|
|
3180
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
3181
|
+
[x: number]: unknown;
|
|
3182
|
+
[x: symbol]: unknown;
|
|
3183
|
+
[x: string]: unknown;
|
|
3184
|
+
} & Required<{
|
|
3185
|
+
_id: unknown;
|
|
3186
|
+
}> & {
|
|
3187
|
+
__v: number;
|
|
3188
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
3189
|
+
id: string;
|
|
3190
|
+
}>, Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3191
|
+
[x: number]: unknown;
|
|
3192
|
+
[x: symbol]: unknown;
|
|
3193
|
+
[x: string]: unknown;
|
|
3194
|
+
}, mongoose.Document<unknown, {}, {
|
|
3195
|
+
[x: number]: unknown;
|
|
3196
|
+
[x: symbol]: unknown;
|
|
3197
|
+
[x: string]: unknown;
|
|
3198
|
+
}, {
|
|
3199
|
+
id: string;
|
|
3200
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
3201
|
+
[x: number]: unknown;
|
|
3202
|
+
[x: symbol]: unknown;
|
|
3203
|
+
[x: string]: unknown;
|
|
3204
|
+
} & Required<{
|
|
3205
|
+
_id: unknown;
|
|
3206
|
+
}> & {
|
|
3207
|
+
__v: number;
|
|
3208
|
+
}, "id"> & mongoose.HydratedDocumentOverrides<{
|
|
3209
|
+
id: string;
|
|
3210
|
+
}>, unknown, {
|
|
3211
|
+
[x: number]: {};
|
|
3212
|
+
[x: symbol]: {};
|
|
3213
|
+
[x: string]: {};
|
|
3214
|
+
} & Required<{
|
|
3215
|
+
_id: unknown;
|
|
3216
|
+
}> & {
|
|
3217
|
+
__v: number;
|
|
3218
|
+
}>, {
|
|
3219
|
+
[x: number]: {};
|
|
3220
|
+
[x: symbol]: {};
|
|
3221
|
+
[x: string]: {};
|
|
3222
|
+
} & Required<{
|
|
3223
|
+
_id: unknown;
|
|
3224
|
+
}> & {
|
|
3225
|
+
__v: number;
|
|
3226
|
+
}>;
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* Current schema version for the Queue Number settings record.
|
|
3230
|
+
* Use this constant instead of a literal when setting schema_version.
|
|
3231
|
+
*/
|
|
3232
|
+
declare const QUEUE_NUMBER_SETTINGS_SCHEMA_VERSION = 1;
|
|
3233
|
+
declare const queueNumberSettingsSchema: z.ZodObject<{
|
|
3234
|
+
_id: z.ZodString;
|
|
3235
|
+
scope: z.ZodString;
|
|
3236
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3237
|
+
field: z.ZodString;
|
|
3238
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3239
|
+
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3240
|
+
string: "string";
|
|
3241
|
+
number: "number";
|
|
3242
|
+
boolean: "boolean";
|
|
3243
|
+
date: "date";
|
|
3244
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
3245
|
+
string: "string";
|
|
3246
|
+
number: "number";
|
|
3247
|
+
boolean: "boolean";
|
|
3248
|
+
date: "date";
|
|
3249
|
+
}>>, z.ZodString]>;
|
|
3250
|
+
default: z.ZodNullable<z.ZodString>;
|
|
3251
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
3252
|
+
}, z.core.$strip>>;
|
|
3253
|
+
updated_at: z.ZodString;
|
|
3254
|
+
updated_by: z.ZodString;
|
|
3255
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
3256
|
+
}, z.core.$strip>;
|
|
3257
|
+
declare const queueNumberSettingsKVSchema: z.ZodObject<{
|
|
3258
|
+
use_header_contact_info: z.ZodDefault<z.ZodBoolean>;
|
|
3259
|
+
use_header_bank_info: z.ZodDefault<z.ZodBoolean>;
|
|
3260
|
+
use_header_status_info: z.ZodDefault<z.ZodBoolean>;
|
|
3261
|
+
rules_drug_formulary: z.ZodOptional<z.ZodString>;
|
|
3262
|
+
rules_method: z.ZodOptional<z.ZodString>;
|
|
3263
|
+
rules_global_cover_outpatient: z.ZodDefault<z.ZodBoolean>;
|
|
3264
|
+
rules_global_cover_emergency: z.ZodDefault<z.ZodBoolean>;
|
|
3265
|
+
rules_global_tariff_calculation_date: z.ZodDefault<z.ZodEnum<{
|
|
3266
|
+
"transaction-date": "transaction-date";
|
|
3267
|
+
"billing-date": "billing-date";
|
|
3268
|
+
}>>;
|
|
3269
|
+
rules_global_margin_id: z.ZodOptional<z.ZodString>;
|
|
3270
|
+
rules_global_rule_type: z.ZodDefault<z.ZodEnum<{
|
|
3271
|
+
margin: "margin";
|
|
3272
|
+
plafond: "plafond";
|
|
3273
|
+
}>>;
|
|
3274
|
+
rules_admin_calculate: z.ZodDefault<z.ZodBoolean>;
|
|
3275
|
+
rules_admin_min_fee: z.ZodDefault<z.ZodNumber>;
|
|
3276
|
+
rules_admin_max_fee: z.ZodDefault<z.ZodNumber>;
|
|
3277
|
+
rules_admin_before_discount: z.ZodDefault<z.ZodBoolean>;
|
|
3278
|
+
rules_admin_covered: z.ZodDefault<z.ZodBoolean>;
|
|
3279
|
+
rules_item_restriction_id: z.ZodOptional<z.ZodString>;
|
|
3280
|
+
}, z.core.$strip>;
|
|
3281
|
+
type QueueNumberSettings = z.infer<typeof queueNumberSettingsSchema>;
|
|
3282
|
+
type QueueNumberSettingsKV = z.infer<typeof queueNumberSettingsKVSchema>;
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Minimal queue-number schema (omits server-generated fields).
|
|
3286
|
+
*/
|
|
3287
|
+
declare const queueNumberMinimalSchema: z.ZodObject<{
|
|
3288
|
+
number: z.ZodString;
|
|
3289
|
+
metadata: z.ZodObject<{
|
|
3290
|
+
payer_type: z.ZodString;
|
|
3291
|
+
unit_id: z.ZodString;
|
|
3292
|
+
practitioner_id: z.ZodString;
|
|
3293
|
+
date: z.ZodString;
|
|
3294
|
+
session: z.ZodString;
|
|
3295
|
+
}, z.core.$strip>;
|
|
3296
|
+
facility_id: z.ZodString;
|
|
3297
|
+
organization_id: z.ZodString;
|
|
3298
|
+
patient_id: z.ZodString;
|
|
3299
|
+
sequence: z.ZodNumber;
|
|
3300
|
+
prefix: z.ZodString;
|
|
3301
|
+
}, z.core.$strip>;
|
|
3302
|
+
type QueueNumberMinimal = z.infer<typeof queueNumberMinimalSchema>;
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* Partial queue-number schema (based on minimal, all fields optional).
|
|
3306
|
+
*/
|
|
3307
|
+
declare const queueNumberPartialSchema: z.ZodObject<{
|
|
3308
|
+
number: z.ZodOptional<z.ZodString>;
|
|
3309
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
3310
|
+
payer_type: z.ZodString;
|
|
3311
|
+
unit_id: z.ZodString;
|
|
3312
|
+
practitioner_id: z.ZodString;
|
|
3313
|
+
date: z.ZodString;
|
|
3314
|
+
session: z.ZodString;
|
|
3315
|
+
}, z.core.$strip>>;
|
|
3316
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
3317
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
3318
|
+
patient_id: z.ZodOptional<z.ZodString>;
|
|
3319
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
3320
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
3321
|
+
}, z.core.$strip>;
|
|
3322
|
+
type QueueNumberPartial = z.infer<typeof queueNumberPartialSchema>;
|
|
3323
|
+
|
|
3324
|
+
export { ASSIGNMENT_SCHEMA_VERSION, type Address, type ApiResponse, type Assignment, type AssignmentDocument, type AssignmentMinimal, AssignmentModel, AssignmentMongooseSchema, type AssignmentPartial, 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, QUEUE_SETTINGS_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, type QueueSettings, type QueueSettingsKV, 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, assignmentMinimalSchema, assignmentPartialSchema, assignmentSchema, 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, queueSettingsKVSchema, queueSettingsSchema, settingOptionSchema, settingOptionTypeSchema, singleResourceResponseSchema, staffMinimalSchema, staffPartialSchema, staffSchema, timestampSchema, unitMinimalSchema, unitPartialSchema, unitSchema, userMinimalSchema, userPartialSchema, userSchema, userSettingsKVSchema, userSettingsSchema };
|