<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://oda.fi/fhir/StructureDefinition/stu3/Goal" />
  <name value="ODA Goal" />
  <status value="draft" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Goal" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Goal" />
  <derivation value="constraint" />
  <differential>
    <element id="Goal.category">
      <path value="Goal.category" />
      <max value="0" />
    </element>
    <element id="Goal.priority">
      <path value="Goal.priority" />
      <max value="0" />
    </element>
    <element id="Goal.subject">
      <path value="Goal.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Goal.start[x]">
      <path value="Goal.start[x]" />
      <max value="0" />
    </element>
    <element id="Goal.target">
      <path value="Goal.target" />
      <max value="0" />
    </element>
    <element id="Goal.statusDate">
      <path value="Goal.statusDate" />
      <max value="0" />
    </element>
    <element id="Goal.statusReason">
      <path value="Goal.statusReason" />
      <max value="0" />
    </element>
    <element id="Goal.expressedBy">
      <path value="Goal.expressedBy" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
    </element>
    <element id="Goal.addresses">
      <path value="Goal.addresses" />
      <max value="0" />
    </element>
    <element id="Goal.outcomeCode">
      <path value="Goal.outcomeCode" />
      <max value="0" />
    </element>
    <element id="Goal.outcomeReference">
      <path value="Goal.outcomeReference" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>