Validate and Translate Example

The \bw\palettes\hl7\x.x\samples\ValidateAndTranslate folder contains a sample project that helps you understand how to validate input data and translate it from one data format to another data format using different methods of specifying validation guidelines and translation maps.

For more information about validating and translating data, see ValidateHL7 and TranslateHL7.

Example Data Files

These examples make use of the following data file found in the \bw\palettes\hl7\x.x\samples\ValidateAndTranslate\DataAndGuidelines\Data area:

  • VXR_V03_ascii.txt - The EDI text file that triggers the ValidateandTranslate process.

Example Guideline and Map Files

These examples make use of the following guideline and map files found in the \bw\palettes\hl7\x.x\samples\ValidateAndTranslate\DataAndGuidelines\Guidelines area:

  • VXR_V03.std - The schema definition for an VXR_V03 message in ASCII text format. This is the source guideline that describes the message before translation.

  • VXR_V03_VXR_V03.xsd - The guideline for an VXR_V03 message in XML format. This is the target guideline that describes the message after translation.

  • VXR_V03_VXR_V03_EX.map - The predefined map file that is used to translate the VXR_V03 message from HL7 format into XML format.

  • VXR_V03_VXR_V03_XE.map - The predefined map file that is used to translate the VXR_V03 message from XML format into HL7 format.

Process Description

This example contains the following predefined process: