{
  "id": "med-wristband",
  "name": "Patient Wristband Label",
  "description": "Patient Wristband Label layout with mapped Patient Name, DOB, MRN, Ward fields, XLSX sample data, and print-ready sizing.",
  "category": "Healthcare",
  "thumbnail": "/templates/thumbnails/med-wristband.svg",
  "settings": {
    "width": 250,
    "height": 25,
    "unit": "mm",
    "dpi": 203,
    "name": "Patient Wristband Label",
    "type": "patient_wristband_label"
  },
  "elements": [
    {
      "id": "border",
      "type": "RECTANGLE",
      "x": 1,
      "y": 1,
      "width": 248,
      "height": 23,
      "fill": "#ffffff",
      "stroke": "#111827",
      "strokeWidth": 0.4,
      "borderRadius": 1
    },
    {
      "id": "title",
      "type": "TEXT",
      "x": 3,
      "y": 3,
      "width": 244,
      "height": 4.5,
      "content": "Patient Wristband Label",
      "fontSize": 5,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "main",
      "type": "TEXT",
      "x": 4,
      "y": 12,
      "width": 242,
      "height": 7,
      "content": "{{Patient Name}}",
      "fontSize": 6,
      "fontWeight": "bold",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "secondary",
      "type": "TEXT",
      "x": 4,
      "y": 22,
      "width": 242,
      "height": 5,
      "content": "{{DOB}} | {{MRN}}",
      "fontSize": 6,
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "barcode",
      "type": "BARCODE",
      "x": 4,
      "y": 28,
      "width": 242,
      "height": 6.25,
      "content": "{{Barcode}}",
      "barcodeFormat": "CODE128",
      "barcodeShowText": true
    },
    {
      "id": "mapped-details",
      "type": "TEXT",
      "x": 3,
      "y": 19,
      "width": 244,
      "height": 4,
      "content": "Ward: {{Ward}}",
      "fontSize": 4,
      "textFitMode": "shrink",
      "textAlign": "center",
      "color": "#374151"
    }
  ],
  "columns": [
    {
      "key": "patient_name",
      "label": "Patient Name",
      "required": true
    },
    {
      "key": "dob",
      "label": "DOB",
      "required": true
    },
    {
      "key": "mrn",
      "label": "MRN",
      "required": true
    },
    {
      "key": "ward",
      "label": "Ward",
      "required": false
    },
    {
      "key": "barcode",
      "label": "Barcode",
      "required": false
    }
  ],
  "files": {
    "xlsx": "/label-templates/med-wristband.xlsx",
    "json": "/templates/med-wristband.json",
    "svg": "/templates/thumbnails/med-wristband.svg"
  }
}