{
  "resourceType": "StructureDefinition",
  "id": "devicemetricobservation",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/devicemetricobservation",
  "name": "Device Metric Observation Profile",
  "status": "draft",
  "experimental": false,
  "date": "2014-11-17",
  "publisher": "Health Level Seven International (Health Care Devices)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org"
        }
      ]
    }
  ],
  "description": "This profile describes the direct or derived, qualitative or quantitative physiological measurement, setting, or calculation data produced by a medical device or a device component.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.info/sct",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "min": 0,
        "max": "0",
        "mustSupport": false
      },
      {
        "id": "Observation.effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "instant"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "min": 0,
        "max": "1",
        "mustSupport": false
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "min": 0,
        "max": "1",
        "mustSupport": false
      },
      {
        "id": "Observation.related.type",
        "path": "Observation.related.type",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.component.extension:trend",
        "path": "Observation.component.extension.trend",
        "sliceName": "trend",
        "definition": "Shows the trend of glucose values",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.extension:systemTime",
        "path": "Observation.component.extension.systenTime",
        "sliceName": "systemTime",
        "definition": "Shows the system time and date",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.extension:displayTime",
        "path": "Observation.component.extension.displayTime",
        "sliceName": "displayTime",
        "definition": "Shows list of egvs",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.extension:realtimeValue",
        "path": "Observation.component.extension.realtimeValue",
        "sliceName": "realtimeVlaue",
        "definition": "Shows the system time and date",
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.extension:status",
        "path": "Observation.component.extension.status",
        "sliceName": "readingstatus",
        "definition": "status of the current reading",
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.extension:smoothedValue",
        "path": "Observation.component.extension.smoothedValue",
        "sliceName": "smoothedValue",
        "definition": "Estimated glucose value presented retrospectively on receiving device after smoothing; G6 devices only",
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.extension:trendRate",
        "path": "Observation.component.extension.trendRate",
        "sliceName": "trendRate",
        "definition": "Rate at which glucose value is moving up or down",
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}