Esquema de correlación de ejemplo

A continuación se proporciona el esquema que se debe seguir al escribir la especificación de correlación. Tenga en cuenta en la entidad Education los atributos correlacionados directamente con la entidad de pruebas 'Student'. Atributos como schoolName, schoolStreet1, schoolStreet2, etc. se utilizarán para crear un participante nuevo y una dirección.

<?xml version="1.0" encoding="UTF-8"?>
<map xmlns="http://www.curamsoftware.com/schemas/GUMBO/Map"
  from-schema="GumboDS" name="TestMapping"to-schema="CGISS"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="...\EJBServer\components\
  WorkspaceServices\lib\Mapping.xsd"><map-entity source="Person">
     <target-entity id="householdMember" name="HouseholdMember">
      <map-attribute from="ssnStatus" to="ssnStatus"/>
      <map-attribute from="blackOrAfricanAmerican" 
                                to="blkOrAfrAmerInd"/>
      <map-attribute from="nativeAlaskanOrAmericanIndian"
                                to="natHawOrPaIsInd"/>
      <map-attribute from="asian" to="asianInd"/>
      <map-attribute from="nativeHawaiianOrPacificIslander" 
                                to="natHawOrPaIsInd"/>
      <map-attribute from="whiteOrCaucasian" 
                                 to="whiteOrCaucInd"/>
      <map-attribute from="isMigrantOrSeasonalFarmWorker" 
                              to="migrantFWorkerInd"/>
    </target-entity>
    <target-entity id="livingArrange" name="LivingArrange">
      <map-attribute from="accommodationType"
                                   to="livingArrangeType"/>
    </target-entity>
  </map-entity>
  <map-entity source="Education">
        <condition expression=
                           "Education.highestGrade!=&quot;&quot;">
            <target-entity id="highestGrade" name="Student">
                <map-attribute from="highestGrade" 
                                         to="highGradeCompleted"/>
                <map-attribute from="attendanceFrequency"
                                              to="studentStatus"/>
                <map-attribute from="schoolName"
                                            to="participantName"/>
                <map-attribute from="schoolStreet1" to="street1"/>
                <map-attribute from="schoolStreet2" to="street2"/>
                <map-attribute from="schoolCity" to="city"/>
                <map-attribute from="schoolState" to="state"/>
                <map-attribute from="schoolZipCode" to="zipCode"/>
            </target-entity>
        </condition>
    </map-entity>
  <map-entity source="HealthInsuranceExpense">
    <target-entity id="healthInsuranceExpense" 
                                          name="MedicalInsurance">
      <map-attribute from="policyNumber" to="policyNumber"/>
      <map-attribute from="groupNumber" to="groupPolicyNumber"/>
        <map-attribute from="policyHolderParticipantName" 
              to="policyHolderParticipantName"/>
        <map-attribute from="policyHolderStreet1"
                                        to="policyHolderStreet1"/>
        <map-attribute from="policyHolderStreet2" 
                                        to="policyHolderStreet2"/>
        <map-attribute from="policyHolderCity" 
                                           to="policyHolderCity"/>
        <map-attribute from="policyHolderState" 
                                          to="policyHolderState"/>
        <map-attribute from="policyHolderZipCode" 
                                        to="policyHolderZipCode"/>
        <map-attribute from="groupParticipantName" 
                                       to="groupParticipantName"/>
        <map-attribute from="groupStreet1" to="groupStreet1"/>
        <map-attribute from="groupStreet2" to="groupStreet2"/>
        <map-attribute from="groupCity" to="groupCity"/>
        <map-attribute from="groupState" to="groupState"/>
        <map-attribute from="groupZipCode" to="groupZipCode"/>
        <map-attribute from="insuranceProvider" 
                                          to="insuranceProvider"/>
        <map-attribute from="InsProviderStreet1" 
                                         to="InsProviderStreet1"/>
        <map-attribute from="InsProviderStreet2" 
                                         to="InsProviderStreet2"/>
        <map-attribute from="InsProviderCity"
                                            to="InsProviderCity"/>
        <map-attribute from="InsProviderState"
                                           to="InsProviderState"/>
        <map-attribute from="InsProviderZipCode"
                                         to="InsProviderZipCode"/>
        <map-entity source="HealthInsuranceExpenseRelationship">
        <target-entity id="healthInsuranceExpenseRelationship"
                                                  name="Coverage">
          <map-attribute from="personID" 
                                      to="caseParticipantRoleID"/>
        </target-entity>
      </map-entity>
    </target-entity>
  </map-entity>
</map>