{
  "resourceType": "StructureDefinition",
  "id": "fiphr-sd-fitness-stu3",
  "meta": {
    "lastUpdated": "2018-03-16T07:52:57.818+00:00"
  },
  "url": "http://phr.kanta.fi/StructureDefinition/fiphr-fitness-stu3",
  "version": "1.2",
  "name": "fiphr-sd-fitness-stu3",
  "title": "Finnish PHR Fitness profile",
  "status": "draft",
  "experimental": false,
  "date": "2019-11-27",
  "description": "Finnish PHR base profile for Fitness Observation resource",
  "purpose": "Finnish PHR abstract base profile for Observation used in various fitness or wellness measurements provided about a patient. In many cases these measures are complementary or parallel to automatic vital sign measurements related to patient's wellness or fitness. Base profile defines profiled elements used in all fitness observation resources.",
  "copyright": "W2E",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": true,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Finnish PHR base profile for Fitness Observation resource",
        "definition": "Finnish PHR abstract base profile for Observation used in Fitness measurements made about a patient. Base profile defines profiled elements used in all fitness observation resources.",
        "comment": "."
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "definition": "FinnishPHR: Profile required. The URL is a reference to [StructureDefinition.url]().",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.meta.security",
        "path": "Observation.meta.security",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Finnish PHR: Security Labels from the Healthcare Privacy and Security Classification System.",
          "valueSetReference": {
            "reference": "http://phr.kanta.fi/ValueSet/fiphr-vs-confidentiality"
          }
        }
      },
      {
        "id": "Observation.meta.security.system",
        "path": "Observation.meta.security.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v3/Confidentiality"
      },
      {
        "id": "Observation.meta.security.version",
        "path": "Observation.meta.security.version",
        "max": "0"
      },
      {
        "id": "Observation.meta.security.code",
        "path": "Observation.meta.security.code",
        "min": 1
      },
      {
        "id": "Observation.meta.security.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.meta.security.display",
        "min": 1
      },
      {
        "id": "Observation.meta.security.userSelected",
        "path": "Observation.meta.security.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.language",
        "path": "Observation.language",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Finnish PHR: A code of human language."
        }
      },
      {
        "id": "Observation.text",
        "path": "Observation.text",
        "min": 1
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:creatingApplication",
        "path": "Observation.extension",
        "sliceName": "creatingApplication",
        "type": [
          {
            "code": "Extension",
            "profile": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
          }
        ]
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
        "min": 1
      },
      {
        "id": "Observation.identifier.use",
        "path": "Observation.identifier.use",
        "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system)."
      },
      {
        "id": "Observation.identifier.type",
        "path": "Observation.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
        "min": 1
      },
      {
        "id": "Observation.identifier.period",
        "path": "Observation.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.identifier.assigner",
        "path": "Observation.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "short": "Finnish PHR: Status final",
        "definition": "Finnish PHR: The status of the result value.",
        "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
        "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
        "fixedCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "short": "Classification of type of observation:",
        "definition": "Classification of type of observation.",
        "comment": "FinnishPHR: Only value fitness valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the  Observation.code.",
        "requirements": "All resources are fitness (physical activity) observations.",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Finnish PHR: Codes for high level observation categories.",
          "valueSetReference": {
            "reference": "http://phr.kanta.fi/ValueSet/fitness-category"
          }
        }
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "min": 1,
        "fixedUri": "http://phr.kanta.fi/fiphr-cs-fitnesscategory"
      },
      {
        "id": "Observation.category.coding.version",
        "path": "Observation.category.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "short": "Fitness observation category",
        "min": 1,
        "fixedCode": "fitness"
      },
      {
        "id": "Observation.category.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.category.coding.display",
        "min": 1
      },
      {
        "id": "Observation.category.coding.userSelected",
        "path": "Observation.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.category.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.category.text",
        "max": "0"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Type of observation (type / code)",
        "comment": "Describes type of observation.",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
          }
        }
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.code.coding.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "definition": "A symbol in syntax defined by the system.",
        "min": 1
      },
      {
        "id": "Observation.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.code.coding.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.text",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
        "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
        "requirements": "Finnish PHR: Observations have always known Patient.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://phr.kanta.fi/StructureDefinition/fiphr-patient-stu3",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "max": "0"
      },
      {
        "id": "Observation.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.subject.display",
        "max": "0"
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "max": "0"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "short": "Finnish PHR: The date and time this observation is stored.",
        "definition": "Finnish PHR: \r\nThe date and time this observation is stored.",
        "min": 1
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "short": "Finnish PHR: Application user who is responsible for the observation",
        "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
        "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://phr.kanta.fi/StructureDefinition/fiphr-patient-stu3",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer.reference",
        "path": "Observation.performer.reference",
        "min": 1
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "max": "0"
      },
      {
        "id": "Observation.performer.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.performer.display",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
        "binding": {
          "strength": "required",
          "description": "Finnish PHR: Codes identifying interpretations of observations."
        }
      },
      {
        "id": "Observation.interpretation.coding",
        "path": "Observation.interpretation.coding",
        "max": "1"
      },
      {
        "id": "Observation.interpretation.coding.system",
        "path": "Observation.interpretation.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0078"
      },
      {
        "id": "Observation.interpretation.coding.version",
        "path": "Observation.interpretation.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.code",
        "path": "Observation.interpretation.coding.code",
        "min": 1
      },
      {
        "id": "Observation.interpretation.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.interpretation.coding.display",
        "min": 1
      },
      {
        "id": "Observation.interpretation.coding.userSelected",
        "path": "Observation.interpretation.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "comment": "FinnishPHR: Only used if not implicit in code for Observation.code.",
        "max": "0",
        "binding": {
          "strength": "example",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/observation-methods"
        }
      },
      {
        "id": "Observation.method.coding.system",
        "path": "Observation.method.coding.system",
        "min": 1,
        "fixedUri": "http://phr.kanta.fi/fiphr-cs-observationmethod"
      },
      {
        "id": "Observation.method.coding.version",
        "path": "Observation.method.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.method.coding.code",
        "path": "Observation.method.coding.code",
        "min": 1
      },
      {
        "id": "Observation.method.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.method.coding.display",
        "min": 1
      },
      {
        "id": "Observation.method.coding.userSelected",
        "path": "Observation.method.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "short": "(Measurement) FinnishDevice",
        "comment": "Finnish PHR Device profile is not final yet.",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://phr.kanta.fi/StructureDefinition/fiphr-device",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Observation.device.identifier",
        "path": "Observation.device.identifier",
        "max": "0"
      },
      {
        "id": "Observation.related.type",
        "path": "Observation.related.type",
        "short": "has-member | derived-from",
        "requirements": "A relationship type SHOULD be provided and SHALL be either has-member or derived-from if provided."
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          }
        ]
      },
      {
        "id": "Observation.related.target.reference",
        "path": "Observation.related.target.reference",
        "min": 1
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "comment": "Profiled further in derived profiles that use components."
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
          }
        }
      },
      {
        "id": "Observation.component.code.coding",
        "path": "Observation.component.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.component.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.component.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.component.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.code.text",
        "max": "0"
      },
      {
        "id": "Observation.component.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component.interpretation.coding.system",
        "path": "Observation.component.interpretation.coding.system",
        "min": 1
      },
      {
        "id": "Observation.component.interpretation.coding.version",
        "path": "Observation.component.interpretation.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component.interpretation.coding.code",
        "path": "Observation.component.interpretation.coding.code",
        "min": 1
      },
      {
        "id": "Observation.component.interpretation.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.interpretation.coding.display",
        "min": 1
      },
      {
        "id": "Observation.component.interpretation.coding.userSelected",
        "path": "Observation.component.interpretation.coding.userSelected",
        "max": "0"
      }
    ]
  }
}