{
  "resourceType": "StructureDefinition",
  "id": "t17-bundle-res",
  "url": "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-res",
  "name": "T17BundleRes",
  "title": "T17 Bundle Res",
  "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": "profile",
              "path": "resource"
            }
          ],
          "rules": "open",
          "ordered": false
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:response",
        "path": "Bundle.entry",
        "sliceName": "response",
        "min": 1,
        "max": "1",
        "constraint": [
          {
            "key": "bundle-https",
            "severity": "error",
            "human": "Must start with either 'http://' or 'https://'",
            "expression": "fullUrl.startsWith('http://') or fullUrl.startsWith('https://')",
            "source": "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-res"
          }
        ]
      },
      {
        "id": "Bundle.entry:response.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:response.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "CoverageEligibilityResponse",
            "profile": [
              "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-response"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:obligation",
        "path": "Bundle.entry",
        "sliceName": "obligation",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "bundle-https",
            "severity": "error",
            "human": "Must start with either 'http://' or 'https://'",
            "expression": "fullUrl.startsWith('http://') or fullUrl.startsWith('https://')",
            "source": "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-res"
          }
        ]
      },
      {
        "id": "Bundle.entry:obligation.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:obligation.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Coverage",
            "profile": [
              "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-obligation"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:obl-doc",
        "path": "Bundle.entry",
        "sliceName": "obl-doc",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Bundle.entry:obl-doc.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "DocumentReference",
            "profile": [
              "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-obligation-doc"
            ]
          }
        ]
      }
    ]
  }
}