<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fiphr-dailyactivity-fitness-panel-stu3" />
  <meta>
    <versionId value="0.5" />
    <lastUpdated value="2017-08-27T15:17:00-07:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-summary">
    <valueMarkdown value="### Complete Summary of the Mandatory Requirements&#xA;&#xA;1.  One status in `Observation.status`which has a [required](http://hl7.org/fhir/terminologies.html#extensible) binding to:&#xA;    -    [ObservationStatus] value set.&#xA;1.  A category in `Observation.category` which must have:&#xA;    -   a fixed `Observation.category.coding.system`=&quot;http://hl7.org/fhir/observation-category&quot;&#xA;    -   a fixed `Observation.category.coding.code`= &quot;fitness&quot;&#xA;&#xA;1.  A code in `Observation.code`&#xA;    -   a fixed `Observation.code.coding.system`= &quot;http://loinc.org&quot;&#xA;    -   a LOINC code in `Observation.code.coding.code` which has an [extensible](http://hl7.org/fhir/terminologies.html#extensible) binding to:&#xA;         -   [Fitness] value set.&#xA;                &#xA;1.  One patient in `Observation.subject`&#xA;1.  A date and time in `effectiveDateTime` or `effectivePeriod`&#xA;1.  Either one `Observation.valueQuantity` or, if there is no value, one code in `Observation.DataAbsentReason`&#xA;    -   Each Observation.valueQuantity must have:&#xA;        -   One numeric value in `Observation.valueQuantity.value`&#xA;        -   a fixed `Observation.valueQuantity.system`=&quot;http://unitsofmeasure&quot;&#xA;        -   a UCUM unit code in `Observation.valueQuantity.code` which has an [required] binding to:&#xA;             -   [Fitness Units] value set.&#xA;    -   Observation.DataAbsentReason is bound to [Observation Value&#xA;        Absent Reason] value set.&#xA;&#xA;1.  When using a panel code to group component observations (Note: See&#xA;    the comments regarding blood pressure in the table above), one or&#xA;    more `Observation.component.code` each of which must have:&#xA;    -   a fixed&#xA;        `Observation.component.code.coding.system` =&quot;&lt;http://loinc.org&gt;&quot;&#xA;         -   a LOINC code in `Observation.code.coding.code` which has an [extensible] binding to:&#xA;             -   [Fitness Units] value set.&#xA;&#xA;1.  Either one `Observation.component.valueQuantity` or, if there is&#xA;    no value, one code in `Observation.component.DataAbsentReason`&#xA;    -   Each Observation.component.valueQuantity must have:&#xA;        -   One numeric value in&#xA;            `Observation.component.valueQuantity.value`&#xA;        -   a fixed `Observation.component.valueQuantity.system`= &quot;&lt;http://unitsofmeasure.org&gt;&quot;&#xA;        -   a UCUM unit code in&#xA;            `Observation.component.valueQuantity.code` which has an [required] binding to:&#xA;             -   [Fitness Units] value set.&#xA;    -   Observation.component.DataAbsentReason is bound to [Observation&#xA;        Value Absent Reason] value set.&#xA;&#xA;1.  When using a panel code to group observations, one or more reference&#xA;    to Fitness Observations in `Observation.related.target`&#xA;    -   a fixed `Observation.related.type`= &quot;has-member&quot;&#xA;&#xA; [Fitness]: valueset-observation-fitnessresult.html&#xA;  [Fitness Units]: valueset-ucum-fitness-common.html&#xA;  [extensible]: terminologies.html#extensible&#xA;  [ObservationStatus]: valueset-observation-status.html&#xA; [Observation Value Absent Reason]: valueset-observation-valueabsentreason.html&#xA;[required]: terminologies.html#required" />
  </extension>
  <url value="http://phr.kanta.fi/StructureDefinition/fiphr-dailyactivity-fitness-panel-stu3" />
  <version value="0.5" />
  <name value="Finnish PHR Daily Activity fitness panel profile" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2017-06-06T19:00:00+03:00" />
  <publisher value="W2E" />
  <description value="Finnish PHR profile for collecting a panel of observations under a daily activity observation panel. The profile is based on the Finnish PHR fitness profile, but it can accommodate also vital-sign category observations recorded on the same date." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://phr.kanta.fi/StructureDefinition/fiphr-fitness-stu3" />
  <derivation value="constraint" />
  <differential>
    <element id="dailyActivityPanel">
      <path value="Observation" />
      <short value="Finnish PHR Daily Activity Panel profile" />
    </element>
    <element id="Observation:dailyActivityPanel.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation:dailyActivityPanel.code">
      <path value="Observation.code.coding.code" />
      <short value="Fitness Panel" />
      <fixedCode value="62812-3" />
    </element>
    <element id="Observation:dailyActivityPanel.effective[x]">
      <path value="Observation.effective[x]" />
      <short value="A dateTime for daily activity panel" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation:dailyActivityPanel.valueQuantity">
      <path value="Observation.valueQuantity" />
      <definition value="Fitness Value recorded with UCUM" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation:dailyActivityPanel.related">
      <path value="Observation.related" />
      <min value="1" />
      <max value="*" />
    </element>
    <element id="Observation:dailyActivityPanel.related.type">
      <path value="Observation.related.type" />
      <short value="Only has-member used in panels" />
      <fixedCode value="has-member" />
    </element>
    <element id="Observation:dailyActivityPanel.related.target">
      <path value="Observation.related.target" />
      <short value="Resource that is related to daily activity panel with this date" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://phr.kanta.fi/StructureDefinition/fiphr-fitness-stu3" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://phr.kanta.fi/StructureDefinition/fiphr-vitalsigns-stu3" />
      </type>
    </element>
  </differential>
</StructureDefinition>