{
  "resourceType": "StructureDefinition",
  "id": "14cbb6c4-99fa-439e-b3d0-4e6c30df9d35",
  "meta": {
    "lastUpdated": "2021-02-02T15:50:20.116+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/ObservationNews2Trail/v1",
  "name": "ObservationNews2Trail",
  "status": "draft",
  "date": "2021-02-02T15:06:00.4021962Z",
  "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.identifier.system",
        "path": "Observation.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "definition": "The status of th result value. \r\nFHIR - Cambio\r\npreliminary -> unsigned\nfinal -> signed and completednonSignable\namended -> not supported\nentered in error -> invalidated\ncancelled -> removed",
        "comment": "Fixed value as final?"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0"
      },
      {
        "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": "1104051000000101 | Royal College of Physicians National Early Warning Score 2 total score (observable entity) |",
        "comment": "1104051000000101 | Royal College of Physicians National Early Warning Score 2 total score (observable entity) | Is published on the British edition of Snomed CT. It is not yet added to the Swedish edition. It is most possible that the code will be added to the International edition and we therefore use the International system uri.",
        "min": 1,
        "fixedCode": "1104051000000101"
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "definition": "If the patient has a temporary ID and the system URIs for personnummer and samordningsnummer can not be applied, then use element MUST be fixed to temp."
      },
      {
        "id": "Observation.subject.identifier:personnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "personnummer",
        "definition": "Swedish social security number published by Skatteverket (Personnummer)"
      },
      {
        "id": "Observation.subject.identifier:personnummer.use",
        "path": "Observation.subject.identifier.use",
        "definition": "The personal identification number is the official identifier"
      },
      {
        "id": "Observation.subject.identifier:personnummer.system",
        "path": "Observation.subject.identifier.system",
        "definition": "Swedish social security number published by Skatteverket (Personnummer)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.1"
      },
      {
        "id": "Observation.subject.identifier:personnummer.value",
        "path": "Observation.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "samordningsnummer",
        "definition": "Swedish cordination number published by Skatteverket. (Samordningsnummer)\r\nis a temporary identity number for people who are not registered in the country but who have contact with the country's authorities. The number is similar to social security number."
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer.system",
        "path": "Observation.subject.identifier.system",
        "definition": "Swedish cordination number published by Skatteverket. (Samordningsnummer)\r\nis a temporary identity number for people who are not registered in the country but who have contact with the country's authorities. The number is similar to social security number.",
        "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.effective[x]",
        "path": "Observation.effective[x]",
        "definition": "The time of the calculation of the NEWS2",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "definition": "NWES2 total score",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.value[x].value",
        "path": "Observation.value[x].value",
        "definition": "Only accept value in the range of 0 to 20.",
        "min": 1
      },
      {
        "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",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "definition": "For the NEWS2 all included vital sigs are expected",
        "min": 5,
        "max": "5",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/ObservationRespiratoryRateLite/v1",
              "https://fhir.cambio.se/StructureDefinition/ObservationBPLite/v1",
              "https://fhir.cambio.se/StructureDefinition/ObservationOxygenSaturationLite/v1",
              "https://fhir.cambio.se/StructureDefinition/ObservationHeartRateLite/v1",
              "https://fhir.cambio.se/StructureDefinition/ObservationAcvpuLite/v1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}