Scheduling & Bed/OR Management Master Data & Configuration

Scheduling & Bed/OR Management Master Data & Configuration

Master Data Inventory

ID Data Set Source Approx. Records Owner Update Frequency
MD-SCHED-001 Appointment Types Facility-defined per specialty ~50 Scheduling Administrator On service changes (quarterly review)
MD-SCHED-002 Ward / Bed Types Facility physical layout ~20 Facilities Management On renovations / layout change
MD-SCHED-003 OR Room Inventory Facility layout + equipment registry ~15 OR Manager On equipment/room changes
MD-SCHED-004 Provider Schedule Templates Department heads ~200 Scheduling Administrator Quarterly or on roster change
MD-SCHED-005 Scheduling Rules Facility policy ~30 Scheduling Administrator On policy change (at least annually)
MD-SCHED-006 Encounter Types / Classes HL7 encounter class + facility subtypes ~20 HIM Manager Rarely; on regulatory/operational change
MD-SCHED-007 Discharge Dispositions HL7 Table 0112 + UAE-specific ~15 HIM Manager On regulatory change (MOH/DOH/DHA)
MD-SCHED-008 Cancellation Reason Codes Facility-defined ~15 Scheduling Administrator As needed (semi-annual review)
MD-SCHED-009 Holiday / Closure Calendar UAE public holidays + facility closures ~30/year HR / Facility Admin Annually + ad-hoc closures
MD-SCHED-010 Surgical Procedure Codes (CPT – Surgery) AMA CPT 10000–69999 ~8,000 Surgical Services Admin Annually with CPT release
MD-SCHED-011 Bed Status Codes Internal standard 8–12 Bed Management Coordinator Rarely; on process change
MD-SCHED-012 Bed Cleaning Status Codes Internal standard + Cleaning module 5–8 Facilities / Cleaning Manager Rarely
MD-SCHED-013 OR Case Status Codes Internal standard 10–15 OR Manager Rarely
MD-SCHED-014 Waitlist Status & Resolution Codes Internal standard 10–15 Scheduling Administrator Rarely
MD-SCHED-015 Admission Sources HL7 + facility-specific 10–20 HIM Manager Rarely
MD-SCHED-016 Financial Classes Policy / Payer contracts 10–20 Revenue Cycle Manager On payer/product changes
MD-SCHED-017 Discharge Checklist Templates Facility policy per service line 20–40 Nursing Director / Quality Annually
MD-SCHED-018 OR Block Types Internal standard 5–10 OR Manager Rarely
MD-SCHED-019 Scheduling Priority Codes Internal standard 5–10 Scheduling Administrator Rarely
MD-SCHED-020 Queue Status Codes (Clinic) Internal standard 8–12 Outpatient Operations Manager Rarely

Note: Patients, providers, facilities, departments, locations, payers are shared entities and not redefined here (see ../01-ehr-patient-mgmt/06-master-data.md and ../11-policy-contract-mgmt/06-master-data.md).


Setup Sequence

Dependency Diagram

flowchart TD A["Step 1: Core Shared Master<br/>Facilities, Departments, Providers, Payers<br/>(from other modules)"] --> B["Step 2: Encounter Types & Classes<br/>(MD-SCHED-006)"] B --> C["Step 3: Financial Classes & Admission Sources<br/>(MD-SCHED-015, MD-SCHED-016)"] C --> D["Step 4: Discharge Dispositions<br/>(MD-SCHED-007)"] D --> E["Step 5: Bed & Ward Taxonomy<br/>Ward/Bed Types, Bed Status, Cleaning Status<br/>(MD-SCHED-002, 011, 012)"] E --> F["Step 6: OR Taxonomy<br/>OR Room Inventory, OR Block Types, OR Case Status<br/>(MD-SCHED-003, 013, 018)"] F --> G["Step 7: Appointment & Queue Taxonomy<br/>Appointment Types, Cancellation Reasons,<br/>Scheduling Priority, Queue Status<br/>(MD-SCHED-001, 008, 019, 020)"] G --> H["Step 8: Holiday / Closure Calendar<br/>(MD-SCHED-009)"] H --> I["Step 9: Surgical Procedure Codes (CPT)<br/>(MD-SCHED-010)"] I --> J["Step 10: Scheduling Rules<br/>(MD-SCHED-005)"] J --> K["Step 11: Provider Schedule Templates<br/>(MD-SCHED-004)"] K --> L["Step 12: Discharge Checklist Templates<br/>(MD-SCHED-017)"] L --> M["Step 13: Waitlist Status & Resolution Codes<br/>(MD-SCHED-014)"] M --> N["System Ready for Scheduling & Bed/OR Go-Live"]

Load Sequence Notes

  1. Core shared master (from other modules) must exist before any scheduling configuration.
  2. Encounter Types/Classes drive how appointments, admissions, OR cases map to encounters and ADT messages.
  3. Financial Classes & Admission Sources support encounter creation and billing integration.
  4. Discharge Dispositions required for discharge workflow and ADT A03.
  5. Bed & Ward Taxonomy must be in place before bed registry and bed board configuration.
  6. OR Taxonomy must precede OR schedules and OR cases.
  7. Appointment & Queue Taxonomy required before appointment booking and queue board.
  8. Holiday Calendar influences provider schedule templates and scheduling rules.
  9. CPT Surgical Codes required before OR case booking and billing mapping.
  10. Scheduling Rules use all previous master data to enforce constraints.
  11. Provider Schedule Templates depend on appointment types, holidays, and rules.
  12. Discharge Checklists depend on encounter types and discharge dispositions.
  13. Waitlist Codes used by appointment and bed waitlist workflows.

Master Data Specifications

MD-SCHED-001: Appointment Types

Purpose

Defines standardized categories of outpatient and procedural appointments (e.g., new visit, follow-up, teleconsultation). Used for:

  • Slot duration and buffer defaults
  • Scheduling rules (lead time, overbooking, pre-auth)
  • Reporting (no-show rate by type)
  • Mapping to encounter types/classes

Logical Schema

Typically stored in appointment_types table (owned by this module).

Field Type Required Description
type_id INTEGER (PK) YES Surrogate key
code VARCHAR(20) YES Unique appointment type code (e.g., NEW, FUP, TELE)
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
default_duration_min INTEGER YES Default duration in minutes
prep_time_min INTEGER NO Pre-visit prep time (e.g., vitals)
post_time_min INTEGER NO Post-visit wrap-up time
encounter_class_code VARCHAR(10) YES HL7 encounter class (e.g., O, P)
requires_referral BOOLEAN YES Whether referral is required (per payer policy)
requires_pre_auth BOOLEAN YES Whether pre-authorization is required
is_telehealth BOOLEAN YES Telehealth indicator (for DOH/DHA reporting)
color_code VARCHAR(7) NO Hex color for UI calendar
is_active BOOLEAN YES Active flag
created_by INTEGER (FK users) YES User who created
created_at DATETIME YES Creation timestamp
updated_at DATETIME NO Last update timestamp

Sample Data

code display_name_en display_name_ar default_duration_min prep_time_min post_time_min encounter_class_code requires_referral requires_pre_auth is_telehealth color_code is_active
NEW New Consultation استشارة جديدة 30 10 5 O TRUE FALSE FALSE #1E90FF TRUE
FUP Follow-up Visit زيارة متابعة 15 5 5 O FALSE FALSE FALSE #32CD32 TRUE
PROC-OPD OPD Procedure Slot إجراء خارجي 45 15 10 O TRUE TRUE FALSE #FFA500 TRUE
TELE Teleconsultation استشارة عن بُعد 20 0 5 O TRUE FALSE TRUE #8A2BE2 TRUE
PRE-ADMIT Pre-Admission Assessment تقييم ما قبل الدخول 30 10 10 P TRUE TRUE FALSE #FF69B4 TRUE
NURSE-ONLY Nurse-Only Visit زيارة تمريضية فقط 20 5 5 O FALSE FALSE FALSE #20B2AA TRUE

Data Governance

  • Owner: Scheduling Administrator
  • Approver: Operations Director + relevant Department Head
  • Update Frequency: On service line changes; formal review at least annually.
  • Change Process: 1. Request raised by department head (with justification and proposed duration). 2. Impact analysis (scheduling, billing, NABIDH/Malaffi mapping). 3. Approval by Operations Director. 4. Configuration in test, validation with pilot clinic. 5. Promotion to production with communication to affected clinics.

Validation Rules

  • code must be unique, uppercase, 3–20 characters, [A-Z0-9_-]+.
  • default_duration_min > 0 and ≤ 240.
  • If is_telehealth = TRUE, encounter_class_code must be O and must comply with DOH/DHA telehealth policies.
  • If requires_pre_auth = TRUE, mapping to payers and CPT codes must exist in billing module.
  • Cannot deactivate (is_active = FALSE) if future appointments exist for this type (soft deactivation only after migration).

MD-SCHED-002: Ward / Bed Types

Purpose

Defines standardized ward/bed categories used for bed assignment, billing, and reporting (e.g., General, ICU, VIP). Used by:

  • Bed registry (beds.ward_type)
  • Admission bed search filters
  • Revenue mapping (room & board charges)
  • UAE regulatory reporting (e.g., ICU occupancy)

Logical Schema

Field Type Required Description
ward_type_code VARCHAR(20) YES Unique code (e.g., GEN, ICU, NICU)
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
acuity_level INTEGER NO Relative acuity (1=low, 5=highest)
is_critical_care BOOLEAN YES ICU/CCU/NICU indicator
is_pediatric BOOLEAN YES Pediatric-only ward
is_maternity BOOLEAN YES Maternity ward
is_vip BOOLEAN YES VIP/royal suite indicator
default_room_class VARCHAR(20) NO Single/Shared/Suite
is_active BOOLEAN YES Active flag

Sample Data

ward_type_code display_name_en display_name_ar acuity_level is_critical_care is_pediatric is_maternity is_vip default_room_class is_active
GEN General Ward جناح عام 2 FALSE FALSE FALSE FALSE Shared TRUE
MED-SURG Medical-Surgical Ward جناح باطني-جراحي 3 FALSE FALSE FALSE FALSE Shared TRUE
ICU Intensive Care Unit العناية المركزة 5 TRUE FALSE FALSE FALSE Single TRUE
NICU Neonatal ICU العناية المركزة لحديثي الولادة 5 TRUE TRUE FALSE FALSE Single TRUE
MAT Maternity Ward جناح الولادة 3 FALSE FALSE TRUE FALSE Shared TRUE
VIP VIP Suite جناح كبار الشخصيات 3 FALSE FALSE FALSE TRUE Suite TRUE

Data Governance

  • Owner: Facilities Management
  • Approver: COO / Hospital Director
  • Update Frequency: On renovations, new ward opening/closure.
  • Change Process: 1. Facilities project triggers review of ward types. 2. Coordination with Bed Management and Billing to ensure charge mapping. 3. Update in test, validate bed board and ADT flows. 4. Schedule cutover (often aligned with physical move).

Validation Rules

  • ward_type_code unique, stable over time (no reuse).
  • acuity_level between 1 and 5.
  • If is_critical_care = TRUE, must map to ICU-related reporting categories for DOH/DHA.
  • Cannot deactivate if any active beds reference this ward type; require migration.

MD-SCHED-003: OR Room Inventory

Purpose

Defines each operating room’s capabilities and attributes. Used for:

  • OR scheduling (room selection)
  • Equipment-based constraints (e.g., laminar flow, imaging)
  • Utilization reporting

Logical Schema

(Complementary to or_rooms table; this master data defines controlled attributes.)

Field Type Required Description
or_room_code VARCHAR(20) YES Unique room code (e.g., OR-01)
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
facility_id INTEGER (FK) YES Facility reference
department_id INTEGER (FK) YES Surgical department
room_type VARCHAR(50) YES e.g., General, Cardiac, Ortho, Hybrid
has_laminar_flow BOOLEAN YES Infection control feature
has_c_arm BOOLEAN YES Mobile imaging availability
has_robotic_system BOOLEAN YES Robotic surgery capability
max_daily_hours INTEGER YES Planned daily operational hours
cleaning_turnaround_min INTEGER YES Standard cleaning time between cases
is_active BOOLEAN YES Active flag

Sample Data

or_room_code display_name_en display_name_ar facility_id department_id room_type has_laminar_flow has_c_arm has_robotic_system max_daily_hours cleaning_turnaround_min is_active
OR-01 OR 1 – General غرفة عمليات 1 - عام 1 10 General TRUE FALSE FALSE 10 20 TRUE
OR-02 OR 2 – Orthopedic غرفة عمليات 2 - عظام 1 10 Orthopedic TRUE TRUE FALSE 10 25 TRUE
OR-03 OR 3 – Cardiac غرفة عمليات 3 - قلب 1 11 Cardiac TRUE TRUE FALSE 12 30 TRUE
OR-04 OR 4 – Hybrid غرفة عمليات 4 - هجينة 1 10 Hybrid TRUE TRUE TRUE 12 30 TRUE
OR-05 OR 5 – Day Surgery غرفة عمليات 5 - جراحة اليوم الواحد 1 12 Day Surgery FALSE FALSE FALSE 8 15 TRUE

Data Governance

  • Owner: OR Manager
  • Approver: Surgical Services Director + Facilities
  • Update Frequency: On room commissioning/decommissioning or major equipment changes.
  • Change Process: 1. Facilities/biomed notify OR Manager of changes. 2. OR Manager updates capabilities and validates scheduling rules. 3. Communicate to surgeons and anesthesia teams.

Validation Rules

  • or_room_code unique per facility.
  • max_daily_hours between 1 and 24.
  • If room_type = Hybrid, has_c_arm must be TRUE.
  • Cannot deactivate if future OR cases scheduled; require rescheduling.

MD-SCHED-004: Provider Schedule Templates

Purpose

Reusable weekly patterns for provider availability (clinic sessions, telehealth blocks). Used to generate provider_schedules and appointment_slots.

Logical Schema

Field Type Required Description
template_id INTEGER (PK) YES Surrogate key
template_code VARCHAR(50) YES Unique code (e.g., IM-CLINIC-AM)
template_name_en VARCHAR(200) YES English name
template_name_ar VARCHAR(200) YES Arabic name
provider_id INTEGER (FK) NO If provider-specific; NULL for generic
department_id INTEGER (FK) YES Department
facility_id INTEGER (FK) YES Facility
day_of_week TINYINT YES 1=Sunday … 7=Saturday (UAE week)
session_start_time TIME YES Session start
session_end_time TIME YES Session end
default_appointment_type_code VARCHAR(20) NO Default appointment type
max_patients INTEGER YES Max patients per session
is_telehealth BOOLEAN YES Telehealth indicator
is_active BOOLEAN YES Active flag

Sample Data

template_code template_name_en template_name_ar provider_id department_id facility_id day_of_week session_start_time session_end_time default_appointment_type_code max_patients is_telehealth is_active
IM-AM Internal Medicine AM Clinic عيادة الباطنية صباحاً NULL 21 1 1 08:00 12:00 NEW 16 FALSE TRUE
IM-PM Internal Medicine PM Follow-up عيادة الباطنية مساءً للمتابعة NULL 21 1 1 13:00 17:00 FUP 20 FALSE TRUE
PED-TELE Pediatrics Telehealth عيادة الأطفال عن بُعد NULL 22 1 2 16:00 18:00 TELE 10 TRUE TRUE
SURG-PREOP Surgical Pre-op Assessment تقييم ما قبل الجراحة NULL 23 1 3 09:00 12:00 PRE-ADMIT 10 FALSE TRUE
DR-AHMED-THU Dr Ahmed – Thursday AM Clinic د. أحمد - عيادة الخميس صباحاً 105 21 1 5 08:00 12:00 NEW 14 FALSE TRUE

Data Governance

  • Owner: Scheduling Administrator
  • Approver: Department Head
  • Update Frequency: Quarterly or when rosters change.
  • Change Process: 1. Department submits roster changes. 2. Scheduling team updates templates and regenerates future slots (respecting existing bookings). 3. Communicate changes to affected patients if slots are impacted.

Validation Rules

  • session_end_time > session_start_time.
  • max_patients > 0.
  • If is_telehealth = TRUE, facility_id must map to telehealth reporting location per DOH/DHA.
  • No overlapping active templates for same provider, facility, department, day, and time range unless explicitly allowed by policy.

MD-SCHED-005: Scheduling Rules

Purpose

Configurable rules controlling how appointments, beds, and OR slots can be booked. Examples:

  • Minimum/maximum lead time
  • Overbooking limits
  • Cancellation cut-off times
  • Gender/isolation constraints for beds

Logical Schema

Field Type Required Description
rule_id INTEGER (PK) YES Surrogate key
rule_code VARCHAR(50) YES Unique rule code (e.g., MIN_LEAD_NEW)
rule_name_en VARCHAR(200) YES English name
rule_name_ar VARCHAR(200) YES Arabic name
rule_type VARCHAR(50) YES e.g., APPOINTMENT, BED, OR, WAITLIST
scope_level VARCHAR(20) YES GLOBAL, FACILITY, DEPARTMENT, PROVIDER
facility_id INTEGER (FK) NO Scope facility (if applicable)
department_id INTEGER (FK) NO Scope department
provider_id INTEGER (FK) NO Scope provider
appointment_type_code VARCHAR(20) NO Scope appointment type
parameters_json TEXT YES JSON with rule parameters
is_active BOOLEAN YES Active flag

Sample Data

rule_code rule_name_en rule_name_ar rule_type scope_level appointment_type_code parameters_json is_active
MIN_LEAD_NEW Min lead time for new consults الحد الأدنى للمهلة للاستشارة الجديدة APPOINTMENT GLOBAL NEW {"min_hours": 24} TRUE
MAX_LEAD_ROUTINE Max lead time for routine appointments الحد الأقصى للمهلة للمواعيد الروتينية APPOINTMENT GLOBAL NULL {"max_days": 30} TRUE
NO_OVERBOOK_VIP No overbooking in VIP clinic منع الحجز الزائد في عيادة كبار الشخصيات APPOINTMENT DEPARTMENT NULL {"department_id": 30, "max_overbook": 0} TRUE
BED_GENDER_RULE Gender separation rule قاعدة فصل الجنسين BED FACILITY NULL {"facility_id": 1, "allow_mixed": false, "exceptions": ["ICU"]} TRUE
OR_BUFFER_RULE OR turnover buffer وقت عزل بين حالات العمليات OR GLOBAL NULL {"min_turnover_min": 20} TRUE

Data Governance

  • Owner: Scheduling Administrator
  • Approver: Operations Director + relevant clinical leads.
  • Update Frequency: As policies change; at least annual review.
  • Change Process: 1. Policy change documented by Operations/Quality. 2. Rule change drafted and tested in non-production. 3. Stakeholder sign-off (including Revenue Cycle if financial impact). 4. Controlled deployment with communication to users.

Validation Rules

  • rule_code unique.
  • parameters_json must be valid JSON and conform to schema per rule_type.
  • Only one active rule per rule_type + scope_level + scope identifiers combination (no conflicting rules).
  • Changes logged with audit trail (per UAE PDPL accountability).

MD-SCHED-006: Encounter Types / Classes

Purpose

Defines encounter classes and subtypes used across the HIS, aligned with HL7 and UAE reporting (e.g., inpatient, outpatient, emergency, day surgery).

Logical Schema

Field Type Required Description
encounter_type_code VARCHAR(20) YES Unique code (e.g., IP, OP, ER, DS)
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
hl7_class_code VARCHAR(5) YES HL7 PV1-2 (e.g., I, O, E, P)
description VARCHAR(500) NO Description
is_inpatient BOOLEAN YES Inpatient flag
is_day_case BOOLEAN YES Day surgery/observation flag
is_emergency BOOLEAN YES Emergency flag
is_ambulatory BOOLEAN YES Ambulatory flag
is_active BOOLEAN YES Active flag

Sample Data

encounter_type_code display_name_en display_name_ar hl7_class_code is_inpatient is_day_case is_emergency is_ambulatory is_active
IP Inpatient Admission دخول منوم I TRUE FALSE FALSE FALSE TRUE
DS Day Surgery جراحة اليوم الواحد P FALSE TRUE FALSE TRUE TRUE
ER Emergency Visit زيارة طوارئ E FALSE FALSE TRUE TRUE TRUE
OP Outpatient Visit زيارة خارجية O FALSE FALSE FALSE TRUE TRUE
OBS Observation Stay إقامة ملاحظة O FALSE TRUE TRUE FALSE TRUE

Data Governance

  • Owner: Health Information Management (HIM) Manager
  • Approver: Medical Director + Revenue Cycle Manager.
  • Update Frequency: Rare; on regulatory or service model changes.
  • Change Process: 1. Review HL7, DOH/DHA, MOH reporting requirements. 2. Impact analysis on ADT, billing, analytics. 3. Controlled implementation with mapping updates.

Validation Rules

  • hl7_class_code must be one of standard HL7 values (I, O, E, P, etc.).
  • Each encounter must map to exactly one active encounter type.
  • Cannot delete; only deactivate with historical mapping preserved.

MD-SCHED-007: Discharge Dispositions

Purpose

Standardizes discharge outcomes for encounters, aligned with HL7 Table 0112 and UAE-specific needs (e.g., transfer to another facility, home, deceased). Used for:

  • ADT A03 messages
  • Regulatory reporting (mortality, transfers)
  • Analytics (readmission risk, discharge before noon KPI)

Logical Schema

Field Type Required Description
disposition_code VARCHAR(10) YES Unique code (e.g., HOME, TRANS-HOSP)
hl7_code VARCHAR(10) YES HL7 0112 code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_deceased BOOLEAN YES Death indicator
is_transfer BOOLEAN YES Transfer indicator
is_against_medical_advice BOOLEAN YES AMA indicator
is_required_for_reporting BOOLEAN YES Required for DOH/DHA/MOH reporting
is_active BOOLEAN YES Active flag

Sample Data

disposition_code hl7_code display_name_en display_name_ar is_deceased is_transfer is_against_medical_advice is_required_for_reporting is_active
HOME 01 Discharged to home خروج إلى المنزل FALSE FALSE FALSE TRUE TRUE
HOME-HC 06 Home with home care خروج مع رعاية منزلية FALSE FALSE FALSE TRUE TRUE
TRANS-HOSP 02 Transfer to another acute hospital تحويل إلى مستشفى حاد آخر FALSE TRUE FALSE TRUE TRUE
AMA 07 Left against medical advice خروج ضد النصح الطبي FALSE FALSE TRUE TRUE TRUE
DECEASED 20 Expired (deceased) متوفى TRUE FALSE FALSE TRUE TRUE
TRANS-REHAB 05 Transfer to rehab facility تحويل إلى مركز تأهيل FALSE TRUE FALSE TRUE TRUE

Data Governance

  • Owner: HIM Manager
  • Approver: Medical Director + Quality & Patient Safety.
  • Update Frequency: Rare; on regulatory changes.
  • Change Process: 1. Monitor DOH/DHA/MOH circulars. 2. Update mapping to HL7 and national reporting. 3. Communicate to clinicians and discharge planners.

Validation Rules

  • hl7_code must be valid HL7 0112 value.
  • Exactly one disposition must be marked is_deceased = TRUE for standard death reporting (additional subcodes may exist but must map).
  • Cannot deactivate if used in last 12 months without migration plan.

MD-SCHED-008: Cancellation Reason Codes

Purpose

Captures standardized reasons for appointment cancellation or no-show, used for:

  • No-show and cancellation KPIs
  • Operational improvements (e.g., provider-driven vs patient-driven cancellations)
  • Potential patient flagging (repeat no-shows)

Logical Schema

Field Type Required Description
cancel_reason_code VARCHAR(20) YES Unique code (e.g., PT-REQ, NS, PROV-UNAV)
display_name_en VARCHAR(200) YES English description
display_name_ar VARCHAR(200) YES Arabic description
category VARCHAR(50) YES PATIENT, PROVIDER, FACILITY, SYSTEM
counts_as_no_show BOOLEAN YES Whether counted as no-show in KPIs
requires_comment BOOLEAN YES Whether free-text comment required
is_active BOOLEAN YES Active flag

Sample Data

cancel_reason_code display_name_en display_name_ar category counts_as_no_show requires_comment is_active
PT-REQ Patient requested cancellation إلغاء بطلب المريض PATIENT FALSE FALSE TRUE
NS Patient no-show لم يحضر المريض PATIENT TRUE FALSE TRUE
PROV-UNAV Provider unavailable عدم توفر الطبيب PROVIDER FALSE TRUE TRUE
INS-DENY Insurance authorization denied رفضت شركة التأمين التفويض SYSTEM FALSE TRUE TRUE
FAC-CLOSE Facility closure / public holiday إغلاق المنشأة / عطلة رسمية FACILITY FALSE FALSE TRUE

Data Governance

  • Owner: Scheduling Administrator
  • Approver: Outpatient Operations Manager.
  • Update Frequency: As needed; semi-annual review.
  • Change Process: 1. Review cancellation reports to identify new patterns. 2. Add or refine codes to improve analytics. 3. Train front-desk staff on correct usage.

Validation Rules

  • cancel_reason_code unique.
  • At least one active code per category PATIENT and PROVIDER.
  • counts_as_no_show = TRUE only for patient-driven non-attendance without prior notice.

MD-SCHED-009: Holiday / Closure Calendar

Purpose

Defines facility-level non-working days (UAE public holidays and facility-specific closures) used to:

  • Prevent scheduling on closed days
  • Adjust provider schedule generation
  • Inform patient portal availability

Logical Schema

Field Type Required Description
holiday_id INTEGER (PK) YES Surrogate key
facility_id INTEGER (FK) YES Facility
date DATE YES Holiday/closure date
name_en VARCHAR(200) YES English name
name_ar VARCHAR(200) YES Arabic name
is_public_holiday BOOLEAN YES UAE public holiday indicator
is_partial_day BOOLEAN YES Partial closure
partial_start_time TIME NO Start of closure (if partial)
partial_end_time TIME NO End of closure (if partial)
created_by INTEGER (FK users) YES Creator
is_active BOOLEAN YES Active flag

Sample Data

facility_id date name_en name_ar is_public_holiday is_partial_day partial_start_time partial_end_time is_active
1 2026-01-01 New Year’s Day رأس السنة الميلادية TRUE FALSE NULL NULL TRUE
1 2026-06-16 Eid Al Adha – Day 1 عيد الأضحى - اليوم الأول TRUE FALSE NULL NULL TRUE
1 2026-12-02 UAE National Day اليوم الوطني لدولة الإمارات TRUE FALSE NULL NULL TRUE
1 2026-03-27 Facility Maintenance Closure إغلاق للصيانة FALSE TRUE 12:00 23:59 TRUE
2 2026-04-10 Dubai Branch Staff Event فعالية موظفي فرع دبي FALSE TRUE 14:00 18:00 TRUE

Data Governance

  • Owner: HR / Facility Administration
  • Approver: Hospital Director.
  • Update Frequency: Annually (public holidays) + ad-hoc closures.
  • Change Process: 1. Load UAE public holidays as per government announcements. 2. Facilities propose additional closure dates. 3. Communicate to scheduling teams and update system.

Validation Rules

  • No duplicate active holiday for same facility_id and date.
  • If is_partial_day = TRUE, both partial_start_time and partial_end_time required and end > start.
  • Appointment slot generation must respect this calendar.

MD-SCHED-010: Surgical Procedure Codes (CPT – Surgery)

Purpose

Catalogue of CPT surgical procedure codes (10000–69999) used for OR case booking, anesthesia planning, and billing mapping.

Logical Schema

Field Type Required Description
cpt_code VARCHAR(10) YES CPT code (e.g., 47562)
description_en VARCHAR(255) YES English description
description_ar VARCHAR(255) NO Arabic description (where available)
specialty VARCHAR(100) NO Primary surgical specialty
typical_duration_min INTEGER NO Typical duration for scheduling
requires_implant BOOLEAN YES Whether implants usually required
is_active BOOLEAN YES Active flag

Sample Data

cpt_code description_en description_ar specialty typical_duration_min requires_implant is_active
47562 Laparoscopic cholecystectomy استئصال المرارة بالمنظار General Surgery 90 FALSE TRUE
27447 Total knee arthroplasty استبدال كامل لمفصل الركبة Orthopedic Surgery 120 TRUE TRUE
33533 CABG, single arterial graft جراحة مجازة الشريان التاجي (وصلة واحدة) Cardiac Surgery 240 FALSE TRUE
42820 Tonsillectomy, age 12 or over استئصال اللوزتين لعمر 12 سنة أو أكثر ENT 45 FALSE TRUE
66984 Cataract extraction with IOL استئصال الساد مع زرع عدسة Ophthalmology 30 TRUE TRUE

Data Governance

  • Owner: Surgical Services Administrator
  • Approver: Coding/HIM + Revenue Cycle.
  • Update Frequency: Annually with CPT updates; ad-hoc for local exclusions.
  • Change Process: 1. Import new CPT release. 2. Map to specialties and typical durations. 3. Validate with surgeons and billing.

Validation Rules

  • cpt_code must be valid CPT surgery code (10000–69999).
  • typical_duration_min > 0 for codes used in OR scheduling.
  • Cannot deactivate if referenced by future OR cases.

MD-SCHED-011: Bed Status Codes

Purpose

Standardizes bed occupancy states for the bed board and ADT triggers.

Logical Schema

Field Type Required Description
bed_status_code VARCHAR(20) YES Unique code (e.g., VACANT, OCCUPIED)
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_assignable BOOLEAN YES Whether bed can be assigned to a patient
triggers_cleaning BOOLEAN YES Whether status change triggers cleaning workflow
is_active BOOLEAN YES Active flag

Sample Data

bed_status_code display_name_en display_name_ar is_assignable triggers_cleaning is_active
VACANT Vacant – Ready سرير شاغر جاهز TRUE FALSE TRUE
OCCUPIED Occupied سرير مشغول FALSE FALSE TRUE
PENDING-ADMIT Reserved for admission محجوز للدخول FALSE FALSE TRUE
PENDING-CLEAN Pending cleaning بانتظار التنظيف FALSE TRUE TRUE
OUT-OF-SERVICE Out of service خارج الخدمة FALSE FALSE TRUE

Data Governance

  • Owner: Bed Management Coordinator
  • Approver: Nursing Director + Facilities.
  • Update Frequency: Rare.
  • Change Process: Controlled; must be aligned with Cleaning module workflows.

Validation Rules

  • Exactly one status with is_assignable = TRUE and triggers_cleaning = FALSE representing “ready” state (VACANT).
  • Status transitions must be defined in workflow engine (e.g., OCCUPIED → PENDING-CLEAN → VACANT).

MD-SCHED-012: Bed Cleaning Status Codes

Purpose

Represents cleaning workflow states for beds, used to coordinate with Cleaning Management module.

Logical Schema

Field Type Required Description
cleaning_status_code VARCHAR(20) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_terminal_clean BOOLEAN YES Terminal clean indicator
is_active BOOLEAN YES Active flag

Sample Data

cleaning_status_code display_name_en display_name_ar is_terminal_clean is_active
NOT-REQUIRED Cleaning not required لا يحتاج إلى تنظيف FALSE TRUE
REQUESTED Cleaning requested تم طلب التنظيف FALSE TRUE
IN-PROGRESS Cleaning in progress التنظيف جارٍ FALSE TRUE
COMPLETED Cleaning completed تم الانتهاء من التنظيف FALSE TRUE
TERMINAL Terminal cleaning completed تم الانتهاء من التنظيف النهائي TRUE TRUE

Data Governance

  • Owner: Facilities / Cleaning Manager
  • Approver: Bed Management Coordinator.
  • Update Frequency: Rare.

Validation Rules

  • At least one status with is_terminal_clean = TRUE.
  • Mapping between bed_status_code and cleaning_status_code transitions must be defined.

MD-SCHED-013: OR Case Status Codes

Purpose

Defines lifecycle states for OR cases (requested, scheduled, in progress, completed, cancelled).

Logical Schema

Field Type Required Description
case_status_code VARCHAR(20) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_final_state BOOLEAN YES Whether no further transitions allowed
counts_as_performed BOOLEAN YES For utilization metrics
is_active BOOLEAN YES Active flag

Sample Data

case_status_code display_name_en display_name_ar is_final_state counts_as_performed is_active
REQUESTED Requested طلب FALSE FALSE TRUE
SCHEDULED Scheduled مجدول FALSE FALSE TRUE
IN-PROGRESS In progress قيد التنفيذ FALSE FALSE TRUE
COMPLETED Completed مكتمل TRUE TRUE TRUE
CANCELLED Cancelled ملغى TRUE FALSE TRUE
NO-SHOW Patient no-show لم يحضر المريض TRUE FALSE TRUE

Data Governance

  • Owner: OR Manager
  • Approver: Surgical Services Director.
  • Update Frequency: Rare.

Validation Rules

  • Only one status per case can be is_final_state = TRUE at a time.
  • counts_as_performed = TRUE only for statuses representing completed surgery.

MD-SCHED-014: Waitlist Status & Resolution Codes

Purpose

Standardizes waitlist entry states and resolution outcomes for appointments and beds.

Logical Schema

Field Type Required Description
waitlist_status_code VARCHAR(20) YES Unique status code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_terminal BOOLEAN YES Terminal state indicator
is_active BOOLEAN YES Active flag

Separate resolution codes:

Field Type Required Description
resolution_code VARCHAR(20) YES Unique resolution code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_success BOOLEAN YES Whether resolved by successful booking/admission
is_active BOOLEAN YES Active flag

Sample Data – Status

waitlist_status_code display_name_en display_name_ar is_terminal is_active
ACTIVE Active نشط FALSE TRUE
OFFERED Offer sent to patient تم إرسال عرض للمريض FALSE TRUE
PENDING-RESPONSE Awaiting patient response بانتظار رد المريض FALSE TRUE
RESOLVED Resolved مغلق TRUE TRUE
CANCELLED Cancelled ملغى TRUE TRUE

Sample Data – Resolution

resolution_code display_name_en display_name_ar is_success is_active
BOOKED Booked appointment/bed تم حجز الموعد/السرير TRUE TRUE
PATIENT-DECLINED Patient declined رفض المريض FALSE TRUE
NO-RESPONSE No response from patient لم يتم الرد من المريض FALSE TRUE
NO-LONGER-NEEDED Service no longer needed لم تعد الخدمة مطلوبة FALSE TRUE

Data Governance

  • Owner: Scheduling Administrator
  • Approver: Outpatient Operations Manager.
  • Update Frequency: Rare.

Validation Rules

  • Exactly one terminal status used when resolution_code is set.
  • is_success = TRUE only for resolutions that count towards Waitlist Conversion Rate KPI.

MD-SCHED-015: Admission Sources

Purpose

Defines where patients are admitted from (e.g., ER, clinic, transfer from other facility). Used for:

  • Encounter creation (admission_source)
  • Reporting and analytics
  • ADT mapping

Logical Schema

Field Type Required Description
admission_source_code VARCHAR(20) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
hl7_code VARCHAR(10) NO HL7 mapping if applicable
is_transfer BOOLEAN YES Transfer indicator
is_active BOOLEAN YES Active flag

Sample Data

admission_source_code display_name_en display_name_ar hl7_code is_transfer is_active
ER From Emergency Department من قسم الطوارئ ER FALSE TRUE
OPD From Outpatient Clinic من العيادات الخارجية OP FALSE TRUE
TRANS-HOSP Transfer from another hospital تحويل من مستشفى آخر TR TRUE TRUE
BORN-HERE Born in this facility مولود في هذه المنشأة NB FALSE TRUE
SELF-REF Self-referred إحالة ذاتية SR FALSE TRUE

Data Governance

  • Owner: HIM Manager
  • Approver: Medical Director.
  • Update Frequency: Rare.

Validation Rules

  • admission_source_code unique.
  • Must cover all sources used in DOH/DHA reporting templates.

MD-SCHED-016: Financial Classes

Purpose

High-level financial categories for encounters (e.g., government, private insurance, self-pay). Used for:

  • Encounter financial_class
  • Revenue cycle reporting
  • Eligibility workflows

Logical Schema

Field Type Required Description
financial_class_code VARCHAR(20) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
payer_category VARCHAR(50) YES GOV, INSURANCE, SELF-PAY, CORPORATE
is_active BOOLEAN YES Active flag

Sample Data

financial_class_code display_name_en display_name_ar payer_category is_active
GOV-THIQA Abu Dhabi – THIQA ثقة - أبوظبي GOV TRUE
INS-DAMAN Daman Insurance ضمان INSURANCE TRUE
INS-OMAN Oman Insurance شركة عُمان للتأمين INSURANCE TRUE
SELF Self-pay دفع ذاتي SELF-PAY TRUE
CORP Corporate contract عقد شركات CORPORATE TRUE

Data Governance

  • Owner: Revenue Cycle Manager
  • Approver: CFO.
  • Update Frequency: On payer/product changes.

Validation Rules

  • Must align with payer master in Policy & Contract Management module.
  • Each encounter must have exactly one financial class.

MD-SCHED-017: Discharge Checklist Templates

Purpose

Defines discharge checklist templates per service line/encounter type (e.g., surgical, medical, maternity) used in WF-SCH-006.

Logical Schema

Field Type Required Description
template_id INTEGER (PK) YES Surrogate key
template_code VARCHAR(50) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
encounter_type_code VARCHAR(20) (FK) YES Encounter type
items_json TEXT YES JSON array of checklist items (id, text_en, text_ar, required)
is_active BOOLEAN YES Active flag

Sample Data (conceptual)

template_code display_name_en display_name_ar encounter_type_code is_active
MED-GEN Medical – General Discharge خروج باطني عام IP TRUE
SURG-POSTOP Surgical – Post-op Discharge خروج بعد العملية الجراحية IP TRUE
MATERNITY Maternity Discharge خروج الولادة IP TRUE

Example items_json for SURG-POSTOP (simplified):

JSON
[
  {"id": "meds_reconciled", "text_en": "Medications reconciled and prescriptions provided", "text_ar": "مراجعة الأدوية وتقديم الوصفات", "required": true},
  {"id": "wound_care", "text_en": "Wound care instructions explained", "text_ar": "شرح تعليمات العناية بالجرح", "required": true},
  {"id": "followup_booked", "text_en": "Follow-up appointment booked", "text_ar": "حجز موعد المتابعة", "required": true}
]

Data Governance

  • Owner: Nursing Director / Quality Department
  • Approver: Medical Director.
  • Update Frequency: Annual review or after incident investigations.

Validation Rules

  • items_json must be valid JSON with at least one required item.
  • At least one active template per major encounter type.

MD-SCHED-018: OR Block Types

Purpose

Defines types of OR time blocks (e.g., dedicated list, emergency block, training) used in or_schedules.block_type.

Logical Schema

Field Type Required Description
block_type_code VARCHAR(20) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_emergency BOOLEAN YES Emergency-only block
is_training BOOLEAN YES Training/teaching block
is_active BOOLEAN YES Active flag

Sample Data

block_type_code display_name_en display_name_ar is_emergency is_training is_active
ELECTIVE Elective list قائمة اختيارية FALSE FALSE TRUE
EMERG Emergency block قائمة طوارئ TRUE FALSE TRUE
DAYCASE Day surgery list قائمة جراحة اليوم الواحد FALSE FALSE TRUE
TRAIN Training list قائمة تدريبية FALSE TRUE TRUE

Data Governance

  • Owner: OR Manager
  • Approver: Surgical Services Director.

Validation Rules

  • is_emergency and is_training cannot both be TRUE.

MD-SCHED-019: Scheduling Priority Codes

Purpose

Defines priority levels for appointments and waitlist entries (e.g., urgent, routine, elective).

Logical Schema

Field Type Required Description
priority_code VARCHAR(20) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
sort_order INTEGER YES Lower = higher priority
max_wait_days INTEGER NO Target maximum wait time in days
is_active BOOLEAN YES Active flag

Sample Data

priority_code display_name_en display_name_ar sort_order max_wait_days is_active
EMERG Emergency طارئ 1 0 TRUE
URGENT Urgent عاجل 2 2 TRUE
SOON Soon قريباً 3 7 TRUE
ROUTINE Routine روتيني 4 30 TRUE

Data Governance

  • Owner: Scheduling Administrator
  • Approver: Medical Director / Operations.

Validation Rules

  • sort_order unique.
  • max_wait_days must align with clinical policies and DOH/DHA access standards.

MD-SCHED-020: Queue Status Codes (Clinic)

Purpose

Defines statuses for patients in the clinic queue (used in Clinic Queue Board WF-SCH-002, WF-SCH-009).

Logical Schema

Field Type Required Description
queue_status_code VARCHAR(20) YES Unique code
display_name_en VARCHAR(200) YES English name
display_name_ar VARCHAR(200) YES Arabic name
is_terminal BOOLEAN YES Terminal state indicator
is_active BOOLEAN YES Active flag

Sample Data

queue_status_code display_name_en display_name_ar is_terminal is_active
WAITING Waiting في الانتظار FALSE TRUE
CALLED Called to room تم النداء FALSE TRUE
WITH-PROVIDER With provider مع الطبيب FALSE TRUE
COMPLETED Visit completed تم الانتهاء من الزيارة TRUE TRUE
LEFT Left before seen غادر قبل المعاينة TRUE TRUE

Data Governance

  • Owner: Outpatient Operations Manager
  • Approver: Medical Director.

Validation Rules

  • Exactly one terminal status must be set when encounter is closed from queue.

Configuration Parameters

Parameter Type Default Description Governance
max_results_per_search Integer 50 Maximum number of patients/appointments returned in search results to protect performance and PDPL data minimization System Admin
default_appointment_duration_min Integer 15 Default duration when appointment type not specified Scheduling Administrator
max_overbooking_per_slot Integer 2 Global maximum number of overbooked appointments per slot (can be overridden by scheduling rules) Operations Director
allow_same_day_booking_cutoff_time Time 14:00 Time after which same-day bookings are not allowed (except urgent) Operations Director
no_show_auto_flag_threshold Integer 3 Number of no-shows after which patient is flagged for special handling Scheduling Administrator + Quality
check_in_early_window_min Integer 30 Minutes before appointment when patient can check in Scheduling Administrator
check_in_late_grace_min Integer 15 Grace period after appointment start before marking as late/no-show Scheduling Administrator
bed_turnaround_target_min Integer 60 Target time between bed release and ready status (for KPI) Bed Management Coordinator
or_default_turnover_min Integer 20 Default OR turnover time between cases OR Manager
waitlist_offer_timeout_hours Integer 24 Time window for patient to accept waitlist offer before it passes to next patient Scheduling Administrator
enable_gender_bed_rules Boolean TRUE Enforce gender-based bed allocation rules except for defined exceptions Bed Management Coordinator
enable_telehealth_slot_separation Boolean TRUE Prevent mixing telehealth and in-person appointments in same slot Scheduling Administrator
portal_booking_max_days_ahead Integer 60 Maximum days ahead patients can book via portal Scheduling Administrator
portal_cancellation_cutoff_hours Integer 24 Hours before appointment after which portal cancellation is blocked (must call facility) Scheduling Administrator
adt_real_time_mode Boolean TRUE If TRUE, ADT messages (A01/A02/A03/A04) sent immediately on event; if FALSE, queued/batched IT / Integration Lead
enforce_public_holiday_block Boolean TRUE Prevent booking on public holidays unless explicit override Operations Director

Data Load Procedures

Initial Load

  1. Source Identification - Appointment types, scheduling rules, queue statuses: from existing scheduling system or policy documents. - Ward/bed types, OR room inventory: from facilities CAD/layout and current bed/OR lists. - Discharge dispositions, encounter types, admission sources: from HIM coding manuals and HL7 mapping. - Holiday calendar: from UAE government announcements and facility HR. - CPT surgical codes: from official AMA CPT data (licensed).

  2. Import Formats - Preferred: CSV or UTF-8 encoded Excel for bulk master data. - For CPT and other large sets: JSON or direct DB import. - All bilingual fields must support UTF-8 for Arabic.

  3. Sample CSV Layout (Appointment Types)

Text
code,display_name_en,display_name_ar,default_duration_min,prep_time_min,post_time_min,encounter_class_code,requires_referral,requires_pre_auth,is_telehealth,color_code,is_active
NEW,New Consultation,استشارة جديدة,30,10,5,O,TRUE,FALSE,FALSE,#1E90FF,TRUE
FUP,Follow-up Visit,زيارة متابعة,15,5,5,O,FALSE,FALSE,FALSE,#32CD32,TRUE
  1. Validation on Import - Schema validation (required fields, data types). - Referential integrity (e.g., encounter_type_code exists). - Code uniqueness checks. - Business rules (e.g., duration ranges, HL7 code validity). - Arabic text encoding validation.

  2. Approval & Sign-off - Each dataset reviewed by its governance owner. - Parallel test of key workflows (WF-SCH-001 to WF-SCH-008) using imported master data.

Ongoing Synchronization

  • CPT Surgical Codes
  • Annual import from AMA source.
  • Compare with existing codes; mark obsolete as inactive rather than deleting.
  • Validate mappings to OR templates and billing.

  • Holiday Calendar

  • Annual update when UAE public holidays announced.
  • Facility-specific closures added as needed.

  • Scheduling Rules & Templates

  • Managed within application UI by authorized roles.
  • Changes logged with audit trail (per UAE PDPL accountability and ADHICS/NABIDH security expectations).

Import/Export Interfaces

  • Admin UI
  • CSV upload for appointment types, cancellation reasons, scheduling rules, templates.
  • Download current configuration as CSV for review.

  • API

  • Internal REST endpoints for IT to automate updates (e.g., holiday calendar).
  • Access controlled via roles/permissions and logged.

Data Quality & PDPL Considerations

  • Master data sets do not contain direct patient identifiers, but:
  • Changes can affect patient care and billing; all changes must be auditable.
  • Access to configuration screens restricted to appropriate roles.
  • For any imports that include mappings to providers/facilities, ensure:
  • Provider/facility IDs are validated against canonical masters.
  • No free-text storage of personal data beyond what is necessary for configuration.

This specification provides the master data and configuration foundation required for the Scheduling & Bed/OR Management module to support all defined workflows and KPIs in the UAE regulatory context.

content/clinical/scheduling/06-master-data.md Generated 2026-02-20 22:54