XMap Getting Started Guide

XMap Getting Started Guide

Step 1. Create a Repeating Group Statement

Step 1. Create a Repeating Group Statement

You can create a mapping statement by dragging a node from the input schema to a node in the output schema. The XMap editor adds the mapping statement to the mapping statement grid.
  1. To open the XMap editor, in the
    Overview
    view, click the
    Patient_Claim
    XMap link.
    The XMap editor appears and shows the input and output schemas. In the following image, the XMap editor displays the input schema on the left, and the output schema on the right:
    "An XMap uses mapping statements to define how to transform an input schema element to an output schema element. To create a mapping statement, you can drag from an input schema node in the XMap editor to a node in the output schema. "
  2. Drag the mouse from the
    Doctor
    input schema node to the
    Claims
    output schema node.
    The following image shows how the XMap links the XML input to the XML output:
    "When you drag from an input schema node in the XMap editor to a node in the output schema, you create a link. When you create links, these are mapping statements. The XMap editor shows the mapping statement in the grid. The XMap editor automatically fills in all the fields for the mapping statement. You can edit the fields to change the logic."
    Both schema nodes are repeating nodes, so the XMap editor creates a Repeating Group statement named
    Doctor to Claims
    in the grid. Statements under the Repeating Group statement are iterated for each instance of input data.
  3. Drag the mouse from the
    Specialty
    input node under the
    Doctor
    input node to the
    Specialization
    output schema node.
    There is a
    Specialty
    input node under the
    Doctor
    input node, and a
    Speciality
    input node under the
    Patient
    input node. We refer to the first node in this lesson.
    After you complete this step, the XMap editor creates a Map statement named
    Specialty to Claims/@Specialization
    in the grid. This statement passes the name of the medical field of specialization to the output XML.
  4. Drag the mouse from the
    Name
    input schema node to the
    Name
    output schema node.
    The XMap editor creates a Map statement named
    Name to Name
    in the grid.
    This statement passes the name of the doctor to the output XML.
  5. Drag the mouse from the
    Email
    input schema node to the
    Email
    output schema node.
    The XMap editor creates a Map statement named
    Email to Email
    in the grid. This statement passes the customer phone number to the output XML.
    The following image shows how the XMap links the XML input elements to the XML output in Map statements:
    "When you link the Doctor input schema node and the Claims output schema node, the XMap editor automatically created a Repeating Group statement to link these elements. When you linked the sub-elements for the Doctor and Claims nodes, the XMap editor created Map statements that map a simple element to a simple element."
  6. To save the transformation, click
    File
    Save
    .

0 COMMENTS

We’d like to hear from you!