{
  "resourceType": "StructureDefinition",
  "id": "t17-bundle-req",
  "url": "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-req",
  "name": "T17BundleReq",
  "title": "T17 Bundle Req",
  "status": "draft",
  "description": "מארז של ישויות הנכללות בבקשה להתחייבות, אחת או יותר",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "patternCode": "collection"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            }
          ],
          "rules": "open",
          "ordered": false
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:request",
        "path": "Bundle.entry",
        "sliceName": "request",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:request.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "CoverageEligibilityRequest",
            "profile": [
              "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-request"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:req-location",
        "path": "Bundle.entry",
        "sliceName": "req-location",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Bundle.entry:req-location.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:req-location.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Location",
            "profile": [
              "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-requested-location"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:booked-apt",
        "path": "Bundle.entry",
        "sliceName": "booked-apt",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry:booked-apt.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:booked-apt.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Appointment",
            "profile": [
              "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-booked-appointment"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:visit-sum",
        "path": "Bundle.entry",
        "sliceName": "visit-sum",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Bundle.entry:visit-sum.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:visit-sum.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "DocumentReference",
            "profile": [
              "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-visit-summary"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:patient",
        "path": "Bundle.entry",
        "sliceName": "patient",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry:patient.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:patient.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Patient",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient"
            ]
          }
        ]
      }
    ]
  }
}