XMap Getting Started Guide

XMap Getting Started Guide

Configuring Router Statements Overview

Configuring Router Statements Overview

In this lesson, you configure the
Patient_Claim
XMap to sort the telephone numbers for each doctor according to type.

Lesson Concepts

A Router statement provides alternatives for the mapping logic. The Router statement contains one or more Option statements and can contain one Default statement. When the Data Processor transformation performs a Router statement, it tests each Option nested below the Router statement. The Option statement that matches is performed.
The Option statement can contain one or more child statements of any type. If no Option statement matches, the Default statement is performed. If there is no Default statement and no Option statement matches, the Router statement fails.
If the Option statement has a condition that is true but the mapping statements inside it fail and propagate the failure, the Router fails. You can configure the mapping to skip the Router if the Router fails.

Lesson Objectives

In this lesson, you complete the following tasks:
  • Create Router and Option mapping statements to provide alternatives for mapping telephone numbers of type mobile, work, and home.
  • Create Map statements that pass a single telephone number to the output.
  • Use the XPath editor to define input and condition fields for the Option statements. Define the condition field for each Option statement to check the type of phone an input element contains.
  • Validate the transformation.

Lesson Prerequisites

Before you start this lesson, verify the following prerequisites:
  • You completed the previous lessons in the tutorial. Use the
    Patient_Claim
    XMap that you created in previous lessons.
  • You understand how to use the XPath editor.

Lesson Timing

Set aside 15 to 20 minutes to complete the tasks in this lesson.

0 COMMENTS

We’d like to hear from you!