{
  "template": {
    "code": "outcome_core",
    "name": "Outcome measures",
    "category": "outcome",
    "version": 1,
    "is_current": true,
    "is_active": true,
    "scoring_strategy": null,
    "description": "Generic longitudinal outcome tracking across conditions. Prefer typed vitals for weight/BP.",
    "meta": {
      "capture_roles": ["doctor", "nurse"],
      "specialty": "general",
      "estimated_minutes": 5,
      "attribution": "Ladill Care generic outcome measures (platform-authored)."
    }
  },
  "questions": [
    {
      "code": "quality_of_life",
      "section": "Patient-reported",
      "label": "Quality of life (0–10)",
      "help_text": "0 = worst imaginable, 10 = best imaginable.",
      "answer_type": "scale",
      "is_required": false,
      "sort_order": 10,
      "options": { "min": 0, "max": 10 },
      "validation": { "min": 0, "max": 10 }
    },
    {
      "code": "pain_score",
      "section": "Patient-reported",
      "label": "Pain score (0–10)",
      "answer_type": "scale",
      "is_required": false,
      "sort_order": 20,
      "options": { "min": 0, "max": 10 },
      "validation": { "min": 0, "max": 10 }
    },
    {
      "code": "functional_independence",
      "section": "Function",
      "label": "Functional independence",
      "answer_type": "single_choice",
      "is_required": false,
      "sort_order": 30,
      "options": {
        "choices": [
          { "code": "independent", "label": "Independent" },
          { "code": "minimal_help", "label": "Minimal help" },
          { "code": "moderate_help", "label": "Moderate help" },
          { "code": "dependent", "label": "Dependent" }
        ]
      }
    },
    {
      "code": "medication_adherence",
      "section": "Treatment",
      "label": "Medication adherence",
      "answer_type": "single_choice",
      "is_required": false,
      "sort_order": 40,
      "options": {
        "choices": [
          { "code": "good", "label": "Good (≥80%)" },
          { "code": "fair", "label": "Fair" },
          { "code": "poor", "label": "Poor" },
          { "code": "unknown", "label": "Unknown" }
        ]
      }
    },
    {
      "code": "hospital_admissions_since_last",
      "section": "Events",
      "label": "Hospital admissions since last review",
      "answer_type": "integer",
      "is_required": false,
      "sort_order": 50,
      "options": { "min": 0, "max": 50 },
      "validation": { "min": 0, "max": 50 }
    },
    {
      "code": "falls_count",
      "section": "Events",
      "label": "Falls since last review",
      "answer_type": "integer",
      "is_required": false,
      "sort_order": 60,
      "options": { "min": 0, "max": 100 },
      "validation": { "min": 0, "max": 100 }
    },
    {
      "code": "readmissions_flag",
      "section": "Events",
      "label": "Unplanned readmission since last review?",
      "answer_type": "boolean",
      "is_required": false,
      "sort_order": 70
    },
    {
      "code": "patient_satisfaction",
      "section": "Patient-reported",
      "label": "Patient satisfaction (0–10)",
      "answer_type": "scale",
      "is_required": false,
      "sort_order": 80,
      "options": { "min": 0, "max": 10 },
      "validation": { "min": 0, "max": 10 }
    },
    {
      "code": "notes",
      "section": "Notes",
      "label": "Notes",
      "answer_type": "textarea",
      "is_required": false,
      "sort_order": 90,
      "validation": { "max": 3000 }
    }
  ]
}
