{
  "resourceType": "StructureDefinition",
  "id": "3e5c6ba7-a542-4370-bd27-37b6a4445831",
  "meta": {
    "lastUpdated": "2021-10-25T12:01:26.007+00:00"
  },
  "url": "https://example.org/fhir/StructureDefinition/Exemplo_observation",
  "name": "Exemplo_observation",
  "status": "draft",
  "date": "2021-10-25T11:42:39.6936657+00:00",
  "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",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "mapping": [
          {
            "identity": "SHN",
            "map": "final"
          }
        ]
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category"
      },
      {
        "id": "Observation.category.coding.version",
        "path": "Observation.category.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "fixedCode": "vital-signs"
      },
      {
        "id": "Observation.category.coding.display",
        "path": "Observation.category.coding.display",
        "fixedString": "Vital Signs"
      },
      {
        "id": "Observation.category.coding.userSelected",
        "path": "Observation.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.category.text",
        "path": "Observation.category.text",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.code.coding:OxygenSaturation",
        "path": "Observation.code.coding",
        "sliceName": "OxygenSaturation"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "2708-6"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation.display",
        "path": "Observation.code.coding.display",
        "fixedString": "Oxygen saturation in Arterial blood"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation_Pulse",
        "path": "Observation.code.coding",
        "sliceName": "OxygenSaturation_Pulse"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation_Pulse.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation_Pulse.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation_Pulse.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "59408-5"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation_Pulse.display",
        "path": "Observation.code.coding.display",
        "fixedString": "Oxygen saturation in Arterial blood by Pulse oximetry"
      },
      {
        "id": "Observation.code.coding:OxygenSaturation_Pulse.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.text",
        "path": "Observation.code.text",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "max": "0"
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "max": "0"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "SHN",
            "map": "2020-11-11T10:55:41+00:00"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer.reference",
        "path": "Observation.performer.reference",
        "max": "0"
      },
      {
        "id": "Observation.performer.type",
        "path": "Observation.performer.type",
        "max": "0"
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "max": "0"
      },
      {
        "id": "Observation.performer.display",
        "path": "Observation.performer.display",
        "mapping": [
          {
            "identity": "SHN",
            "map": "Plux"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.value[x].value",
        "path": "Observation.value[x].value",
        "example": [
          {
            "label": "Valor",
            "valueDecimal": 99
          }
        ]
      },
      {
        "id": "Observation.value[x].comparator",
        "path": "Observation.value[x].comparator",
        "max": "0"
      },
      {
        "id": "Observation.value[x].unit",
        "path": "Observation.value[x].unit",
        "fixedString": "%"
      },
      {
        "id": "Observation.value[x].system",
        "path": "Observation.value[x].system",
        "fixedUri": "https://ucum.org/"
      },
      {
        "id": "Observation.value[x].code",
        "path": "Observation.value[x].code",
        "fixedCode": "%"
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device.reference",
        "path": "Observation.device.reference",
        "max": "0"
      },
      {
        "id": "Observation.device.type",
        "path": "Observation.device.type",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.use",
        "path": "Observation.device.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.type.coding",
        "path": "Observation.device.identifier.type.coding",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.type.text",
        "path": "Observation.device.identifier.type.text",
        "mapping": [
          {
            "identity": "SHN",
            "map": "MAC Address"
          }
        ]
      },
      {
        "id": "Observation.device.identifier.system",
        "path": "Observation.device.identifier.system",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.value",
        "path": "Observation.device.identifier.value",
        "mapping": [
          {
            "identity": "SHN",
            "map": "00:07:80:58:9B:BC"
          }
        ]
      },
      {
        "id": "Observation.device.identifier.period",
        "path": "Observation.device.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.assigner",
        "path": "Observation.device.identifier.assigner",
        "mapping": [
          {
            "identity": "SHN",
            "map": "Plux",
            "comment": "(display)"
          }
        ]
      },
      {
        "id": "Observation.device.display",
        "path": "Observation.device.display",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.low.value",
        "path": "Observation.referenceRange.low.value",
        "minValueDecimal": 70
      },
      {
        "id": "Observation.referenceRange.low.unit",
        "path": "Observation.referenceRange.low.unit",
        "fixedString": "%"
      },
      {
        "id": "Observation.referenceRange.low.system",
        "path": "Observation.referenceRange.low.system",
        "fixedUri": "https://ucum.org/"
      },
      {
        "id": "Observation.referenceRange.low.code",
        "path": "Observation.referenceRange.low.code",
        "fixedCode": "%"
      },
      {
        "id": "Observation.referenceRange.high.value",
        "path": "Observation.referenceRange.high.value",
        "maxValueDecimal": 100
      },
      {
        "id": "Observation.referenceRange.high.unit",
        "path": "Observation.referenceRange.high.unit",
        "fixedString": "%"
      },
      {
        "id": "Observation.referenceRange.high.system",
        "path": "Observation.referenceRange.high.system",
        "fixedUri": "https://ucum.org/"
      },
      {
        "id": "Observation.referenceRange.high.code",
        "path": "Observation.referenceRange.high.code",
        "fixedCode": "%"
      },
      {
        "id": "Observation.referenceRange.type",
        "path": "Observation.referenceRange.type",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.appliesTo",
        "path": "Observation.referenceRange.appliesTo",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.age",
        "path": "Observation.referenceRange.age",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.text",
        "path": "Observation.referenceRange.text",
        "mapping": [
          {
            "identity": "SHN",
            "map": "Range do sensor"
          }
        ]
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}