Macro Nameqc_specheads
Macro TitleSpecification Table Headings Report
DescriptionPulls 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
  1. Retrieve the descendants of the designated page
  2. On each page, if it has a table, pull the heading row
    1. If there is a second table detected on the page, trigger the "extra table" error message.
    2. 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.
    3. Otherwise, create a new entry in the headings:pages hashMap associating the heading with the current page.
  3. Compile the headings and their pages into a consolidated report according to the "Output style" parameter:
    1. 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.
    2. 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.
    3. 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. 
  4. If the "QC" parameter is checked, identify and highlight any non-breaking spaces (HTML entity  ) and other non-ASCII characters.
    1. If there are any characters so highlighted, trigger the "non-ASCII" error message.
  5. 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.
  6. 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:ADaM variables: 1 structure detected across 44 tables.

REFERENDS Reference Variables, OCCDS Identifier Variables, OCCDS Row Identifier Variables, OCCDS MedDRA Dictionary Coding Variables, OCCDS Other Categorization Variables, OCCDS WHO Drug Dictionary Coding Variables, OCCDS Timing Variables, OCCDS Adverse Events and Concomitant Medications Indicator Variables, OCCDS Concomitant Medications Indicator Variables, OCCDS SDTM Indicator Variables, OCCDS Adverse Events Indicator Variables, OCCDS Indicator Variables, OCCDS Occurrence Flag Variables, OCCDS MedDRA Occurrence Flag Variables, OCCDS Product/Dose Variables, OCCDS Standardized MedDRA Query Variables, OCCDS Original or Prior WHO Drug Coding Variables, OCCDS Original or Prior MedDRA Coding Variables, OCCDS Concomitant Medications Descriptive Variables, OCCDS Adverse Event Descriptive Variables, BDS Suffixes for User-Defined Timing Variables, BDS Record-Level Product Variables, BDS Identifier Variables, BDS Analysis Parameter Variables, BDS Time-to-Event Variables, BDS Record-Level Dose Variables, BDS Analysis Visit Windowing Variables, BDS Population Indicators, BDS Analysis Descriptor Variables, BDS Datapoint Traceability Variables, BDS Timing Variables, BDS Toxicity and Range Variables, BDS Period, Subperiod, and Phase Start and End Timing Variables, BDS Flag Variables, BDS Analysis Parameter Criteria Variables, ADSL Population Indicator Variables, ADSL Stratification Variables, ADSL Period, Subperiod, and Phase Timing Variables, ADSL Product Variables, ADSL Dose Variables, ADSL Subject Demographics Variables, ADSL Identifier Variables, ADSL Product Timing Variables, ADSL Trial Experience VariablesVariable NameVariable LabelTypeCodelist/ Controlled TermsCoreCDISC Notes

  • No labels