PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.pdqm@3.2.0
    https://profiles.ihe.net/ITI/PDQm/StructureDefinition/IHE.PDQm.MatchParametersOut
description: 'The PDQm Match Output Bundle Profile describes the Bundle that SHALL be returned in response to an ITI-119 transaction.\nThis profile is consistent with the expections of the [Patient-match operation in FHIR core](http://hl7.org/fhir/R4/patient-operation-match.html),\nexcept the Patient Resources SHALL be instances of the [PDQm Patient Profile](StructureDefinition-IHE.PDQm.Patient.html).\n\nSince the response to the $match Operation contains only one parameter, the Bundle resource is returned directly rather\nthan inside of a Parameters resource. '
package_name: ihe.iti.pdqm
derivation: constraint
name: MatchParametersOut
type: Bundle
elements:
  implicitRules: {index: 0}
  type:
    pattern: {type: Code, value: searchset}
    index: 1
  entry:
    index: 2
    elements:
      request: {index: 3}
      response: {index: 4}
    slicing:
      rules: closed
      ordered: false
      description: Bundle.entry SHOULD consist of only IHE.PDQm.Patient and OperationOutcome
      discriminator:
      - {path: resource, type: type}
      min: null
      slices:
        patient:
          match: {}
          schema:
            array: true
            index: 5
            elements:
              resource: {type: Patient, index: 6}
              search:
                index: 7
                extensions:
                  MatchGrade: {url: 'http://hl7.org/fhir/StructureDefinition/match-grade|5.2.0', min: 1, max: 1, type: Extension, index: 9}
                elements:
                  extension:
                    index: 8
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        MatchGrade:
                          match: {url: null}
                          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/match-grade|5.2.0', index: 9}
                          min: 1
                          max: 1
                  mode:
                    pattern: {type: Code, value: match}
                    index: 10
                  score: {index: 11}
                required: [score, mode, extension]
            required: [resource, search]
        operationOutcome:
          match: {}
          schema:
            array: true
            index: 12
            elements:
              resource: {type: OperationOutcome, index: 13}
            required: [resource]
package_version: 3.2.0
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/PDQm/StructureDefinition/IHE.PDQm.MatchParametersOut
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 3.2.0