{
  "$schema": "https://json.openmrs.org/routes.schema.json",
  "backendDependencies": {
    "fhir2": ">=1.2",
   "webservices.rest": ">=2.24.0"
  },
  "pages": [
    {
      "component": "root",
      "route": "express-workflow"
    },
    {
      "component": "queuesAdminHome",
      "route": "queues-admin"
    },
    {
      "component": "appointmentsDashboard",
      "route": "appointments"
    }
  ],
  "extensions": [
    {
      "component": "appointmentsDashboardLink",
      "name": "appointments-dashboard-link",
      "slot": "appointments-left-panel-slot",
      "meta": {
        "name": "appointments",
        "slot": "appointments-dashboard-slot",
        "title": "Appointments"
      }
    },
    {
      "component": "admissionsLeftPanelLink",
      "name": "admissions-dashboard-link",
      "slot": "express-workflow-left-panel-slot",
      "order": 9,
      "meta": {
        "name": "admissions",
        "slot": "admissions-dashboard-slot",
        "title": "Admissions"
      }
    },
    {
      "component": "admissionsDashboard",
      "name": "admissions-dashboard",
      "slot": "admissions-dashboard-slot"
    },
    {
      "component": "consultationLeftPanelLink",
      "name": "consultation-dashboard-link",
      "slot": "homepage-dashboard-slot",
      "order": 3,
      "meta": {
        "name": "consultation",
        "slot": "consultation-dashboard-slot",
        "title": "Consultation"
      }
    },
    {
      "component": "consultationDashboard",
      "name": "consultation-dashboard",
      "slot": "consultation-dashboard-slot"
    },
    {
      "component": "facilityLeftPanelLink",
      "name": "facility-dashboard-link",
      "slot": "homepage-dashboard-slot",
      "order": 0,
      "meta": {
        "name": "dashboard",
        "slot": "facility-dashboard-slot",
        "title": "Dashboard"
      }
    },
    {
      "component": "facilityDashboard",
      "name": "facility-dashboard",
      "slot": "facility-dashboard-slot"
    },
    {
      "component": "mchLeftPanelLink",
      "name": "mch-dashboard-link",
      "slot": "homepage-dashboard-slot",
      "meta": {
        "name": "mch",
        "slot": "mch-dashboard-slot",
        "title": "MCH"
      }
    },
    {
      "component": "mchDashboard",
      "name": "mch-dashboard",
      "slot": "mch-dashboard-slot"
    },
    {
      "component": "registrationLeftPanelLink",
      "name": "registration-dashboard-link",
      "slot": "homepage-dashboard-slot",
      "meta": {
        "name": "registration",
        "slot": "registration-dashboard-slot",
        "title": "Registration"
      }
    },
    {
      "component": "registrationDashboard",
      "name": "registration-dashboard",
      "slot": "registration-dashboard-slot"
    },
    {
      "component": "triageLeftPanelLink",
      "name": "triage-dashboard-link",
      "slot": "homepage-dashboard-slot",
      "meta": {
        "name": "triage",
        "slot": "triage-dashboard-slot",
        "title": "Triage"
      }
    },
    {
      "component": "triageDashboard",
      "name": "triage-dashboard",
      "slot": "triage-dashboard-slot"
    },
    {
      "name": "custom-visit-form-queue-fields",
      "component": "checkinFormExtraExtension",
      "slot":"visit-form-bottom-slot",
      "order": 0
    },
    {
      "component": "reportsDashboardLink",
      "name": "reports-homepage-dashboard-link",
      "slot": "homepage-dashboard-slot",
      "meta": {
        "name": "reports",
        "slot": "reports-homepage-dashboard-slot",
        "title": "Reports"
      }
    },
    {
      "component": "reportsDashboard",
      "name": "reports-dashboard",
      "slot": "reports-homepage-dashboard-slot"
    },
    {
      "name": "pharmacy-homepage-dashboard-link",
      "component": "pharmacyLink",
      "slot": "homepage-dashboard-slot",
      "meta": {
        "name": "pharmacy",
        "title": "Pharmacy",
        "path": "pharmacy",
        "slot": "pharmacy-homepage-dashboard-slot"
      }
    },
    {
      "name": "pharmacy-homepage-dashboard",
      "component": "pharmacy",
      "slot": "pharmacy-homepage-dashboard-slot",
      "online": true,
      "offline": false
    },
    {
      "name": "ewf-pharmacy-orders-dashboard",
      "component": "pharmacyOrders",
      "slot": "ewf-orders-slot",
      "online": true,
      "offline": false
    },
    {
      "name": "patient-summary-dashboard",
      "component": "patientSummaryDashboard",
      "slot": "patient-chart-summary-dashboard-slot"
    },
    {
      "name": "ewf-clinical-encounter-link",
      "component": "clinicalEncounterLink",
      "slot": "patient-chart-dashboard-slot",
      "meta": {
        "name": "ewf-clinical-encounter",
        "title": "Clinical Encounter",
        "slot": "ewf-patient-chart-clinical-encounter-slot",
        "path": "clinical-encounter",
        "layoutMode": "anchored",
        "hideDashboardTitle": true
      }
    },
    {
      "name": "ewf-clinical-encounter-dashboard",
      "component": "clinicalEncounter",
      "slot": "ewf-patient-chart-clinical-encounter-slot",
      "online": true,
      "offline": false
    },
     {
      "name": "ewf-laboratory-dashboard-link",
      "component": "laboratoryLeftPanelLink",
      "slot": "patient-chart-dashboard-slot",
      "meta": {
        "name": "ewf-laboratory",
        "title": "Lab Orders",
        "path": "laboratory",
        "slot": "ewf-patient-chart-laboratory-dashboard-slot",
        "layoutMode": "anchored",
        "hideDashboardTitle": true
      }
    },
    {
      "name": "ewf-laboratory-dashboard",
      "component": "laboratoryDashboard",
      "slot": "ewf-patient-chart-laboratory-dashboard-slot",
      "online": true,
      "offline": false
    },
    {
      "name": "ewf-radiology-and-imaging-dashboard-link",
      "component": "radiologyAndImagingLeftPanelLink",
      "slot": "patient-chart-dashboard-slot",
      "meta": {
        "name": "ewf-radiology-and-imaging",
        "title": "Radiology and Imaging",
        "path": "radiology-and-imaging",
        "slot": "ewf-patient-chart-radiology-and-imaging-dashboard-slot",
        "layoutMode": "anchored",
        "hideDashboardTitle": true
      }
    },
    {
      "name": "ewf-radiology-and-imaging-dashboard",
      "component": "radiologyAndImagingDashboard",
      "slot": "ewf-patient-chart-radiology-and-imaging-dashboard-slot",
      "online": true,
      "offline": false
    },
    {
      "name": "ewf-procedures-dashboard-link",
      "component": "proceduresLeftPanelLink",
      "slot": "patient-chart-dashboard-slot",
      "meta": {
        "name": "ewf-procedures",
        "title": "Procedures",
        "path": "procedures",
        "slot": "ewf-patient-chart-procedures-dashboard-slot",
        "layoutMode": "anchored",
        "hideDashboardTitle": true
      }
    },
    {
      "name": "ewf-procedures-dashboard",
      "component": "proceduresDashboard",
      "slot": "ewf-patient-chart-procedures-dashboard-slot",
      "online": true,
      "offline": false
    },
    {
      "name": "ewf-pharmacy-dashboard-link",
      "component": "pharmacyPatientChartDashboardLink",
      "slot": "patient-chart-dashboard-slot",
      "meta": {
        "name": "ewf-pharmacy",
        "title": "Prescription",
        "path": "pharmacy",
        "slot": "ewf-patient-chart-pharmacy-dashboard-slot",
        "layoutMode": "anchored",
        "hideDashboardTitle": true
      }
    },

        {
      "name": "ewf-pharmacy-dashboard",
      "component": "pharmacyTabs",
      "slot": "ewf-patient-chart-pharmacy-dashboard-slot",
      "online": true,
      "offline": false
    },
    {"name": "ewf-admissions-dashboard-link",
      "component": "admissionsDashboardLink",
      "slot": "patient-chart-dashboard-slot",
      "meta": {
        "name": "ewf-admissions",
        "title": "In-patient",
        "path": "admissions",
        "slot": "ewf-patient-chart-admissions-dashboard-slot",
        "layoutMode": "anchored",
        "hideDashboardTitle": true
      }
    },
    {
      "name": "ewf-admissions-dashboard",
      "component": "admissionsDashboard",
      "slot": "ewf-patient-chart-admissions-dashboard-slot",
      "online": true,
      "offline": false
    },
    {
      "name": "ewf-homepage-dashboard-link",
      "component": "homepageDashboardLink",
      "slot": "patient-chart-dashboard-slot",
      "order": 0
    },
    {
      "name": "ewf-encounter-details-dashboard",
      "component": "encounterDetails",
      "slot": "ewf-clinical-encounter-slot",
      "online": true,
      "offline": false
    }
  ],

  "workspaces": [
    {
      "name": "express-workflow-workspace",
      "component": "expressWorkflowWorkspace",
      "title": "Express Workflow Workspace",
      "type": "workspace",
      "canMaximize": true,
      "canHide": true
    }
  ],
  "modals": [
    {
      "component": "otpVerificationModal",
      "name": "otp-verification-modal"
    }, {
      "component": "facilityDashboardAuthorizationModal",
      "name": "facility-dashboard-authorization-form-modal"
    }
  ],
  "workspaceGroups": [
    {
      "name": "express-workflow",
      "members": [
        "add-drug-order",
        "order-basket",
        "add-lab-order",
        "express-workflow-workspace",
        "start-visit-workspace-form"
      ]
    }
  ]
}
