Transcript DVTk

Basic Validation of DICOM objects
using DVTk
Piyush B
DVTk developer
Piyush B
08-02-2008
Basic Validation of DICOM objects






Piyush B
media\media.pdvt
Validation Concept
Definition Files
Media Validation
Validation Results and Analysis
Easy to Use DVT Scripts
www.dvtk.org
2
Overview of DVT
•Definition-file
•Session-file
•Project-file
•Media files
•Scripts
•Emulator
DICOM
via
TCP/IP
System under Test
•XML Results file
•Image files (dcm, pix)
Test System
Piyush B
www.dvtk.org
3
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.
Piyush B
www.dvtk.org
4
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.
Piyush B
www.dvtk.org
5
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’.
Piyush B
www.dvtk.org
6
Validation Concept
Definition
Object
Validation
Results
Object
Reference
Object
Report
Real DICOM
Object via
TCP/IP
System under
Test
DVT
Piyush B
www.dvtk.org
7
DICOM Definition File
The Definition Files provide DVT with the DICOM
specific knowledge to enable a validation.
• Describes a single
DICOM SOP class
• Example:
Storage SOP Class
‘SC Image‘
• Corresponding File:
SecondaryCapture.def
Piyush B
www.dvtk.org
8
Content of a Definition File
Attribute Condition
Attribute Type
Attribute Values
Multiplicity
Attribute Tag
Piyush B
Value Representation
www.dvtk.org
Attribute Name
9
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.
Piyush B
www.dvtk.org
10
2 types of Results files
Piyush B
www.dvtk.org
11
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
Piyush B
www.dvtk.org
12
DVT Results Reporting
Piyush B
www.dvtk.org
13
DVT Results Reporting
Piyush B
www.dvtk.org
14
Media Validator
• DVT can validate the content of a DICOMDIR and a
DICOM Media file.
Media Read
DICOM Object
SOP Class X
Test System
Piyush B
www.dvtk.org
15
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.
Piyush B
www.dvtk.org
16
Validation of a DICOMDIR
DVT will validate
• the structure of the DICOMDIR
• check the presence of the referenced files
• the referenced and
present DCM file
against the SOP Class
definition
of the DCM File
Piyush B
-----------------------------------------------------------------| 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
www.dvtk.org
17
DICOMDIR Results Files
Piyush B
www.dvtk.org
18
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)
Advanced
Simple
Piyush B
www.dvtk.org
19
DVT Script Types
Example of a DICOM Script
Simple
Piyush B
www.dvtk.org
20
DVT Script Types
Example of a Visual Basic Script
Advanced
Piyush B
www.dvtk.org
21
Running a SuperScript using DICOM
and system Definition Files
storage.pdvt
store_scu.ses
store_scp.ses
Script
session
Script
session
Association RQ
Association AC
Store RQ
‘Image Y’
Store RSP
Release RQ
‘Image Y’
Release RSP
store_scu.dss
Piyush B
Test System
www.dvtk.org
22
Example scripts
Example: 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


Piyush B
Execute SCU against SCP
storage.pdvt (SCU and SCP 3 script)
www.dvtk.org
23
DVTk
Explore the new dimension of Integration Testing