{
  "resourceType": "StructureDefinition",
  "url": "https://simplifier.net/ziv-schnittstellen/ziv_sensorik",
  "name": "ZIV_Sensorik",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.identifier.type",
        "path": "Observation.identifier.type",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier.type.coding",
        "path": "Observation.identifier.type.coding",
        "code": [
          {
            "system": "http://snomed.info/sct"
          },
          {
            "system": "http://loinc.org"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CarePlan",
              "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
              "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
              "http:://hl7.org/fhir/StructureDefinition/DiagnosticReport",
              "http:://hl7.org/fhir/StructureDefinition/Condition"
            ]
          }
        ]
      },
      {
        "id": "Observation.basedOn.identifier.type.text",
        "path": "Observation.basedOn.identifier.type.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
              "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
              "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
              "http://hl7.org/fhir/StructureDefinition/Procedure",
              "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
              "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
            ]
          }
        ]
      },
      {
        "id": "Observation.partOf.identifier.type.text",
        "path": "Observation.partOf.identifier.type.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "code": [
          {
            "system": "http://loinc.org"
          },
          {
            "system": "http://snomed.info/sct"
          }
        ]
      },
      {
        "id": "Observation.code.text",
        "path": "Observation.code.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "definition": "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.\r\nZIV: Für Klinik und Patient einsehbar. ",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.\r\nZIV: Für Klinik und Patient einsehbar. "
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "definition": "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.\r\nZIV: Für Klinik und Patient einsehbar. ",
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.\r\nZIV: Für Klinik und Patient einsehbar. ",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "code": [
          {
            "system": "http://snomed.info/sct"
          },
          {
            "system": "http://loinc.org"
          }
        ],
        "definition": "The information determined as a result of making the observation, if the information has a simple value.\r\nZIV: Für Klinik und Patient einsehbar. ",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "mustSupport": true
      },
      {
        "id": "Observation.dataAbsentReason.text",
        "path": "Observation.dataAbsentReason.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "definition": "A categorical assessment of an observation value.  For example, high, low, normal.\r\nZIV: Für Klinik einsehbar, für Patient, wenn von Klinikseite aus gewünscht. ",
        "mustSupport": true
      },
      {
        "id": "Observation.interpretation.coding",
        "path": "Observation.interpretation.coding",
        "code": [
          {
            "system": "http://snomed.info/sct"
          },
          {
            "system": "http://loinc.org"
          }
        ]
      },
      {
        "id": "Observation.interpretation.text",
        "path": "Observation.interpretation.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "mustSupport": true
      },
      {
        "id": "Observation.bodySite.coding",
        "path": "Observation.bodySite.coding",
        "code": [
          {
            "system": "http://snomed.info/sct"
          },
          {
            "system": "http://loinc.org"
          }
        ]
      },
      {
        "id": "Observation.bodySite.text",
        "path": "Observation.bodySite.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "mustSupport": true
      },
      {
        "id": "Observation.method.coding",
        "path": "Observation.method.coding",
        "code": [
          {
            "system": "http://snomed.info/sct"
          }
        ]
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "definition": "The device used to generate the observation data.\r\nZIV: Für Klinik und Patient einsehbar. ",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.\r\nZIV: Für Klinik und Patient einsehbar. ",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.low",
        "path": "Observation.referenceRange.low",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.\r\nZIV: Für Klinik und Patient einsehbar. "
      },
      {
        "id": "Observation.referenceRange.high",
        "path": "Observation.referenceRange.high",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.\r\nZIV: Für Klinik und Patient einsehbar. "
      },
      {
        "id": "Observation.referenceRange.text",
        "path": "Observation.referenceRange.text",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}