{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-04-04T13:12:33.2158043+00:00"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ppr-bundle-hcs-search",
  "name": "Bundle-HealthcareServiceSearch",
  "title": "Bundle-HealthcareService1",
  "status": "draft",
  "date": "2019-04-04T13:12:32.7783461+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.meta.versionId",
        "path": "Bundle.meta.versionId",
        "max": "0"
      },
      {
        "id": "Bundle.meta.lastUpdated",
        "path": "Bundle.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "min": 1
      },
      {
        "id": "Bundle.meta.security",
        "path": "Bundle.meta.security",
        "max": "0"
      },
      {
        "id": "Bundle.meta.tag",
        "path": "Bundle.meta.tag",
        "max": "0"
      },
      {
        "id": "Bundle.implicitRules",
        "path": "Bundle.implicitRules",
        "max": "0"
      },
      {
        "id": "Bundle.language",
        "path": "Bundle.language",
        "max": "0"
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "max": "0"
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "searchset"
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "min": 1
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "search.mode"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:slice-result",
        "path": "Bundle.entry",
        "sliceName": "slice-result"
      },
      {
        "id": "Bundle.entry:slice-result.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-result.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:slice-result.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": "HealthcareService  Response"
          }
        ]
      },
      {
        "id": "Bundle.entry:slice-result.resource.meta",
        "path": "Bundle.entry.resource.meta",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-result.resource.implicitRules",
        "path": "Bundle.entry.resource.implicitRules",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-result.resource.language",
        "path": "Bundle.entry.resource.language",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-result.search",
        "path": "Bundle.entry.search",
        "min": 1
      },
      {
        "id": "Bundle.entry:slice-result.search.mode",
        "path": "Bundle.entry.search.mode",
        "min": 1
      },
      {
        "id": "Bundle.entry:slice-result.search.score",
        "path": "Bundle.entry.search.score",
        "min": 1
      },
      {
        "id": "Bundle.entry:slice-result.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-result.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-warning",
        "path": "Bundle.entry",
        "sliceName": "slice-warning",
        "max": "1"
      },
      {
        "id": "Bundle.entry:slice-warning.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-warning.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:slice-warning.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": "Operation Outcome"
          }
        ]
      },
      {
        "id": "Bundle.entry:slice-warning.resource.meta",
        "path": "Bundle.entry.resource.meta",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-warning.resource.implicitRules",
        "path": "Bundle.entry.resource.implicitRules",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-warning.resource.language",
        "path": "Bundle.entry.resource.language",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-warning.search",
        "path": "Bundle.entry.search",
        "min": 1
      },
      {
        "id": "Bundle.entry:slice-warning.search.mode",
        "path": "Bundle.entry.search.mode",
        "fixedCode": "outcome"
      },
      {
        "id": "Bundle.entry:slice-warning.search.score",
        "path": "Bundle.entry.search.score",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-warning.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:slice-warning.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.signature",
        "path": "Bundle.signature",
        "max": "0"
      }
    ]
  }
}