piyush b 08-02-2008 basic validation of dicom objects using dvtk piyush b dvtk developer
TRANSCRIPT
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
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
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.
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.
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’.
7Piyush B www.dvtk.org
Validation Concept
Real DICOM
Object viaTCP/IP System
under Test
Definition Object
Reference Object
Validation Results
Object
DVT
Report
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.
9Piyush B www.dvtk.org
Content of a Definition File
Attribute Tag Attribute Name
Attribute Type Attribute Values
Multiplicity
Value Representation
Attribute Condition
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.
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
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
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.
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
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
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
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)