PackagesCanonicalsLogsProblems
    Packages
    pcr.r4.1@1-0-pkg-1.2.3
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-pcr-profile-Bundle
description: This is the bundle profile from PCR for Patient Search and EMPI Match oeprations.
package_name: pcr.r4.1
derivation: constraint
name: PCRBundleResponse
type: Bundle
elements:
  id: {short: 'Logical id of this artifact, contains a random guid', index: 0}
  meta:
    mustSupport: true
    index: 1
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-pcr-profile-Bundle|2.0.0'}
        index: 2
    required: [profile]
  type:
    pattern: {type: Code, value: searchset}
    mustSupport: true
    index: 3
  total: {mustSupport: true, index: 4}
  link:
    mustSupport: true
    index: 5
    elements:
      relation:
        pattern: {type: String, value: self}
        mustSupport: true
        index: 6
      url: {mustSupport: true, index: 7}
  entry:
    mustSupport: true
    index: 8
    elements:
      fullUrl: {mustSupport: true, index: 9}
      resource: {mustSupport: true, index: 10}
      search:
        mustSupport: true
        index: 11
        extensions:
          match-grade:
            url: http://hl7.org/fhir/StructureDefinition/match-grade
            type: Extension
            mustSupport: true
            index: 13
            elements:
              value:
                choices: []
                index: 15
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    valueCode:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 17
        elements:
          extension:
            index: 12
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                match-grade:
                  match: {url: null}
                  schema:
                    type: Extension
                    mustSupport: true
                    url: http://hl7.org/fhir/StructureDefinition/match-grade
                    index: 13
                    elements:
                      value:
                        choices: []
                        index: 15
                        slicing:
                          rules: open
                          discriminator:
                          - {path: $this, type: type}
                          min: null
                          slices:
                            valueCode:
                              match: {}
                              schema:
                                mustSupport: true
                                choices: []
                                index: 17
          mode: {mustSupport: true, index: 18}
          score: {short: 'Search ranking (between 0 and 1). For Patient Search Bundle, this is fixed "1"', mustSupport: true, index: 19}
        required: [mode]
    required: [resource, search]
    slicing:
      rules: open
      discriminator:
      - {path: resource.meta.profile, type: value}
      min: null
      slices:
        entry-patient:
          match:
            resource:
              meta: {profile: null}
          schema:
            index: 20
            elements:
              resource: {type: Patient, mustSupport: true, index: 21}
              search:
                mustSupport: true
                index: 22
                extensions:
                  match-grade:
                    url: http://hl7.org/fhir/StructureDefinition/match-grade
                    type: Extension
                    mustSupport: true
                    index: 24
                    elements:
                      value:
                        choices: []
                        index: 26
                        slicing:
                          rules: open
                          discriminator:
                          - {path: $this, type: type}
                          min: null
                          slices:
                            valueCode:
                              match: {}
                              schema:
                                mustSupport: true
                                choices: []
                                _required: true
                                index: 28
                              min: 1
                elements:
                  extension:
                    index: 23
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 0
                      slices:
                        match-grade:
                          match: {url: null}
                          schema:
                            type: Extension
                            mustSupport: true
                            url: http://hl7.org/fhir/StructureDefinition/match-grade
                            index: 24
                            elements:
                              value:
                                choices: []
                                index: 26
                                slicing:
                                  rules: open
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        mustSupport: true
                                        choices: []
                                        _required: true
                                        index: 28
                                      min: 1
                  mode: {mustSupport: true, index: 29}
                  score: {mustSupport: true, index: 30}
                required: [score, mode]
            required: [search]
        entry-operationoutcome:
          match:
            resource:
              meta: {profile: null}
          schema:
            index: 31
            elements:
              resource: {type: OperationOutcome, mustSupport: true, index: 32}
              search:
                mustSupport: true
                index: 33
                elements:
                  mode:
                    pattern: {type: Code, value: outcome}
                    mustSupport: true
                    index: 34
                required: [mode]
            required: [search]
package_version: 1-0-pkg-1.2.3
class: profile
kind: resource
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-pcr-profile-Bundle
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 2.0.0
required: [total, id, link, meta]