Step 2. Create an XMap in the Data Processor Transformation
Step 2. Create an XMap in the Data Processor Transformation
Create a Data Processor transformation and then create an XMap for the transformation. When you create an XMap, you must have a schema that describes the input and the output XML documents. You select the element in the schema that is the root element for the input XML.
In the Developer Data Processor transformation
Objects
view, click
New.
Select XMap and click
Next.
Enter the name
Patient_Claims
for the XMap.
The XMap component is the first component to process data in the transformation, so ensure that
Set as startup component
is selected.
A Data Processor transformation can contain multiple components to process data. Each component might contain other components. You must identify which component is the entry point for the transformation.
Click
Next.
To import a schema and add it to the repository, click
Create a new schema object
and browse for the
PatientInputSchema.xsd
file in the following directory:
<INSTALL_DIR>\clients\DeveloperClient\Tutorials
To add a schema that is already in the repository, select
Add a Schema Object
, then select the schema. However, we are using a schema that is not in the repository.
To add the sample XML file that you use to test the XMap, browse for and select the
PatientCareListExample.xml
file in the following directory:
<INSTALL_DIR>\clients\DeveloperClient\Tutorials
After you select both a schema and a sample XML file, the wizard identifies the root for the input hierarchy.
In the
Root Element Selection
dialog box, the
in:Input
element in the schema is selected as the root element for the XML.
To add the schema to the repository, click
Create a new schema object
and browse for the
PatientOutputSchema.xsd
file in the following directory:
<INSTALL_DIR>\clients\DeveloperClient\Tutorials
To add a schema that is already in the repository, select
Add a Schema Object
, then select the schema.
Choose the root for the output hierarchy.
In the
Root Element Selection
dialog box, select the
out:Insurance
element in the schema as the root element for the XML.
Click
Finish
.
The Developer tool creates a view for the
Patient_Claims
XMap that you created. Click the view to configure the XMap.