@centricare/contract 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -26
- 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 +8 -116
- package/dist/commons/api-response.d.ts.map +1 -1
- package/dist/commons/coded-concept.d.ts +3 -15
- package/dist/commons/coded-concept.d.ts.map +1 -1
- 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 +3 -0
- package/dist/commons/index.d.ts.map +1 -1
- package/dist/commons/index.js +3 -0
- package/dist/commons/index.js.map +1 -1
- 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 +24 -16
- package/dist/commons/setting-option.d.ts.map +1 -1
- 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 +17 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +17 -0
- package/dist/models/index.js.map +1 -1
- 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.js → user/user.schema.js} +10 -30
- package/dist/models/user/user.schema.js.map +1 -0
- package/package.json +14 -2
- package/dist/example.test.d.ts +0 -6
- package/dist/example.test.d.ts.map +0 -1
- package/dist/example.test.js +0 -147
- package/dist/example.test.js.map +0 -1
- package/dist/models/settings.d.ts +0 -189
- package/dist/models/settings.d.ts.map +0 -1
- package/dist/models/settings.js +0 -34
- package/dist/models/settings.js.map +0 -1
- package/dist/models/user.d.ts +0 -1110
- package/dist/models/user.d.ts.map +0 -1
- package/dist/models/user.js.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
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 memberSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
user_id: z.ZodString;
|
|
7
|
+
organization_id: z.ZodString;
|
|
8
|
+
role: z.ZodString;
|
|
9
|
+
created_at: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type Member = z.infer<typeof memberSchema>;
|
|
12
|
+
export declare const MemberMongooseSchema: MongooseSchema;
|
|
13
|
+
export type MemberDocument = InferDocument<typeof memberSchema>;
|
|
14
|
+
export declare const MemberModel: MongooseModel<{
|
|
15
|
+
[x: number]: unknown;
|
|
16
|
+
[x: symbol]: unknown;
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
}, {}, {}, {
|
|
19
|
+
id: string;
|
|
20
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
21
|
+
[x: number]: unknown;
|
|
22
|
+
[x: symbol]: unknown;
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
27
|
+
[x: number]: unknown;
|
|
28
|
+
[x: symbol]: unknown;
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
} & Required<{
|
|
31
|
+
_id: unknown;
|
|
32
|
+
}> & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
35
|
+
id: string;
|
|
36
|
+
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
37
|
+
[x: number]: unknown;
|
|
38
|
+
[x: symbol]: unknown;
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
41
|
+
[x: number]: unknown;
|
|
42
|
+
[x: symbol]: unknown;
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
}, {
|
|
45
|
+
id: string;
|
|
46
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
47
|
+
[x: number]: unknown;
|
|
48
|
+
[x: symbol]: unknown;
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
} & Required<{
|
|
51
|
+
_id: unknown;
|
|
52
|
+
}> & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
55
|
+
id: string;
|
|
56
|
+
}>, unknown, {
|
|
57
|
+
[x: number]: {};
|
|
58
|
+
[x: symbol]: {};
|
|
59
|
+
[x: string]: {};
|
|
60
|
+
} & Required<{
|
|
61
|
+
_id: unknown;
|
|
62
|
+
}> & {
|
|
63
|
+
__v: number;
|
|
64
|
+
}>, {
|
|
65
|
+
[x: number]: {};
|
|
66
|
+
[x: symbol]: {};
|
|
67
|
+
[x: string]: {};
|
|
68
|
+
} & Required<{
|
|
69
|
+
_id: unknown;
|
|
70
|
+
}> & {
|
|
71
|
+
__v: number;
|
|
72
|
+
}>;
|
|
73
|
+
//# sourceMappingURL=member.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.schema.d.ts","sourceRoot":"","sources":["../../../src/models/member/member.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,YAAY;;;;;;iBAMvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,oBAAoB,EAAE,cAA+C,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;AAGhE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { toMongooseSchema } from "@nullix/zod-mongoose";
|
|
3
|
+
import { objectIdSchema } from "../../commons/object-id";
|
|
4
|
+
import { model } from "mongoose";
|
|
5
|
+
import { timestampSchema } from "../../commons/timestamp";
|
|
6
|
+
export const memberSchema = z.object({
|
|
7
|
+
id: z.string().uuid({ message: "id must be a valid UUID" }),
|
|
8
|
+
user_id: objectIdSchema,
|
|
9
|
+
organization_id: objectIdSchema,
|
|
10
|
+
role: z.string().min(1, { message: "role is required" }),
|
|
11
|
+
created_at: timestampSchema,
|
|
12
|
+
});
|
|
13
|
+
export const MemberMongooseSchema = toMongooseSchema(memberSchema);
|
|
14
|
+
const MemberModelName = "members";
|
|
15
|
+
export const MemberModel = model(MemberModelName, MemberMongooseSchema);
|
|
16
|
+
//# sourceMappingURL=member.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.schema.js","sourceRoot":"","sources":["../../../src/models/member/member.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;AAG7F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAC3D,OAAO,EAAE,cAAc;IACvB,eAAe,EAAE,cAAc;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,UAAU,EAAE,eAAe;CAC5B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAmB,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAGnF,MAAM,eAAe,GAAG,SAAS,CAAC;AAClC,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/organization/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/organization/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal organization schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export declare const organizationMinimalSchema: z.ZodObject<{
|
|
6
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
settings_id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
status: z.ZodObject<{
|
|
12
|
+
system: z.ZodString;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
display: z.ZodOptional<z.ZodString>;
|
|
15
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
16
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
slug: z.ZodString;
|
|
19
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type OrganizationMinimal = z.infer<typeof organizationMinimalSchema>;
|
|
22
|
+
//# sourceMappingURL=organization-minimal.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/organization/organization-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;iBAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { organizationSchema } from "./organization.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal organization schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export const organizationMinimalSchema = organizationSchema.omit({
|
|
6
|
+
id: true,
|
|
7
|
+
created_at: true,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=organization-minimal.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/organization/organization-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAqB,MAAM,uBAAuB,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC/D,EAAE,EAAE,IAAI;IACR,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Partial organization schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export declare const organizationPartialSchema: z.ZodObject<{
|
|
6
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
system: z.ZodString;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
display: z.ZodOptional<z.ZodString>;
|
|
15
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
16
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
19
|
+
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type OrganizationPartial = z.infer<typeof organizationPartialSchema>;
|
|
22
|
+
//# sourceMappingURL=organization-partial.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/organization/organization-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;iBAAsC,CAAC;AAE7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { organizationMinimalSchema } from "./organization-minimal.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Partial organization schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export const organizationPartialSchema = organizationMinimalSchema.partial();
|
|
6
|
+
//# sourceMappingURL=organization-partial.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-partial.schema.js","sourceRoot":"","sources":["../../../src/models/organization/organization-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAA4B,MAAM,+BAA+B,CAAC;AAEpG;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,yBAAyB,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const organizationSettingsSchema: z.ZodObject<{
|
|
3
|
+
patient_mrn_length: z.ZodDefault<z.ZodNumber>;
|
|
4
|
+
patient_mrn_separator: z.ZodDefault<z.ZodString>;
|
|
5
|
+
member_invite_duration: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type OrganizationSettings = z.infer<typeof organizationSettingsSchema>;
|
|
8
|
+
//# sourceMappingURL=organization-settings.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-settings.schema.d.ts","sourceRoot":"","sources":["../../../src/models/organization/organization-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const organizationSettingsSchema = z.object({
|
|
3
|
+
patient_mrn_length: z.number().default(6),
|
|
4
|
+
patient_mrn_separator: z.string().default("crn:mrn:separator:dash"),
|
|
5
|
+
member_invite_duration: z.number().default(7),
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=organization-settings.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-settings.schema.js","sourceRoot":"","sources":["../../../src/models/organization/organization-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACzC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACnE,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 organizationSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
slug: z.ZodString;
|
|
8
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
9
|
+
status: 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
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
settings_id: z.ZodString;
|
|
20
|
+
created_at: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type Organization = z.infer<typeof organizationSchema>;
|
|
23
|
+
export declare const OrganizationMongooseSchema: MongooseSchema;
|
|
24
|
+
export type OrganizationDocument = InferDocument<typeof organizationSchema>;
|
|
25
|
+
export declare const OrganizationModel: MongooseModel<{
|
|
26
|
+
[x: number]: unknown;
|
|
27
|
+
[x: symbol]: unknown;
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
}, {}, {}, {
|
|
30
|
+
id: string;
|
|
31
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
32
|
+
[x: number]: unknown;
|
|
33
|
+
[x: symbol]: unknown;
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
}, {
|
|
36
|
+
id: string;
|
|
37
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
38
|
+
[x: number]: unknown;
|
|
39
|
+
[x: symbol]: unknown;
|
|
40
|
+
[x: string]: unknown;
|
|
41
|
+
} & Required<{
|
|
42
|
+
_id: unknown;
|
|
43
|
+
}> & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
46
|
+
id: string;
|
|
47
|
+
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
48
|
+
[x: number]: unknown;
|
|
49
|
+
[x: symbol]: unknown;
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
52
|
+
[x: number]: unknown;
|
|
53
|
+
[x: symbol]: unknown;
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
}, {
|
|
56
|
+
id: string;
|
|
57
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
58
|
+
[x: number]: unknown;
|
|
59
|
+
[x: symbol]: unknown;
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
} & Required<{
|
|
62
|
+
_id: unknown;
|
|
63
|
+
}> & {
|
|
64
|
+
__v: number;
|
|
65
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
66
|
+
id: string;
|
|
67
|
+
}>, unknown, {
|
|
68
|
+
[x: number]: {};
|
|
69
|
+
[x: symbol]: {};
|
|
70
|
+
[x: string]: {};
|
|
71
|
+
} & Required<{
|
|
72
|
+
_id: unknown;
|
|
73
|
+
}> & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}>, {
|
|
76
|
+
[x: number]: {};
|
|
77
|
+
[x: symbol]: {};
|
|
78
|
+
[x: string]: {};
|
|
79
|
+
} & Required<{
|
|
80
|
+
_id: unknown;
|
|
81
|
+
}> & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}>;
|
|
84
|
+
//# sourceMappingURL=organization.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.schema.d.ts","sourceRoot":"","sources":["../../../src/models/organization/organization.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;AAQ1D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;iBAa7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B,EAAE,cAAqD,CAAC;AAC/F,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 organizationSchema = z.object({
|
|
8
|
+
id: z.string().uuid({ message: "id must be a valid UUID" }),
|
|
9
|
+
name: z.string().min(1, { message: "name is required" }),
|
|
10
|
+
slug: z.string().min(1, { message: "slug is required" }),
|
|
11
|
+
logo: z.string().optional(),
|
|
12
|
+
status: codedConceptSchema,
|
|
13
|
+
metadata: z
|
|
14
|
+
.object({
|
|
15
|
+
description: z.string().optional(),
|
|
16
|
+
})
|
|
17
|
+
.optional(),
|
|
18
|
+
settings_id: objectIdSchema,
|
|
19
|
+
created_at: timestampSchema,
|
|
20
|
+
});
|
|
21
|
+
export const OrganizationMongooseSchema = toMongooseSchema(organizationSchema);
|
|
22
|
+
const OrganizationModelName = "organizations";
|
|
23
|
+
export const OrganizationModel = model(OrganizationModelName, OrganizationMongooseSchema);
|
|
24
|
+
//# sourceMappingURL=organization.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.schema.js","sourceRoot":"","sources":["../../../src/models/organization/organization.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;AAM1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAC3D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,kBAAkB;IAC1B,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC;QACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC;SACD,QAAQ,EAAE;IACb,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,eAAe;CAC5B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAAmB,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AAG/F,MAAM,qBAAqB,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,qBAAqB,EAAE,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/patient/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/patient/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal patient schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export declare const patientMinimalSchema: z.ZodObject<{
|
|
6
|
+
demographic: z.ZodObject<{
|
|
7
|
+
sex: z.ZodObject<{
|
|
8
|
+
system: z.ZodString;
|
|
9
|
+
value: z.ZodString;
|
|
10
|
+
display: z.ZodOptional<z.ZodString>;
|
|
11
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
religion: z.ZodObject<{
|
|
15
|
+
system: z.ZodString;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
display: z.ZodOptional<z.ZodString>;
|
|
18
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
22
|
+
marital_status: z.ZodObject<{
|
|
23
|
+
system: z.ZodString;
|
|
24
|
+
value: z.ZodString;
|
|
25
|
+
display: z.ZodOptional<z.ZodString>;
|
|
26
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
date_of_birth: z.ZodString;
|
|
30
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
first_name: z.ZodString;
|
|
33
|
+
middle_name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
last_name: z.ZodString;
|
|
35
|
+
salutation: z.ZodString;
|
|
36
|
+
title: z.ZodOptional<z.ZodString>;
|
|
37
|
+
image: z.ZodOptional<z.ZodString>;
|
|
38
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
39
|
+
system: z.ZodString;
|
|
40
|
+
value: z.ZodString;
|
|
41
|
+
display: z.ZodOptional<z.ZodString>;
|
|
42
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
43
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
46
|
+
system: z.ZodString;
|
|
47
|
+
value: z.ZodString;
|
|
48
|
+
display: z.ZodOptional<z.ZodString>;
|
|
49
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
system: z.ZodString;
|
|
54
|
+
value: z.ZodString;
|
|
55
|
+
display: z.ZodOptional<z.ZodString>;
|
|
56
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
57
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
organization_id: z.ZodString;
|
|
60
|
+
registering_facility_id: z.ZodString;
|
|
61
|
+
address: z.ZodObject<{
|
|
62
|
+
street: z.ZodString;
|
|
63
|
+
subdistrict: z.ZodObject<{
|
|
64
|
+
system: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
display: z.ZodOptional<z.ZodString>;
|
|
67
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
68
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
district: z.ZodObject<{
|
|
71
|
+
system: z.ZodString;
|
|
72
|
+
value: z.ZodString;
|
|
73
|
+
display: z.ZodOptional<z.ZodString>;
|
|
74
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
75
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
city: z.ZodObject<{
|
|
78
|
+
system: z.ZodString;
|
|
79
|
+
value: z.ZodString;
|
|
80
|
+
display: z.ZodOptional<z.ZodString>;
|
|
81
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
82
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
province: z.ZodObject<{
|
|
85
|
+
system: z.ZodString;
|
|
86
|
+
value: z.ZodString;
|
|
87
|
+
display: z.ZodOptional<z.ZodString>;
|
|
88
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
89
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type PatientMinimal = z.infer<typeof patientMinimalSchema>;
|
|
95
|
+
//# sourceMappingURL=patient-minimal.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/patient/patient-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { patientSchema } from "./patient.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal patient schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export const patientMinimalSchema = patientSchema.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=patient-minimal.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/patient/patient-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,IAAI,CAAC;IACrD,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,95 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Partial patient schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export declare const patientPartialSchema: z.ZodObject<{
|
|
6
|
+
demographic: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
sex: z.ZodObject<{
|
|
8
|
+
system: z.ZodString;
|
|
9
|
+
value: z.ZodString;
|
|
10
|
+
display: z.ZodOptional<z.ZodString>;
|
|
11
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
religion: z.ZodObject<{
|
|
15
|
+
system: z.ZodString;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
display: z.ZodOptional<z.ZodString>;
|
|
18
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
22
|
+
marital_status: z.ZodObject<{
|
|
23
|
+
system: z.ZodString;
|
|
24
|
+
value: z.ZodString;
|
|
25
|
+
display: z.ZodOptional<z.ZodString>;
|
|
26
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
date_of_birth: z.ZodString;
|
|
30
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
35
|
+
salutation: z.ZodOptional<z.ZodString>;
|
|
36
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
system: z.ZodString;
|
|
40
|
+
value: z.ZodString;
|
|
41
|
+
display: z.ZodOptional<z.ZodString>;
|
|
42
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
43
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
system: z.ZodString;
|
|
47
|
+
value: z.ZodString;
|
|
48
|
+
display: z.ZodOptional<z.ZodString>;
|
|
49
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
system: z.ZodString;
|
|
54
|
+
value: z.ZodString;
|
|
55
|
+
display: z.ZodOptional<z.ZodString>;
|
|
56
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
57
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strip>>>>;
|
|
59
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
60
|
+
registering_facility_id: z.ZodOptional<z.ZodString>;
|
|
61
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
street: z.ZodString;
|
|
63
|
+
subdistrict: z.ZodObject<{
|
|
64
|
+
system: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
display: z.ZodOptional<z.ZodString>;
|
|
67
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
68
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
district: z.ZodObject<{
|
|
71
|
+
system: z.ZodString;
|
|
72
|
+
value: z.ZodString;
|
|
73
|
+
display: z.ZodOptional<z.ZodString>;
|
|
74
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
75
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
city: z.ZodObject<{
|
|
78
|
+
system: z.ZodString;
|
|
79
|
+
value: z.ZodString;
|
|
80
|
+
display: z.ZodOptional<z.ZodString>;
|
|
81
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
82
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
province: z.ZodObject<{
|
|
85
|
+
system: z.ZodString;
|
|
86
|
+
value: z.ZodString;
|
|
87
|
+
display: z.ZodOptional<z.ZodString>;
|
|
88
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
89
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type PatientPartial = z.infer<typeof patientPartialSchema>;
|
|
95
|
+
//# sourceMappingURL=patient-partial.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/patient/patient-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiC,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-partial.schema.js","sourceRoot":"","sources":["../../../src/models/patient/patient-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,0BAA0B,CAAC;AAErF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,OAAO,EAAE,CAAC"}
|