<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-careplan-Goal" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR Goal Profile</b>
      </p>
      <p>A broad statement about what should be accomplished for or by a patient or other subject. It represents the intended long-term outcome toward which an individual or a group aspires, and toward which, effort is directed, in the form of activities.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.careplan.Goal maps to Basic:
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-careplan-Goal" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.careplan.Goal" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR Goal Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="A broad statement about what should be accomplished for or by a patient or other subject. It represents the intended long-term outcome toward which an individual or a group aspires, and toward which, effort is directed, in the form of activities." />
  <purpose value="Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources." />
  <fhirVersion value="3.0.1" />
  <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/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Basic" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic" />
  <derivation value="constraint" />
  <differential>
    <element id="Basic:shr-careplan-Goal">
      <path value="Basic" />
      <short value="SHR Goal Profile" />
      <definition value="A broad statement about what should be accomplished for or by a patient or other subject. It represents the intended long-term outcome toward which an individual or a group aspires, and toward which, effort is directed, in the form of activities." />
    </element>
    <element id="Basic:shr-careplan-Goal.extension:relatedencounter">
      <path value="Basic.extension" />
      <sliceName value="relatedencounter" />
      <definition value="If content was generated during a patient encounter, related encounter is the encounter where the information was gained." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:author">
      <path value="Basic.extension" />
      <sliceName value="author" />
      <definition value="The person or organization who created the entry and is responsible for (and may certify) the content." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:informant">
      <path value="Basic.extension" />
      <sliceName value="informant" />
      <definition value="The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:type">
      <path value="Basic.extension" />
      <sliceName value="type" />
      <definition value="The most specific code (lowest level term) describing the kind or sort of thing being represented." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:subject">
      <path value="Basic.extension" />
      <sliceName value="subject" />
      <definition value="The person or thing that this entry relates to, usually the Person of Record. However, not all entries have health information specifically about the patient, but in different contexts, could refer to a fetus, family member (living or dead), device, location, organization, finding, condition, or intervention." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Subject-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:title">
      <path value="Basic.extension" />
      <sliceName value="title" />
      <definition value="A distinguishing word or group of words naming an item." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Title-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:details">
      <path value="Basic.extension" />
      <sliceName value="details" />
      <definition value="An text note containing additional details, explanation, description, comment, or summarization. Details can discuss, support, explain changes to, or dispute information." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Details-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:reason">
      <path value="Basic.extension" />
      <sliceName value="reason" />
      <definition value="The justification for an action or non-action, conclusion, opinion, etc." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Reason-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:category">
      <path value="Basic.extension" />
      <sliceName value="category" />
      <definition value="A class or division of people or things having particular shared characteristics" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Category-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:category.valueCodeableConcept">
      <path value="Basic.extension.valueCodeableConcept" />
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/goal-category" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:expectedperformancetime">
      <path value="Basic.extension" />
      <sliceName value="expectedperformancetime" />
      <definition value="When an action should be done. If the action is a series or recurs (e.g. daily blood sugar testing in the morning) then a Timing can be used to describe the periodicity." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-ExpectedPerformanceTime-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:occurrencetimeorperiod">
      <path value="Basic.extension" />
      <sliceName value="occurrencetimeorperiod" />
      <definition value="The point in time or span of time in which something happens." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-OccurrenceTimeOrPeriod-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:status">
      <path value="Basic.extension" />
      <sliceName value="status" />
      <definition value="Position in workflow." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-Status-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:status.value[x]">
      <path value="Basic.extension.value[x]" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/goal-status" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:annotation">
      <path value="Basic.extension" />
      <sliceName value="annotation" />
      <definition value="An added or follow-up note, often after the fact, that contains metadata about who made the statement and when." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Annotation-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:plannedactivities">
      <path value="Basic.extension" />
      <sliceName value="plannedactivities" />
      <definition value="Activites planned for this goal" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-careplan-PlannedActivities-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:actualactivities">
      <path value="Basic.extension" />
      <sliceName value="actualactivities" />
      <definition value="Activites carried out for this goal" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-careplan-ActualActivities-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.extension:goal">
      <path value="Basic.extension" />
      <sliceName value="goal" />
      <definition value="A broad statement about what should be accomplished for or by a patient or other subject. It represents the intended long-term outcome toward which an individual or a group aspires, and toward which, effort is directed, in the form of activities." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-careplan-Goal-extension" />
      </type>
    </element>
    <element id="Basic:shr-careplan-Goal.code">
      <path value="Basic.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://standardhealthrecord.org/fhir/basic-resource-type" />
          <code value="shr-careplan-Goal" />
        </coding>
      </patternCodeableConcept>
    </element>
  </differential>
</StructureDefinition>