PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.ereq@1.0.0-preview
    http://hl7.org.au/fhir/ereq/StructureDefinition/au-erequesting-mhrconsentwithdrawal
description: This profile sets minimum expectations for a Consent resource to record, search, and fetch a My Health Record (MHR) consent withdrawal. It represents a patient's withdrawal of consent to upload to MHR in accordance with paragraph 45(d) of the [My Health Records Act 2012](https://www.legislation.gov.au/C2012A00063). It is based on the [Consent](https://hl7.org/fhir/R4/consent.html) resource and identifies the additional mandatory core elements, extensions, vocabularies and value sets that **SHALL** be present in the Consent when conforming to this profile.
package_name: hl7.fhir.au.ereq
derivation: constraint
name: AUeRequestingMHRConsentWithdrawal
type: Consent
elements:
  patient:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/ereq/StructureDefinition/au-erequesting-patient']
    index: 3
  category:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: IDSCL, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
    index: 2
  provision:
    mustSupport: true
    index: 11
    elements:
      type:
        pattern: {type: Code, value: deny}
        mustSupport: true
        index: 12
      action:
        mustSupport: true
        pattern:
          type: CodeableConcept
          value:
            coding:
            - {code: disclose, system: 'http://terminology.hl7.org/CodeSystem/consentaction'}
        index: 13
      class:
        mustSupport: true
        index: 14
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            diagnosticReport:
              match: {code: DiagnosticReport, system: 'http://hl7.org/fhir/resource-types'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: DiagnosticReport, system: 'http://hl7.org/fhir/resource-types'}
                _required: true
                index: 15
              min: 1
              max: 1
      data:
        mustSupport: true
        index: 16
        elements:
          meaning:
            pattern: {type: Code, value: dependents}
            mustSupport: true
            index: 17
          reference:
            type: Reference
            mustSupport: true
            refers: ['http://hl7.org.au/fhir/ereq/StructureDefinition/au-erequesting-servicerequest-imag', 'http://hl7.org.au/fhir/ereq/StructureDefinition/au-erequesting-servicerequest-path']
            index: 18
    required: [class, action, type, data]
  organization:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/ereq/StructureDefinition/au-erequesting-organization']
    index: 6
  scope:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: patient-privacy, system: 'http://terminology.hl7.org/CodeSystem/consentscope'}
    index: 1
  policy:
    mustSupport: true
    index: 7
    elements:
      authority:
        pattern: {type: Uri, value: 'https://www.health.gov.au'}
        mustSupport: true
        index: 8
      uri:
        pattern: {type: Uri, value: 'https://www.legislation.gov.au/C2012A00063'}
        mustSupport: true
        index: 9
    required: [authority, uri]
  dateTime: {mustSupport: true, index: 4}
  status:
    pattern: {type: Code, value: active}
    mustSupport: true
    index: 0
  policyRule:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: OPTIN, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
    index: 10
  performer:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/ereq/StructureDefinition/au-erequesting-patient']
    index: 5
package_version: 1.0.0-preview
class: profile
kind: resource
url: http://hl7.org.au/fhir/ereq/StructureDefinition/au-erequesting-mhrconsentwithdrawal
base: http://hl7.org/fhir/StructureDefinition/Consent
version: 1.0.0-preview
required: [policyRule, dateTime, policy, patient, provision, organization, performer]