{
  "resourceType": "StructureDefinition",
  "id": "fiphr-fitness-moderatetovigorouspatime-stu3",
  "meta": {
    "versionId": "0.12",
    "lastUpdated": "2017-11-17T07:47:00+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
      "valueMarkdown": "### Complete Summary of the Mandatory Requirements\n\n1.  One status in `Observation.status`which has a [required](http://hl7.org/fhir/terminologies.html#extensible) binding to:\n    -    [ObservationStatus] value set.\n1.  A category in `Observation.category` which must have:\n    -   a fixed `Observation.category.coding.system`=\"http://hl7.org/fhir/observation-category\"\n    -   a fixed `Observation.category.coding.code`= \"fitness\"\n\n1.  A code in `Observation.code`\n    -   a fixed `Observation.code.coding.system`= \"http://loinc.org\"\n    -   a LOINC code in `Observation.code.coding.code` which has an [extensible](http://hl7.org/fhir/terminologies.html#extensible) binding to:\n         -   [Fitness] value set.\n                \n1.  One patient in `Observation.subject`\n1.  A date and time in `effectiveDateTime` or `effectivePeriod`\n1.  Either one `Observation.valueQuantity` or, if there is no value, one code in `Observation.DataAbsentReason`\n    -   Each Observation.valueQuantity must have:\n        -   One numeric value in `Observation.valueQuantity.value`\n        -   a fixed `Observation.valueQuantity.system`=\"http://unitsofmeasure\"\n        -   a UCUM unit code in `Observation.valueQuantity.code` which has an [required] binding to:\n             -   [Fitness Units] value set.\n    -   Observation.DataAbsentReason is bound to [Observation Value\n        Absent Reason] value set.\n\n1.  When using a panel code to group component observations (Note: See\n    the comments regarding blood pressure in the table above), one or\n    more `Observation.component.code` each of which must have:\n    -   a fixed\n        `Observation.component.code.coding.system` =\"<http://loinc.org>\"\n         -   a LOINC code in `Observation.code.coding.code` which has an [extensible] binding to:\n             -   [Fitness Units] value set.\n\n1.  Either one `Observation.component.valueQuantity` or, if there is\n    no value, one code in `Observation.component.DataAbsentReason`\n    -   Each Observation.component.valueQuantity must have:\n        -   One numeric value in\n            `Observation.component.valueQuantity.value`\n        -   a fixed `Observation.component.valueQuantity.system`= \"<http://unitsofmeasure.org>\"\n        -   a UCUM unit code in\n            `Observation.component.valueQuantity.code` which has an [required] binding to:\n             -   [Fitness Units] value set.\n    -   Observation.component.DataAbsentReason is bound to [Observation\n        Value Absent Reason] value set.\n\n1.  When using a panel code to group observations, one or more reference\n    to Fitness Observations in `Observation.related.target`\n    -   a fixed `Observation.related.type`= \"has-member\"\n\n [Fitness]: valueset-observation-fitnessresult.html\n  [Fitness Units]: valueset-ucum-fitness-common.html\n  [extensible]: terminologies.html#extensible\n  [ObservationStatus]: valueset-observation-status.html\n [Observation Value Absent Reason]: valueset-observation-valueabsentreason.html\n[required]: terminologies.html#required"
    }
  ],
  "url": "http://phr.kanta.fi/StructureDefinition/fiphr-moderatetovigorouspatime-stu3",
  "version": "0.12",
  "name": "Finnish PHR Moderate to Vigorous Physical Activity Time profile",
  "status": "draft",
  "experimental": true,
  "date": "2017-06-14T14:58:00+00:00",
  "publisher": "W2E",
  "description": "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": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-fitness-stu3",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Finnish PHR Moderate to Vigorous Physical Activity Time profile",
        "definition": "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": "."
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "Observation.code.coding.code"
            }
          ],
          "ordered": false,
          "rules": "closed"
        }
      },
      {
        "id": "Observation.code.coding:moderateToVigorousPAWeeklyMinutes",
        "path": "Observation.code.coding",
        "sliceName": "moderateToVigorousWeeklyMinutes",
        "short": "Observation of minutes with moderate to vigorous PA during a week",
        "definition": "Measurement of physically active time in minutes, MET >= 3 during a week.",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:moderateToVigorousPAWeeklyMinutes.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:moderateToVigorousPAWeeklyMinutes.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "82290-8"
      },
      {
        "id": "Observation.code.coding:moderateToVigorousPA24h",
        "path": "Observation.code.coding",
        "sliceName": "moderateToVigorousPA24h",
        "short": "Observation of minutes with moderate to vigorous PA during a 24h period",
        "definition": "Measurement of physically active time in minutes, MET >= 3 during a 24 hour period.",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:moderateToVigorousPA24h.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://phr.kanta.fi/fiphr-cs-moderatetovigorouspa"
      },
      {
        "id": "Observation.code.coding:moderateToVigorousPA24h.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "82290-8-24h"
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "definition": "Finnish PHR: Time quantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "valueQuantity:valueQuantity.value",
        "path": "Observation.valueQuantity.value",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "valueQuantity:valueQuantity.comparator",
        "path": "Observation.valueQuantity.comparator",
        "max": "0"
      },
      {
        "id": "Observation.valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.valueQuantity.unit",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ],
        "fixedString": "min"
      },
      {
        "id": "valueQuantity:valueQuantity.system",
        "path": "Observation.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.valueQuantity.code",
        "path": "Observation.valueQuantity.code",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "min"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}