{
  "id": "med-rx",
  "name": "Prescription Label",
  "description": "Prescription Label layout with mapped Rx Number, Date, Patient Name, Medication fields, XLSX sample data, and print-ready sizing.",
  "category": "Healthcare",
  "thumbnail": "/templates/thumbnails/med-rx.svg",
  "settings": {
    "width": 76,
    "height": 50,
    "unit": "mm",
    "dpi": 203,
    "name": "Prescription Label",
    "type": "prescription_label"
  },
  "elements": [
    {
      "id": "border",
      "type": "RECTANGLE",
      "x": 1,
      "y": 1,
      "width": 74,
      "height": 48,
      "fill": "#ffffff",
      "stroke": "#111827",
      "strokeWidth": 0.4,
      "borderRadius": 1
    },
    {
      "id": "title",
      "type": "TEXT",
      "x": 3,
      "y": 3,
      "width": 70,
      "height": 8,
      "content": "Prescription Label",
      "fontSize": 8,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "main",
      "type": "TEXT",
      "x": 4,
      "y": 13,
      "width": 68,
      "height": 11,
      "content": "{{Rx Number}}",
      "fontSize": 9,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "secondary",
      "type": "TEXT",
      "x": 4,
      "y": 25,
      "width": 68,
      "height": 8,
      "content": "{{Date}}",
      "fontSize": 7,
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "detail",
      "type": "TEXT",
      "x": 4,
      "y": 38,
      "width": 68,
      "height": 6,
      "content": "{{Patient Name}}",
      "fontSize": 5,
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "mapped-details",
      "type": "TEXT",
      "x": 3,
      "y": 44,
      "width": 70,
      "height": 4,
      "content": "Medication: {{Medication}} | Strength: {{Strength}} | Qty: {{Qty}} | Refills: {{Refills}}",
      "fontSize": 4,
      "textFitMode": "shrink",
      "textAlign": "center",
      "color": "#374151"
    }
  ],
  "columns": [
    {
      "key": "rx_number",
      "label": "Rx Number",
      "required": true
    },
    {
      "key": "date",
      "label": "Date",
      "required": true
    },
    {
      "key": "patient_name",
      "label": "Patient Name",
      "required": true
    },
    {
      "key": "medication",
      "label": "Medication",
      "required": false
    },
    {
      "key": "strength",
      "label": "Strength",
      "required": false
    },
    {
      "key": "qty",
      "label": "Qty",
      "required": false
    },
    {
      "key": "refills",
      "label": "Refills",
      "required": false
    }
  ],
  "files": {
    "xlsx": "/label-templates/med-rx.xlsx",
    "json": "/templates/med-rx.json",
    "svg": "/templates/thumbnails/med-rx.svg"
  }
}