{
  "resourceType": "StructureDefinition",
  "id": "a1f9ca12-4706-4c98-b9a5-785d24efc325",
  "meta": {
    "lastUpdated": "2024-07-26T20:47:26.5484838+00:00"
  },
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">No Narrative Content</div>"
  },
  "url": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-location-response-profile-Bundle",
  "version": "1.0.0",
  "name": "BundleLocationMatchResponse",
  "title": "PHSD Bundle Location Match Response",
  "status": "draft",
  "date": "2024-03-06T15:47:38.7603239+00:00",
  "description": "Defines the Bundle resource returned in the Location Search response and Location Match response",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "mustSupport": true
      },
      {
        "id": "Bundle.id",
        "path": "Bundle.id",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "min": 1
      },
      {
        "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.link",
        "path": "Bundle.link",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "relation"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.link:self",
        "path": "Bundle.link",
        "sliceName": "self",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.link:self.relation",
        "path": "Bundle.link.relation",
        "fixedString": "self"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "search.mode"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:entry-Result",
        "path": "Bundle.entry",
        "sliceName": "entry-Result",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-Result.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-Result.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-location-response-profile-Location"
            ]
          }
        ]
      },
      {
        "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",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:entry-warning.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-profile-OperationOutcome"
            ]
          }
        ]
      },
      {
        "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"
      },
      {
        "id": "Bundle.entry:entry-warning.search.score",
        "path": "Bundle.entry.search.score",
        "max": "0"
      }
    ]
  }
}