{
  "resourceType": "StructureDefinition",
  "id": "389d3461-63b2-4b3b-bacf-3e4e1c4fcce4",
  "meta": {
    "lastUpdated": "2021-04-05T19:38:32.098+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/ObservationInspiredOxygenCoreContained/v1",
  "name": "ObservationInspiredOxygenCoreContained",
  "status": "draft",
  "date": "2021-03-19T09:49:34.0178689+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "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/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Observation.meta",
        "path": "Observation.meta"
      },
      {
        "id": "Observation.meta.source",
        "path": "Observation.meta.source",
        "mustSupport": true
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "max": "1"
      },
      {
        "id": "Observation.identifier.use",
        "path": "Observation.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.identifier.type",
        "path": "Observation.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "definition": "The status of th result value.\nFHIR - Cambio\npreliminary -> unsigned\nfinal -> signed and completednonSignable\namended -> not supported\nentered in error -> invalidated\ncancelled -> removed"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "definition": "Oxygen delivery (observable entity)",
        "min": 1,
        "fixedCode": "16206004"
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.subject.identifier:Personnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "Personnummer",
        "definition": "Swedish social security number by Skatteverket. \"Personnummer\" in swedish terminology."
      },
      {
        "id": "Observation.subject.identifier:Personnummer.system",
        "path": "Observation.subject.identifier.system",
        "definition": "Swedish personnummer from Skatteverket",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.1"
      },
      {
        "id": "Observation.subject.identifier:Personnummer.value",
        "path": "Observation.subject.identifier.value",
        "definition": "The actual social security number",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:Samordningsnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "Samordningsnummer",
        "definition": "Samordningsnummer 1.2.752.129.2.1.3.3 Ägare: Skatteverket. \r\nPerson-id för någon som inte är eller har varit folkbokförd i Sverige enligt SKV704. Samordningsnummer tilldelas av Skatteverket på begäran av en myndighet."
      },
      {
        "id": "Observation.subject.identifier:Samordningsnummer.system",
        "path": "Observation.subject.identifier.system",
        "definition": "Samordningsnummer 1.2.752.129.2.1.3.3 Ägare: Skatteverket. \r\nPerson-id för någon som inte är eller har varit folkbokförd i Sverige enligt SKV704. Samordningsnummer tilldelas av Skatteverket på begäran av en myndighet.",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.3"
      },
      {
        "id": "Observation.subject.identifier:Samordningsnummer.value",
        "path": "Observation.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter.identifier.system",
        "path": "Observation.encounter.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.encounter.identifier.value",
        "path": "Observation.encounter.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://hl7.org/fhir/StructureDefinition/CareTeam",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.value[x]",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding",
        "path": "Observation.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding.system",
        "path": "Observation.value[x].coding.system",
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding.code",
        "path": "Observation.value[x].coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "https://cambio.codes/snomed/inspired-oxygen/v1"
        }
      },
      {
        "id": "Observation.dataAbsentReason.coding",
        "path": "Observation.dataAbsentReason.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.dataAbsentReason.coding.system",
        "path": "Observation.dataAbsentReason.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason"
      },
      {
        "id": "Observation.dataAbsentReason.coding.code",
        "path": "Observation.dataAbsentReason.coding.code",
        "definition": "Display: \r\nNot Performed. The value is not available because the observation procedure (test, etc.) was not performed.",
        "min": 1
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "max": "1"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate",
        "path": "Observation.component",
        "sliceName": "inspiredOxygenFlowRate"
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.code.coding",
        "path": "Observation.component.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "definition": "427081008 | Delivered oxygen flow rate (observable entity) |",
        "min": 1,
        "fixedCode": "427081008"
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1,
        "fixedString": "l/min"
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:inspiredOxygenFlowRate.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "fixedCode": "l/min"
      }
    ]
  }
}