{
  "params": {
    "back": {
      "type": "range",
      "min": 0,
      "max": 60,
      "step": 5,
      "default": 35,
      "label": "Backrest",
      "describe": "Backrest angle in degrees: 0 lies flat, 30 to 45 is the usual sitting-up position, 60 fully upright. The head rails move with it."
    },
    "rails": {
      "type": "toggle",
      "default": true,
      "label": "Rails up",
      "describe": "Side rails raised (patient in bed) or lowered beside the mattress (for transfers). They are rigged parts that slide."
    },
    "monitor": {
      "type": "toggle",
      "default": true,
      "label": "Monitor",
      "describe": "A patient monitor with heart-rate and oxygen waveforms on a rolling stand beside the head of the bed. Its screen glows at night."
    },
    "iv": {
      "type": "toggle",
      "default": true,
      "label": "IV pole",
      "describe": "An IV drip pole at the head corner with a fluid bag and a line down to the bed."
    },
    "blanket": {
      "type": "choice",
      "options": [
        "blue",
        "green",
        "white",
        "peach",
        "lilac"
      ],
      "default": "blue",
      "label": "Blanket",
      "describe": "Blanket colour: blue, green (mint), white, peach or lilac. The bed frame stays clinical white and grey."
    }
  },
  "presets": {
    "icu bay": {
      "back": 30,
      "rails": true,
      "monitor": true,
      "iv": true,
      "blanket": "white"
    },
    "empty ward bed": {
      "back": 0,
      "rails": false,
      "monitor": false,
      "iv": false,
      "blanket": "green"
    },
    "recovery room": {
      "back": 50,
      "rails": true,
      "monitor": true,
      "iv": false,
      "blanket": "peach"
    }
  },
  "night": {
    "screen": {
      "zone": "screen",
      "color": "#9fe3c0",
      "intensity": 1.2,
      "describe": "Patient monitor and the bed control panel glow."
    }
  }
}