<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="myObservation" />
  <url value="http://somewhere.org/fhir/uv/myig/StructureDefinition/myObservation" />
  <name value="MyObservation" />
  <title value="My Observation Profile" />
  <status value="draft" />
  <description value="A profile showing the use of XML to author profiles" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="true" />
          </extension>
        </targetProfile>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="85354-9" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.&#xD;&#xA;&#xD;&#xA;Testing a change to the comment for element grid." />
    </element>
    <element id="Observation.code.coding.display">
      <path value="Observation.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="true" />
          </extension>
        </targetProfile>
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
          <valueBoolean value="true" />
        </extension>
        <code value="Quantity" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>