{
  "pathway": {
    "code": "diabetes",
    "name": "Diabetes",
    "description": "Diabetes mellitus clinical pathway for structured review assessments.",
    "match_rules": {
      "icd_prefixes": ["E10", "E11", "E12", "E13", "E14"],
      "keywords": [
        "diabetes",
        "diabetic",
        "type 1 diabetes",
        "type 2 diabetes",
        "dm",
        "iddm",
        "niddm",
        "hyperglycaemia",
        "hyperglycemia"
      ],
      "exclude_keywords": ["family history", "gestational diabetes risk"]
    },
    "is_active": true,
    "sort_order": 20,
    "meta": {
      "specialty": "endocrinology",
      "color": "amber"
    }
  },
  "templates": [
    {
      "template_code": "diabetes_core",
      "is_required_on_activation": true,
      "phase": "any",
      "sort_order": 1
    }
  ]
}
