PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.mhd@5.0.0-comment
    https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle
description: 'A profile on the Bundle transaction for ITI-65 Provide Document resources with Minimal metadata for MHD.\r\n\r\n- [Minimal Metadata](StructureDefinition-IHE.MHD.Minimal.ProvideBundle.html): `https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle`\r\n  - shall be a Transaction Bundle\r\n  - all resources shall be compliant with minimal constraints, they may be marked minimal, comprehensive, or unContained\r\n  - shall create a [SubmissionSet type List](StructureDefinition-IHE.MHD.Minimal.SubmissionSet.html) that is either minimal, comprehensive, or unContained\r\n  - may create one or more [DocumentReference](StructureDefinition-IHE.MHD.Minimal.DocumentReference.html) that is either minimal, comprehensive, or unContained\r\n    - with a document as a [Binary](http://hl7.org/fhir/R5/binary.html)\r\n    - or, when implementing the **ITI-65 FHIR Document Publish** option, a [FHIR Document Bundle](http://hl7.org/fhir/R5/bundle.html)\r\n  - when DocumentReference replace is used the UpdateDocumentRefs slice is used to indicate the superseded DocumentReference\r\n  - may create/update one or more [Folder type List](StructureDefinition-IHE.MHD.Minimal.Folder.html) that is either minimal, comprehensive, or unContained\r\n  - may create/update/read one [Patient](http://hl7.org/fhir/R5/patient.html)'
package_name: ihe.iti.mhd
derivation: constraint
name: MinimalProvideDocumentBundle
type: Bundle
elements:
  meta:
    elements:
      profile: {index: 0}
    required: [profile]
  type:
    pattern: {type: Code, value: transaction}
    index: 1
  entry:
    index: 2
    slicing:
      rules: closed
      description: Slicing based on the profile conformance of the entry
      discriminator:
      - {path: resource, type: profile}
      - {path: request.method, type: value}
      min: 1
      slices:
        SubmissionSet:
          match:
            request: {method: POST}
          schema:
            short: the SubmissionSet
            _required: true
            index: 3
            elements:
              resource: {type: List, index: 4}
              request:
                index: 5
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 6
            required: [resource, request]
        DocumentRefs:
          match:
            request: {method: POST}
          schema:
            short: the DocumentReference resources
            array: true
            index: 7
            elements:
              resource: {type: DocumentReference, index: 8}
              request:
                index: 9
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 10
            required: [resource, request]
        UpdateDocumentRefs:
          match:
            request: {method: PATCH}
          schema:
            short: the superseded DocumentReference resources
            array: true
            index: 11
            elements:
              resource: {type: Parameters, index: 12}
              request:
                index: 13
                elements:
                  method:
                    pattern: {type: Code, value: PATCH}
                    index: 14
            required: [resource, request]
        Documents:
          match:
            request: {method: null}
          schema:
            short: the Documents
            array: true
            index: 15
            elements:
              resource: {type: Binary, index: 16}
              request: {index: 17}
            required: [resource, request]
        FhirDocuments:
          match:
            request: {method: POST}
          schema:
            short: the FHIR-FhirDocuments
            array: true
            index: 18
            elements:
              resource: {type: Bundle, index: 19}
              request:
                index: 20
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 21
            required: [resource, request]
        Folders:
          match:
            request: {method: null}
          schema:
            short: Folders
            array: true
            index: 22
            elements:
              resource: {type: List, index: 23}
              request:
                index: 24
                elements:
                  method:
                    binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions'}
                    index: 25
            required: [resource, request]
        Patient:
          match:
            request: {method: null}
          schema:
            short: the Patient
            index: 26
            elements:
              resource: {type: Patient, index: 27}
              request:
                elements:
                  method:
                    binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions'}
                    index: 28
            required: [resource]
package_version: 5.0.0-comment
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 5.0.0-comment
required: [entry]