Macro Name | qc_specheads |
---|
Macro Title | Specification Table Headings Report |
---|
Description | Pulls the heading row from the children of a specified page and reports them for comparison against each other. |
---|
Macro parameters | - Page (page): The page whose children you want to check.
- Output style (output): How to display the heading row(s) of the tables.
- QC (qc): Whether to highlight non-breaking spaces and other non-ASCII characters
|
---|
Logic | - Retrieve the descendants of the designated page
- On each page, if it has a table, pull the heading row
- If there is a second table detected on the page, trigger the "extra table" error message.
- If, after scrubbing, the heading row matches one that has already been pulled, add the current page to the list of pages associated with that heading.
- Otherwise, create a new entry in the headings:pages hashMap associating the heading with the current page.
- Compile the headings and their pages into a consolidated report according to the "Output style" parameter:
- If the output style is "Simple", each heading row is displayed as a table row, preceded by the list of the pages on which it appears.
- If the output style is "Markup", each heading row is displayed as HTML markup, preceded by the list of the pages on which it appears.
- If the output style is "Unified", all heading rows are combined into a single table, and the list of the pages on which each heading row appears is given in an additional first column of the unified table.
- If the "QC" parameter is checked, identify and highlight any non-breaking spaces (HTML entity ) and other non-ASCII characters.
- If there are any characters so highlighted, trigger the "non-ASCII" error message.
- Determine the number of pages containing tables, and the number of distinct heading rows found on those pages, and display them, along with any error messages.
- Print the consolidated report.
|
---|
Error messages | - extra table: Only the first table from each child page has been reported.
- non-ASCII: Non-breaking spaces and other non-ASCII characters have been highlighted below.
|
---|
Looking at the children of TATOBA:SDTM specifications: 1 structure detected across 41 tables.
SDTM TS specification, SDTM TE specification, SDTM TA specification, SDTM TI specification, SDTM TV specification, SDTM FA Specification, SDTM DU specification, SDTM QS specification, SDTM RE specification, SDTM DA specification, SDTM DO Specification, SDTM SC Specification, SDTM PC specification, SDTM EG specification, SDTM LB specification, SDTM IE specification, SDTM PP specification, SDTM PT specification, SDTM VS Specification, SDTM DV specification, SDTM MH Specification, SDTM EM specification, SDTM DS Specification, SDTM AE specification, SDTM CM specification, SDTM SU specification, SDTM EX specification, SDTM EC specification, SDTM RELREC specification, SDTM SUPPQUAL specification, SDTM CO specification, SDTM DM Specification, SDTM SV Specification, SDTM IT specification, SDTM IN specification, SDTM PD specification, SDTM IQ specification, SDTM SE Specification, SDTM ES specification, SDTM TO specification, SDTM DI specification | Variable Name | Variable Label | Type | Controlled Terms, Codelist, or Format | Role | CDISC Notes | Core |
---|