jing gao, sas r&d, beijing...jing gao, sas r&d, beijing. ... pyqt is a powerful tool with a...

23
Jing Gao, SAS R&D, Beijing PharmaSUG China 2016 Paper 24

Upload: others

Post on 25-Sep-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

Jing Gao, SAS R&D, Beijing

PharmaSUG China 2016Paper 24

Page 2: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

2

Introduction to SAS Clinical Standards Toolkit A Sample of CDISC Application based on SAS

Clinical Standards Toolkit How to implement the sample application Extensibility of SAS Clinical Standards Toolkit

Page 3: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

3

Page 4: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

4

Support clinical research activities,

focusing on CDISC standards

• SDTM 3.1.2, 3.1.3, and 3.2

• ADaM 2.1• CRT-DDS 1.0 &

Define-XML 2.0• Dataset-XML 1.0• ODM 1.3.0 and 1.3.1• CDASH 1.1• SEND 3.0• Controlled

Terminology

Free

Open-source

Page 5: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

Major functions of the CST:

Checking compliance with SDTM, SEND, ADaM and Define-XML

Reading and creating Define-XML files for SDTM, SEND and ADaM

Converting Data between Dataset-XML and SAS dataset

Validating XML-Based Standards files ( such as ODM, CT, CRT-DDS 1.0, and Define-XML 2.0)

5

Page 6: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

Sample Library – C:\cstSampleLibrary

Global Standards Library – C:\cstGlobalLibrary

Framework Macros - !SASROOT\cstframework\sasmacro

6

Page 7: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

7

Page 8: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

8

Figure 2. CST Validation Process

Page 9: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

9

Page 10: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

10

Page 11: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

11

Figure 2. CST Validation Process

Page 12: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

12

Page 13: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

13

Figure 2. CST Validation Process

Page 14: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

14

Page 15: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

15

•Create a GUI using Python

1

•Set up a SAS driver program

2•Invoke the SAS

driver program from Python

3

Page 16: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

16

Tkinter is used for small applications with simple interface.

PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial purposes.

wxPython is open source, it allows to create programs with a robust, highly functional graphical user interface.

Page 17: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

17

%let _cstStandard=%sysget(cstStandard);

%let _cstStandardVersion=%sysget(cstStandVersion);

proc sql;insert into work.sasreferences

Quit;

%sdtm_validate;

%cstutil_createreport();

%cstutil_processsetup();

Step 1: Define macro variables required by the validation process

Step 4: Call the validation macro

Step 5: Call the report macro

Step 3: Call the cstutil_processsetup macro

Step 2: Build and populate the SASReferences data set

Page 18: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

18

%let _cstStandard=%sysget(cstStandard);

%let _cstStandardVersion=%sysget(cstStandVersion);

proc sql;insert into work.sasreferences

Quit;

%sdtm_validate;

%cstutil_createreport();

%cstutil_processsetup(); Framework Macros

Framework Macros

Global Standards Library

Sample Library

Page 19: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

19

import subprocess

subprocess.Popen(args='"C:\\Program Files\SASHome\SASFoundation\9.4\sas.exe"-sysin "C:\\sample\validate_data.sas"-set cstStandard "CDISC-SDTM" -set cstStandVersion "3.1.2"' )

Step 1: import the subprocess module for spawning new process

Step 2: invoke the SAS driver program and pass values to it

%let _cstStandard=%sysget(cstStandard);

%let _cstStandardVersion=%sysget(cstStandVersion);

Validate_data.sas

Page 20: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

20

Page 21: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

21

Build a Web application

with the CST

Integrate with your own SAS programs

Integrate with SAS

Data Integration

Studio

Integrate with SAS

Drug Development

Clinical Data Integration

(CDI)

Clinical Life Cycle (CLC)

Page 22: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

22

The CST is a powerful and flexible toolkit supporting multiple CDISC standards.

There is no additional charge to licensed SAS users. The CST macros are provided as open source and are

accessible to the users, which allows users to customize the CST to meet their needs.

As introduced in this presentation, you can build a CDISC application based on the CST for your own needs. Maybe there are a lot of work to do at the beginning. After having done this, it is more intuitive and easy to use the CST.

Page 23: Jing Gao, SAS R&D, Beijing...Jing Gao, SAS R&D, Beijing. ... PyQt is a powerful tool with a very good screen designer, but it requires a commercial license if it is used for commercial

Name: Jing GaoOrganization: SAS R&D (Beijing) Co., Ltd.Address: Motorola Plaza, No. 1 Wang Jing East RoadCity, State ZIP: 100102Work Phone: (8610) 83193355-3462Fax: (8610) 6310-9130E-mail: [email protected]: www.sas.com

23