# Presentation: 625757

## Message Maker: The Need for Dynamic Test Creation

- <?xml version="1.0"?>
- <HL7v2xConformanceProfile H
- <MetaData Name="CALINX" Or
- <Encodings>
- <Encoding>ER7</Encoding>
- </Encodings>
- <DynamicDef AccAck="NE" Ap
- <HL7MsgType=“ADT"
- EventType=“A01
- <MetaData Name="CALINX" >
- <Segment Name="MSH" LongN
- <Field Name="Field Separator" Us
- </Field>
- <Field Name="Encoding Characters"
- <Reference>2.16.9.2</Reference
- </Field>
- <Field Name="Sending Application"
- <Component Name="namespace ID"
- Usage="X</Component>

- Message Maker

- Use VA’s MWB or Orion’s
- Symphonia to create
- XML profiles.

- MSH|^~\&|REGAEVN|A05|199901PID|1||191919^NK1|1|MASSIE^ENK1|2|MASSIE^I...

- Test  Messages

- _Message Maker: The Need for Dynamic Test Creation_

**Any **
**Profile**

## Message Maker: HL7 V2 Conformance Testing

- Specification
- Tool (e.g., MWB)

- HL7 V2
- Profile (XML)

- Data Sources

**NIST HL7**
**Reference**
**Database**

- HL7
- Standard
- DB

- NIST
- Reference
- Data (XML)

- Interface
- Module

- _Testing Options_
-  Usage
-  Cardinality
-  Volume
-  Data Content
-  Length
-  etc.

- Message
- Maker

- Message
- Factory
- (XSLT)

- HL7 Test
- _Messages_
-  Profile based
-  Structurally correct
-  Validated
-  Varied
-  Descriptive
-  Suitable basis for
- conformance testing

- Testing
- Framework

**Site-Specific**
**Database**

## MWB

- Input

- Data
- Sources

- Message
- Maker

- Output

- Testing
- Framework

- System
- Under
- Test (SUT)

- HL7
- Message
- Profile
- (XML)

- Testing
- Options:
-  Structure
-  Cardinality
-  Usage
-  Code Sets
-  Data Type
-  Length
-  Boundary
-  Out-of-Range
-  Encoding
-  Volume
-  Invalid
-  Escape
-  Etc.

- NIST
- Reference
- Data

| Table Data |
| --- |
| HL7 Tables |
| User (HL7) |
| User (Local) |
| External |

| Dynamic |
| --- |
| Match Pattern |
| Range |

| Coded Data |
| --- |
| SNOMED |
| LONIC |
| etc. |

- Control

- View

- Message
- Management

- Tool
- Management

- Configuration

- Message
- Factory

- XSL
- Transformations

| Message |
| --- |
| Management |
| Storage |
| Retrieval |
| Logging |

**Test Messages**

- Prime
- Database

- Receive
- Message(s)

- Reports

- Send
- Message(s)

- Query
- SUT

- Validate
- Message(s)

- Log

- Analyze

- HL7
- Test
- Application

- Log

- API
- (Future)

- Site
- Database

-  Robert Snelick, NIST May 24, 2004

## NIST HL7 Message Maker

- Message
- Workbench

- HL7 V2
- Profile (XML)

- Data Sources

**NIST HL7**
**Element DB**
**(MS Access)**
- [Static: Fixture Data]
- [Dynamic: Patterns]
- [Dynamic: Range]
- [Configuration: Site
- Specific]

| Table Data |
| --- |
| HL7  |
| HL7 User  |
| User (Local) |
| External |

| Coded Data |
| --- |
| SNOMED |
| LONIC |
| etc. |

- HL7
- Standard
- DB

- NIST Ref.
- Data (XML)

- HL7 Tables
-  (XML)

- User Tables
-  (XML)

- External Tables
-  (XML)

- Interface
- Module

**Partially Populated for ADT Messages**

**NIST Created**
**(Configurable)**

- _Testing Options_
-  Usage
-  Cardinality
-  Volume
-  Data Content
-  Length
-  etc.

- Message
- Maker

- Message
- Factory
- (XSLT)

- HL7 Test
- _Messages_
-  Profile based
-  Structurally correct
-  Validated
-  Varied
-  Descriptive
-  Suitable basis for
- conformance testing

- Testing
- Framework

- Robert Snelick
- September 2004

**~10000 Elements**
**(~1400 Unique)**

- Site DB

- Interface
- Module

- Site Data (XML)

**Enables site specific data to be imported**