Shafi Consultancy

Back to Publications

Meta-data Driven Automation of TLF Programs

PhUSE SDE, Basel 2017 · By Rafi Rahi, Shafi Consultancy Limited

Outline
  • Introduction
  • Essential requirements for automation
  • How automation can be implemented
  • How automation can add benefit
  • Summary

Introduction

  • As programmers we are all really busy
    • Number of TLFs are increasing
    • Timelines are reducing
  • How can we reduce the burden on programming resource?
    • Reduce the number of outputs?
    • Increase resource?
  • We need to work SMARTER!
    • Define standards
    • Automate

Essential requirements for automation

  • Standards
    • Input: Data – SDTM/ADaM
    • Output: TLF – Standard table shells
    • Process: Standard macros for each TLF shell
  • Meta-data
    • Structured data used to map the flow of data: input → process → output

Current process

SAP
TECHNICAL SAP
TABLE SHELLS
SDTM DATA
ADaM DATA
SAS PROGRAMSWritten for each output
TABLES, LISTINGS & FIGURES

The SAP, technical SAP and table shells feed the ADaM data; SDTM and ADaM data and the table shells then feed the SAS programs, which produce the tables, listings and figures. The meta-data behind it is held in a spreadsheet:

Spreadsheet of TLF meta-data with columns for tlfnum, title, pgmloc, pgmname, outno, outloc and outname, listing entries such as 1.2.1.1 Demographic data - TS produced by demo.sas as output T1
The meta-data behind the current process: output number, title, program location and name, and output location and name.

How automation can be implemented

A list of TLFs drives the shells, and a standard SAS macro for each shell produces the programs:

LIST OF TLFsType, number and title of every output
TABLES, LISTINGS & FIGURES – SHELLS
SAS MACRO FOR EACH SHELL
AUTO-GENERATED TLF PROGRAMS

The list of TLFs is itself just meta-data:

The list of TLFs that drives the shells.
TypetlfnumTitle
Table1.1.1Patient analysis sets and reasons for exclusion – RS
Table1.2.1.1Demographic data – TS
Table1.2.1.2Demographic data – FAS
Table1.2.1.3Concomitant diagnoses by MedDRA SOC and preferred term – TS

Generating ADaM datasets in the same way

LIST OF ADaM DATASETS
SAS MACROS FOR TRANSFORMATIONS
ADaM DEFINITIONS
SAS PROGRAMS TO GENERATE ADaM DATASETS
The list of ADaM datasets, in the same shape as the list of TLFs.
TypetlfnumTitle
Dataset1.1.1ADSL
Dataset1.1.2ADAE
Dataset1.1.3ADCM
Dataset1.1.4ADLB

Excel is often used to capture TLF meta-data

Three Excel tables of TLF meta-data: the list of outputs by type, number and title; the program and output locations and names for each; and the shell name with its macro parameters such as pop=%STR(TRTFL='Y')
Meta-data captured in Excel: the outputs, where their programs and outputs live, and the parameters each shell macro is called with.

Store all the meta-data into a system

Screen of the meta-data system showing study name and selected table summary, counts by status for programs and outputs, and an expandable tree of numbered outputs
The same meta-data held in a system rather than a spreadsheet, with status tracked per output.

Auto-generated programs – follow GPP

An auto-generated SAS program: a standard header giving study, program name, programmer, description, user requirements, SAS version and revision history, then commented blocks calling the sh_dem1 macro for output T1 and T2, and an end of program marker
An auto-generated program: standard header, one commented macro call per output, end-of-program marker.

Search meta-data for historical tables

Search screen for historical tables, with filters for study, phase and output type, a list of matching tables across studies, and a preview window showing the selected output
Searching earlier studies for a table that has already been produced, with a preview of the output.

How automation can add benefit

  • The system is designed to enforce standards:
    • Standard TLF shells
    • Standard macros
    • SAS programs follow Good Programming Practices
    • SAS programs are easy to read for FDA reviewers
  • Automation will give programmers time to do more interesting programming and check to raise quality
  • Automation is NOT there to reduce the role of programmers or to reduce the size of programming groups

Summary

Summary diagram: Excel meta-data for TLFs and shells feeds a database, which drives displaying current summary status, displaying titles in an informative format, auto-generating and submitting programs, developing programs interactively in SAS, setting program status to validated with automatic change on code edits, and searching historical programs and output, all using company, therapeutic area and project standards
The whole picture: meta-data into a database, and everything the database then drives.
Read the original slides (PDF)

Download slidesOpen in a new tab14 slides

Your browser cannot display the slides here. Use the Download slides button above, or open them in a new tab.

Discuss your study with our team

Tell us about your study

A member of our management team will reply within one business day.