Top Banner
Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer
24

Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

Jan 02, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

Piyush B 08-02-2008

Basic Validation of DICOM objects using DVTk

Piyush BDVTk developer

Page 2: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

2Piyush B www.dvtk.org

Basic Validation of DICOM objects

media\media.pdvt Validation Concept Definition Files Media Validation Validation Results and Analysis Easy to Use DVT Scripts

Page 3: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

3Piyush B www.dvtk.org

Overview of DVT

•Definition-file•Session-file•Project-file

•XML Results file•Image files (dcm, pix)

•Media files•Scripts•Emulator

DICOMvia

TCP/IP System under Test

Test System

Page 4: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

4Piyush B www.dvtk.org

Capabilities• Data driven tool and core is independent of specific

DICOM SOP Classes and Test Cases - allows future extension as the DICOM Standard evolves.

• Capable of playing the role of SCU and SCP.• Emulator for Verification, Storage and Print SOP

Classes.• Media File validation.• Provides clear test results - including a summary of

errors / warnings. • Support for TLS and SSL secure sockets.

Page 5: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

5Piyush B www.dvtk.org

DVTk validation can be identified as:

• Validation of Association Negotiation Control Service Elements (ACSE’s) - Association Request, Acceptance, Rejection, Release and Abort support.

• Validation of DICOM Message Exchange (DIMSE’s) - Service Object Pair Class support.

Page 6: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

6Piyush B www.dvtk.org

Validation against the DICOM Standard and/or System Definition• DVT provides an independent measurement of the

accuracy of the Product‘s DICOM interface according to the– DICOM Standard– Product‘s Conf. Statement

• Input in DVT for this information is the ‘Definition File’.

Page 7: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

7Piyush B www.dvtk.org

Validation Concept

Real DICOM

Object viaTCP/IP System

under Test

Definition Object

Reference Object

Validation Results

Object

DVT

Report

Page 8: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

8Piyush B www.dvtk.org

DICOM Definition File

• Describes a single DICOM SOP class

• Example:Storage SOP Class ‘SC Image‘

• Corresponding File: SecondaryCapture.def

The Definition Files provide DVT with the DICOM specific knowledge to enable a validation.

Page 9: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

9Piyush B www.dvtk.org

Content of a Definition File

Attribute Tag Attribute Name

Attribute Type Attribute Values

Multiplicity

Value Representation

Attribute Condition

Page 10: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

10Piyush B www.dvtk.org

Results Files

• DVT stores the results of each test (either by Scripts, Media Validation or Emulation) in ‘XML’ files.

• Two types of XML files – Detailed (all DVT output logged)– Summary (only errors and warnings are logged)

• DVT uses a XSLT style sheet for displaying the XML files.

Page 11: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

11Piyush B www.dvtk.org

2 types of Results files

Page 12: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

12Piyush B www.dvtk.org

DVT Results Reporting Results are generated in XML

Easily data exchange Can be handled as data

Presented in HTML Can be customized by changing the style sheet Gives you the advantages of HTML web pages

Generate overall test reports Easily include multiple test data Include test analysis data

Page 13: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

13Piyush B www.dvtk.org

DVT Results Reporting

Page 14: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

14Piyush B www.dvtk.org

DVT Results Reporting

Page 15: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

15Piyush B www.dvtk.org

Media Validator

• DVT can validate the content of a DICOMDIR and a DICOM Media file.

Test System

DICOM ObjectSOP Class X

Media Read

Page 16: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

16Piyush B www.dvtk.org

Media Results Files

• DVT writes one summary and one detailed XML file for each:– Directory Record– DICOM file

• When the media validation is completed DVT generates an summary and a detailed index XML.

Page 17: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

17Piyush B www.dvtk.org

Validation of a DICOMDIRDVT will validate

• the structure of the DICOMDIR

• check the presence of the referenced files

• the referenced andpresent DCM fileagainst the SOP Classdefinitionof the DCM File

------------------------------------------------------------------| VALIDATION RESULTS for DATASET File Meta------------------------------------------------------------------|=================================================================| "Dicom Meta Information" M|=================================================================|-----------------------------------------------------------------|V |Tag |VR|VT|P|Value(s) |Name/Results |-----------------------------------------------------------------| |(0002,0000) |UL|1 |+|0x000000BA=186 |Group 0002 Length | |(0002,0001) |OB|1 |+|"C:\Program Files |File Meta | | | | | |\DVT\media | Information | | | | | |\B08_0026.pix" | Version| |(0002,0002) |UI|1 |+|"1.2.840.10008.5. |Media Storage SOP | | | | | |1.4.1.1.12.1" | Class UID| |(0002,0003) |UI|1 |+|"1.3.46.670589.17 |Media Storage SOP

Page 18: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

18Piyush B www.dvtk.org

DICOMDIR Results Files

Page 19: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

19Piyush B www.dvtk.org

DVT Script Types• Script Types

– DICOM Scripts (DS)– DICOM Super Scripts (DSS)– Visual Basic Scripts (VBS)

• Script Approach– Simple DICOM Command based (DS/DSS)– Advanced Multi-Threaded Event Driven (VBS)

Simple Advanced

Page 20: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

20Piyush B www.dvtk.org

DVT Script Types

Example of a DICOM Script

Simple

Page 21: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

21Piyush B www.dvtk.org

DVT Script TypesExample of a Visual Basic Script

Advanced

Page 22: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

22Piyush B www.dvtk.org

Running a SuperScript using DICOM and system Definition Files

Test System

‘Image Y’

Scriptsession

Scriptsession

Association RQ

Release RQ

Store RQAssociation AC

Store RSP

Release RSP

‘Image Y’

storage.pdvt

store_scu.ses store_scp.ses

store_scu.dss

Page 23: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

23Piyush B www.dvtk.org

Example scriptsExample: Verification Execute SCU against SCP verification.pdvt (SCU and SCP 1 script)

Example: Modality Worklist Execute SCU against SCP worklist.pdvt (SCU and SCP 1 script)

Example: Storage Execute SCU against SCP storage.pdvt (SCU and SCP 3 script)

Page 24: Piyush B 08-02-2008 Basic Validation of DICOM objects using DVTk Piyush B DVTk developer.

Explore the new dimension of Integration Testing

DVTk