<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Linkage" />
  <meta>
    <lastUpdated value="2021-01-02T08:58:31.578+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Foundation.Other" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="0" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pc" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status">
    <valueCode value=".active = false" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/Linkage" />
  <version value="4.6.0" />
  <name value="Linkage" />
  <status value="draft" />
  <date value="2021-01-02T08:58:31+11:00" />
  <publisher value="Health Level Seven International (Patient Care)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/patientcare/index.cfm" />
    </telecom>
  </contact>
  <description value="Identifies two or more records (resource instances) that refer to the same real-world &quot;occurrence&quot;." />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Linkage" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="Linkage">
      <path value="Linkage" />
      <short value="Links records for 'same' item" />
      <definition value="Identifies two or more records (resource instances) that refer to the same real-world &quot;occurrence&quot;." />
      <min value="0" />
      <max value="*" />
      <constraint>
        <key value="lnk-1" />
        <severity value="error" />
        <human value="Must have at least two items" />
        <expression value="item.count()&gt;1" />
        <xpath value="count(f:item)&gt;1" />
        <source value="http://hl7.org/fhir/StructureDefinition/Linkage" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="N/A - RIM doesn't know how to do this" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="infrastructure.structure" />
      </mapping>
    </element>
    <element id="Linkage.active">
      <path value="Linkage.active" />
      <short value="Whether this linkage assertion is active or not" />
      <definition value="Indicates whether the asserted set of linkages are considered to be &quot;in effect&quot;." />
      <comment value="If false, any asserted linkages should not be considered current/relevant/applicable." />
      <requirements value="Need to be able to mark a linkage record as not to be used because it was created in error." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <meaningWhenMissing value="This resource is generally assumed to be active if no value is provided for the active element" />
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
    </element>
    <element id="Linkage.author">
      <path value="Linkage.author" />
      <short value="Who is responsible for linkages" />
      <definition value="Identifies the user or organization responsible for asserting the linkages as well as the user or organization who establishes the context in which the nature of each linkage is evaluated." />
      <requirements value="&quot;Primary&quot; for the same set of linked resources may be different from different user's/organization's perspectives." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.author" />
      </mapping>
    </element>
    <element id="Linkage.item">
      <path value="Linkage.item" />
      <short value="Item to be linked" />
      <definition value="Identifies which record considered as the reference to the same real-world occurrence as well as how the items should be evaluated within the collection of linked items." />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="lnk-1" />
      <isSummary value="true" />
    </element>
    <element id="Linkage.item.type">
      <path value="Linkage.item.type" />
      <short value="source | alternate | historical" />
      <definition value="Distinguishes which item is &quot;source of truth&quot; (if any) and which items are no longer considered to be current representations." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="LinkageType" />
        </extension>
        <strength value="required" />
        <description value="Used to distinguish different roles a resource can play within a set of linked resources." />
        <valueSet value="http://hl7.org/fhir/ValueSet/linkage-type" />
      </binding>
    </element>
    <element id="Linkage.item.resource">
      <path value="Linkage.item.resource" />
      <short value="Resource being linked" />
      <definition value="The resource instance being linked as part of the group." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <isSummary value="true" />
    </element>
  </differential>
</StructureDefinition>