{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-03-18T14:29:58.8370108+00:00"
  },
  "url": "http://ehealthontario.ca/FHIR/StructureDefinition/ppr-bundle-psn-match",
  "name": "Bundle-Practitioner-Match",
  "status": "draft",
  "date": "2019-03-18T14:29:58.6790404+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.id",
        "path": "Bundle.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "searchset",
        "mustSupport": true
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "search.mode"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-result",
        "path": "Bundle.entry",
        "sliceName": "entry-result",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-result.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-result.resource",
        "path": "Bundle.entry.resource",
        "definition": "The Resources for the entry-result are PractitionerRole,Practitioner,Location",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-result.search",
        "path": "Bundle.entry.search",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-result.search.mode",
        "path": "Bundle.entry.search.mode",
        "min": 1,
        "fixedCode": "match",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-result.search.score",
        "path": "Bundle.entry.search.score",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-warning",
        "path": "Bundle.entry",
        "sliceName": "entry-warning",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-warning.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-warning.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ppr-operationoutcome"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-warning.search",
        "path": "Bundle.entry.search",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-warning.search.mode",
        "path": "Bundle.entry.search.mode",
        "min": 1,
        "fixedCode": "outcome",
        "mustSupport": true
      }
    ]
  }
}