<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fiphr-fitness-moderatetovigorouspatime-stu3" />
  <meta>
    <versionId value="0.12" />
    <lastUpdated value="2017-11-17T10:47:00+03: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-moderatetovigorouspatime-stu3" />
  <version value="0.12" />
  <name value="Finnish PHR Moderate to Vigorous Physical Activity Time profile" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2017-06-14T17:58:00+03:00" />
  <publisher value="W2E" />
  <description value="Finnish PHR profile for measured or patient-reported time spent on moderate to vigorous physical activity over a period. At this time weekly (period) and 24h period (dateTime) is coded. The profile is based on the Finnish PHR Fitness profile." />
  <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="Observation">
      <path value="Observation" />
      <short value="Finnish PHR Moderate to Vigorous Physical Activity Time profile" />
      <definition value="The PHR Fitness profile for collecting patient's time spent in moderate to vigorous physical activity (MET over 2.9) over the measured period." />
      <comment value="." />
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="Observation.code.coding.code" />
        </discriminator>
        <ordered value="false" />
        <rules value="closed" />
      </slicing>
    </element>
    <element id="Observation.code.coding:moderateToVigorousPAWeeklyMinutes">
      <path value="Observation.code.coding" />
      <sliceName value="moderateToVigorousWeeklyMinutes" />
      <short value="Observation of minutes with moderate to vigorous PA during a week" />
      <definition value="Measurement of physically active time in minutes, MET &gt;= 3 during a week." />
      <max value="1" />
    </element>
    <element id="Observation.code.coding:moderateToVigorousPAWeeklyMinutes.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.code.coding:moderateToVigorousPAWeeklyMinutes.code">
      <path value="Observation.code.coding.code" />
      <fixedCode value="82290-8" />
    </element>
    <element id="Observation.code.coding:moderateToVigorousPA24h">
      <path value="Observation.code.coding" />
      <sliceName value="moderateToVigorousPA24h" />
      <short value="Observation of minutes with moderate to vigorous PA during a 24h period" />
      <definition value="Measurement of physically active time in minutes, MET &gt;= 3 during a 24 hour period." />
      <max value="1" />
    </element>
    <element id="Observation.code.coding:moderateToVigorousPA24h.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://phr.kanta.fi/fiphr-cs-moderatetovigorouspa" />
    </element>
    <element id="Observation.code.coding:moderateToVigorousPA24h.code">
      <path value="Observation.code.coding.code" />
      <fixedCode value="82290-8-24h" />
    </element>
    <element id="Observation.value[x]:valueQuantity">
      <path value="Observation.valueQuantity" />
      <definition value="Finnish PHR: Time quantity" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="valueQuantity:valueQuantity.value">
      <path value="Observation.valueQuantity.value" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="valueQuantity:valueQuantity.comparator">
      <path value="Observation.valueQuantity.comparator" />
      <max value="0" />
    </element>
    <element id="Observation.valueQuantity.unit">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Observation.valueQuantity.unit" />
      <min value="1" />
      <type>
        <code value="string" />
      </type>
      <fixedString value="min" />
    </element>
    <element id="valueQuantity:valueQuantity.system">
      <path value="Observation.valueQuantity.system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.valueQuantity.code">
      <path value="Observation.valueQuantity.code" />
      <min value="1" />
      <type>
        <code value="code" />
      </type>
      <fixedCode value="min" />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>