{
  "resourceType": "StructureDefinition",
  "id": "2f70ad03-ef17-4dc0-a85d-627d930d14f6",
  "meta": {
    "lastUpdated": "2021-01-25T15:28:26.027+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/BundleNews2/v1",
  "name": "BundleNews2",
  "status": "draft",
  "date": "2021-01-18T08:45:46.9295359+00:00",
  "description": "A Bundle used for transferring observation profiles for vital signs and NEWS2",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta"
      },
      {
        "id": "Bundle.meta.source",
        "path": "Bundle.meta.source",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "definition": "The bundle is a set of resources collected into a single package for ease of distribution that imposes no processing obligations or behavioral rules beyond persistence.",
        "fixedCode": "collection"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "comment": "Must include all vital signs for calculating a NEWS2. May or may not include a NEWS2 total score.",
        "min": 6
      },
      {
        "id": "Bundle.entry.resource.category",
        "path": "Bundle.entry.resource.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.code"
            },
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry.resource.code.coding",
        "path": "Bundle.entry.resource.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Bundle.entry.resource.subject.identifier",
        "path": "Bundle.entry.resource.subject.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry.resource.performer",
        "path": "Bundle.entry.resource.performer",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "min": 1
      }
    ]
  }
}