{
  "template": {
    "code": "ckd_core",
    "name": "CKD assessment",
    "category": "disease",
    "version": 1,
    "is_current": true,
    "is_active": true,
    "scoring_strategy": null,
    "description": "CKD stage, creatinine, eGFR, proteinuria, anaemia flags.",
    "meta": {
      "capture_roles": [
        "doctor",
        "nurse"
      ],
      "specialty": "nephrology",
      "estimated_minutes": 8,
      "pathway_codes": [
        "ckd"
      ],
      "attribution": "Ladill Care CKD assessment content pack (platform-authored clinical checklist)."
    }
  },
  "questions": [
    {
      "code": "ckd_stage",
      "section": "Staging",
      "label": "CKD stage",
      "answer_type": "single_choice",
      "is_required": true,
      "sort_order": 10,
      "options": {
        "choices": [
          {
            "code": "1",
            "label": "Stage 1"
          },
          {
            "code": "2",
            "label": "Stage 2"
          },
          {
            "code": "3a",
            "label": "Stage 3a"
          },
          {
            "code": "3b",
            "label": "Stage 3b"
          },
          {
            "code": "4",
            "label": "Stage 4"
          },
          {
            "code": "5",
            "label": "Stage 5"
          }
        ]
      }
    },
    {
      "code": "creatinine",
      "section": "Labs",
      "label": "Creatinine (\u00b5mol/L)",
      "answer_type": "number",
      "is_required": false,
      "sort_order": 20,
      "options": {
        "min": 20,
        "max": 2000,
        "unit": "\u00b5mol/L"
      },
      "validation": {
        "min": 20,
        "max": 2000
      }
    },
    {
      "code": "egfr",
      "section": "Labs",
      "label": "eGFR (mL/min/1.73m\u00b2)",
      "answer_type": "number",
      "is_required": false,
      "sort_order": 30,
      "options": {
        "min": 1,
        "max": 150,
        "unit": "mL/min"
      },
      "validation": {
        "min": 1,
        "max": 150
      }
    },
    {
      "code": "proteinuria",
      "section": "Labs",
      "label": "Proteinuria / ACR",
      "answer_type": "single_choice",
      "is_required": false,
      "sort_order": 40,
      "options": {
        "choices": [
          {
            "code": "none",
            "label": "None/normal"
          },
          {
            "code": "micro",
            "label": "Microalbuminuria"
          },
          {
            "code": "macro",
            "label": "Overt proteinuria"
          },
          {
            "code": "unknown",
            "label": "Unknown"
          }
        ]
      }
    },
    {
      "code": "anaemia",
      "section": "Complications",
      "label": "Anaemia of CKD",
      "answer_type": "single_choice",
      "is_required": false,
      "sort_order": 50,
      "options": {
        "choices": [
          {
            "code": "no",
            "label": "No"
          },
          {
            "code": "yes",
            "label": "Yes"
          },
          {
            "code": "unknown",
            "label": "Unknown"
          }
        ]
      }
    },
    {
      "code": "dialysis",
      "section": "Treatment",
      "label": "Dialysis status",
      "answer_type": "single_choice",
      "is_required": false,
      "sort_order": 60,
      "options": {
        "choices": [
          {
            "code": "none",
            "label": "None"
          },
          {
            "code": "hd",
            "label": "Haemodialysis"
          },
          {
            "code": "pd",
            "label": "Peritoneal dialysis"
          },
          {
            "code": "transplant",
            "label": "Transplant"
          }
        ]
      }
    },
    {
      "code": "notes",
      "section": "Notes",
      "label": "Notes",
      "answer_type": "textarea",
      "is_required": false,
      "sort_order": 100,
      "validation": {
        "max": 5000
      }
    }
  ]
}
