![](media/image1.png){width="5.997222222222222in"
height="0.6756944444444445in"}

VALIDATEPDU

USER'S Guide

ValidatePDU User's Guide

## Background

The ValidatePDU tool was developed to validate the basic syntax and
structure of messages passed between communicating medical devices. The
Abstract Syntax Notation(ASN.1) from the various IEEE 1073 standard
documents was converted into an XML Schema file. This

XML Schema file is then used to validate XML wrapped medical device
messages. Figure 1 contains a snippet of ASN.1 from the IEEE 1073.2.1.1
document and the corresponding schema definition created. Figure 2
contains an example of an XML instance file created from the MDCIG IEEE
1073 Baseline Profile Demonstration Project Messaging Specification
Document. The XML instance file is an example of a CREATE Context
Scanner(Manager to Agent) message.

![](media/image2.png){width="4.927083333333333in"
height="3.3333333333333335in"}

## ASN.1 for a Remote Operation Invoke and corresponding schema definition

## ![](media/image3.jpeg){width="6.499305555555556in" height="6.641666666666667in"}

## 

## 

## 

## 

## Installation

Java 1.4.2 or later is needed to compile and execute the code.

Click on
[ValidatePDU](http://xw2k.sdct.itl.nist.gov/rivello/MedicalDevices/ValidatePDU/valpdu_download.html)
to download the ValidatePDU Tool.

Unzip the VALIDATE-1.0.ZIP file. This should create the following
directories:

-   C:/X73-Tool/xml XML instance files created

> from the MDCIG IEEE 1073 Baseline Profile Demonstration Project
> Messaging Specification Document.

-   C:/X73-Tool/src Java source files

-   C:/X73-Tool/Readme.html Installation instructions

-   C:/X73-Tool/Modified_X73-FINAL.xsd XML Schema file created

> from ASN.1

-   C:/X73-Tool/x73-Tool-020406.jar JAR file containing compiled

> Schema Java types.

Download and unzip [XMLBEANS](http://xmlbeans.apache.org/)(Version
2.1.0)

Add the following files to you CLASSPATH

c:/x73-Tool/x73-Tool-020406.jar c:/xmlbeans-2.1.0/lib/jsr173_1.0_api.jar
c:/xmlbeans-2.1.0/lib/xbean.jar c:/xmlbeans-2.1.0/lib/xbean_xpath.jar

**Running the ValidatePDU Tool**

Go to source directory

cd C:/X73-Tool/src

> Compile and execute the Validate Tool using the following two
> commands:
>
> javac \*.java java ValidatePDUManagementView

The ValidatePDU main screen should pop up.

![](media/image4.png){width="6.252083333333333in"
height="5.313888888888889in"}

Click on **Load**

This Screen appears after selecting a file and clicking on **Load**

![](media/image5.jpeg){width="6.375in" height="6.114583333333333in"}

**Highlight** a File

Click on **Open**

After the file has been loaded the following screen will appear. The
left hand panel contains a JTREE representation of the XML instance
file.

![](media/image6.jpeg){width="6.752083333333333in"
height="5.803472222222222in"}

Click on **Validate**

The file selected will now be validated against the schema.

The following screen will appear if the file has been successfully
validated. Notice the green background which signifies a successful
validation.

![](media/image7.jpeg){width="6.5in" height="5.800694444444445in"}

The following screen will appear if the validation is unsuccessful.
Notice the red background on the right hand panel which signals
unsuccessful validation.

![](media/image8.jpeg){width="6.626388888888889in"
height="6.000694444444444in"}