{
  "resourceType": "StructureDefinition",
  "id": "fiphr-fitness-distance-stu3",
  "meta": {
    "versionId": "0.10",
    "lastUpdated": "2017-11-17T06:59: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-distance-stu3",
  "version": "0.10",
  "name": "Finnish PHR Distance profile",
  "status": "draft",
  "experimental": true,
  "date": "2017-06-13T19:01:00+00:00",
  "publisher": "W2E",
  "description": "Finnish PHR profile for fitness device measurement or patient-reported distance reached over a time period. Profile does not disclose exercise types contributing to the cumulative value, as this is left for the exercise profiles. 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 Distance profile",
        "definition": "Finnish PHR profile for distance reached observation, used in Fitness or Physical Activity measurements made about a patient.",
        "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:distance",
        "path": "Observation.code.coding",
        "sliceName": "distance",
        "short": "Observation of distance reached over an arbitrary period",
        "definition": "Measured distance (meters) during an arbitrary reported period.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding:distance.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:distance.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "55430-3"
      },
      {
        "id": "Observation.code.coding:distance24h",
        "path": "Observation.code.coding",
        "sliceName": "distance24h",
        "short": "Observation of distance reached in 24h",
        "definition": "Measured distance during a 24 hour period; use dateTime with 8 characters to mark the date of observation data.",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:distance24h.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:distance24h.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "41953-1"
      },
      {
        "id": "Observation.code.coding:weeklyDistance",
        "path": "Observation.code.coding",
        "sliceName": "weeklyDistance",
        "short": "Observation of distance reached in a week",
        "definition": "Measured distance during a week; use period of 7 days (start date and end date) to mark the week observed. In Finland week starts with Monday.",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:weeklyDistance.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:weeklyDistance.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "41955-6"
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "definition": "Finnish PHR: Distance reached (meters) 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": "m"
      },
      {
        "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": "m"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}