root = Card([header, bedChart, erWaitCallout, admissionsChart, deptChart, staffList, criticalCallout, dischargeList, orTable, suppliesList, fileIncidentBtn, calendar, transferBtn])
header = CardHeader("Hospital Ops Command View", null)
bedLabels = ["ICU","General","Surgery"]
bedSeries = Series("Occupied", [80,120,45])
bedChart = BarChart(bedLabels, bedSeries, "grouped", "Bed Type", "Occupancy")
erWaitCallout = Callout("info", "ER Wait", "15 min")
admissionsLabels = ["Day1","Day2","Day3","Day4","Day5","Day6","Day7","Day8","Day9","Day10","Day11","Day12","Day13","Day14"]
admissionsSeries = Series("Admissions", [10,12,9,15,14,18,20,22,19,21,23,25,24,26])
admissionsChart = LineChart(admissionsLabels, admissionsSeries, "linear", "Day", "Admissions")
deptLabels = ["Cardiology","Neurology","Orthopedics","Dermatology","Radiology"]
deptSeries = Series("Patients", [30,45,20,15,10])
deptChart = HorizontalBarChart(deptLabels, deptSeries, "grouped", "Department", "Patients")
staffList = ListBlock([ListItem("Dr. Smith", "Physician"), ListItem("Nurse Jones", "Nurse"), ListItem("Tech Lee", "Technician")])
criticalCallout = Callout("warning", "Critical Patients", "3 patients need immediate attention")
dischargeList = ListBlock([ListItem("Patient A", "Ready"), ListItem("Patient B", "Ready")])
col1 = Col("OR", ["OR1","OR2","OR3"], "string")
col2 = Col("Procedure", ["Surgery A","Surgery B","Surgery C"], "string")
col3 = Col("Time", ["08:00","10:30","14:00"], "string")
orTable = Table(columns: [col1, col2, col3])
suppliesList = ListBlock([ListItem("Masks", "Low"), ListItem("Gloves", "Low")])
fileIncidentBtn = Button("File Incident")
calendar = CalendarBlock("single", "January 2025", 1, "label")
transferBtn = Button("Request Transfer")