Validate and Translate Example

The \bw\palettes\hl7\<version_number>\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 by 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 at \bw\palettes\hl7\<version_number>\samples\ValidateAndTranslate\DataAndGuidelines\Data:

  • 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 at \bw\palettes\hl7\<version_number>\samples\ValidateAndTranslate\DataAndGuidelines\Guidelines:

  • VXR_V03.std - The schema definition for a 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 a 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.
Note: Guideline and map files must be in the Translator and Instream database files.

Process Description

This example contains the following predefined process: