CDA to FHIR Maps
0.1.0 - ci-build IT

CDA to FHIR Maps - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: CDA to FHIR - Data Types - XML Representation

Draft as of 2024-04-11

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="cda2fhirDataTypes"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
         <pre>map &quot;http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes&quot; = &quot;cda2fhirDataTypes&quot;

conceptmap &quot;addressUse&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-AddressUse&quot;
  prefix t = &quot;http://hl7.org/fhir/address-use&quot;

  s:H == t:home
  s:HP == t:home
  s:HV == t:home
  s:WP == t:work
  s:DIR == t:work
  s:PUB == t:work
  s:TMP == t:temp
  s:OLD == t:old
  s:BAD == t:old
}

conceptmap &quot;OBSstatus&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-statusCode&quot;
  prefix t = &quot;http://hl7.org/fhir/event-status&quot;

  s:completed == t:final
  s:active == t:registered
  s:aborted == t:cancelled
}

conceptmap &quot;EventStatus&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-statusCode&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/fm-status&quot;

  s:completed == t:completed
  s:active == t:&quot;in-progress&quot;
  s:aborted == t:stopped
  s:suspended == t:&quot;on-hold&quot;
}

conceptmap &quot;FinancialStatus&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-statusCode&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/fm-status&quot;

  s:active == t:active
  s:aborted == t:cancelled
  s:suspended == t:draft
}

conceptmap &quot;MedicationStatusMap&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-statusCode&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/medicationrequest-status&quot;

  s:completed == t:completed
  s:active == t:active
  s:aborted == t:cancelled
  s:suspended == t:&quot;on-hold&quot;
}

conceptmap &quot;cm-v3-administrative-gender&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-AdministrativeGender&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/administrative-gender&quot;

  s:M == t:male
  s:F == t:female
}

conceptmap &quot;AllergyTypeMap&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-type&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/allergyintolerance-clinical&quot;

  s:OINT == t:intolerance
  s:ALG == t:allergy
  s:DALG == t:allergy
  s:EALG == t:allergy
  s:FALG == t:allergy
  s:NAINT == t:intolerance
  s:FNAINT == t:intolerance
  s:DNAINT == t:intolerance
  s:ENAINT == t:intolerance
  s:FINT == t:intolerance
  s:DINT == t:intolerance
  s:EINT == t:intolerance
}

conceptmap &quot;AllergyCategoryMap&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-type&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/allergyintolerance-clinical&quot;

  s:DALG == t:medication
  s:EALG == t:enviroment
  s:FALG == t:food
  s:FNAINT == t:intolerance
  s:DNAINT == t:medication
  s:ENAINT == t:enviroment
  s:FINT == t:food
  s:DINT == t:medication
  s:EINT == t:enviroment
}

conceptmap &quot;CricalityMap&quot; {
  prefix s = &quot;http://terminology.hl7.org/CodeSystem/v3-ObservationValue&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality&quot;

  s:M == t:low
  s:H == t:high
  s:L == t:low
}

conceptmap &quot;ClinicalStatusMap&quot; {
  prefix s = &quot;https://loinc.org/99493-9/&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/condition-clinical&quot;

  s:&quot;LA16666-2&quot; == t:active
  s:&quot;LA18632-2&quot; == t:inactive
  s:&quot;LA9041-0&quot; == t:resolved
}

conceptmap &quot;priority&quot; {
  prefix s = &quot;http://terminology.hl7.org/ValueSet/v3-ActPriority&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/request-priority&quot;

  s:R == t:routine
  s:P == t:asap
  s:UR == t:urgent
  s:EM == t:stat
  s:S == t:stat
  s:A == t:asap
  s:CR == t:routine
  s:EL == t:routine
  s:p == t:stat
  s:PRN == t:routine
  s:RR == t:asap
  s:T == t:urgent
  s:UD == t:routine
}

conceptmap &quot;AllergyCriticality&quot; {
  prefix s = &quot;https://art-decor.org/art-decor/decor-valuesets--hl7it-?id=2.16.840.1.113883.2.9.77.22.11.6&quot;
  prefix t = &quot;http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality&quot;

  s:L == t:low
  s:H == t:high
  s:M == t:unable_to_assess
}

uses &quot;http://hl7.org/fhir/cda/StructureDefinition/ED&quot; alias ED as source
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/INT&quot; alias INT as source
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/II&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/Identifier&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/TS&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/instant&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/CS&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/code&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/CE&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/CodeableConcept&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/ST&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/string&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/EN&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/HumanName&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/AD&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/Address&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/TEL&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/ContactPoint&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/BL&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/boolean&quot; as target
uses &quot;http://hl7.org/fhir/cda/StructureDefinition/IVL-TS&quot; as source
uses &quot;http://hl7.org/fhir/StructureDefinition/Period&quot; as target

group Any(source src, target tgt) {
  src -&gt; tgt &quot;simple&quot;;
}

group II(source src : II, target tgt : Identifier) extends Any &lt;&lt;types&gt;&gt; {
  src.root as r where src.extension.exists() -&gt; tgt.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;
  src.root as r where src.extension.empty() and src.root.matches('[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}') -&gt;  tgt.system = 'urn:ietf:rfc:3986',  tgt.value = ('urn:uuid:' + r.lower()) &quot;rootuuid&quot;;
  src.root as r where src.extension.empty() and src.root.contains('.') -&gt;  tgt.system = 'urn:ietf:rfc:3986',  tgt.value = append('urn:oid:', r) &quot;rootoid&quot;;
  src.extension as e -&gt; tgt.value = e;
  src.assigningAuthorityName as s -&gt;  tgt.assigner as a,  a.display = s;
}

group INT(source src : INT, target tgt : integer) extends Any &lt;&lt;types&gt;&gt; {
  src.value as v -&gt; tgt.value = cast(v, 'string');
}

group TemplateID(source template : II, target tgt) {
  template -&gt; tgt.extension as ext then {
    template -&gt; ext.url = 'http://hl7.org/fhir/cda/StructureDefinition/templateID' &quot;url&quot;;
    template -&gt; ext.value = create('Identifier') as value then II(template, value) &quot;value&quot;;
  } &quot;templateId&quot;;
}

group Negation(source negation : BL, target tgt) {
  negation -&gt; tgt.modifierExtension as ext then {
    negation -&gt; ext.url = 'http://hl7.org/fhir/cda/StructureDefinition/negationIndicator' &quot;url&quot;;
    negation as neg -&gt;  ext.value = create('boolean'),  ext.value = neg &quot;value&quot;;
  } &quot;negation&quot;;
}

group TSInstant(source src : TS, target tgt : instant) extends Any &lt;&lt;types&gt;&gt; {
  src.value as v -&gt; tgt.value = cast(v, 'string');
}

group TSDateTime(source src : TS, target tgt : dateTime) extends TSInstant &lt;&lt;types&gt;&gt; {
  src where (value.contains('+')) then {
    src.value as v -&gt; tgt.value = cast(v, 'string');
  } &quot;eff&quot;;
  src where (value.contains('-')) then {
    src.value as v -&gt; tgt.value = cast(v, 'string');
  } &quot;eff&quot;;
  src.value where (value.matches('^\\d{4}(\\-\\d{2}){2}T\\d{2}(:\\d{2}){2}$')) then {
    src.value as v -&gt; tgt.value = append(v, 'Z') &quot;date&quot;;
  } &quot;eff&quot;;
}

group TSDate(source src : TS, target tgt : date) extends TSInstant &lt;&lt;types&gt;&gt; {
  src.value as v -&gt; tgt.value = cast(v, 'string') &quot;date&quot;;
}

group IVLTSPeriod(source src : IVL_TS, target tgt : Period) extends Any &lt;&lt;types&gt;&gt; {
  src.low as l -&gt; tgt.start = create('dateTime') as start then TSDateTime(l, start);
  src.high as h -&gt; tgt.end = create('dateTime') as end then TSDateTime(h, end);
}

group IVLTSDateTime(source src : IVL_TS, target tgt : dateTime) extends Any &lt;&lt;types&gt;&gt; {
  src.low as s then TSDateTime(s, tgt);
}

group STstring(source src : ST, target tgt : string) extends Any &lt;&lt;types&gt;&gt; {
  src as v -&gt; tgt.value = cast(v, 'string') &quot;value&quot;;
}

group EDstring(source src : ED, target tgt : string) extends STstring &lt;&lt;types&gt;&gt; {
  src as v -&gt; tgt.value = cast(v, 'string') &quot;value&quot;;
}

group INTstring(source src : INT, target tgt : string) extends STstring &lt;&lt;types&gt;&gt; {
  src as v -&gt; tgt.value = cast(v, 'string') &quot;value&quot;;
}

group ONstring(source src : ON, target tgt : string) extends STstring &lt;&lt;types&gt;&gt; {
  src as v -&gt; tgt.value = cast(v, 'string') &quot;value&quot;;
}

group CSCode(source src : CS, target tgt : code) extends Any &lt;&lt;types&gt;&gt; {
  src.code as c -&gt; tgt.value = cast(c, 'string');
}

group CECode(source src : CE, target tgt : code) extends CSCode &lt;&lt;types&gt;&gt; {
  src.code as c -&gt; tgt.value = cast(c, 'string');
}

group CDCode(source src : CD, target tgt : code) extends CSCode &lt;&lt;types&gt;&gt; {
  src.code as c -&gt; tgt.value = cast(c, 'string');
}

group CECodeableConcept(source src : CE, target tgt : CodeableConcept) extends Any &lt;&lt;types&gt;&gt; {
  src.originalText as originalText then {
    originalText.reference as reference -&gt; tgt.text = (reference.value);
  } &quot;originltext&quot;;
  src -&gt; tgt.coding as coding then {
    src.code as code -&gt; coding.code = cast(code, 'string');
    src.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
    src.displayName as display -&gt; coding.display = cast(display, 'string');
    src.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
  } &quot;code&quot;;
  src.translation as translation -&gt; tgt.coding as coding then {
    translation.code as code -&gt; coding.code = cast(code, 'string');
    translation.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
    translation.displayName as display -&gt; coding.display = cast(display, 'string');
    translation.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
    translation.qualifier as qualifier then {
      qualifier.name as name -&gt; tgt.coding as coding then {
        name.code as code -&gt; coding.code = cast(code, 'string');
        name.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
        name.displayName as display -&gt; coding.display = cast(display, 'string');
        name.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
      };
      qualifier.value as value -&gt; tgt.coding as coding then {
        value.code as code -&gt; coding.code = cast(code, 'string');
        value.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
        value.displayName as display -&gt; coding.display = cast(display, 'string');
        value.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
      };
    };
  };
}

group CSCodeableConcept(source src : CS, target tgt : CodeableConcept) extends CECodeableConcept &lt;&lt;types&gt;&gt; {
  src.originalText as originalText then {
    originalText.reference as reference -&gt; tgt.text = (reference.value);
  } &quot;originltext&quot;;
  src -&gt; tgt.coding as coding then {
    src.code as code -&gt; coding.code = cast(code, 'string');
    src.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
    src.displayName as display -&gt; coding.display = cast(display, 'string');
    src.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
  } &quot;code&quot;;
  src.translation as translation -&gt; tgt.coding as coding then {
    translation.code as code -&gt; coding.code = cast(code, 'string');
    translation.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
    translation.displayName as display -&gt; coding.display = cast(display, 'string');
    translation.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
    translation.qualifier as qualifier then {
      qualifier.name as name -&gt; tgt.coding as coding then {
        name.code as code -&gt; coding.code = cast(code, 'string');
        name.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
        name.displayName as display -&gt; coding.display = cast(display, 'string');
        name.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
      };
      qualifier.value as value -&gt; tgt.coding as coding then {
        value.code as code -&gt; coding.code = cast(code, 'string');
        value.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
        value.displayName as display -&gt; coding.display = cast(display, 'string');
        value.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
      };
    };
  };
}

group CDCodeableConcept(source src : CD, target tgt : CodeableConcept) extends CECodeableConcept &lt;&lt;types&gt;&gt; {
  src.originalText as originalText then {
    originalText.reference as reference -&gt; tgt.text = (reference.value);
  } &quot;originltext&quot;;
  src -&gt; tgt.coding as coding then {
    src.code as code -&gt; coding.code = cast(code, 'string');
    src.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
    src.displayName as display -&gt; coding.display = cast(display, 'string');
    src.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
  } &quot;code&quot;;
  src.translation as translation -&gt; tgt.coding as coding then {
    translation.code as code -&gt; coding.code = cast(code, 'string');
    translation.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
    translation.displayName as display -&gt; coding.display = cast(display, 'string');
    translation.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
    translation.qualifier as qualifier then {
      qualifier.name as name -&gt; tgt.coding as coding then {
        name.code as code -&gt; coding.code = cast(code, 'string');
        name.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
        name.displayName as display -&gt; coding.display = cast(display, 'string');
        name.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
      };
      qualifier.value as value -&gt; tgt.coding as coding then {
        value.code as code -&gt; coding.code = cast(code, 'string');
        value.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');
        value.displayName as display -&gt; coding.display = cast(display, 'string');
        value.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');
      };
    };
  };
}

group ENHumanName(source src : EN, target tgt : HumanName) extends Any &lt;&lt;types&gt;&gt; {
  src.family as v -&gt; tgt.family = (v.dataString);
  src.given as v -&gt; tgt.given = (v.dataString);
  src.prefix as v -&gt; tgt.prefix = (v.dataString);
  src.suffix as v -&gt; tgt.suffix = (v.dataString);
  // src.use as c -&gt; tgt.use = translate(c, 'http://hl7.org/fhir/ConceptMap/cm-name-use-v3', 'code');
  src.validTime -&gt; tgt.period;
}

group ADAddress(source src : AD, target tgt : Address) extends Any &lt;&lt;types&gt;&gt; {
  src.country as v -&gt; tgt.country = (v.dataString);
  src.state as v -&gt; tgt.state = (v.dataString);
  src.county as v -&gt; tgt.district = (v.dataString);
  src.city as v -&gt; tgt.city = (v.dataString);
  src.postalCode as v -&gt; tgt.postalCode = (v.dataString);
  src.streetAddressLine as v -&gt; tgt.line = (v.dataString);
  src -&gt; tgt.line as line then {
    src where src.censusTract.exists() then {
      src.censusTract as v -&gt; line.extension as ext1 then CensusTract(v, ext1) &quot;line&quot;;
    } &quot;sfgfdsg&quot;;
  } &quot;CensusTract&quot;;
  // share firstline &quot;streetAddress&quot;;
  src.streetName as v -&gt; tgt.line = (v.dataString);
  src.houseNumber as v -&gt; tgt.line = (v.dataString);
  src.use as c -&gt; tgt.use = translate(c, '#addressUse', 'code') &quot;addressUse&quot;;
  src.useablePeriod -&gt; tgt.period;
}

group TELContactPoint(source src : TEL, target tgt : ContactPoint) extends Any &lt;&lt;types&gt;&gt; {
  src.value as v where (src.value.startsWith('tel:')) -&gt;  tgt.value = (v.substring(4)),  tgt.system = 'phone' &quot;valuetel&quot;;
  src.value as v where (src.value.startsWith('fax:')) -&gt;  tgt.value = (v.substring(4)),  tgt.system = 'fax' &quot;valuefax&quot;;
  src.value as v where (src.value.startsWith('mailto:')) -&gt;  tgt.value = (v.substring(7)),  tgt.system = 'email' &quot;valuemail&quot;;
  src.value as v where (src.value.startsWith('http:')) -&gt;  tgt.value = (v.substring(5)),  tgt.system = 'url' &quot;valuehttp&quot;;
  src.use where (src.use.startsWith('H')) -&gt; tgt.use = 'home' &quot;usehome&quot;;
  src.use where ((src.use = 'WP') or (src.use = 'DIR') or (src.use = 'PUB')) -&gt; tgt.use = 'work' &quot;usework&quot;;
  src.use where (src.use = 'BAD') -&gt; tgt.use = 'old' &quot;usebad&quot;;
  src.use where (src.use = 'TMP') -&gt; tgt.use = 'temp' &quot;usetmp&quot;;
  src.use where (src.use = 'MC') -&gt; tgt.use = 'mobile' &quot;usemobile&quot;;
  src.useablePeriod -&gt; tgt.period;
}

group PQQuantity(source src : PQ, target tgt : Quantity) extends Any &lt;&lt;types&gt;&gt; {
  // src.unit as unit -&gt; tgt.code = unit;
  src.unit as unit -&gt; tgt.unit = unit;
  src.value as value -&gt; tgt.value = value;
}

group RTOPQPQRatio(source src : RTO_PQ_PQ, target tgt : Ratio) extends Any &lt;&lt;types&gt;&gt; {
  src.numerator as numerator -&gt; tgt.numerator as targetNumerator then PQQuantity(numerator, targetNumerator);
  src.denominator as denominator -&gt; tgt.denominator as targetDenominator then PQQuantity(denominator, targetDenominator);
}

group CensusTract(source src : ST, target ext : Extension) {
  src -&gt; ext.url = 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-censusTract' &quot;url&quot;;
  src -&gt;  ext.value = create('string'),  ext.value = (src.dataString) &quot;value&quot;;
}

</pre>
      </div>
  </text>
  <contained>
    <ConceptMap>
      <id value="addressUse"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-AddressUse"/>
        <target value="http://hl7.org/fhir/address-use"/>
        <element>
          <code value="H"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="home"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="HP"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="home"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="HV"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="home"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="WP"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="work"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="DIR"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="work"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="PUB"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="work"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="TMP"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="temp"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="OLD"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="old"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="BAD"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="old"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="OBSstatus"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-statusCode"/>
        <target value="http://hl7.org/fhir/event-status"/>
        <element>
          <code value="completed"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="final"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="active"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="registered"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="aborted"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="cancelled"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="EventStatus"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-statusCode"/>
        <target value="http://hl7.org/fhir/ValueSet/fm-status"/>
        <element>
          <code value="completed"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="completed"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="active"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="in-progress"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="aborted"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="stopped"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="suspended"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="on-hold"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="FinancialStatus"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-statusCode"/>
        <target value="http://hl7.org/fhir/ValueSet/fm-status"/>
        <element>
          <code value="active"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="active"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="aborted"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="cancelled"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="suspended"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="draft"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="MedicationStatusMap"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-statusCode"/>
        <target
                value="http://hl7.org/fhir/ValueSet/medicationrequest-status"/>
        <element>
          <code value="completed"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="completed"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="active"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="active"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="aborted"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="cancelled"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="suspended"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="on-hold"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="cm-v3-administrative-gender"/>
      <status value="draft"/>
      <group>
        <source
                value="http://terminology.hl7.org/ValueSet/v3-AdministrativeGender"/>
        <target value="http://hl7.org/fhir/ValueSet/administrative-gender"/>
        <element>
          <code value="M"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="male"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="F"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="female"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="AllergyTypeMap"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-type"/>
        <target
                value="http://hl7.org/fhir/ValueSet/allergyintolerance-clinical"/>
        <element>
          <code value="OINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="ALG"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="allergy"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="DALG"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="allergy"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="EALG"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="allergy"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="FALG"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="allergy"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="NAINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="FNAINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="DNAINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="ENAINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="FINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="DINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="EINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="AllergyCategoryMap"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-type"/>
        <target
                value="http://hl7.org/fhir/ValueSet/allergyintolerance-clinical"/>
        <element>
          <code value="DALG"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="medication"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="EALG"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="enviroment"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="FALG"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="food"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="FNAINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="intolerance"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="DNAINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="medication"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="ENAINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="enviroment"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="FINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="food"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="DINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="medication"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="EINT"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="enviroment"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="CricalityMap"/>
      <status value="draft"/>
      <group>
        <source
                value="http://terminology.hl7.org/CodeSystem/v3-ObservationValue"/>
        <target
                value="http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality"/>
        <element>
          <code value="M"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="low"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="H"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="high"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="L"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="low"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="ClinicalStatusMap"/>
      <status value="draft"/>
      <group>
        <source value="https://loinc.org/99493-9/"/>
        <target value="http://hl7.org/fhir/ValueSet/condition-clinical"/>
        <element>
          <code value="LA16666-2"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="active"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="LA18632-2"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="inactive"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="LA9041-0"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="resolved"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="priority"/>
      <status value="draft"/>
      <group>
        <source value="http://terminology.hl7.org/ValueSet/v3-ActPriority"/>
        <target value="http://hl7.org/fhir/ValueSet/request-priority"/>
        <element>
          <code value="R"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="routine"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="P"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="asap"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="UR"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="urgent"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="EM"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="stat"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="S"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="stat"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="A"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="asap"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="CR"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="routine"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="EL"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="routine"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="p"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="stat"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="PRN"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="routine"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="RR"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="asap"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="T"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="urgent"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="UD"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="routine"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="AllergyCriticality"/>
      <status value="draft"/>
      <group>
        <source
                value="https://art-decor.org/art-decor/decor-valuesets--hl7it-?id=2.16.840.1.113883.2.9.77.22.11.6"/>
        <target
                value="http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality"/>
        <element>
          <code value="L"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="low"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="H"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="high"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <code value="M"/>
          <target>
            <modifierExtension
                               url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
              <valueCode value="equivalent"/>
            </modifierExtension>
            <code value="unable_to_assess"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <url value="http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes"/>
  <version value="0.1.0"/>
  <name value="cda2fhirDataTypes"/>
  <status value="draft"/>
  <date value="2024-04-11T15:38:19+02:00"/>
  <publisher value="HL7 Italy"/>
  <contact>
    <name value="HL7 Italy"/>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.it"/>
    </telecom>
  </contact>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="IT"/>
      <display value="Italy"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
    <mode value="source"/>
    <alias value="ED"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
    <mode value="source"/>
    <alias value="INT"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Identifier"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/TS"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/instant"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/CS"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/code"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/CodeableConcept"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/ST"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/string"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/EN"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/HumanName"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/AD"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Address"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/TEL"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/ContactPoint"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/boolean"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Period"/>
    <mode value="target"/>
  </structure>
  <group>
    <name value="Any"/>
    <typeMode value="none"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="simple"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <contextType value="variable"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="II"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="II"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="Identifier"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="root1"/>
      <source>
        <context value="src"/>
        <element value="root"/>
        <variable value="r"/>
        <condition value="src.extension.exists()"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="r"/>
        </parameter>
        <parameter>
          <valueString
                       value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
        </parameter>
        <parameter>
          <valueString value="uri"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="rootuuid"/>
      <source>
        <context value="src"/>
        <element value="root"/>
        <variable value="r"/>
        <condition
                   value="src.extension.empty() and src.root.matches('[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="urn:ietf:rfc:3986"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="'urn:uuid:' + r.lower()"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="rootoid"/>
      <source>
        <context value="src"/>
        <element value="root"/>
        <variable value="r"/>
        <condition value="src.extension.empty() and src.root.contains('.')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="urn:ietf:rfc:3986"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="append"/>
        <parameter>
          <valueString value="urn:oid:"/>
        </parameter>
        <parameter>
          <valueId value="r"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="extension"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="e"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="e"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="assigningAuthorityName"/>
      <source>
        <context value="src"/>
        <element value="assigningAuthorityName"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="assigner"/>
        <variable value="a"/>
      </target>
      <target>
        <context value="a"/>
        <contextType value="variable"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="INT"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="INT"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="integer"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="TemplateID"/>
    <typeMode value="none"/>
    <input>
      <name value="template"/>
      <type value="II"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="templateId"/>
      <source>
        <context value="template"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="extension"/>
        <variable value="ext"/>
      </target>
      <rule>
        <name value="url"/>
        <source>
          <context value="template"/>
        </source>
        <target>
          <context value="ext"/>
          <contextType value="variable"/>
          <element value="url"/>
          <transform value="copy"/>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/cda/StructureDefinition/templateID"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="value"/>
        <source>
          <context value="template"/>
        </source>
        <target>
          <context value="ext"/>
          <contextType value="variable"/>
          <element value="value"/>
          <variable value="value"/>
          <transform value="create"/>
          <parameter>
            <valueString value="Identifier"/>
          </parameter>
        </target>
        <dependent>
          <name value="II"/>
          <variable value="template"/>
          <variable value="value"/>
        </dependent>
      </rule>
    </rule>
  </group>
  <group>
    <name value="Negation"/>
    <typeMode value="none"/>
    <input>
      <name value="negation"/>
      <type value="BL"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="negation"/>
      <source>
        <context value="negation"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="modifierExtension"/>
        <variable value="ext"/>
      </target>
      <rule>
        <name value="url"/>
        <source>
          <context value="negation"/>
        </source>
        <target>
          <context value="ext"/>
          <contextType value="variable"/>
          <element value="url"/>
          <transform value="copy"/>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/cda/StructureDefinition/negationIndicator"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="value"/>
        <source>
          <context value="negation"/>
          <variable value="neg"/>
        </source>
        <target>
          <context value="ext"/>
          <contextType value="variable"/>
          <element value="value"/>
          <transform value="create"/>
          <parameter>
            <valueString value="boolean"/>
          </parameter>
        </target>
        <target>
          <context value="ext"/>
          <contextType value="variable"/>
          <element value="value"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="neg"/>
          </parameter>
        </target>
      </rule>
    </rule>
  </group>
  <group>
    <name value="TSInstant"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="TS"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="instant"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="TSDateTime"/>
    <extends value="TSInstant"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="TS"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateTime"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="eff"/>
      <source>
        <context value="src"/>
        <condition value="(value.contains('+'))"/>
      </source>
      <rule>
        <name value="value"/>
        <source>
          <context value="src"/>
          <element value="value"/>
          <variable value="v"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="value"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="eff"/>
      <source>
        <context value="src"/>
        <condition value="(value.contains('-'))"/>
      </source>
      <rule>
        <name value="value"/>
        <source>
          <context value="src"/>
          <element value="value"/>
          <variable value="v"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="value"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="eff"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <condition
                   value="(value.matches('^\\d{4}(\\-\\d{2}){2}T\\d{2}(:\\d{2}){2}$'))"/>
      </source>
      <rule>
        <name value="date"/>
        <source>
          <context value="src"/>
          <element value="value"/>
          <variable value="v"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="value"/>
          <transform value="append"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
          <parameter>
            <valueString value="Z"/>
          </parameter>
        </target>
      </rule>
    </rule>
  </group>
  <group>
    <name value="TSDate"/>
    <extends value="TSInstant"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="TS"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="date"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="date"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="IVLTSPeriod"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="IVL_TS"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="Period"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="low"/>
      <source>
        <context value="src"/>
        <element value="low"/>
        <variable value="l"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="start"/>
        <variable value="start"/>
        <transform value="create"/>
        <parameter>
          <valueString value="dateTime"/>
        </parameter>
      </target>
      <dependent>
        <name value="TSDateTime"/>
        <variable value="l"/>
        <variable value="start"/>
      </dependent>
    </rule>
    <rule>
      <name value="high"/>
      <source>
        <context value="src"/>
        <element value="high"/>
        <variable value="h"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="end"/>
        <variable value="end"/>
        <transform value="create"/>
        <parameter>
          <valueString value="dateTime"/>
        </parameter>
      </target>
      <dependent>
        <name value="TSDateTime"/>
        <variable value="h"/>
        <variable value="end"/>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="IVLTSDateTime"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="IVL_TS"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateTime"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="low"/>
      <source>
        <context value="src"/>
        <element value="low"/>
        <variable value="s"/>
      </source>
      <dependent>
        <name value="TSDateTime"/>
        <variable value="s"/>
        <variable value="tgt"/>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="STstring"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="ST"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="string"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="EDstring"/>
    <extends value="STstring"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="ED"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="string"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="INTstring"/>
    <extends value="STstring"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="INT"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="string"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="ONstring"/>
    <extends value="STstring"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="ON"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="string"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="CSCode"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="CS"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="code"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="c"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="c"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="CECode"/>
    <extends value="CSCode"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="CE"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="code"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="c"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="c"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="CDCode"/>
    <extends value="CSCode"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="CD"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="code"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="c"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="c"/>
        </parameter>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="CECodeableConcept"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="CE"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="CodeableConcept"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="originltext"/>
      <source>
        <context value="src"/>
        <element value="originalText"/>
        <variable value="originalText"/>
      </source>
      <rule>
        <name value="reference"/>
        <source>
          <context value="originalText"/>
          <element value="reference"/>
          <variable value="reference"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="text"/>
          <transform value="evaluate"/>
          <parameter>
            <valueString value="reference.value"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="coding"/>
      </target>
      <rule>
        <name value="code"/>
        <source>
          <context value="src"/>
          <element value="code"/>
          <variable value="code"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="code"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="code"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystem"/>
        <source>
          <context value="src"/>
          <element value="codeSystem"/>
          <variable value="system"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="system"/>
          <transform value="translate"/>
          <parameter>
            <valueId value="system"/>
          </parameter>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
          </parameter>
          <parameter>
            <valueString value="uri"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="displayName"/>
        <source>
          <context value="src"/>
          <element value="displayName"/>
          <variable value="display"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="display"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="display"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystemVersion"/>
        <source>
          <context value="src"/>
          <element value="codeSystemVersion"/>
          <variable value="version"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="version"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="version"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="translation"/>
      <source>
        <context value="src"/>
        <element value="translation"/>
        <variable value="translation"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="coding"/>
      </target>
      <rule>
        <name value="code"/>
        <source>
          <context value="translation"/>
          <element value="code"/>
          <variable value="code"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="code"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="code"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystem"/>
        <source>
          <context value="translation"/>
          <element value="codeSystem"/>
          <variable value="system"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="system"/>
          <transform value="translate"/>
          <parameter>
            <valueId value="system"/>
          </parameter>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
          </parameter>
          <parameter>
            <valueString value="uri"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="displayName"/>
        <source>
          <context value="translation"/>
          <element value="displayName"/>
          <variable value="display"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="display"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="display"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystemVersion"/>
        <source>
          <context value="translation"/>
          <element value="codeSystemVersion"/>
          <variable value="version"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="version"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="version"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="qualifier"/>
        <source>
          <context value="translation"/>
          <element value="qualifier"/>
          <variable value="qualifier"/>
        </source>
        <rule>
          <name value="name"/>
          <source>
            <context value="qualifier"/>
            <element value="name"/>
            <variable value="name"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
          </target>
          <rule>
            <name value="code"/>
            <source>
              <context value="name"/>
              <element value="code"/>
              <variable value="code"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="code"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="code"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystem"/>
            <source>
              <context value="name"/>
              <element value="codeSystem"/>
              <variable value="system"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="system"/>
              </parameter>
              <parameter>
                <valueString
                             value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
              </parameter>
              <parameter>
                <valueString value="uri"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="displayName"/>
            <source>
              <context value="name"/>
              <element value="displayName"/>
              <variable value="display"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="display"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="display"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystemVersion"/>
            <source>
              <context value="name"/>
              <element value="codeSystemVersion"/>
              <variable value="version"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="version"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="version"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
        </rule>
        <rule>
          <name value="value"/>
          <source>
            <context value="qualifier"/>
            <element value="value"/>
            <variable value="value"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
          </target>
          <rule>
            <name value="code"/>
            <source>
              <context value="value"/>
              <element value="code"/>
              <variable value="code"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="code"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="code"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystem"/>
            <source>
              <context value="value"/>
              <element value="codeSystem"/>
              <variable value="system"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="system"/>
              </parameter>
              <parameter>
                <valueString
                             value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
              </parameter>
              <parameter>
                <valueString value="uri"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="displayName"/>
            <source>
              <context value="value"/>
              <element value="displayName"/>
              <variable value="display"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="display"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="display"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystemVersion"/>
            <source>
              <context value="value"/>
              <element value="codeSystemVersion"/>
              <variable value="version"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="version"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="version"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
        </rule>
      </rule>
    </rule>
  </group>
  <group>
    <name value="CSCodeableConcept"/>
    <extends value="CECodeableConcept"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="CS"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="CodeableConcept"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="originltext"/>
      <source>
        <context value="src"/>
        <element value="originalText"/>
        <variable value="originalText"/>
      </source>
      <rule>
        <name value="reference"/>
        <source>
          <context value="originalText"/>
          <element value="reference"/>
          <variable value="reference"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="text"/>
          <transform value="evaluate"/>
          <parameter>
            <valueString value="reference.value"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="coding"/>
      </target>
      <rule>
        <name value="code"/>
        <source>
          <context value="src"/>
          <element value="code"/>
          <variable value="code"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="code"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="code"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystem"/>
        <source>
          <context value="src"/>
          <element value="codeSystem"/>
          <variable value="system"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="system"/>
          <transform value="translate"/>
          <parameter>
            <valueId value="system"/>
          </parameter>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
          </parameter>
          <parameter>
            <valueString value="uri"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="displayName"/>
        <source>
          <context value="src"/>
          <element value="displayName"/>
          <variable value="display"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="display"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="display"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystemVersion"/>
        <source>
          <context value="src"/>
          <element value="codeSystemVersion"/>
          <variable value="version"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="version"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="version"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="translation"/>
      <source>
        <context value="src"/>
        <element value="translation"/>
        <variable value="translation"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="coding"/>
      </target>
      <rule>
        <name value="code"/>
        <source>
          <context value="translation"/>
          <element value="code"/>
          <variable value="code"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="code"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="code"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystem"/>
        <source>
          <context value="translation"/>
          <element value="codeSystem"/>
          <variable value="system"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="system"/>
          <transform value="translate"/>
          <parameter>
            <valueId value="system"/>
          </parameter>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
          </parameter>
          <parameter>
            <valueString value="uri"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="displayName"/>
        <source>
          <context value="translation"/>
          <element value="displayName"/>
          <variable value="display"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="display"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="display"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystemVersion"/>
        <source>
          <context value="translation"/>
          <element value="codeSystemVersion"/>
          <variable value="version"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="version"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="version"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="qualifier"/>
        <source>
          <context value="translation"/>
          <element value="qualifier"/>
          <variable value="qualifier"/>
        </source>
        <rule>
          <name value="name"/>
          <source>
            <context value="qualifier"/>
            <element value="name"/>
            <variable value="name"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
          </target>
          <rule>
            <name value="code"/>
            <source>
              <context value="name"/>
              <element value="code"/>
              <variable value="code"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="code"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="code"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystem"/>
            <source>
              <context value="name"/>
              <element value="codeSystem"/>
              <variable value="system"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="system"/>
              </parameter>
              <parameter>
                <valueString
                             value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
              </parameter>
              <parameter>
                <valueString value="uri"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="displayName"/>
            <source>
              <context value="name"/>
              <element value="displayName"/>
              <variable value="display"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="display"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="display"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystemVersion"/>
            <source>
              <context value="name"/>
              <element value="codeSystemVersion"/>
              <variable value="version"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="version"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="version"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
        </rule>
        <rule>
          <name value="value"/>
          <source>
            <context value="qualifier"/>
            <element value="value"/>
            <variable value="value"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
          </target>
          <rule>
            <name value="code"/>
            <source>
              <context value="value"/>
              <element value="code"/>
              <variable value="code"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="code"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="code"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystem"/>
            <source>
              <context value="value"/>
              <element value="codeSystem"/>
              <variable value="system"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="system"/>
              </parameter>
              <parameter>
                <valueString
                             value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
              </parameter>
              <parameter>
                <valueString value="uri"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="displayName"/>
            <source>
              <context value="value"/>
              <element value="displayName"/>
              <variable value="display"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="display"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="display"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystemVersion"/>
            <source>
              <context value="value"/>
              <element value="codeSystemVersion"/>
              <variable value="version"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="version"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="version"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
        </rule>
      </rule>
    </rule>
  </group>
  <group>
    <name value="CDCodeableConcept"/>
    <extends value="CECodeableConcept"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="CD"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="CodeableConcept"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="originltext"/>
      <source>
        <context value="src"/>
        <element value="originalText"/>
        <variable value="originalText"/>
      </source>
      <rule>
        <name value="reference"/>
        <source>
          <context value="originalText"/>
          <element value="reference"/>
          <variable value="reference"/>
        </source>
        <target>
          <context value="tgt"/>
          <contextType value="variable"/>
          <element value="text"/>
          <transform value="evaluate"/>
          <parameter>
            <valueString value="reference.value"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="coding"/>
      </target>
      <rule>
        <name value="code"/>
        <source>
          <context value="src"/>
          <element value="code"/>
          <variable value="code"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="code"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="code"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystem"/>
        <source>
          <context value="src"/>
          <element value="codeSystem"/>
          <variable value="system"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="system"/>
          <transform value="translate"/>
          <parameter>
            <valueId value="system"/>
          </parameter>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
          </parameter>
          <parameter>
            <valueString value="uri"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="displayName"/>
        <source>
          <context value="src"/>
          <element value="displayName"/>
          <variable value="display"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="display"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="display"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystemVersion"/>
        <source>
          <context value="src"/>
          <element value="codeSystemVersion"/>
          <variable value="version"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="version"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="version"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="translation"/>
      <source>
        <context value="src"/>
        <element value="translation"/>
        <variable value="translation"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="coding"/>
      </target>
      <rule>
        <name value="code"/>
        <source>
          <context value="translation"/>
          <element value="code"/>
          <variable value="code"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="code"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="code"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystem"/>
        <source>
          <context value="translation"/>
          <element value="codeSystem"/>
          <variable value="system"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="system"/>
          <transform value="translate"/>
          <parameter>
            <valueId value="system"/>
          </parameter>
          <parameter>
            <valueString
                         value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
          </parameter>
          <parameter>
            <valueString value="uri"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="displayName"/>
        <source>
          <context value="translation"/>
          <element value="displayName"/>
          <variable value="display"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="display"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="display"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="codeSystemVersion"/>
        <source>
          <context value="translation"/>
          <element value="codeSystemVersion"/>
          <variable value="version"/>
        </source>
        <target>
          <context value="coding"/>
          <contextType value="variable"/>
          <element value="version"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="version"/>
          </parameter>
          <parameter>
            <valueString value="string"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="qualifier"/>
        <source>
          <context value="translation"/>
          <element value="qualifier"/>
          <variable value="qualifier"/>
        </source>
        <rule>
          <name value="name"/>
          <source>
            <context value="qualifier"/>
            <element value="name"/>
            <variable value="name"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
          </target>
          <rule>
            <name value="code"/>
            <source>
              <context value="name"/>
              <element value="code"/>
              <variable value="code"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="code"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="code"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystem"/>
            <source>
              <context value="name"/>
              <element value="codeSystem"/>
              <variable value="system"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="system"/>
              </parameter>
              <parameter>
                <valueString
                             value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
              </parameter>
              <parameter>
                <valueString value="uri"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="displayName"/>
            <source>
              <context value="name"/>
              <element value="displayName"/>
              <variable value="display"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="display"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="display"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystemVersion"/>
            <source>
              <context value="name"/>
              <element value="codeSystemVersion"/>
              <variable value="version"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="version"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="version"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
        </rule>
        <rule>
          <name value="value"/>
          <source>
            <context value="qualifier"/>
            <element value="value"/>
            <variable value="value"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
          </target>
          <rule>
            <name value="code"/>
            <source>
              <context value="value"/>
              <element value="code"/>
              <variable value="code"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="code"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="code"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystem"/>
            <source>
              <context value="value"/>
              <element value="codeSystem"/>
              <variable value="system"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="system"/>
              </parameter>
              <parameter>
                <valueString
                             value="http://hl7.org/fhir/ConceptMap/special-oid2uri"/>
              </parameter>
              <parameter>
                <valueString value="uri"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="displayName"/>
            <source>
              <context value="value"/>
              <element value="displayName"/>
              <variable value="display"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="display"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="display"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="codeSystemVersion"/>
            <source>
              <context value="value"/>
              <element value="codeSystemVersion"/>
              <variable value="version"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="version"/>
              <transform value="cast"/>
              <parameter>
                <valueId value="version"/>
              </parameter>
              <parameter>
                <valueString value="string"/>
              </parameter>
            </target>
          </rule>
        </rule>
      </rule>
    </rule>
  </group>
  <group>
    <name value="ENHumanName"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="EN"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="HumanName"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="family"/>
      <source>
        <context value="src"/>
        <element value="family"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="family"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="given"/>
      <source>
        <context value="src"/>
        <element value="given"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="given"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="prefix"/>
      <source>
        <context value="src"/>
        <element value="prefix"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="prefix"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="suffix"/>
      <source>
        <context value="src"/>
        <element value="suffix"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="suffix"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="validTime"/>
      <source>
        <context value="src"/>
        <element value="validTime"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="period"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <documentation
                     value="src.use as c -&gt; tgt.use = translate(c, 'http://hl7.org/fhir/ConceptMap/cm-name-use-v3', 'code');"/>
    </rule>
  </group>
  <group>
    <name value="ADAddress"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="AD"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="Address"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="country"/>
      <source>
        <context value="src"/>
        <element value="country"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="country"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="state"/>
      <source>
        <context value="src"/>
        <element value="state"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="state"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="county"/>
      <source>
        <context value="src"/>
        <element value="county"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="district"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="city"/>
      <source>
        <context value="src"/>
        <element value="city"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="city"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="postalCode"/>
      <source>
        <context value="src"/>
        <element value="postalCode"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="postalCode"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="streetAddressLine"/>
      <source>
        <context value="src"/>
        <element value="streetAddressLine"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="line"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="CensusTract"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="line"/>
        <variable value="line"/>
      </target>
      <rule>
        <name value="sfgfdsg"/>
        <source>
          <context value="src"/>
          <condition value="src.censusTract.exists()"/>
        </source>
        <rule>
          <name value="line"/>
          <source>
            <context value="src"/>
            <element value="censusTract"/>
            <variable value="v"/>
          </source>
          <target>
            <context value="line"/>
            <contextType value="variable"/>
            <element value="extension"/>
            <variable value="ext1"/>
          </target>
          <dependent>
            <name value="CensusTract"/>
            <variable value="v"/>
            <variable value="ext1"/>
          </dependent>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="streetName"/>
      <source>
        <context value="src"/>
        <element value="streetName"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="line"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
      <documentation value="share firstline &quot;streetAddress&quot;;"/>
    </rule>
    <rule>
      <name value="houseNumber"/>
      <source>
        <context value="src"/>
        <element value="houseNumber"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="line"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.dataString"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="addressUse"/>
      <source>
        <context value="src"/>
        <element value="use"/>
        <variable value="c"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="use"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="c"/>
        </parameter>
        <parameter>
          <valueString value="#addressUse"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="useablePeriod"/>
      <source>
        <context value="src"/>
        <element value="useablePeriod"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="period"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
    </rule>
  </group>
  <group>
    <name value="TELContactPoint"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="TEL"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ContactPoint"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="valuetel"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
        <condition value="(src.value.startsWith('tel:'))"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.substring(4)"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="phone"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="valuefax"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
        <condition value="(src.value.startsWith('fax:'))"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.substring(4)"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="fax"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="valuemail"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
        <condition value="(src.value.startsWith('mailto:'))"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.substring(7)"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="email"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="valuehttp"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
        <condition value="(src.value.startsWith('http:'))"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.substring(5)"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="url"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="usehome"/>
      <source>
        <context value="src"/>
        <element value="use"/>
        <condition value="(src.use.startsWith('H'))"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="use"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="home"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="usework"/>
      <source>
        <context value="src"/>
        <element value="use"/>
        <condition
                   value="((src.use = 'WP') or (src.use = 'DIR') or (src.use = 'PUB'))"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="use"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="work"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="usebad"/>
      <source>
        <context value="src"/>
        <element value="use"/>
        <condition value="(src.use = 'BAD')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="use"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="old"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="usetmp"/>
      <source>
        <context value="src"/>
        <element value="use"/>
        <condition value="(src.use = 'TMP')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="use"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="temp"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="usemobile"/>
      <source>
        <context value="src"/>
        <element value="use"/>
        <condition value="(src.use = 'MC')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="use"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="mobile"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="useablePeriod"/>
      <source>
        <context value="src"/>
        <element value="useablePeriod"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="period"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
    </rule>
  </group>
  <group>
    <name value="PQQuantity"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="PQ"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="Quantity"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="unit"/>
      <source>
        <context value="src"/>
        <element value="unit"/>
        <variable value="unit"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="unit"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="unit"/>
        </parameter>
      </target>
      <documentation value="src.unit as unit -&gt; tgt.code = unit;"/>
    </rule>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="value"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="value"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="RTOPQPQRatio"/>
    <extends value="Any"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="RTO_PQ_PQ"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="Ratio"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="numerator"/>
      <source>
        <context value="src"/>
        <element value="numerator"/>
        <variable value="numerator"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="numerator"/>
        <variable value="targetNumerator"/>
      </target>
      <dependent>
        <name value="PQQuantity"/>
        <variable value="numerator"/>
        <variable value="targetNumerator"/>
      </dependent>
    </rule>
    <rule>
      <name value="denominator"/>
      <source>
        <context value="src"/>
        <element value="denominator"/>
        <variable value="denominator"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="denominator"/>
        <variable value="targetDenominator"/>
      </target>
      <dependent>
        <name value="PQQuantity"/>
        <variable value="denominator"/>
        <variable value="targetDenominator"/>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="CensusTract"/>
    <typeMode value="none"/>
    <input>
      <name value="src"/>
      <type value="ST"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="ext"/>
      <type value="Extension"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="url"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="ext"/>
        <contextType value="variable"/>
        <element value="url"/>
        <transform value="copy"/>
        <parameter>
          <valueString
                       value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-censusTract"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="value"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="ext"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="create"/>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
      <target>
        <context value="ext"/>
        <contextType value="variable"/>
        <element value="value"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="src.dataString"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>