{
  "resourceType": "StructureDefinition",
  "id": "fiphr-sd-stepstaken",
  "meta": {
    "versionId": "6",
    "lastUpdated": "2023-03-02T08:12:05.954881+00:00"
  },
  "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-stepstaken",
  "version": "1.0.0",
  "name": "FIPHRSDStepsTaken",
  "title": "Finnish PHR Steps taken profile",
  "status": "active",
  "experimental": false,
  "date": "2023-03-02T09:31:25.1295752+00:00",
  "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": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness",
  "derivation": "constraint",
  "snapshot": {},
  "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."
      },
      {
        "id": "Observation.meta",
        "path": "Observation.meta"
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile"
      },
      {
        "id": "Observation.meta.profile:fiphrProfile",
        "path": "Observation.meta.profile",
        "sliceName": "fiphrProfile",
        "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-stepstaken"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "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]",
        "path": "Observation.value[x]",
        "min": 1
      },
      {
        "id": "Observation.value[x].value",
        "path": "Observation.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.value[x].unit",
        "path": "Observation.value[x].unit",
        "min": 1,
        "fixedString": "1"
      },
      {
        "id": "Observation.value[x].system",
        "path": "Observation.value[x].system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.value[x].code",
        "path": "Observation.value[x].code",
        "min": 1,
        "fixedCode": "1"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}