{
  "resourceType": "StructureDefinition",
  "id": "fiphr-heartrate-update-stu3",
  "meta": {
    "versionId": "0.03",
    "lastUpdated": "2017-09-25T18:36: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`= \"vital-signs\"\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         -   [Vital Signs] 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             -   [Vital Signs 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             -   [Vital Signs 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             -   [Vital Signs 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 Vitals Signs Observations in `Observation.related.target`\n    -   a fixed `Observation.related.type`= \"has-member\"\n\n [Vital Signs]: valueset-observation-vitalsignresult.html\n  [Vital Signs Units]: valueset-ucum-vitals-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-heartrate-update-stu3",
  "version": "0.03",
  "name": "Finnish PHR Heart Rate profile",
  "status": "draft",
  "experimental": true,
  "date": "2017-02-07T14:44:17+00:00",
  "publisher": "W2E",
  "description": "Finnish PHR profile for heart rate measurement. Finnish PHR profile for Observation used in heart rate measurements.  The profile is based on the Finnish PHR vitalsigns profile.",
  "purpose": "This profile is used for storing heart rate measurement results in the Finnish PHR.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-vitalsigns-stu3",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Finnish PHR Heart Rate profile",
        "definition": "Finnish PHR profile for Observation used in heart rate measurements. The profile is based on the Finnish PHR observation profile."
      },
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "short": "Logical id of this artifact.",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned,  this value never changes."
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:heartRateRhytm",
        "path": "Observation.extension",
        "sliceName": "heartRateRhytm",
        "definition": "True: Rhythm is regular False: Rhythm is irregular.",
        "comment": ".",
        "requirements": "In Finnish PHR: Need possibility to store information of irregular rhythm.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://phr.kanta.fi/StructureDefinition/fiphr-boolean"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "Observation.code.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.code.coding:heartRate",
        "path": "Observation.code.coding",
        "sliceName": "heartRateRhythm",
        "short": "Observation of heart rate",
        "definition": "Measurement of heart rate in beats/min."
      },
      {
        "id": "Observation.code.coding:heartRate.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "8867-4"
      },
      {
        "id": "Observation.code.coding:heartRateAverage24h",
        "path": "Observation.code.coding",
        "sliceName": "heartRateAverage24h",
        "short": "Average heart rate BPM in 24 hours",
        "definition": "Measured average of heart rate in beats/min during a 24 hour period."
      },
      {
        "id": "Observation.code.coding:heartRateAverage24h.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "41924-2"
      },
      {
        "id": "Observation.code.coding:heartRateMinimum24h",
        "path": "Observation.code.coding",
        "sliceName": "heartRateMinimum24h",
        "short": "Minimum heart rate BPM in 24 hours",
        "definition": "Measured minimum of heart rate in beats/min during a 24 hour period."
      },
      {
        "id": "Observation.code.coding:heartRateMinimum24h.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "8883-1"
      },
      {
        "id": "Observation.code.coding:heartRateMaximum24h",
        "path": "Observation.code.coding",
        "sliceName": "heartRateMaximum24h",
        "short": "Maximum heart rate BPM in 24 hours",
        "definition": "Measured maximum of heart rate in beats/min during a 24 hour period."
      },
      {
        "id": "Observation.code.coding:heartRateMaximum24h.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "8873-2"
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "valueQuantity:valueQuantity.value",
        "path": "Observation.valueQuantity.value",
        "min": 1
      },
      {
        "id": "Observation.value[x]: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",
        "short": "Finnish PHR: The unit presentation of the measured heart rate in beats/min",
        "definition": "Finnish PHR:  A human-readable form of the unit.presentation of the measured heart rate in beats/min.",
        "requirements": "Unit is mandatory in FinnishPHR vital-signs Observations",
        "min": 1,
        "fixedString": "beats/min"
      },
      {
        "id": "valueQuantity:valueQuantity.system",
        "path": "Observation.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.value[x]:valueQuantity.code",
        "path": "Observation.valueQuantity.code",
        "min": 1,
        "fixedCode": "{Beats}/min"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}