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-hrex derivation: constraint name: HRexConsent type: Consent elements: patient: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient'] 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'} index: 3 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: index: 17 slicing: rules: open discriminator: - {path: role, type: pattern} min: null slices: source: match: role: coding: - {code: performer, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'} schema: short: Authorized to disclose mustSupport: true _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 _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: null 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 slicing: slices: hrex: match: {} schema: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-hrex/ValueSet/hrex-consent-policy'} mustSupport: true _required: true index: 11 min: 1 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-organization', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole'] index: 5 package_version: 1.0.0 class: profile kind: resource url: http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-consent base: http://hl7.org/fhir/StructureDefinition/Consent version: 1.0.0 required: [sourceReference, source, patient, provision, performer]