{
  "resourceType": "StructureDefinition",
  "id": "POWER2DM-BloodPressure",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2016-11-14T11:12:05.362+00:00"
  },
  "url": "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_BloodPressure",
  "version": "0.1",
  "name": "POWER2DM_BloodPressure",
  "status": "draft",
  "description": "StructureDefinition for POWER2DM Blood Pressure Measurement Resource",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "Observation",
  "abstract": true,
  "base": "http://hl7.org/fhir/StructureDefinition/Observation",
  "differential": {
    "element": [
      {
        "path": "Observation",
        "type": [
          {
            "code": "Observation"
          }
        ]
      },
      {
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "rules": "openAtEnd"
        }
      },
      {
        "path": "Observation.extension",
        "name": "acknowledgedPlannedAction",
        "short": "Extension for Observations to record acknowledged action plan",
        "definition": "Optional Extensions Element - found in all resources.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_acknowledgedPlannedAction"
            ]
          }
        ]
      },
      {
        "path": "Observation.identifier",
        "max": "1"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "fixedCode": "final"
      },
      {
        "path": "Observation.code",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-observations"
          }
        }
      },
      {
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "path": "Observation.code.coding.code",
        "min": 1,
        "fixedCode": "75367002"
      },
      {
        "path": "Observation.code.coding.display",
        "min": 1,
        "fixedString": "Blood Pressure"
      },
      {
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Patient"
            ]
          }
        ]
      },
      {
        "path": "Observation.encounter",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Encounter"
            ]
          }
        ]
      },
      {
        "path": "Observation.effectiveDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "path": "Observation.performer",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Patient"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Practitioner"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Organization"
            ]
          }
        ]
      },
      {
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "path": "Observation.device",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Device"
            ]
          }
        ]
      },
      {
        "path": "Observation.referenceRange",
        "max": "1"
      },
      {
        "path": "Observation.related",
        "max": "1"
      },
      {
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            "code"
          ],
          "ordered": false,
          "rules": "openAtEnd"
        }
      },
      {
        "path": "Observation.component",
        "name": "systolic",
        "short": "Systolic Blood Pressure",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-bp-components"
          }
        }
      },
      {
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org/"
      },
      {
        "path": "Observation.component.code.coding.code",
        "fixedCode": "8480-6"
      },
      {
        "path": "Observation.component.valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.component.referenceRange",
        "max": "1"
      },
      {
        "path": "Observation.component",
        "name": "diastolic",
        "short": "Diastolic blood pressure",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Observation.component.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "Observation.component.code",
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-bp-components"
          }
        }
      },
      {
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org/"
      },
      {
        "path": "Observation.component.code.coding.code",
        "fixedCode": "8462-4"
      },
      {
        "path": "Observation.component.valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.component.referenceRange",
        "max": "1"
      },
      {
        "path": "Observation.component",
        "name": "heart_rate",
        "short": "Heart Rate",
        "max": "1"
      },
      {
        "path": "Observation.component.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-observations"
          }
        }
      },
      {
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org/"
      },
      {
        "path": "Observation.component.code.coding.code",
        "fixedCode": "8867-4"
      },
      {
        "path": "Observation.component.valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.component.referenceRange",
        "max": "1"
      }
    ]
  }
}