{
  "id": "RE_CDISCPILOT01_T5_WK24",
  "name": "CDISC Pilot - ADAS-Cog (11) Change from Baseline to Week 24 - LOCF (SAP Template 5)",
  "label": "SAP Template 5, Week 24",
  "version": "1",
  "description": "Reporting event for one display: SAP section 13.2 Template 5 run for Week 24. Source: SAP 1.2, 6, 7, 8.1, 10.1.1, 13.2 (p.23); ADaM define.xml dataset ADQSADAS.",
  "referenceDocuments": [
    {"id": "RD_SAP", "name": "Statistical Analysis Plan (CDISC pilot)", "description": "Sections 1.2, 6, 7, 8.1, 10.1.1 (p.8, p.13) and 13.2 Template 5 (p.23)."},
    {"id": "RD_DEFINE", "name": "ADaM define.xml (adam_define.xml)", "description": "Source of all dataset and variable bindings (ADQSADAS)."}
  ],
  "analysisSets": [
    {
      "id": "AS_EFF", "name": "Efficacy Population", "label": "Efficacy", "level": 1, "order": 1,
      "description": "SAP 6: all patients randomized and took drug, with at least 1 post-baseline measure for both ADAS-Cog and CIBIC+. Bound to the ADQSADAS flag EFFFL = Y (assumed to implement this definition).",
      "condition": {"dataset": "ADQSADAS", "variable": "EFFFL", "comparator": "EQ", "value": ["Y"]}
    }
  ],
  "dataSubsets": [
    {
      "id": "DS_ACTOT_WK24", "name": "ADAS-Cog (11) total, Week 24", "label": "ACTOT, Week 24", "level": 1, "order": 1,
      "description": "ADAS-Cog (11) total score records at the Week 24 analysis visit. The AVISIT value 'Week 24' is an assumption (taken from the template wording); the define.xml extract does not list AVISIT values.",
      "compoundExpression": {
        "logicalOperator": "AND",
        "whereClauses": [
          {"level": 1, "order": 1, "condition": {"dataset": "ADQSADAS", "variable": "PARAMCD", "comparator": "EQ", "value": ["ACTOT"]}},
          {"level": 1, "order": 2, "condition": {"dataset": "ADQSADAS", "variable": "AVISIT", "comparator": "EQ", "value": ["Week 24"]}}
        ]
      }
    }
  ],
  "analysisGroupings": [
    {
      "id": "GF_TRT", "name": "Planned Treatment", "label": "Treatment group", "dataDriven": false,
      "description": "Three treatment groups in template column order (SAP 1.2, Template 5). Bound to TRTP.",
      "groupingDataset": "ADQSADAS", "groupingVariable": "TRTP",
      "groups": [
        {"id": "GRP_PBO", "name": "Placebo", "level": 1, "order": 1, "condition": {"dataset": "ADQSADAS", "variable": "TRTP", "comparator": "EQ", "value": ["Placebo"]}},
        {"id": "GRP_XLOW", "name": "Xanomeline Low Dose", "level": 1, "order": 2, "condition": {"dataset": "ADQSADAS", "variable": "TRTP", "comparator": "EQ", "value": ["Xanomeline Low Dose"]}},
        {"id": "GRP_XHIGH", "name": "Xanomeline High Dose", "level": 1, "order": 3, "condition": {"dataset": "ADQSADAS", "variable": "TRTP", "comparator": "EQ", "value": ["Xanomeline High Dose"]}}
      ]
    }
  ],
  "methods": [
    {
      "id": "MTH_SUMMARY", "name": "Summary statistics for a continuous variable",
      "description": "SAP 7: number of observations, mean, standard deviation, median, minimum, maximum. Template shows N; Mean (SD); Median (Range).",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "operations": [
        {"id": "OP_N", "order": 1, "name": "n", "label": "N", "resultPattern": "XXX"},
        {"id": "OP_MEAN", "order": 2, "name": "Mean", "label": "Mean", "resultPattern": "XX.X"},
        {"id": "OP_SD", "order": 3, "name": "Standard deviation", "label": "SD", "resultPattern": "XX.XX"},
        {"id": "OP_MEDIAN", "order": 4, "name": "Median", "label": "Median", "resultPattern": "XX.X"},
        {"id": "OP_MIN", "order": 5, "name": "Minimum", "label": "Min", "resultPattern": "XX"},
        {"id": "OP_MAX", "order": 6, "name": "Maximum", "label": "Max", "resultPattern": "XXX"}
      ]
    },
    {
      "id": "MTH_ANCOVA_DR", "name": "ANCOVA dose-response test",
      "description": "SAP 10.1.1 and Template 5 footnote [1][2]: ANCOVA with baseline score, site and treatment as independent variables; treatment entered as a continuous variable (dose); test for a non-zero treatment coefficient. Two-sided, alpha 0.05. No interaction terms.",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "operations": [
        {"id": "OP_DR_P", "order": 1, "name": "P-value (dose response)", "label": "P-value(Dose Response)", "resultPattern": "X.XXX"}
      ]
    },
    {
      "id": "MTH_ANCOVA_PW", "name": "ANCOVA pairwise comparison of LS means",
      "description": "SAP 10.1.1 and Template 5 footnote [1][3]: ANCOVA with treatment (categorical), site and baseline ADAS-Cog (11) covariate; pairwise difference of LS means, p-values NOT adjusted for multiple comparisons. Two-sided, alpha 0.05. Performed per SAP only if the dose-response test is significant (gating not encoded in ARS; see list below).",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "operations": [
        {"id": "OP_PW_P", "order": 1, "name": "P-value (pairwise)", "label": "P-value", "resultPattern": "X.XXX"},
        {"id": "OP_PW_DIFF", "order": 2, "name": "Difference of LS means", "label": "Diff. of LS Means", "resultPattern": "XX.X"},
        {"id": "OP_PW_SE", "order": 3, "name": "Standard error of difference", "label": "SE", "resultPattern": "X.XX"},
        {"id": "OP_PW_LCL", "order": 4, "name": "95% CI lower limit", "label": "95% CI lower", "resultPattern": "XX.XX"},
        {"id": "OP_PW_UCL", "order": 5, "name": "95% CI upper limit", "label": "95% CI upper", "resultPattern": "XX.XX"}
      ]
    }
  ],
  "analyses": [
    {
      "id": "AN_BASE", "name": "ADAS-Cog (11) baseline summary", "dataset": "ADQSADAS", "variable": "BASE",
      "analysisSetId": "AS_EFF", "dataSubsetId": "DS_ACTOT_WK24", "methodId": "MTH_SUMMARY",
      "purpose": {"controlledTerm": "PRIMARY OUTCOME MEASURE"}, "reason": {"controlledTerm": "SPECIFIED IN SAP"},
      "description": "Template 5 'Baseline' rows. Purpose value is an assumption (display supports the primary analysis; SAP does not label summaries separately).",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "orderedGroupings": [{"order": 1, "groupingId": "GF_TRT", "resultsByGroup": true}]
    },
    {
      "id": "AN_WK24", "name": "ADAS-Cog (11) Week 24 summary (LOCF)", "dataset": "ADQSADAS", "variable": "AVAL",
      "analysisSetId": "AS_EFF", "dataSubsetId": "DS_ACTOT_WK24", "methodId": "MTH_SUMMARY",
      "purpose": {"controlledTerm": "PRIMARY OUTCOME MEASURE"}, "reason": {"controlledTerm": "SPECIFIED IN SAP"},
      "description": "Template 5 'Week xx' rows. Missing Week 24 values imputed by LOCF (SAP 8.1, 10.1.1); how LOCF records are selected in ADQSADAS is not stated (see list below).",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "orderedGroupings": [{"order": 1, "groupingId": "GF_TRT", "resultsByGroup": true}]
    },
    {
      "id": "AN_CHG", "name": "ADAS-Cog (11) change from baseline to Week 24 summary (LOCF)", "dataset": "ADQSADAS", "variable": "CHG",
      "analysisSetId": "AS_EFF", "dataSubsetId": "DS_ACTOT_WK24", "methodId": "MTH_SUMMARY",
      "purpose": {"controlledTerm": "PRIMARY OUTCOME MEASURE"}, "reason": {"controlledTerm": "SPECIFIED IN SAP"},
      "description": "Template 5 'Change from Baseline' rows.",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "orderedGroupings": [{"order": 1, "groupingId": "GF_TRT", "resultsByGroup": true}]
    },
    {
      "id": "AN_DR", "name": "ADAS-Cog (11) Week 24 ANCOVA dose-response test", "dataset": "ADQSADAS", "variable": "CHG",
      "analysisSetId": "AS_EFF", "dataSubsetId": "DS_ACTOT_WK24", "methodId": "MTH_ANCOVA_DR",
      "purpose": {"controlledTerm": "PRIMARY OUTCOME MEASURE"}, "reason": {"controlledTerm": "SPECIFIED IN SAP"},
      "description": "Response CHG (assumed). Covariates: BASE (baseline), SITEID (site), TRTPN (dose, continuous; TRTPN 0/54/81 assumed to be the dose scale). SAP 10.1.1.",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}]
    },
    {
      "id": "AN_PW_XLOW_PBO", "name": "Pairwise: Xanomeline Low Dose - Placebo", "dataset": "ADQSADAS", "variable": "CHG",
      "analysisSetId": "AS_EFF", "dataSubsetId": "DS_ACTOT_WK24", "methodId": "MTH_ANCOVA_PW",
      "purpose": {"controlledTerm": "PRIMARY OUTCOME MEASURE"}, "reason": {"controlledTerm": "SPECIFIED IN SAP"},
      "description": "Contrast: GRP_XLOW minus GRP_PBO. Covariates BASE, SITEID; treatment TRTP as categorical. The contrast is carried in name/description only; the schema extract has no structured field for it.",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "orderedGroupings": [{"order": 1, "groupingId": "GF_TRT", "resultsByGroup": false}]
    },
    {
      "id": "AN_PW_XHIGH_PBO", "name": "Pairwise: Xanomeline High Dose - Placebo", "dataset": "ADQSADAS", "variable": "CHG",
      "analysisSetId": "AS_EFF", "dataSubsetId": "DS_ACTOT_WK24", "methodId": "MTH_ANCOVA_PW",
      "purpose": {"controlledTerm": "PRIMARY OUTCOME MEASURE"}, "reason": {"controlledTerm": "SPECIFIED IN SAP"},
      "description": "Contrast: GRP_XHIGH minus GRP_PBO. Covariates BASE, SITEID; treatment TRTP as categorical.",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "orderedGroupings": [{"order": 1, "groupingId": "GF_TRT", "resultsByGroup": false}]
    },
    {
      "id": "AN_PW_XHIGH_XLOW", "name": "Pairwise: Xanomeline High Dose - Xanomeline Low Dose", "dataset": "ADQSADAS", "variable": "CHG",
      "analysisSetId": "AS_EFF", "dataSubsetId": "DS_ACTOT_WK24", "methodId": "MTH_ANCOVA_PW",
      "purpose": {"controlledTerm": "PRIMARY OUTCOME MEASURE"}, "reason": {"controlledTerm": "SPECIFIED IN SAP"},
      "description": "Contrast: GRP_XHIGH minus GRP_XLOW. Covariates BASE, SITEID; treatment TRTP as categorical.",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "orderedGroupings": [{"order": 1, "groupingId": "GF_TRT", "resultsByGroup": false}]
    }
  ],
  "outputs": [
    {
      "id": "OUT_T5_WK24", "name": "ADAS Cog (11) - Change from Baseline to Week 24 - LOCF",
      "description": "SAP Template 5 (p.23) for Week 24, Efficacy population.",
      "documentRefs": [{"referenceDocumentId": "RD_SAP"}],
      "displays": [
        {
          "order": 1,
          "display": {
            "id": "DISP_T5_WK24", "name": "Table: ADAS Cog (11) CFB Week 24 LOCF",
            "displayTitle": "ADAS Cog (11) - Change from Baseline to Week 24 - LOCF",
            "displaySections": [
              {
                "sectionType": "Title",
                "orderedSubSections": [
                  {"order": 1, "subSection": {"id": "SS_TITLE", "text": "ADAS Cog (11) - Change from Baseline to Week 24 - LOCF"}},
                  {"order": 2, "subSection": {"id": "SS_POP", "text": "Population: Efficacy"}}
                ]
              },
              {
                "sectionType": "Footnote",
                "orderedSubSections": [
                  {"order": 1, "subSection": {"id": "SS_FN1", "text": "[1] Based on Analysis of covariance (ANCOVA) model with treatment and site as factors, and baseline ADAS Cog (11) value as a covariate."}},
                  {"order": 2, "subSection": {"id": "SS_FN2", "text": "[2] Test for a non-zero coefficient for treatment (dose) as a continuous variable."}},
                  {"order": 3, "subSection": {"id": "SS_FN3", "text": "[3] Pairwise comparison with treatment as a categorical variable: p-values without adjustment for multiple comparisons."}}
                ]
              }
            ]
          }
        }
      ]
    }
  ],
  "mainListOfContents": {
    "name": "Table of analyses",
    "contentsList": {
      "listItems": [
        {
          "name": "ADAS Cog (11) - Change from Baseline to Week 24 - LOCF", "level": 1, "order": 1, "outputId": "OUT_T5_WK24",
          "sublist": {
            "listItems": [
              {"name": "Baseline summary", "level": 2, "order": 1, "analysisId": "AN_BASE"},
              {"name": "Week 24 summary", "level": 2, "order": 2, "analysisId": "AN_WK24"},
              {"name": "Change from baseline summary", "level": 2, "order": 3, "analysisId": "AN_CHG"},
              {"name": "Dose response", "level": 2, "order": 4, "analysisId": "AN_DR"},
              {"name": "Xanomeline Low Dose - Placebo", "level": 2, "order": 5, "analysisId": "AN_PW_XLOW_PBO"},
              {"name": "Xanomeline High Dose - Placebo", "level": 2, "order": 6, "analysisId": "AN_PW_XHIGH_PBO"},
              {"name": "Xanomeline High Dose - Xanomeline Low Dose", "level": 2, "order": 7, "analysisId": "AN_PW_XHIGH_XLOW"}
            ]
          }
        }
      ]
    }
  }
}
