SELECT DISTINCT
Rule["Core"]["Id"] ?? null as "CORE-ID",
udf.TO_STRING(ARRAY(SELECT DISTINCT VALUE Reference["Rule_Identifier"]["Id"] FROM Authority IN Rule["Authorities"] JOIN Standard IN Authority["Standards"] JOIN Reference IN Standard["References"])) as "CDISC Rule ID",
Rule["Outcome"]["Message"] ?? null as "Error Message",
Rule["Description"] ?? null as "Description",
udf.TO_STRING(ARRAY(SELECT DISTINCT VALUE Authority["Organization"] FROM Authority IN Rule["Authorities"])) as "Organization",
udf.TO_STRING(ARRAY(SELECT DISTINCT VALUE Standard["Name"] FROM Authority IN Rule["Authorities"] JOIN Standard IN Authority["Standards"])) as "Standard Name",
udf.TO_STRING(ARRAY(SELECT DISTINCT VALUE Standard["Version"] FROM Authority IN Rule["Authorities"] JOIN Standard IN Authority["Standards"])) as "Standard Version",
Rule["Executability"] ?? null as "Executability",
Rule["Core"]["Status"] ?? null as "Status"
FROM Rules["json"] as Rule
ORDER BY Rule["Core"]["Id"] ASC
Ensure all pages of records are retrieved
Add quotes to cells to avoid issues when cells begin with "="
AC: Export button