Basic Validation of DICOM objects using DVTk Piyush B DVTk developer Piyush B
Basic Validation of DICOM objects media\media.pdvt Validation Concept Definition Files Media Validation Validation Results and Analysis Easy to Use DVT Scripts Piyush B
Overview of DVT Media files Scripts Emulator Definition-file Session-file Project-file XML Results file Image files (dcm, pix) Media files Scripts Emulator DICOM via TCP/IP System under Test Test System
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.
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.
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’.
Real DICOM Object via TCP/IP Validation Concept Real DICOM Object via TCP/IP System under Test Definition Object Reference Validation Results DVT Report Piyush B
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
Content of a Definition File Attribute Condition Attribute Type Attribute Values Multiplicity Attribute Tag Value Representation Attribute Name
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.
2 types of Results files
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
DVT Results Reporting
DVT Results Reporting
Media Validator DVT can validate the content of a DICOMDIR and a DICOM Media file. Media Read DICOM Object SOP Class X Test System
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.
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 ------------------------------------------------------------------ | 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
DICOMDIR Results Files
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
DVT Script Types Example of a DICOM Script Simple
DVT Script Types Example of a Visual Basic Script Advanced
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 ‘Image Y’ Release RQ Release RSP store_scu.dss Test System Piyush B
Example scripts Example: Verification Example: Modality Worklist Execute SCU against SCP verification.pdvt (SCU and SCP 1 script) Example: Modality Worklist worklist.pdvt (SCU and SCP 1 script) Example: Storage storage.pdvt (SCU and SCP 3 script) Piyush B