<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="relation-to-landmark" />
  <meta>
    <lastUpdated value="2019-12-20T21:25:46.296+00:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;">
        <tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;">
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="The logical name of the element">Name</a>
          </th>
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Information about the use of the element">Flags</a>
          </th>
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a>
          </th>
          <th style="width: 100px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Reference to the type of the element">Type</a>
          </th>
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Additional information about the element">Description &amp; Constraints</a>
            <span style="float: right">
              <a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format">
                <img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit" />
              </a>
            </span>
          </th>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy" />
            <a href="StructureDefinition-relation-to-landmark-definitions.html#Extension" title="The relationship between a landmark that helps determine a body location and the body location itself. The location relative to a landmark is specified by: * Specifying the location and type of landmark using a body site code and optional laterality/orientation, * Specifying the direction from the landmark to the body location, and * Specifying the distance from the landmark to the body location.  The RelationToLandmark element is part of BodyLocation, a flexible structure that allows the location to be determined by a single code, or a code plus laterality and/or orientation. The body location can also be specified in relation to one or more body landmarks. SNOMED CT is used in all cases.  * Code only: The code should include (precoordinate) laterality and/orientation to the degree necessary to completely specify the body location. * Code plus laterality and/or orientation: The basic code augmented by codes specifying the body side and/or anatomical orientation. * Relation to landmark: The location relative to a landmark is specified by: 1. Establishing the location and type of landmark using a body site code and optional laterality/orientation, and 2. Specifying the direction and distance from the landmark to the body location.  Note that BodyLocation is a data type (a reusable structure), not a stand-alone entity. The concept is similar to how a postal address can apply to a person, location, or organization. This contrasts with FHIR's stand-alone BodySite (aka BodyStructure in r4) which 'is not ... intended for describing the type of anatomical location but rather a specific body site on a specific patient' (FHIR 3.5).">Extension</a>
            <a name="Extension"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">RelationToLandmark<br /></td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;">
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy" />
            <a href="StructureDefinition-relation-to-landmark-definitions.html#Extension.extension:landmarktype" title="Extension URL = http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-type">landmark-type</a>
            <a name="Extension.extension"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">LandmarkType<br /><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-landmark-type.html">http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-type</a><br /></td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy" />
            <a href="StructureDefinition-relation-to-landmark-definitions.html#Extension.extension:landmarklocation" title="Extension URL = http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-location">landmark-location</a>
            <a name="Extension.extension"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(Complex)</td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">LandmarkLocation<br /><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-landmark-location.html">http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-location</a><br /></td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;">
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy" />
            <a href="StructureDefinition-relation-to-landmark-definitions.html#Extension.extension:landmarktobodylocationdirection" title="Extension URL = http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-direction">landmark-to-body-location-direction</a>
            <a name="Extension.extension"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">LandmarkToBodyLocationDirection<br /><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-landmark-to-body-location-direction.html">http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-direction</a><br /></td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy" />
            <a href="StructureDefinition-relation-to-landmark-definitions.html#Extension.extension:landmarktobodylocationdistance" title="Extension URL = http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-distance">landmark-to-body-location-distance</a>
            <a name="Extension.extension"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#Quantity">Quantity</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">LandmarkToBodyLocationDistance<br /><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-landmark-to-body-location-distance.html">http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-distance</a><br /></td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;">
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type" class="hierarchy" />
            <a href="StructureDefinition-relation-to-landmark-definitions.html#Extension.url" title="null">url</a>
            <a name="Extension.url"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="opacity: 0.4">1</span>
            <span style="opacity: 0.5">..</span>
            <span style="opacity: 0.4">1</span>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="color: darkgreen">"http://ga4gh.org/fhir/phenopackets/StructureDefinition/relation-to-landmark"</span>
          </td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy" />
            <span style="text-decoration:line-through" title="null">value[x]</span>
            <a name="Extension.value_x_"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="text-decoration:line-through" />
            <span style="text-decoration:line-through">0</span>
            <span style="text-decoration:line-through">..</span>
            <span style="text-decoration:line-through">0</span>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
        </tr>
        <tr>
          <td colspan="5" class="hierarchy">
            <br />
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format">
              <img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit" /> Documentation for this format</a>
          </td>
        </tr>
      </table>
    </div>
  </text>
  <url value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/relation-to-landmark" />
  <version value="0.1.0" />
  <name value="RelationToLandmark" />
  <title value="Relation To Landmark" />
  <status value="draft" />
  <date value="2019-12-20T18:15:04+00:00" />
  <publisher value="Global Alliance for Genomics and Health" />
  <contact>
    <telecom>
      <system value="other" />
      <value value="http://ga4gh.org" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="The relationship between a landmark that helps determine a body location and the body location itself. The location relative to a landmark is specified by:&#xA;* Specifying the location and type of landmark using a body site code and optional laterality/orientation,&#xA;* Specifying the direction from the landmark to the body location, and&#xA;* Specifying the distance from the landmark to the body location.&#xA;&#xA;The RelationToLandmark element is part of BodyLocation, a flexible structure that allows the location to be determined by a single code, or a code plus laterality and/or orientation. The body location can also be specified in relation to one or more body landmarks. SNOMED CT is used in all cases.&#xA;&#xA;* Code only: The code should include (precoordinate) laterality and/orientation to the degree necessary to completely specify the body location.&#xA;* Code plus laterality and/or orientation: The basic code augmented by codes specifying the body side and/or anatomical orientation.&#xA;* Relation to landmark: The location relative to a landmark is specified by:&#xA;1. Establishing the location and type of landmark using a body site code and optional laterality/orientation, and&#xA;2. Specifying the direction and distance from the landmark to the body location.&#xA;&#xA;Note that BodyLocation is a data type (a reusable structure), not a stand-alone entity. The concept is similar to how a postal address can apply to a person, location, or organization. This contrasts with FHIR's stand-alone BodySite (aka BodyStructure in r4) which 'is not ... intended for describing the type of anatomical location but rather a specific body site on a specific patient' (FHIR 3.5)." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="*" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Extension">
      <path value="Extension" />
      <short value="RelationToLandmark" />
      <definition value="The relationship between a landmark that helps determine a body location and the body location itself. The location relative to a landmark is specified by:&#xA;* Specifying the location and type of landmark using a body site code and optional laterality/orientation,&#xA;* Specifying the direction from the landmark to the body location, and&#xA;* Specifying the distance from the landmark to the body location.&#xA;&#xA;The RelationToLandmark element is part of BodyLocation, a flexible structure that allows the location to be determined by a single code, or a code plus laterality and/or orientation. The body location can also be specified in relation to one or more body landmarks. SNOMED CT is used in all cases.&#xA;&#xA;* Code only: The code should include (precoordinate) laterality and/orientation to the degree necessary to completely specify the body location.&#xA;* Code plus laterality and/or orientation: The basic code augmented by codes specifying the body side and/or anatomical orientation.&#xA;* Relation to landmark: The location relative to a landmark is specified by:&#xA;1. Establishing the location and type of landmark using a body site code and optional laterality/orientation, and&#xA;2. Specifying the direction and distance from the landmark to the body location.&#xA;&#xA;Note that BodyLocation is a data type (a reusable structure), not a stand-alone entity. The concept is similar to how a postal address can apply to a person, location, or organization. This contrasts with FHIR's stand-alone BodySite (aka BodyStructure in r4) which 'is not ... intended for describing the type of anatomical location but rather a specific body site on a specific patient' (FHIR 3.5)." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
    </element>
    <element id="Extension.id">
      <path value="Extension.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension:landmarktype">
      <path value="Extension.extension" />
      <sliceName value="landmarktype" />
      <short value="LandmarkType" />
      <definition value="The type of feature that constitutes the landmark, particularly if the landmark is an acquired body structure or physical object." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-type" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension:landmarklocation">
      <path value="Extension.extension" />
      <sliceName value="landmarklocation" />
      <short value="LandmarkLocation" />
      <definition value="The body location of the landmark, specified by a location code and optional laterality and orientation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-location" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension:landmarktobodylocationdirection">
      <path value="Extension.extension" />
      <sliceName value="landmarktobodylocationdirection" />
      <short value="LandmarkToBodyLocationDirection" />
      <definition value="The direction from the landmark to the body location of interest, given as a clockface direction or anatomical direction." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-direction" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension:landmarktobodylocationdistance">
      <path value="Extension.extension" />
      <sliceName value="landmarktobodylocationdistance" />
      <short value="LandmarkToBodyLocationDistance" />
      <definition value="How far the body location of interest is from the given landmark." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-distance" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <representation value="xmlAttr" />
      <short value="identifies the meaning of the extension" />
      <definition value="Source of the definition for the extension code - a logical name or a URL." />
      <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.url" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/relation-to-landmark" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="Value of extension" />
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="canonical" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="date" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="id" />
      </type>
      <type>
        <code value="instant" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="markdown" />
      </type>
      <type>
        <code value="oid" />
      </type>
      <type>
        <code value="positiveInt" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="unsignedInt" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="url" />
      </type>
      <type>
        <code value="uuid" />
      </type>
      <type>
        <code value="Address" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Annotation" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="ContactPoint" />
      </type>
      <type>
        <code value="Count" />
      </type>
      <type>
        <code value="Distance" />
      </type>
      <type>
        <code value="Duration" />
      </type>
      <type>
        <code value="HumanName" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Money" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="Reference" />
      </type>
      <type>
        <code value="SampledData" />
      </type>
      <type>
        <code value="Signature" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <type>
        <code value="ContactDetail" />
      </type>
      <type>
        <code value="Contributor" />
      </type>
      <type>
        <code value="DataRequirement" />
      </type>
      <type>
        <code value="Expression" />
      </type>
      <type>
        <code value="ParameterDefinition" />
      </type>
      <type>
        <code value="RelatedArtifact" />
      </type>
      <type>
        <code value="TriggerDefinition" />
      </type>
      <type>
        <code value="UsageContext" />
      </type>
      <type>
        <code value="Dosage" />
      </type>
      <type>
        <code value="Meta" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="RelationToLandmark" />
      <definition value="The relationship between a landmark that helps determine a body location and the body location itself. The location relative to a landmark is specified by:&#xA;* Specifying the location and type of landmark using a body site code and optional laterality/orientation,&#xA;* Specifying the direction from the landmark to the body location, and&#xA;* Specifying the distance from the landmark to the body location.&#xA;&#xA;The RelationToLandmark element is part of BodyLocation, a flexible structure that allows the location to be determined by a single code, or a code plus laterality and/or orientation. The body location can also be specified in relation to one or more body landmarks. SNOMED CT is used in all cases.&#xA;&#xA;* Code only: The code should include (precoordinate) laterality and/orientation to the degree necessary to completely specify the body location.&#xA;* Code plus laterality and/or orientation: The basic code augmented by codes specifying the body side and/or anatomical orientation.&#xA;* Relation to landmark: The location relative to a landmark is specified by:&#xA;1. Establishing the location and type of landmark using a body site code and optional laterality/orientation, and&#xA;2. Specifying the direction and distance from the landmark to the body location.&#xA;&#xA;Note that BodyLocation is a data type (a reusable structure), not a stand-alone entity. The concept is similar to how a postal address can apply to a person, location, or organization. This contrasts with FHIR's stand-alone BodySite (aka BodyStructure in r4) which 'is not ... intended for describing the type of anatomical location but rather a specific body site on a specific patient' (FHIR 3.5)." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Extension.extension:landmarktype">
      <path value="Extension.extension" />
      <sliceName value="landmarktype" />
      <definition value="The type of feature that constitutes the landmark, particularly if the landmark is an acquired body structure or physical object." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-type" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension:landmarklocation">
      <path value="Extension.extension" />
      <sliceName value="landmarklocation" />
      <definition value="The body location of the landmark, specified by a location code and optional laterality and orientation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-location" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension:landmarktobodylocationdirection">
      <path value="Extension.extension" />
      <sliceName value="landmarktobodylocationdirection" />
      <definition value="The direction from the landmark to the body location of interest, given as a clockface direction or anatomical direction." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-direction" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.extension:landmarktobodylocationdistance">
      <path value="Extension.extension" />
      <sliceName value="landmarktobodylocationdistance" />
      <definition value="How far the body location of interest is from the given landmark." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/landmark-to-body-location-distance" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://ga4gh.org/fhir/phenopackets/StructureDefinition/relation-to-landmark" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>