{
  "resourceType": "StructureDefinition",
  "id": "fiphr-stepstaken-stu3",
  "meta": {
    "versionId": "0.11",
    "lastUpdated": "2017-11-17T10:11: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-stepstaken-stu3",
  "version": "0.11",
  "name": "Finnish PHR steps taken profile",
  "status": "draft",
  "experimental": true,
  "date": "2017-06-02T17:30:00+00:00",
  "publisher": "W2E",
  "description": "Finnish PHR profile for fitness device measurement or patient-reported steps taken over a time period. 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 Steps-Taken profile",
        "definition": "The PHR Steps-Taken profile is used to store step count observations of a patient over various measurement periods.",
        "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:steps",
        "path": "Observation.code.coding",
        "sliceName": "steps",
        "short": "Observation of steps taken over an arbitrary period",
        "definition": "Measured steps during an arbitrary reported period.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding:steps.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:steps.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "66334-4"
      },
      {
        "id": "Observation.code.coding:dailySteps",
        "path": "Observation.code.coding",
        "sliceName": "dailySteps",
        "short": "Observation of steps taken in 24h",
        "definition": "Measured steps during a 24 hour period; use dateTime with 8 characters to mark the date of observation data.",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:dailySteps.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:dailySteps.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "41950-7"
      },
      {
        "id": "Observation.code.coding:weeklySteps",
        "path": "Observation.code.coding",
        "sliceName": "weeklySteps",
        "short": "Observation of steps taken in a week",
        "definition": "Measured steps during a week; use period startdate-enddate to mark the observation week.",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:weeklySteps.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:weeklySteps.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "41952-3"
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "definition": "Finnish PHR: Steps taken as integer",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "valueQuantity:valueQuantity.value",
        "path": "Observation.valueQuantity.value",
        "min": 1
      },
      {
        "id": "valueQuantity:valueQuantity.comparator",
        "path": "Observation.valueQuantity.comparator",
        "max": "0"
      },
      {
        "id": "valueQuantity:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.valueQuantity.unit",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ],
        "fixedString": "1"
      },
      {
        "id": "valueQuantity:valueQuantity.system",
        "path": "Observation.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "valueQuantity:valueQuantity.code",
        "path": "Observation.valueQuantity.code",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "1"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}