PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci@hrex-1.1.0-ballot
    http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-consent
description: The HRex Consent Profile defines the constraints for representing a member's to the sharing of their healthcare information to other organizations.
package_name: hl7.fhir.us.davinci
derivation: constraint
name: HRexConsent
type: Consent
elements:
  patient:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|6.1.0']
    index: 4
  category:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        disclosure:
          match:
            coding:
            - {code: IDSCL, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
          schema:
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: IDSCL, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
            _required: true
            index: 3
          min: 1
          max: 1
  provision:
    mustSupport: true
    index: 12
    elements:
      provision: {index: 31}
      purpose: {index: 26}
      dataPeriod: {index: 29}
      type:
        pattern: {type: Code, value: permit}
        mustSupport: true
        index: 13
      class: {index: 27}
      code: {index: 28}
      action:
        pattern:
          type: CodeableConcept
          value:
            coding:
            - {code: disclose, system: 'http://terminology.hl7.org/CodeSystem/consentaction'}
        index: 24
      period:
        mustSupport: true
        index: 14
        elements:
          start: {mustSupport: true, index: 15}
          end: {mustSupport: true, index: 16}
        required: [start, end]
      securityLabel: {index: 25}
      actor:
        array: true
        min: 2
        index: 17
        slicing:
          rules: open
          discriminator:
          - {path: role, type: pattern}
          min: 2
          slices:
            source:
              match:
                role:
                  coding:
                  - {code: performer, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
              schema:
                short: Authorized to disclose
                mustSupport: true
                array: true
                min: 1
                _required: true
                index: 18
                elements:
                  role:
                    mustSupport: true
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: performer, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
                    index: 19
                  reference:
                    type: Reference
                    mustSupport: true
                    refers: ['http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-organization']
                    index: 20
            recipient:
              match:
                role:
                  coding:
                  - {code: IRCP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
              schema:
                short: Authorized to receive information
                mustSupport: true
                array: true
                min: 1
                _required: true
                index: 21
                elements:
                  role:
                    mustSupport: true
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: IRCP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                    index: 22
                  reference:
                    type: Reference
                    mustSupport: true
                    refers: ['http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-organization']
                    index: 23
      data: {index: 30}
    required: [action, type, period]
  source:
    mustSupport: true
    choices: [sourceReference]
    index: 7
  scope:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: patient-privacy, system: 'http://terminology.hl7.org/CodeSystem/consentscope'}
    index: 1
  policy:
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: uri, type: value}
      min: 1
      slices:
        hrex:
          match: {uri: null}
          schema:
            mustSupport: true
            _required: true
            index: 10
            elements:
              uri:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-hrex/ValueSet/hrex-consent-policy'}
                mustSupport: true
                index: 11
            required: [uri]
  sourceReference:
    type: Reference
    mustSupport: true
    choiceOf: source
    refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
    index: 8
  status:
    pattern: {type: Code, value: active}
    mustSupport: true
    index: 0
  performer:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|6.1.0', 'http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-organization', 'http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitioner', 'http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole']
    index: 5
package_version: hrex-1.1.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-consent
base: http://hl7.org/fhir/StructureDefinition/Consent
version: 1.1.0-ballot
required: [sourceReference, policy, source, patient, provision, performer]