XMap Getting Started Guide

XMap Getting Started Guide

Step 1. Create an XPath Function Expression

Step 1. Create an XPath Function Expression

Add a mapping statement that provides the current date as the date when claims are submitted. Use an XPath function to provide the date.
  1. In the
    XMap
    view, add a Map statement to the
    Patient_Claim
    XMap, nested under the
    Doctor to Claims
    Repeating Group. To add a Map statement, in the XMap editor grid select the
    Doctor to Claims
    Repeating Group, then right-click and select
    New
    Map
    .
    The Map statement is indented signifying that it is within the context of the
    Doctor to Claims
    Repeating Group statement. The statement iterates for each doctor with a set of details in the input.
  2. To name the Map statement, double-click the
    Name
    field and type the name
    ProcessingDate
    .
  3. To define the
    Output
    field in the
    ProcessingDate
    statement, drag the mouse from the
    Date
    output schema node to the
    Output
    field.
    The following image shows the mapping statement grid with the
    Date
    element in the
    Output
    field of the
    ProcessingDate
    statement:
    "The mapping statement grid contains the ProcessingDate statement that you created. When you create a mapping statement, if the mapping statement is missing input or output information, the name of the statement is displayed in red and a red check box to the left of the name indicates that information is missing."
    The
    ProcessingDate
    statement name is highlighted in red because the statement is missing an input expression.
  4. To assign the current date as the input to the statement, use the XPath Expression editor to create an XPath expression in the
    Input
    field of the statement. To open the XPath Expression editor, click the arrow to the right of the
    Input
    field.
    In the following image, on the left the XPath Expression editor displays the schema and function tabs, and on the right the
    Expressions
    pane:
    "The XPath Expression editor has three tabs, an XPath tab, and Input Schema tab, and an Output schema tab. Use the XPath tab to access all the XPath functions that you can add to an XPath expression. Use the Input Schema tab to add input nodes to an expression. Use the Output Schema tab to add output nodes to an expression."
    Use tabs on the left to choose XPath functions, input schema nodes, or output schema nodes. Drag functions or nodes from the tabs into the
    Expression
    pane on the right, or type an expression directly into the pane.
  5. To select a function, open the
    XPath
    tab and select
    Functions
    All Functions
    .
    In the following image, the XPath Expression editor displays the
    Functions
    tab:
    "Use the XPath Expression editor Expression panel to create expressions from functions and nodes in the tabs. You can also type an expression directly into the Expression pane. The XPath tab contains all the functions that you can add to a mapping statement field. "
  6. To select a function that generates the current date, scroll down and double-click the
    current-date
    function. The expression appears in the
    Expression
    pane.
    In the following image, the XPath Expression editor displays the
    current-date
    expression that you selected on the right:
    "When you find a function in the XPath tab that you want to use, you can drag it into the Expressions pane, or double-click it to add it to the Expressions pane."
  7. To validate that the expression follows XPath rules, click
    Validate
    .
  8. To enter the expression into the statement, click
    OK
    .
    The following image shows the XMap editor with the completed statement:
    "The ProcessingDate mapping statement contains the current-time function in the Input field. When the mapping statement is performed, the transformation adds the current time to the Date element in the output."
  9. To save the transformation, click
    File
    Save
    .

0 COMMENTS

We’d like to hear from you!