@centricare/contract 0.0.0-stage → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -2
- package/dist/commons/address.d.ts +35 -0
- package/dist/commons/address.d.ts.map +1 -0
- package/dist/commons/address.js +11 -0
- package/dist/commons/address.js.map +1 -0
- package/dist/commons/api-response.d.ts +70 -0
- package/dist/commons/api-response.d.ts.map +1 -0
- package/dist/commons/api-response.js +49 -0
- package/dist/commons/api-response.js.map +1 -0
- package/dist/commons/coded-concept.d.ts +16 -0
- package/dist/commons/coded-concept.d.ts.map +1 -0
- package/dist/commons/coded-concept.js +20 -0
- package/dist/commons/coded-concept.js.map +1 -0
- package/dist/commons/demographic.d.ts +29 -0
- package/dist/commons/demographic.d.ts.map +1 -0
- package/dist/commons/demographic.js +11 -0
- package/dist/commons/demographic.js.map +1 -0
- package/dist/commons/index.d.ts +12 -0
- package/dist/commons/index.d.ts.map +1 -0
- package/dist/commons/index.js +12 -0
- package/dist/commons/index.js.map +1 -0
- package/dist/commons/object-id.d.ts +8 -0
- package/dist/commons/object-id.d.ts.map +1 -0
- package/dist/commons/object-id.js +11 -0
- package/dist/commons/object-id.js.map +1 -0
- package/dist/commons/setting-option.d.ts +45 -0
- package/dist/commons/setting-option.d.ts.map +1 -0
- package/dist/commons/setting-option.js +27 -0
- package/dist/commons/setting-option.js.map +1 -0
- package/dist/commons/timestamp.d.ts +7 -0
- package/dist/commons/timestamp.d.ts.map +1 -0
- package/dist/commons/timestamp.js +9 -0
- package/dist/commons/timestamp.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/models/assignment/assignment-minimal.schema.d.ts +18 -0
- package/dist/models/assignment/assignment-minimal.schema.d.ts.map +1 -0
- package/dist/models/assignment/assignment-minimal.schema.js +13 -0
- package/dist/models/assignment/assignment-minimal.schema.js.map +1 -0
- package/dist/models/assignment/assignment-partial.schema.d.ts +18 -0
- package/dist/models/assignment/assignment-partial.schema.d.ts.map +1 -0
- package/dist/models/assignment/assignment-partial.schema.js +6 -0
- package/dist/models/assignment/assignment-partial.schema.js.map +1 -0
- package/dist/models/assignment/assignment.schema.d.ts +84 -0
- package/dist/models/assignment/assignment.schema.d.ts.map +1 -0
- package/dist/models/assignment/assignment.schema.js +27 -0
- package/dist/models/assignment/assignment.schema.js.map +1 -0
- package/dist/models/assignment/index.d.ts +4 -0
- package/dist/models/assignment/index.d.ts.map +1 -0
- package/dist/models/assignment/index.js +4 -0
- package/dist/models/assignment/index.js.map +1 -0
- package/dist/models/department/department-minimal.schema.d.ts +17 -0
- package/dist/models/department/department-minimal.schema.d.ts.map +1 -0
- package/dist/models/department/department-minimal.schema.js +13 -0
- package/dist/models/department/department-minimal.schema.js.map +1 -0
- package/dist/models/department/department-partial.schema.d.ts +17 -0
- package/dist/models/department/department-partial.schema.d.ts.map +1 -0
- package/dist/models/department/department-partial.schema.js +6 -0
- package/dist/models/department/department-partial.schema.js.map +1 -0
- package/dist/models/department/department.schema.d.ts +83 -0
- package/dist/models/department/department.schema.d.ts.map +1 -0
- package/dist/models/department/department.schema.js +20 -0
- package/dist/models/department/department.schema.js.map +1 -0
- package/dist/models/department/index.d.ts +4 -0
- package/dist/models/department/index.d.ts.map +1 -0
- package/dist/models/department/index.js +4 -0
- package/dist/models/department/index.js.map +1 -0
- package/dist/models/facility/facility-minimal.schema.d.ts +19 -0
- package/dist/models/facility/facility-minimal.schema.d.ts.map +1 -0
- package/dist/models/facility/facility-minimal.schema.js +10 -0
- package/dist/models/facility/facility-minimal.schema.js.map +1 -0
- package/dist/models/facility/facility-partial.schema.d.ts +19 -0
- package/dist/models/facility/facility-partial.schema.d.ts.map +1 -0
- package/dist/models/facility/facility-partial.schema.js +6 -0
- package/dist/models/facility/facility-partial.schema.js.map +1 -0
- package/dist/models/facility/facility-settings.schema.d.ts +16 -0
- package/dist/models/facility/facility-settings.schema.d.ts.map +1 -0
- package/dist/models/facility/facility-settings.schema.js +12 -0
- package/dist/models/facility/facility-settings.schema.js.map +1 -0
- package/dist/models/facility/facility.schema.d.ts +82 -0
- package/dist/models/facility/facility.schema.d.ts.map +1 -0
- package/dist/models/facility/facility.schema.js +23 -0
- package/dist/models/facility/facility.schema.js.map +1 -0
- package/dist/models/facility/index.d.ts +5 -0
- package/dist/models/facility/index.d.ts.map +1 -0
- package/dist/models/facility/index.js +5 -0
- package/dist/models/facility/index.js.map +1 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +23 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/ksm/index.d.ts +4 -0
- package/dist/models/ksm/index.d.ts.map +1 -0
- package/dist/models/ksm/index.js +4 -0
- package/dist/models/ksm/index.js.map +1 -0
- package/dist/models/ksm/ksm-minimal.schema.d.ts +12 -0
- package/dist/models/ksm/ksm-minimal.schema.d.ts.map +1 -0
- package/dist/models/ksm/ksm-minimal.schema.js +13 -0
- package/dist/models/ksm/ksm-minimal.schema.js.map +1 -0
- package/dist/models/ksm/ksm-partial.schema.d.ts +12 -0
- package/dist/models/ksm/ksm-partial.schema.d.ts.map +1 -0
- package/dist/models/ksm/ksm-partial.schema.js +6 -0
- package/dist/models/ksm/ksm-partial.schema.js.map +1 -0
- package/dist/models/ksm/ksm.schema.d.ts +78 -0
- package/dist/models/ksm/ksm.schema.d.ts.map +1 -0
- package/dist/models/ksm/ksm.schema.js +23 -0
- package/dist/models/ksm/ksm.schema.js.map +1 -0
- package/dist/models/location/index.d.ts +5 -0
- package/dist/models/location/index.d.ts.map +1 -0
- package/dist/models/location/index.js +5 -0
- package/dist/models/location/index.js.map +1 -0
- package/dist/models/location/location-minimal.schema.d.ts +33 -0
- package/dist/models/location/location-minimal.schema.d.ts.map +1 -0
- package/dist/models/location/location-minimal.schema.js +12 -0
- package/dist/models/location/location-minimal.schema.js.map +1 -0
- package/dist/models/location/location-partial.schema.d.ts +33 -0
- package/dist/models/location/location-partial.schema.d.ts.map +1 -0
- package/dist/models/location/location-partial.schema.js +6 -0
- package/dist/models/location/location-partial.schema.js.map +1 -0
- package/dist/models/location/location-settings.schema.d.ts +8 -0
- package/dist/models/location/location-settings.schema.d.ts.map +1 -0
- package/dist/models/location/location-settings.schema.js +7 -0
- package/dist/models/location/location-settings.schema.js.map +1 -0
- package/dist/models/location/location.schema.d.ts +98 -0
- package/dist/models/location/location.schema.d.ts.map +1 -0
- package/dist/models/location/location.schema.js +30 -0
- package/dist/models/location/location.schema.js.map +1 -0
- package/dist/models/member/index.d.ts +4 -0
- package/dist/models/member/index.d.ts.map +1 -0
- package/dist/models/member/index.js +4 -0
- package/dist/models/member/index.js.map +1 -0
- package/dist/models/member/member-minimal.schema.d.ts +11 -0
- package/dist/models/member/member-minimal.schema.d.ts.map +1 -0
- package/dist/models/member/member-minimal.schema.js +9 -0
- package/dist/models/member/member-minimal.schema.js.map +1 -0
- package/dist/models/member/member-partial.schema.d.ts +11 -0
- package/dist/models/member/member-partial.schema.d.ts.map +1 -0
- package/dist/models/member/member-partial.schema.js +6 -0
- package/dist/models/member/member-partial.schema.js.map +1 -0
- package/dist/models/member/member.schema.d.ts +73 -0
- package/dist/models/member/member.schema.d.ts.map +1 -0
- package/dist/models/member/member.schema.js +16 -0
- package/dist/models/member/member.schema.js.map +1 -0
- package/dist/models/organization/index.d.ts +5 -0
- package/dist/models/organization/index.d.ts.map +1 -0
- package/dist/models/organization/index.js +5 -0
- package/dist/models/organization/index.js.map +1 -0
- package/dist/models/organization/organization-minimal.schema.d.ts +22 -0
- package/dist/models/organization/organization-minimal.schema.d.ts.map +1 -0
- package/dist/models/organization/organization-minimal.schema.js +9 -0
- package/dist/models/organization/organization-minimal.schema.js.map +1 -0
- package/dist/models/organization/organization-partial.schema.d.ts +22 -0
- package/dist/models/organization/organization-partial.schema.d.ts.map +1 -0
- package/dist/models/organization/organization-partial.schema.js +6 -0
- package/dist/models/organization/organization-partial.schema.js.map +1 -0
- package/dist/models/organization/organization-settings.schema.d.ts +8 -0
- package/dist/models/organization/organization-settings.schema.d.ts.map +1 -0
- package/dist/models/organization/organization-settings.schema.js +7 -0
- package/dist/models/organization/organization-settings.schema.js.map +1 -0
- package/dist/models/organization/organization.schema.d.ts +84 -0
- package/dist/models/organization/organization.schema.d.ts.map +1 -0
- package/dist/models/organization/organization.schema.js +24 -0
- package/dist/models/organization/organization.schema.js.map +1 -0
- package/dist/models/patient/index.d.ts +4 -0
- package/dist/models/patient/index.d.ts.map +1 -0
- package/dist/models/patient/index.js +4 -0
- package/dist/models/patient/index.js.map +1 -0
- package/dist/models/patient/patient-minimal.schema.d.ts +95 -0
- package/dist/models/patient/patient-minimal.schema.d.ts.map +1 -0
- package/dist/models/patient/patient-minimal.schema.js +13 -0
- package/dist/models/patient/patient-minimal.schema.js.map +1 -0
- package/dist/models/patient/patient-partial.schema.d.ts +95 -0
- package/dist/models/patient/patient-partial.schema.d.ts.map +1 -0
- package/dist/models/patient/patient-partial.schema.js +6 -0
- package/dist/models/patient/patient-partial.schema.js.map +1 -0
- package/dist/models/patient/patient.schema.d.ts +161 -0
- package/dist/models/patient/patient.schema.d.ts.map +1 -0
- package/dist/models/patient/patient.schema.js +35 -0
- package/dist/models/patient/patient.schema.js.map +1 -0
- package/dist/models/patient-additional/index.d.ts +4 -0
- package/dist/models/patient-additional/index.d.ts.map +1 -0
- package/dist/models/patient-additional/index.js +4 -0
- package/dist/models/patient-additional/index.js.map +1 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts +17 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts.map +1 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.js +13 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.js.map +1 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts +17 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts.map +1 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.js +6 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.js.map +1 -0
- package/dist/models/patient-additional/patient-additional.schema.d.ts +83 -0
- package/dist/models/patient-additional/patient-additional.schema.d.ts.map +1 -0
- package/dist/models/patient-additional/patient-additional.schema.js +21 -0
- package/dist/models/patient-additional/patient-additional.schema.js.map +1 -0
- package/dist/models/payer/index.d.ts +5 -0
- package/dist/models/payer/index.d.ts.map +1 -0
- package/dist/models/payer/index.js +5 -0
- package/dist/models/payer/index.js.map +1 -0
- package/dist/models/payer/payer-minimal.schema.d.ts +67 -0
- package/dist/models/payer/payer-minimal.schema.d.ts.map +1 -0
- package/dist/models/payer/payer-minimal.schema.js +13 -0
- package/dist/models/payer/payer-minimal.schema.js.map +1 -0
- package/dist/models/payer/payer-partial.schema.d.ts +67 -0
- package/dist/models/payer/payer-partial.schema.d.ts.map +1 -0
- package/dist/models/payer/payer-partial.schema.js +6 -0
- package/dist/models/payer/payer-partial.schema.js.map +1 -0
- package/dist/models/payer/payer-settings.schema.d.ts +27 -0
- package/dist/models/payer/payer-settings.schema.d.ts.map +1 -0
- package/dist/models/payer/payer-settings.schema.js +20 -0
- package/dist/models/payer/payer-settings.schema.js.map +1 -0
- package/dist/models/payer/payer.schema.d.ts +133 -0
- package/dist/models/payer/payer.schema.d.ts.map +1 -0
- package/dist/models/payer/payer.schema.js +47 -0
- package/dist/models/payer/payer.schema.js.map +1 -0
- package/dist/models/practitioner-schedule/index.d.ts +4 -0
- package/dist/models/practitioner-schedule/index.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/index.js +4 -0
- package/dist/models/practitioner-schedule/index.js.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts +20 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js +13 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts +20 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js +6 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts +86 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js +26 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js.map +1 -0
- package/dist/models/practitioner-session/index.d.ts +4 -0
- package/dist/models/practitioner-session/index.d.ts.map +1 -0
- package/dist/models/practitioner-session/index.js +4 -0
- package/dist/models/practitioner-session/index.js.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts +14 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js +13 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts +14 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js +6 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js.map +1 -0
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts +80 -0
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts.map +1 -0
- package/dist/models/practitioner-session/practitioner-session.schema.js +26 -0
- package/dist/models/practitioner-session/practitioner-session.schema.js.map +1 -0
- package/dist/models/queue/index.d.ts +5 -0
- package/dist/models/queue/index.d.ts.map +1 -0
- package/dist/models/queue/index.js +5 -0
- package/dist/models/queue/index.js.map +1 -0
- package/dist/models/queue/queue-minimal.schema.d.ts +31 -0
- package/dist/models/queue/queue-minimal.schema.d.ts.map +1 -0
- package/dist/models/queue/queue-minimal.schema.js +13 -0
- package/dist/models/queue/queue-minimal.schema.js.map +1 -0
- package/dist/models/queue/queue-partial.schema.d.ts +31 -0
- package/dist/models/queue/queue-partial.schema.d.ts.map +1 -0
- package/dist/models/queue/queue-partial.schema.js +6 -0
- package/dist/models/queue/queue-partial.schema.js.map +1 -0
- package/dist/models/queue/queue-settings.schema.d.ts +27 -0
- package/dist/models/queue/queue-settings.schema.d.ts.map +1 -0
- package/dist/models/queue/queue-settings.schema.js +22 -0
- package/dist/models/queue/queue-settings.schema.js.map +1 -0
- package/dist/models/queue/queue.schema.d.ts +97 -0
- package/dist/models/queue/queue.schema.d.ts.map +1 -0
- package/dist/models/queue/queue.schema.js +32 -0
- package/dist/models/queue/queue.schema.js.map +1 -0
- package/dist/models/queue-event-log/index.d.ts +4 -0
- package/dist/models/queue-event-log/index.d.ts.map +1 -0
- package/dist/models/queue-event-log/index.js +4 -0
- package/dist/models/queue-event-log/index.js.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts +18 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js +13 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts +18 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js +6 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js.map +1 -0
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts +84 -0
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts.map +1 -0
- package/dist/models/queue-event-log/queue-event-log.schema.js +25 -0
- package/dist/models/queue-event-log/queue-event-log.schema.js.map +1 -0
- package/dist/models/queue-number/index.d.ts +5 -0
- package/dist/models/queue-number/index.d.ts.map +1 -0
- package/dist/models/queue-number/index.js +5 -0
- package/dist/models/queue-number/index.js.map +1 -0
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts +21 -0
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number-minimal.schema.js +14 -0
- package/dist/models/queue-number/queue-number-minimal.schema.js.map +1 -0
- package/dist/models/queue-number/queue-number-partial.schema.d.ts +21 -0
- package/dist/models/queue-number/queue-number-partial.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number-partial.schema.js +6 -0
- package/dist/models/queue-number/queue-number-partial.schema.js.map +1 -0
- package/dist/models/queue-number/queue-number-settings.schema.d.ts +27 -0
- package/dist/models/queue-number/queue-number-settings.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number-settings.schema.js +22 -0
- package/dist/models/queue-number/queue-number-settings.schema.js.map +1 -0
- package/dist/models/queue-number/queue-number.schema.d.ts +88 -0
- package/dist/models/queue-number/queue-number.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number.schema.js +42 -0
- package/dist/models/queue-number/queue-number.schema.js.map +1 -0
- package/dist/models/settings/index.d.ts +4 -0
- package/dist/models/settings/index.d.ts.map +1 -0
- package/dist/models/settings/index.js +4 -0
- package/dist/models/settings/index.js.map +1 -0
- package/dist/models/settings/settings-minimal.schema.d.ts +26 -0
- package/dist/models/settings/settings-minimal.schema.d.ts.map +1 -0
- package/dist/models/settings/settings-minimal.schema.js +11 -0
- package/dist/models/settings/settings-minimal.schema.js.map +1 -0
- package/dist/models/settings/settings-partial.schema.d.ts +26 -0
- package/dist/models/settings/settings-partial.schema.d.ts.map +1 -0
- package/dist/models/settings/settings-partial.schema.js +6 -0
- package/dist/models/settings/settings-partial.schema.js.map +1 -0
- package/dist/models/settings/settings.schema.d.ts +96 -0
- package/dist/models/settings/settings.schema.d.ts.map +1 -0
- package/dist/models/settings/settings.schema.js +25 -0
- package/dist/models/settings/settings.schema.js.map +1 -0
- package/dist/models/staff/index.d.ts +4 -0
- package/dist/models/staff/index.d.ts.map +1 -0
- package/dist/models/staff/index.js +4 -0
- package/dist/models/staff/index.js.map +1 -0
- package/dist/models/staff/staff-minimal.schema.d.ts +27 -0
- package/dist/models/staff/staff-minimal.schema.d.ts.map +1 -0
- package/dist/models/staff/staff-minimal.schema.js +13 -0
- package/dist/models/staff/staff-minimal.schema.js.map +1 -0
- package/dist/models/staff/staff-partial.schema.d.ts +27 -0
- package/dist/models/staff/staff-partial.schema.d.ts.map +1 -0
- package/dist/models/staff/staff-partial.schema.js +6 -0
- package/dist/models/staff/staff-partial.schema.js.map +1 -0
- package/dist/models/staff/staff.schema.d.ts +93 -0
- package/dist/models/staff/staff.schema.d.ts.map +1 -0
- package/dist/models/staff/staff.schema.js +25 -0
- package/dist/models/staff/staff.schema.js.map +1 -0
- package/dist/models/unit/index.d.ts +4 -0
- package/dist/models/unit/index.d.ts.map +1 -0
- package/dist/models/unit/index.js +4 -0
- package/dist/models/unit/index.js.map +1 -0
- package/dist/models/unit/unit-minimal.schema.d.ts +27 -0
- package/dist/models/unit/unit-minimal.schema.d.ts.map +1 -0
- package/dist/models/unit/unit-minimal.schema.js +13 -0
- package/dist/models/unit/unit-minimal.schema.js.map +1 -0
- package/dist/models/unit/unit-partial.schema.d.ts +27 -0
- package/dist/models/unit/unit-partial.schema.d.ts.map +1 -0
- package/dist/models/unit/unit-partial.schema.js +6 -0
- package/dist/models/unit/unit-partial.schema.js.map +1 -0
- package/dist/models/unit/unit.schema.d.ts +93 -0
- package/dist/models/unit/unit.schema.d.ts.map +1 -0
- package/dist/models/unit/unit.schema.js +27 -0
- package/dist/models/unit/unit.schema.js.map +1 -0
- package/dist/models/user/index.d.ts +5 -0
- package/dist/models/user/index.d.ts.map +1 -0
- package/dist/models/user/index.js +5 -0
- package/dist/models/user/index.js.map +1 -0
- package/dist/models/user/user-minimal.schema.d.ts +65 -0
- package/dist/models/user/user-minimal.schema.d.ts.map +1 -0
- package/dist/models/user/user-minimal.schema.js +10 -0
- package/dist/models/user/user-minimal.schema.js.map +1 -0
- package/dist/models/user/user-partial.schema.d.ts +65 -0
- package/dist/models/user/user-partial.schema.d.ts.map +1 -0
- package/dist/models/user/user-partial.schema.js +6 -0
- package/dist/models/user/user-partial.schema.js.map +1 -0
- package/dist/models/user/user-settings.schema.d.ts +8 -0
- package/dist/models/user/user-settings.schema.d.ts.map +1 -0
- package/dist/models/user/user-settings.schema.js +7 -0
- package/dist/models/user/user-settings.schema.js.map +1 -0
- package/dist/models/user/user.schema.d.ts +134 -0
- package/dist/models/user/user.schema.d.ts.map +1 -0
- package/dist/models/user/user.schema.js +39 -0
- package/dist/models/user/user.schema.js.map +1 -0
- package/package.json +59 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const payerSettingsSchema = z.object({
|
|
3
|
+
use_header_contact_info: z.boolean().default(false),
|
|
4
|
+
use_header_bank_info: z.boolean().default(false),
|
|
5
|
+
use_header_status_info: z.boolean().default(true),
|
|
6
|
+
rules_drug_formulary: z.string().optional(),
|
|
7
|
+
rules_method: z.string().optional(),
|
|
8
|
+
rules_global_cover_outpatient: z.boolean().default(true),
|
|
9
|
+
rules_global_cover_emergency: z.boolean().default(true),
|
|
10
|
+
rules_global_tariff_calculation_date: z.enum(["transaction-date", "billing-date"]).default("transaction-date"),
|
|
11
|
+
rules_global_margin_id: z.string().optional(),
|
|
12
|
+
rules_global_rule_type: z.enum(["margin", "plafond"]).default("margin"),
|
|
13
|
+
rules_admin_calculate: z.boolean().default(false),
|
|
14
|
+
rules_admin_min_fee: z.number().default(0),
|
|
15
|
+
rules_admin_max_fee: z.number().default(0),
|
|
16
|
+
rules_admin_before_discount: z.boolean().default(false),
|
|
17
|
+
rules_admin_covered: z.boolean().default(true),
|
|
18
|
+
rules_item_restriction_id: z.string().optional(),
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=payer-settings.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payer-settings.schema.js","sourceRoot":"","sources":["../../../src/models/payer/payer-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACnD,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAChD,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACjD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACxD,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACvD,oCAAoC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC9G,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7C,sBAAsB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACvE,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACjD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,2BAA2B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACvD,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9C,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type Schema as MongooseSchema, type Model as MongooseModel } from "mongoose";
|
|
3
|
+
import type { InferDocument } from "@nullix/zod-mongoose";
|
|
4
|
+
export declare const payerSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
organization_id: z.ZodString;
|
|
7
|
+
facility_id: z.ZodString;
|
|
8
|
+
code: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
category: z.ZodObject<{
|
|
11
|
+
system: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
display: z.ZodOptional<z.ZodString>;
|
|
14
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
15
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type: z.ZodString;
|
|
18
|
+
contacts: z.ZodArray<z.ZodObject<{
|
|
19
|
+
system: z.ZodString;
|
|
20
|
+
value: z.ZodString;
|
|
21
|
+
display: z.ZodOptional<z.ZodString>;
|
|
22
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
23
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
26
|
+
system: z.ZodString;
|
|
27
|
+
value: z.ZodString;
|
|
28
|
+
display: z.ZodOptional<z.ZodString>;
|
|
29
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
30
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
banks: z.ZodArray<z.ZodObject<{
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
account: z.ZodString;
|
|
35
|
+
number: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
variations: z.ZodArray<z.ZodObject<{
|
|
38
|
+
code: z.ZodString;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
description: z.ZodOptional<z.ZodString>;
|
|
41
|
+
start: z.ZodString;
|
|
42
|
+
end: z.ZodOptional<z.ZodString>;
|
|
43
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
system: z.ZodString;
|
|
45
|
+
value: z.ZodString;
|
|
46
|
+
display: z.ZodOptional<z.ZodString>;
|
|
47
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
48
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
documents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
52
|
+
system: z.ZodString;
|
|
53
|
+
value: z.ZodString;
|
|
54
|
+
display: z.ZodOptional<z.ZodString>;
|
|
55
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
56
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
banks: z.ZodArray<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
account: z.ZodString;
|
|
61
|
+
number: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
settings_id: z.ZodString;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
created_at: z.ZodString;
|
|
66
|
+
created_by: z.ZodString;
|
|
67
|
+
updated_at: z.ZodString;
|
|
68
|
+
updated_by: z.ZodString;
|
|
69
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type Payer = z.infer<typeof payerSchema>;
|
|
72
|
+
export declare const PayerMongooseSchema: MongooseSchema;
|
|
73
|
+
export type PayerDocument = InferDocument<typeof payerSchema>;
|
|
74
|
+
export declare const PayerModel: MongooseModel<{
|
|
75
|
+
[x: number]: unknown;
|
|
76
|
+
[x: symbol]: unknown;
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
}, {}, {}, {
|
|
79
|
+
id: string;
|
|
80
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
81
|
+
[x: number]: unknown;
|
|
82
|
+
[x: symbol]: unknown;
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
}, {
|
|
85
|
+
id: string;
|
|
86
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
87
|
+
[x: number]: unknown;
|
|
88
|
+
[x: symbol]: unknown;
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
} & Required<{
|
|
91
|
+
_id: unknown;
|
|
92
|
+
}> & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
95
|
+
id: string;
|
|
96
|
+
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
97
|
+
[x: number]: unknown;
|
|
98
|
+
[x: symbol]: unknown;
|
|
99
|
+
[x: string]: unknown;
|
|
100
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
101
|
+
[x: number]: unknown;
|
|
102
|
+
[x: symbol]: unknown;
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
}, {
|
|
105
|
+
id: string;
|
|
106
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
107
|
+
[x: number]: unknown;
|
|
108
|
+
[x: symbol]: unknown;
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
} & Required<{
|
|
111
|
+
_id: unknown;
|
|
112
|
+
}> & {
|
|
113
|
+
__v: number;
|
|
114
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
115
|
+
id: string;
|
|
116
|
+
}>, unknown, {
|
|
117
|
+
[x: number]: {};
|
|
118
|
+
[x: symbol]: {};
|
|
119
|
+
[x: string]: {};
|
|
120
|
+
} & Required<{
|
|
121
|
+
_id: unknown;
|
|
122
|
+
}> & {
|
|
123
|
+
__v: number;
|
|
124
|
+
}>, {
|
|
125
|
+
[x: number]: {};
|
|
126
|
+
[x: symbol]: {};
|
|
127
|
+
[x: string]: {};
|
|
128
|
+
} & Required<{
|
|
129
|
+
_id: unknown;
|
|
130
|
+
}> & {
|
|
131
|
+
__v: number;
|
|
132
|
+
}>;
|
|
133
|
+
//# sourceMappingURL=payer.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payer.schema.d.ts","sourceRoot":"","sources":["../../../src/models/payer/payer.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAK1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0CtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,mBAAmB,EAAE,cAA8C,CAAC;AACjF,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,WAAW,CAAC,CAAC;AAG9D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6C,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { toMongooseSchema } from "@nullix/zod-mongoose";
|
|
3
|
+
import { objectIdSchema } from "../../commons/object-id";
|
|
4
|
+
import { model } from "mongoose";
|
|
5
|
+
import { codedConceptSchema } from "../../commons";
|
|
6
|
+
import { timestampSchema } from "../../commons/timestamp";
|
|
7
|
+
export const payerSchema = z.object({
|
|
8
|
+
id: z.string().uuid({ message: "id must be a valid UUID" }),
|
|
9
|
+
organization_id: objectIdSchema,
|
|
10
|
+
facility_id: objectIdSchema,
|
|
11
|
+
code: z.string().min(1, { message: "code is required" }),
|
|
12
|
+
name: z.string().min(1, { message: "name is required" }),
|
|
13
|
+
category: codedConceptSchema,
|
|
14
|
+
type: z.string().min(1, { message: "type is required" }),
|
|
15
|
+
contacts: z.array(codedConceptSchema),
|
|
16
|
+
statuses: z.array(codedConceptSchema),
|
|
17
|
+
banks: z.array(z.object({
|
|
18
|
+
name: z.string().min(1, { message: "bank name is required" }),
|
|
19
|
+
account: z.string().min(1, { message: "bank account is required" }),
|
|
20
|
+
number: z.string().min(1, { message: "bank number is required" }),
|
|
21
|
+
})),
|
|
22
|
+
variations: z.array(z.object({
|
|
23
|
+
code: z.string().min(1, { message: "variation code is required" }),
|
|
24
|
+
name: z.string().min(1, { message: "variation name is required" }),
|
|
25
|
+
description: z.string().optional(),
|
|
26
|
+
start: z.string().datetime({ offset: true, message: "variation start must be a valid ISO 8601 datetime" }),
|
|
27
|
+
end: z.string().datetime({ offset: true, message: "variation end must be a valid ISO 8601 datetime" }).optional(),
|
|
28
|
+
contacts: z.array(codedConceptSchema).optional(),
|
|
29
|
+
documents: z.array(z.string()).optional(),
|
|
30
|
+
statuses: z.array(codedConceptSchema),
|
|
31
|
+
banks: z.array(z.object({
|
|
32
|
+
name: z.string().min(1, { message: "bank name is required" }),
|
|
33
|
+
account: z.string().min(1, { message: "bank account is required" }),
|
|
34
|
+
number: z.string().min(1, { message: "bank number is required" }),
|
|
35
|
+
})),
|
|
36
|
+
settings_id: objectIdSchema,
|
|
37
|
+
})),
|
|
38
|
+
created_at: timestampSchema,
|
|
39
|
+
created_by: z.string().min(1, { message: "created_by is required" }),
|
|
40
|
+
updated_at: timestampSchema,
|
|
41
|
+
updated_by: z.string().min(1, { message: "updated_by is required" }),
|
|
42
|
+
schema_version: z.number().int().positive().default(1),
|
|
43
|
+
});
|
|
44
|
+
export const PayerMongooseSchema = toMongooseSchema(payerSchema);
|
|
45
|
+
const PayerModelName = "payers";
|
|
46
|
+
export const PayerModel = model(PayerModelName, PayerMongooseSchema);
|
|
47
|
+
//# sourceMappingURL=payer.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payer.schema.js","sourceRoot":"","sources":["../../../src/models/payer/payer.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal practitioner-schedule schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export declare const practitionerScheduleMinimalSchema: z.ZodObject<{
|
|
6
|
+
type: z.ZodObject<{
|
|
7
|
+
system: z.ZodString;
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
display: z.ZodOptional<z.ZodString>;
|
|
10
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
11
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
facility_id: z.ZodString;
|
|
14
|
+
organization_id: z.ZodString;
|
|
15
|
+
staff_id: z.ZodString;
|
|
16
|
+
unit_id: z.ZodString;
|
|
17
|
+
day: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type PractitionerScheduleMinimal = z.infer<typeof practitionerScheduleMinimalSchema>;
|
|
20
|
+
//# sourceMappingURL=practitioner-schedule-minimal.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-schedule-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/practitioner-schedule-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;iBAO5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { practitionerScheduleSchema } from "./practitioner-schedule.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal practitioner-schedule schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export const practitionerScheduleMinimalSchema = practitionerScheduleSchema.omit({
|
|
6
|
+
_id: true,
|
|
7
|
+
created_at: true,
|
|
8
|
+
created_by: true,
|
|
9
|
+
updated_at: true,
|
|
10
|
+
updated_by: true,
|
|
11
|
+
schema_version: true,
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=practitioner-schedule-minimal.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-schedule-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/practitioner-schedule-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAA6B,MAAM,gCAAgC,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,0BAA0B,CAAC,IAAI,CAAC;IAC/E,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Partial practitioner-schedule schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export declare const practitionerSchedulePartialSchema: z.ZodObject<{
|
|
6
|
+
type: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
system: z.ZodString;
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
display: z.ZodOptional<z.ZodString>;
|
|
10
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
11
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
staff_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
unit_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
day: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type PractitionerSchedulePartial = z.infer<typeof practitionerSchedulePartialSchema>;
|
|
20
|
+
//# sourceMappingURL=practitioner-schedule-partial.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-schedule-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/practitioner-schedule-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;iBAA8C,CAAC;AAE7F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { practitionerScheduleMinimalSchema } from "./practitioner-schedule-minimal.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Partial practitioner-schedule schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export const practitionerSchedulePartialSchema = practitionerScheduleMinimalSchema.partial();
|
|
6
|
+
//# sourceMappingURL=practitioner-schedule-partial.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-schedule-partial.schema.js","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/practitioner-schedule-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iCAAiC,EAAoC,MAAM,wCAAwC,CAAC;AAE7H;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,iCAAiC,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type Schema as MongooseSchema, type Model as MongooseModel } from "mongoose";
|
|
3
|
+
import type { InferDocument } from "@nullix/zod-mongoose";
|
|
4
|
+
export declare const practitionerScheduleSchema: z.ZodObject<{
|
|
5
|
+
organization_id: z.ZodString;
|
|
6
|
+
facility_id: z.ZodString;
|
|
7
|
+
staff_id: z.ZodString;
|
|
8
|
+
unit_id: z.ZodString;
|
|
9
|
+
type: z.ZodObject<{
|
|
10
|
+
system: z.ZodString;
|
|
11
|
+
value: z.ZodString;
|
|
12
|
+
display: z.ZodOptional<z.ZodString>;
|
|
13
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
14
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
day: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
17
|
+
_id: z.ZodString;
|
|
18
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
19
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
20
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
21
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
22
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type PractitionerSchedule = z.infer<typeof practitionerScheduleSchema>;
|
|
25
|
+
export declare const PractitionerScheduleMongooseSchema: MongooseSchema;
|
|
26
|
+
export type PractitionerScheduleDocument = InferDocument<typeof practitionerScheduleSchema>;
|
|
27
|
+
export declare const PractitionerScheduleModel: MongooseModel<{
|
|
28
|
+
[x: number]: unknown;
|
|
29
|
+
[x: symbol]: unknown;
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
}, {}, {}, {
|
|
32
|
+
id: string;
|
|
33
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
34
|
+
[x: number]: unknown;
|
|
35
|
+
[x: symbol]: unknown;
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
}, {
|
|
38
|
+
id: string;
|
|
39
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
40
|
+
[x: number]: unknown;
|
|
41
|
+
[x: symbol]: unknown;
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
} & Required<{
|
|
44
|
+
_id: unknown;
|
|
45
|
+
}> & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
48
|
+
id: string;
|
|
49
|
+
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
50
|
+
[x: number]: unknown;
|
|
51
|
+
[x: symbol]: unknown;
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
54
|
+
[x: number]: unknown;
|
|
55
|
+
[x: symbol]: unknown;
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
}, {
|
|
58
|
+
id: string;
|
|
59
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
60
|
+
[x: number]: unknown;
|
|
61
|
+
[x: symbol]: unknown;
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
} & Required<{
|
|
64
|
+
_id: unknown;
|
|
65
|
+
}> & {
|
|
66
|
+
__v: number;
|
|
67
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
68
|
+
id: string;
|
|
69
|
+
}>, unknown, {
|
|
70
|
+
[x: number]: {};
|
|
71
|
+
[x: symbol]: {};
|
|
72
|
+
[x: string]: {};
|
|
73
|
+
} & Required<{
|
|
74
|
+
_id: unknown;
|
|
75
|
+
}> & {
|
|
76
|
+
__v: number;
|
|
77
|
+
}>, {
|
|
78
|
+
[x: number]: {};
|
|
79
|
+
[x: symbol]: {};
|
|
80
|
+
[x: string]: {};
|
|
81
|
+
} & Required<{
|
|
82
|
+
_id: unknown;
|
|
83
|
+
}> & {
|
|
84
|
+
__v: number;
|
|
85
|
+
}>;
|
|
86
|
+
//# sourceMappingURL=practitioner-schedule.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-schedule.schema.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/practitioner-schedule.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;iBAerC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,kCAAkC,EAAE,cAA6D,CAAC;AAC/G,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAG5F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2E,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { toMongooseSchema } from "@nullix/zod-mongoose";
|
|
3
|
+
import { objectIdSchema } from "../../commons/object-id";
|
|
4
|
+
import { model } from "mongoose";
|
|
5
|
+
import { codedConceptSchema } from "../../commons";
|
|
6
|
+
import { timestampSchema } from "../../commons/timestamp";
|
|
7
|
+
export const practitionerScheduleSchema = z.object({
|
|
8
|
+
organization_id: objectIdSchema,
|
|
9
|
+
facility_id: objectIdSchema,
|
|
10
|
+
staff_id: objectIdSchema,
|
|
11
|
+
unit_id: objectIdSchema,
|
|
12
|
+
type: codedConceptSchema,
|
|
13
|
+
day: z
|
|
14
|
+
.union([z.number(), z.string()])
|
|
15
|
+
.refine((val) => val != null, { message: "day is required" }),
|
|
16
|
+
_id: objectIdSchema,
|
|
17
|
+
created_at: timestampSchema.optional(),
|
|
18
|
+
created_by: z.string().optional(),
|
|
19
|
+
updated_at: timestampSchema.optional(),
|
|
20
|
+
updated_by: z.string().optional(),
|
|
21
|
+
schema_version: z.number().int().positive().default(1),
|
|
22
|
+
});
|
|
23
|
+
export const PractitionerScheduleMongooseSchema = toMongooseSchema(practitionerScheduleSchema);
|
|
24
|
+
const PractitionerScheduleModelName = "practitioner_schedules";
|
|
25
|
+
export const PractitionerScheduleModel = model(PractitionerScheduleModelName, PractitionerScheduleMongooseSchema);
|
|
26
|
+
//# sourceMappingURL=practitioner-schedule.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-schedule.schema.js","sourceRoot":"","sources":["../../../src/models/practitioner-schedule/practitioner-schedule.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,KAAK,EAA8D,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,kBAAkB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,eAAe,EAAE,cAAc;IAC/B,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,kBAAkB;IACxB,GAAG,EAAE,CAAC;SACH,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;SAC/B,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC/D,GAAG,EAAE,cAAc;IACnB,UAAU,EAAE,eAAe,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,eAAe,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kCAAkC,GAAmB,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAG/G,MAAM,6BAA6B,GAAG,wBAAwB,CAAC;AAC/D,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,6BAA6B,EAAE,kCAAkC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-session/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/practitioner-session/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal practitioner-session schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export declare const practitionerSessionMinimalSchema: z.ZodObject<{
|
|
6
|
+
end: z.ZodString;
|
|
7
|
+
staff_id: z.ZodString;
|
|
8
|
+
unit_id: z.ZodString;
|
|
9
|
+
schedule_id: z.ZodString;
|
|
10
|
+
start: z.ZodString;
|
|
11
|
+
max_quota: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type PractitionerSessionMinimal = z.infer<typeof practitionerSessionMinimalSchema>;
|
|
14
|
+
//# sourceMappingURL=practitioner-session-minimal.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-session-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-session/practitioner-session-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;iBAO3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { practitionerSessionSchema } from "./practitioner-session.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal practitioner-session schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export const practitionerSessionMinimalSchema = practitionerSessionSchema.omit({
|
|
6
|
+
_id: true,
|
|
7
|
+
created_at: true,
|
|
8
|
+
created_by: true,
|
|
9
|
+
updated_at: true,
|
|
10
|
+
updated_by: true,
|
|
11
|
+
schema_version: true,
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=practitioner-session-minimal.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-session-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/practitioner-session/practitioner-session-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAA4B,MAAM,+BAA+B,CAAC;AAEpG;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,yBAAyB,CAAC,IAAI,CAAC;IAC7E,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Partial practitioner-session schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export declare const practitionerSessionPartialSchema: z.ZodObject<{
|
|
6
|
+
end: z.ZodOptional<z.ZodString>;
|
|
7
|
+
staff_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
unit_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
schedule_id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
start: z.ZodOptional<z.ZodString>;
|
|
11
|
+
max_quota: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type PractitionerSessionPartial = z.infer<typeof practitionerSessionPartialSchema>;
|
|
14
|
+
//# sourceMappingURL=practitioner-session-partial.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-session-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-session/practitioner-session-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;iBAA6C,CAAC;AAE3F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { practitionerSessionMinimalSchema } from "./practitioner-session-minimal.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Partial practitioner-session schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export const practitionerSessionPartialSchema = practitionerSessionMinimalSchema.partial();
|
|
6
|
+
//# sourceMappingURL=practitioner-session-partial.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-session-partial.schema.js","sourceRoot":"","sources":["../../../src/models/practitioner-session/practitioner-session-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAmC,MAAM,uCAAuC,CAAC;AAE1H;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,gCAAgC,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type Schema as MongooseSchema, type Model as MongooseModel } from "mongoose";
|
|
3
|
+
import type { InferDocument } from "@nullix/zod-mongoose";
|
|
4
|
+
export declare const practitionerSessionSchema: z.ZodObject<{
|
|
5
|
+
schedule_id: z.ZodString;
|
|
6
|
+
staff_id: z.ZodString;
|
|
7
|
+
unit_id: z.ZodString;
|
|
8
|
+
start: z.ZodString;
|
|
9
|
+
end: z.ZodString;
|
|
10
|
+
max_quota: z.ZodNumber;
|
|
11
|
+
_id: z.ZodString;
|
|
12
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
13
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
14
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
15
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
16
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type PractitionerSession = z.infer<typeof practitionerSessionSchema>;
|
|
19
|
+
export declare const PractitionerSessionMongooseSchema: MongooseSchema;
|
|
20
|
+
export type PractitionerSessionDocument = InferDocument<typeof practitionerSessionSchema>;
|
|
21
|
+
export declare const PractitionerSessionModel: MongooseModel<{
|
|
22
|
+
[x: number]: unknown;
|
|
23
|
+
[x: symbol]: unknown;
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
}, {}, {}, {
|
|
26
|
+
id: string;
|
|
27
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
28
|
+
[x: number]: unknown;
|
|
29
|
+
[x: symbol]: unknown;
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
}, {
|
|
32
|
+
id: string;
|
|
33
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
34
|
+
[x: number]: unknown;
|
|
35
|
+
[x: symbol]: unknown;
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
} & Required<{
|
|
38
|
+
_id: unknown;
|
|
39
|
+
}> & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
42
|
+
id: string;
|
|
43
|
+
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
44
|
+
[x: number]: unknown;
|
|
45
|
+
[x: symbol]: unknown;
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
48
|
+
[x: number]: unknown;
|
|
49
|
+
[x: symbol]: unknown;
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
}, {
|
|
52
|
+
id: string;
|
|
53
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
54
|
+
[x: number]: unknown;
|
|
55
|
+
[x: symbol]: unknown;
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
} & Required<{
|
|
58
|
+
_id: unknown;
|
|
59
|
+
}> & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
62
|
+
id: string;
|
|
63
|
+
}>, unknown, {
|
|
64
|
+
[x: number]: {};
|
|
65
|
+
[x: symbol]: {};
|
|
66
|
+
[x: string]: {};
|
|
67
|
+
} & Required<{
|
|
68
|
+
_id: unknown;
|
|
69
|
+
}> & {
|
|
70
|
+
__v: number;
|
|
71
|
+
}>, {
|
|
72
|
+
[x: number]: {};
|
|
73
|
+
[x: symbol]: {};
|
|
74
|
+
[x: string]: {};
|
|
75
|
+
} & Required<{
|
|
76
|
+
_id: unknown;
|
|
77
|
+
}> & {
|
|
78
|
+
__v: number;
|
|
79
|
+
}>;
|
|
80
|
+
//# sourceMappingURL=practitioner-session.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"practitioner-session.schema.d.ts","sourceRoot":"","sources":["../../../src/models/practitioner-session/practitioner-session.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAgBpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,iCAAiC,EAAE,cAA4D,CAAC;AAC7G,MAAM,MAAM,2BAA2B,GAAG,aAAa,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAG1F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { toMongooseSchema } from "@nullix/zod-mongoose";
|
|
3
|
+
import { model } from "mongoose";
|
|
4
|
+
import { objectIdSchema } from "../../commons/object-id";
|
|
5
|
+
import { timestampSchema } from "../../commons/timestamp";
|
|
6
|
+
export const practitionerSessionSchema = z.object({
|
|
7
|
+
schedule_id: objectIdSchema,
|
|
8
|
+
staff_id: objectIdSchema,
|
|
9
|
+
unit_id: objectIdSchema,
|
|
10
|
+
start: z.string().min(1, { message: "start is required" }),
|
|
11
|
+
end: z.string().min(1, { message: "end is required" }),
|
|
12
|
+
max_quota: z
|
|
13
|
+
.number()
|
|
14
|
+
.int()
|
|
15
|
+
.positive({ message: "max_quota must be a positive integer" }),
|
|
16
|
+
_id: objectIdSchema,
|
|
17
|
+
created_at: timestampSchema.optional(),
|
|
18
|
+
created_by: z.string().optional(),
|
|
19
|
+
updated_at: timestampSchema.optional(),
|
|
20
|
+
updated_by: z.string().optional(),
|
|
21
|
+
schema_version: z.number().int().positive().default(1),
|
|
22
|
+
});
|
|
23
|
+
export const PractitionerSessionMongooseSchema = toMongooseSchema(practitionerSessionSchema);
|
|
24
|
+
const PractitionerSessionModelName = "practitioner_sessions";
|
|
25
|
+
export const PractitionerSessionModel = model(PractitionerSessionModelName, PractitionerSessionMongooseSchema);
|
|
26
|
+
//# sourceMappingURL=practitioner-session.schema.js.map
|