{
  "resourceType": "StructureDefinition",
  "url": "http://medcom.dk/StructureDefinition/VANSBundle",
  "name": "VANSBundle",
  "status": "draft",
  "date": "2018-05-04T10:08:37.9+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "resource.id"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource"
          },
          {
            "code": "MessageHeader"
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-messageHeader",
        "path": "Bundle.entry",
        "sliceName": "MedCom-messageHeader",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:MedCom-messageHeader.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MessageHeader"
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-messageHeader.resource.receiver",
        "path": "Bundle.entry.resource.receiver",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization",
            "aggregation": [
              "bundled",
              "contained",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-messageHeader.resource.sender",
        "path": "Bundle.entry.resource.sender",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization",
            "aggregation": [
              "contained",
              "bundled",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-messageHeader.resource.author",
        "path": "Bundle.entry.resource.author",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "aggregation": [
              "contained",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-textCorrespondance",
        "path": "Bundle.entry",
        "sliceName": "MedCom-textCorrespondance",
        "max": "1"
      },
      {
        "id": "Bundle.entry:MedCom-textCorrespondance.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Basic"
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-textCorrespondance.resource.subject",
        "path": "Bundle.entry.resource.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "contained",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-senderOrganization",
        "path": "Bundle.entry",
        "sliceName": "MedCom-senderOrganization",
        "max": "1"
      },
      {
        "id": "Bundle.entry:MedCom-senderOrganization.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Organization"
          }
        ]
      },
      {
        "id": "Bundle.entry:MedCom-receiverOrganization",
        "path": "Bundle.entry",
        "sliceName": "MedCom-receiverOrganization",
        "max": "1"
      },
      {
        "id": "Bundle.entry:MedCom-receiverOrganization.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Organization"
          }
        ]
      }
    ]
  }
}