FHIR © HL7.org  |  Server Home  |  Health Intersections FHIR Server v2.0.12  |  FHIR Version 3.0.2  | User: ANONYMOUS (Unknown)  

Resource "Consent" Version "1" (StructureDefinition)

Tags:

XML or JSON representation. Try out the Profile as a questionnaire based web form . Edit this as XML or JSON. provenance for this resource

Generated Narrative with Details

id: Consent

meta:

url: http://hl7.org/fhir/StructureDefinition/Consent

name: Consent

status: draft

date: 10/24/2019 11:53:00 AM

publisher: Health Level Seven International (Community Based Collaborative Care)

contact: ,

description: Base StructureDefinition for Consent Resource

fhirVersion: 3.0.2

kind: resource

abstract: false

type: Consent

baseDefinition: http://hl7.org/fhir/StructureDefinition/DomainResource

derivation: specialization


<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Consent"/>
  <meta>
    <versionId value="1"/>
    <lastUpdated value="2020-11-06T21:33:28.142Z"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>Generated Narrative with Details</b>
      </p>
      <p>
        <b>id</b>: Consent</p>
      <p>
        <b>meta</b>: </p>
      <p>
        <b>url</b>:
        <a href="http://hl7.org/fhir/StructureDefinition/Consent">http://hl7.org/fhir/StructureDefinition/Consent</a>
      </p>
      <p>
        <b>name</b>: Consent</p>
      <p>
        <b>status</b>: draft</p>
      <p>
        <b>date</b>: 10/24/2019 11:53:00 AM</p>
      <p>
        <b>publisher</b>: Health Level Seven International (Community Based Collaborative Care)</p>
      <p>
        <b>contact</b>: , </p>
      <p>
        <b>description</b>: Base StructureDefinition for Consent Resource</p>
      <p>
        <b>fhirVersion</b>: 3.0.2</p>
      <p>
        <b>kind</b>: resource</p>
      <p>
        <b>abstract</b>: false</p>
      <p>
        <b>type</b>: Consent</p>
      <p>
        <b>baseDefinition</b>:
        <a href="http://hl7.org/fhir/StructureDefinition/DomainResource">http://hl7.org/fhir/StructureDefinition/DomainResource</a>
      </p>
      <p>
        <b>derivation</b>: specialization</p>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cbcc"/>
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/Consent"/>
  <name value="Consent"/>
  <status value="draft"/>
  <date value="2019-10-24T11:53:00+11:00"/>
  <publisher value="Health Level Seven International (Community Based Collaborative Care)"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/fhir"/>
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/cbcc/index.cfm"/>
    </telecom>
  </contact>
  <description value="Base StructureDefinition for Consent Resource"/>
  <fhirVersion value="3.0.2"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <mapping>
    <identity value="v2"/>
    <uri value="http://hl7.org/v2"/>
    <name value="HL7 v2 Mapping"/>
  </mapping>
  <kind value="resource"/>
  <abstract value="false"/>
  <type value="Consent"/>
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
  <derivation value="specialization"/>
  <snapshot>
    <element id="Consent">
      <path value="Consent"/>
      <short value="A healthcare consumer&apos;s policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time"/>
      <definition value="A record of a healthcare consumer&#x2019;s policy choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time."/>
      <comment value="Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives."/>
      <min value="0"/>
      <max value="*"/>
      <constraint>
        <key value="dom-2"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
        <expression value="contained.contained.empty()"/>
        <xpath value="not(parent::f:contained and f:contained)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-1"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
        <expression value="contained.text.empty()"/>
        <xpath value="not(parent::f:contained and f:text)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-4"/>
        <severity value="error"/>
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-3"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/>
        <expression value="contained.where((&apos;#&apos;+id in %resource.descendants().reference).not()).empty()"/>
        <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat(&apos;#&apos;, $id))]))"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="ppc-1"/>
        <severity value="error"/>
        <human value="Either a Policy or PolicyRule"/>
        <expression value="policy.exists() or policyRule.exists()"/>
        <xpath value="exists(f:policy) or exists(f:policyRule)"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="FinancialConsent"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="infrastructure.information"/>
      </mapping>
    </element>
    <element id="Consent.id">
      <path value="Consent.id"/>
      <short value="Logical id of this artifact"/>
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.meta">
      <path value="Consent.meta"/>
      <short value="Metadata about the resource"/>
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.meta"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.implicitRules">
      <path value="Consent.implicitRules"/>
      <short value="A set of rules under which this content was created"/>
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content."/>
      <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. &#10;&#10;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it&apos;s meaning or interpretation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="Consent.language">
      <path value="Consent.language"/>
      <short value="Language of the resource content"/>
      <definition value="The base language in which the resource is written."/>
      <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.language"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.text">
      <path value="Consent.text"/>
      <short value="Text summary of the resource, for human interpretation"/>
      <definition value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
      <comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded in formation is added later."/>
      <alias value="narrative"/>
      <alias value="html"/>
      <alias value="xhtml"/>
      <alias value="display"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="DomainResource.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <condition value="dom-1"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="Consent.contained">
      <path value="Consent.contained"/>
      <short value="Contained, inline Resources"/>
      <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
      <comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again."/>
      <alias value="inline resources"/>
      <alias value="anonymous resources"/>
      <alias value="contained resources"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.contained"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Resource"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.extension">
      <path value="Consent.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.modifierExtension">
      <path value="Consent.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.identifier">
      <path value="Consent.identifier"/>
      <short value="Identifier for this record (external references)"/>
      <definition value="Unique identifier for this copy of the Consent Statement."/>
      <comment value="This identifier is identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Identifier"/>
      </type>
      <example>
        <label value="General"/>
        <valueIdentifier>
          <system value="urn:ietf:rfc:3986"/>
          <value value="Local eCMS identifier"/>
        </valueIdentifier>
      </example>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="Consent.status">
      <path value="Consent.status"/>
      <short value="draft | proposed | active | rejected | inactive | entered-in-error"/>
      <definition value="Indicates the current state of this consent."/>
      <comment value="This element is labeled as a modifier because the status contains the codes rejected and entered-in-error that mark the Consent as not currently valid."/>
      <requirements value="The Consent Directive that is pointed to might be in various lifecycle states, e.g., a revoked Consent Directive."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentState"/>
        </extension>
        <strength value="required"/>
        <description value="Indicates the state of the consent"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-state-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="HL7 Table 0498 - Consent Status"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".statusCode"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="Consent.category">
      <path value="Consent.category"/>
      <short value="Classification of the consent statement - for indexing/retrieval"/>
      <definition value="A classification of the type of consents found in the statement. This element supports indexing and retrieval of consent statements."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentCategory"/>
        </extension>
        <strength value="example"/>
        <description value="A classification of the type of consents found in a consent statement"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-category"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="CNTRCT"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="Consent.patient">
      <path value="Consent.patient"/>
      <short value="Who the consent applies to"/>
      <definition value="The patient/healthcare consumer to whom this consent applies."/>
      <comment value="Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="Role"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.focus"/>
      </mapping>
    </element>
    <element id="Consent.period">
      <path value="Consent.period"/>
      <short value="Period that this consent applies"/>
      <definition value="Relevant time or time-period when this Consent is applicable."/>
      <comment value="This can be a subset of the period of the original statement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <meaningWhenMissing value="all date ranges included"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="FinancialConsent activityTime"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.done"/>
      </mapping>
    </element>
    <element id="Consent.dateTime">
      <path value="Consent.dateTime"/>
      <short value="When this Consent was created or indexed"/>
      <definition value="When this Consent was issued / created / indexed."/>
      <comment value="This is not the time of the original consent, but the time that this statement was made or derived."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="FinancialConsent effectiveTime"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="Consent.consentingParty">
      <path value="Consent.consentingParty"/>
      <short value="Who is agreeing to the policy and exceptions"/>
      <definition value="Either the Grantor, which is the entity responsible for granting the rights listed in a Consent Directive or the Grantee, which is the entity responsible for complying with the Consent Directive, including any obligations or limitations on authorizations and enforcement of prohibitions."/>
      <comment value="Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian."/>
      <alias value="consentor"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.actor"/>
      </mapping>
    </element>
    <element id="Consent.actor">
      <path value="Consent.actor"/>
      <short value="Who|what controlled by this consent (or group, by role)"/>
      <definition value="Who or what is controlled by this consent. Use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="There is no specific actor associated with the consent"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.actor"/>
      </mapping>
    </element>
    <element id="Consent.actor.id">
      <path value="Consent.actor.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.actor.extension">
      <path value="Consent.actor.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.actor.modifierExtension">
      <path value="Consent.actor.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.actor.role">
      <path value="Consent.actor.role"/>
      <short value="How the actor is involved"/>
      <definition value="How the individual is involved in the resources content that is described in the consent."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentActorRole"/>
        </extension>
        <strength value="extensible"/>
        <description value="How an actor is involved in the consent considerations"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-role-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.actor.reference">
      <path value="Consent.actor.reference"/>
      <short value="Resource for the actor (or group, by role)"/>
      <definition value="The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
    </element>
    <element id="Consent.action">
      <path value="Consent.action"/>
      <short value="Actions controlled by this consent"/>
      <definition value="Actions controlled by this consent."/>
      <comment value="Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is &apos;read&apos;."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <meaningWhenMissing value="all actions"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentAction"/>
        </extension>
        <strength value="example"/>
        <description value="Detailed codes for the consent action."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-action"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.organization">
      <path value="Consent.organization"/>
      <short value="Custodian of the consent"/>
      <definition value="The organization that manages the consent, and the framework within which it is executed."/>
      <alias value="custodian"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.witness"/>
      </mapping>
    </element>
    <element id="Consent.source[x]">
      <path value="Consent.source[x]"/>
      <short value="Source from which this consent is taken"/>
      <definition value="The source on which this consent statement is based. The source might be a scanned original paper form, or a reference to a consent that links back to such a source, a reference to a document repository (e.g. XDS) that stores the original consent document."/>
      <comment value="The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Attachment"/>
      </type>
      <type>
        <code value="Identifier"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Consent"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.policy">
      <path value="Consent.policy"/>
      <short value="Policies covered by this consent"/>
      <definition value="The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
    </element>
    <element id="Consent.policy.id">
      <path value="Consent.policy.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.policy.extension">
      <path value="Consent.policy.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.policy.modifierExtension">
      <path value="Consent.policy.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.policy.authority">
      <path value="Consent.policy.authority"/>
      <short value="Enforcement source for policy"/>
      <definition value="Entity or Organization having regulatory jurisdiction or accountability for &#xA0;enforcing policies pertaining to Consent Directives."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <condition value="ppc-1"/>
    </element>
    <element id="Consent.policy.uri">
      <path value="Consent.policy.uri"/>
      <short value="Specific policy covered by this consent"/>
      <definition value="The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law."/>
      <comment value="This element is for discoverability / documentation, and does not modify or qualify the policy rules."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <condition value="ppc-1"/>
    </element>
    <element id="Consent.policyRule">
      <path value="Consent.policyRule"/>
      <short value="Policy that this consents to"/>
      <definition value="A referece to the specific computable policy."/>
      <comment value="If the policy reference is not known, the resource cannot be processed. Where the reference is absent, there is no particular policy other than what is expressed directly in the consent resource."/>
      <requirements value="Might be a unique identifier of a policy set in XACML, or other rules engine."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <condition value="ppc-1"/>
      <isSummary value="true"/>
    </element>
    <element id="Consent.securityLabel">
      <path value="Consent.securityLabel"/>
      <short value="Security Labels that define affected resources"/>
      <definition value="A set of security labels that define which resources are controlled by this consent. If more than one label is specified, all resources must have all the specified labels."/>
      <comment value="If the consent specifies a security label of &quot;R&quot; then it applies to all resources that are labeled &quot;R&quot; or lower. E.g. for Confidentiality, it&apos;s a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="Security Labels from the Healthcare Privacy and Security Classification System."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.purpose">
      <path value="Consent.purpose"/>
      <short value="Context of activities for which the agreement is made"/>
      <definition value="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent."/>
      <comment value="This element is for discoverability / documentation, and does not modify or qualify the policy (e.g. the policy itself describes the purposes for which it applies)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PurposeOfUse"/>
        </extension>
        <strength value="extensible"/>
        <description value="What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.dataPeriod">
      <path value="Consent.dataPeriod"/>
      <short value="Timeframe for data controlled by this consent"/>
      <definition value="Clinical or Operational Relevant period of time that bounds the data controlled by this consent."/>
      <comment value="This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.data">
      <path value="Consent.data"/>
      <short value="Data controlled by this consent"/>
      <definition value="The resources controlled by this consent, if specific resources are referenced."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="all data"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="Role"/>
      </mapping>
    </element>
    <element id="Consent.data.id">
      <path value="Consent.data.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.data.extension">
      <path value="Consent.data.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.data.modifierExtension">
      <path value="Consent.data.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.data.meaning">
      <path value="Consent.data.meaning"/>
      <short value="instance | related | dependents | authoredby"/>
      <definition value="How the resource reference is interpreted when testing consent restrictions."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentDataMeaning"/>
        </extension>
        <strength value="required"/>
        <description value="How a resource reference is interpreted when testing consent restrictions"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-data-meaning"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.data.reference">
      <path value="Consent.data.reference"/>
      <short value="The actual data reference"/>
      <definition value="A reference to a specific resource that defines which resources are covered by this consent."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Except"/>
      </extension>
      <path value="Consent.except"/>
      <short value="Additional rule - addition or removal of permissions"/>
      <definition value="An exception to the base policy of this consent. An exception can be an addition or removal of access permissions."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.id">
      <path value="Consent.except.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.except.extension">
      <path value="Consent.except.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.except.modifierExtension">
      <path value="Consent.except.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.except.type">
      <path value="Consent.except.type"/>
      <short value="deny | permit"/>
      <definition value="Action to take - permit or deny - when the exception conditions are met."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentExceptType"/>
        </extension>
        <strength value="required"/>
        <description value="How an exception statement is applied, such as adding additional consent or removing consent"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-except-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.period">
      <path value="Consent.except.period"/>
      <short value="Timeframe for this exception"/>
      <definition value="The timeframe in this exception is valid."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.actor">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ExceptActor"/>
      </extension>
      <path value="Consent.except.actor"/>
      <short value="Who|what controlled by this exception (or group, by role)"/>
      <definition value="Who or what is controlled by this Exception. Use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="There is no specific actor associated with the exception"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.actor.id">
      <path value="Consent.except.actor.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.except.actor.extension">
      <path value="Consent.except.actor.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.except.actor.modifierExtension">
      <path value="Consent.except.actor.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.except.actor.role">
      <path value="Consent.except.actor.role"/>
      <short value="How the actor is involved"/>
      <definition value="How the individual is involved in the resources content that is described in the exception."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentActorRole"/>
        </extension>
        <strength value="extensible"/>
        <description value="How an actor is involved in the consent considerations"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-role-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.actor.reference">
      <path value="Consent.except.actor.reference"/>
      <short value="Resource for the actor (or group, by role)"/>
      <definition value="The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
    </element>
    <element id="Consent.except.action">
      <path value="Consent.except.action"/>
      <short value="Actions controlled by this exception"/>
      <definition value="Actions controlled by this Exception."/>
      <comment value="Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is &apos;read&apos;."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <meaningWhenMissing value="all actions"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentAction"/>
        </extension>
        <strength value="example"/>
        <description value="Detailed codes for the consent action."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-action"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.securityLabel">
      <path value="Consent.except.securityLabel"/>
      <short value="Security Labels that define affected resources"/>
      <definition value="A set of security labels that define which resources are controlled by this exception. If more than one label is specified, all resources must have all the specified labels."/>
      <comment value="If the consent specifies a security label of &quot;R&quot; then it applies to all resources that are labeled &quot;R&quot; or lower. E.g. for Confidentiality, it&apos;s a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="Security Labels from the Healthcare Privacy and Security Classification System."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.purpose">
      <path value="Consent.except.purpose"/>
      <short value="Context of activities covered by this exception"/>
      <definition value="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception."/>
      <comment value="E.g. if the purpose is &apos;research&apos;, then the operational context must be research, in order for the consent to apply. Not all of the security labels make sense for use in this element (may define a narrower value set?)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PurposeOfUse"/>
        </extension>
        <strength value="extensible"/>
        <description value="What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.class">
      <path value="Consent.except.class"/>
      <short value="e.g. Resource Type, Profile, or CDA etc"/>
      <definition value="The class of information covered by this exception. The type can be a FHIR resource type, a profile on a type, or a CDA document, or some other type that indicates what sort of information the consent relates to."/>
      <comment value="Multiple types are or&apos;ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentContentClass"/>
        </extension>
        <strength value="extensible"/>
        <description value="The class (type) of information a consent rule covers"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-content-class"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.code">
      <path value="Consent.except.code"/>
      <short value="e.g. LOINC or SNOMED CT code, etc in the content"/>
      <definition value="If this code is found in an instance, then the exception applies."/>
      <comment value="Typical use of this is a Document code with class = CDA."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentContentCode"/>
        </extension>
        <strength value="example"/>
        <description value="If this code is found in an instance, then the exception applies"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-content-code"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.dataPeriod">
      <path value="Consent.except.dataPeriod"/>
      <short value="Timeframe for data controlled by this exception"/>
      <definition value="Clinical or Operational Relevant period of time that bounds the data controlled by this exception."/>
      <comment value="This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.data">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ExceptData"/>
      </extension>
      <path value="Consent.except.data"/>
      <short value="Data controlled by this exception"/>
      <definition value="The resources controlled by this exception, if specific resources are referenced."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="all data"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="Role"/>
      </mapping>
    </element>
    <element id="Consent.except.data.id">
      <path value="Consent.except.data.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.except.data.extension">
      <path value="Consent.except.data.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Consent.except.data.modifierExtension">
      <path value="Consent.except.data.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="Consent.except.data.meaning">
      <path value="Consent.except.data.meaning"/>
      <short value="instance | related | dependents | authoredby"/>
      <definition value="How the resource reference is interpreted when testing consent restrictions."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentDataMeaning"/>
        </extension>
        <strength value="required"/>
        <description value="How a resource reference is interpreted when testing consent restrictions"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-data-meaning"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.data.reference">
      <path value="Consent.except.data.reference"/>
      <short value="The actual data reference"/>
      <definition value="A reference to a specific resource that defines which resources are covered by this consent."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
      <isSummary value="true"/>
    </element>
  </snapshot>
  <differential>
    <element id="Consent">
      <path value="Consent"/>
      <short value="A healthcare consumer&apos;s policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time"/>
      <definition value="A record of a healthcare consumer&#x2019;s policy choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time."/>
      <comment value="Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives."/>
      <min value="0"/>
      <max value="*"/>
      <constraint>
        <key value="ppc-1"/>
        <severity value="error"/>
        <human value="Either a Policy or PolicyRule"/>
        <expression value="policy.exists() or policyRule.exists()"/>
        <xpath value="exists(f:policy) or exists(f:policyRule)"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="FinancialConsent"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="infrastructure.information"/>
      </mapping>
    </element>
    <element id="Consent.identifier">
      <path value="Consent.identifier"/>
      <short value="Identifier for this record (external references)"/>
      <definition value="Unique identifier for this copy of the Consent Statement."/>
      <comment value="This identifier is identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Identifier"/>
      </type>
      <example>
        <label value="General"/>
        <valueIdentifier>
          <system value="urn:ietf:rfc:3986"/>
          <value value="Local eCMS identifier"/>
        </valueIdentifier>
      </example>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="Consent.status">
      <path value="Consent.status"/>
      <short value="draft | proposed | active | rejected | inactive | entered-in-error"/>
      <definition value="Indicates the current state of this consent."/>
      <comment value="This element is labeled as a modifier because the status contains the codes rejected and entered-in-error that mark the Consent as not currently valid."/>
      <requirements value="The Consent Directive that is pointed to might be in various lifecycle states, e.g., a revoked Consent Directive."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentState"/>
        </extension>
        <strength value="required"/>
        <description value="Indicates the state of the consent"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-state-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="HL7 Table 0498 - Consent Status"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".statusCode"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="Consent.category">
      <path value="Consent.category"/>
      <short value="Classification of the consent statement - for indexing/retrieval"/>
      <definition value="A classification of the type of consents found in the statement. This element supports indexing and retrieval of consent statements."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentCategory"/>
        </extension>
        <strength value="example"/>
        <description value="A classification of the type of consents found in a consent statement"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-category"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="CNTRCT"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="Consent.patient">
      <path value="Consent.patient"/>
      <short value="Who the consent applies to"/>
      <definition value="The patient/healthcare consumer to whom this consent applies."/>
      <comment value="Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="Role"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.focus"/>
      </mapping>
    </element>
    <element id="Consent.period">
      <path value="Consent.period"/>
      <short value="Period that this consent applies"/>
      <definition value="Relevant time or time-period when this Consent is applicable."/>
      <comment value="This can be a subset of the period of the original statement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <meaningWhenMissing value="all date ranges included"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="FinancialConsent activityTime"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.done"/>
      </mapping>
    </element>
    <element id="Consent.dateTime">
      <path value="Consent.dateTime"/>
      <short value="When this Consent was created or indexed"/>
      <definition value="When this Consent was issued / created / indexed."/>
      <comment value="This is not the time of the original consent, but the time that this statement was made or derived."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="FinancialConsent effectiveTime"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="Consent.consentingParty">
      <path value="Consent.consentingParty"/>
      <short value="Who is agreeing to the policy and exceptions"/>
      <definition value="Either the Grantor, which is the entity responsible for granting the rights listed in a Consent Directive or the Grantee, which is the entity responsible for complying with the Consent Directive, including any obligations or limitations on authorizations and enforcement of prohibitions."/>
      <comment value="Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian."/>
      <alias value="consentor"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.actor"/>
      </mapping>
    </element>
    <element id="Consent.actor">
      <path value="Consent.actor"/>
      <short value="Who|what controlled by this consent (or group, by role)"/>
      <definition value="Who or what is controlled by this consent. Use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="There is no specific actor associated with the consent"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.actor"/>
      </mapping>
    </element>
    <element id="Consent.actor.role">
      <path value="Consent.actor.role"/>
      <short value="How the actor is involved"/>
      <definition value="How the individual is involved in the resources content that is described in the consent."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentActorRole"/>
        </extension>
        <strength value="extensible"/>
        <description value="How an actor is involved in the consent considerations"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-role-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.actor.reference">
      <path value="Consent.actor.reference"/>
      <short value="Resource for the actor (or group, by role)"/>
      <definition value="The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
    </element>
    <element id="Consent.action">
      <path value="Consent.action"/>
      <short value="Actions controlled by this consent"/>
      <definition value="Actions controlled by this consent."/>
      <comment value="Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is &apos;read&apos;."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <meaningWhenMissing value="all actions"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentAction"/>
        </extension>
        <strength value="example"/>
        <description value="Detailed codes for the consent action."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-action"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.organization">
      <path value="Consent.organization"/>
      <short value="Custodian of the consent"/>
      <definition value="The organization that manages the consent, and the framework within which it is executed."/>
      <alias value="custodian"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.witness"/>
      </mapping>
    </element>
    <element id="Consent.source[x]">
      <path value="Consent.source[x]"/>
      <short value="Source from which this consent is taken"/>
      <definition value="The source on which this consent statement is based. The source might be a scanned original paper form, or a reference to a consent that links back to such a source, a reference to a document repository (e.g. XDS) that stores the original consent document."/>
      <comment value="The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Attachment"/>
      </type>
      <type>
        <code value="Identifier"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Consent"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.policy">
      <path value="Consent.policy"/>
      <short value="Policies covered by this consent"/>
      <definition value="The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
    </element>
    <element id="Consent.policy.authority">
      <path value="Consent.policy.authority"/>
      <short value="Enforcement source for policy"/>
      <definition value="Entity or Organization having regulatory jurisdiction or accountability for &#xA0;enforcing policies pertaining to Consent Directives."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <condition value="ppc-1"/>
    </element>
    <element id="Consent.policy.uri">
      <path value="Consent.policy.uri"/>
      <short value="Specific policy covered by this consent"/>
      <definition value="The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law."/>
      <comment value="This element is for discoverability / documentation, and does not modify or qualify the policy rules."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <condition value="ppc-1"/>
    </element>
    <element id="Consent.policyRule">
      <path value="Consent.policyRule"/>
      <short value="Policy that this consents to"/>
      <definition value="A referece to the specific computable policy."/>
      <comment value="If the policy reference is not known, the resource cannot be processed. Where the reference is absent, there is no particular policy other than what is expressed directly in the consent resource."/>
      <requirements value="Might be a unique identifier of a policy set in XACML, or other rules engine."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <condition value="ppc-1"/>
      <isSummary value="true"/>
    </element>
    <element id="Consent.securityLabel">
      <path value="Consent.securityLabel"/>
      <short value="Security Labels that define affected resources"/>
      <definition value="A set of security labels that define which resources are controlled by this consent. If more than one label is specified, all resources must have all the specified labels."/>
      <comment value="If the consent specifies a security label of &quot;R&quot; then it applies to all resources that are labeled &quot;R&quot; or lower. E.g. for Confidentiality, it&apos;s a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="Security Labels from the Healthcare Privacy and Security Classification System."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.purpose">
      <path value="Consent.purpose"/>
      <short value="Context of activities for which the agreement is made"/>
      <definition value="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent."/>
      <comment value="This element is for discoverability / documentation, and does not modify or qualify the policy (e.g. the policy itself describes the purposes for which it applies)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PurposeOfUse"/>
        </extension>
        <strength value="extensible"/>
        <description value="What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.dataPeriod">
      <path value="Consent.dataPeriod"/>
      <short value="Timeframe for data controlled by this consent"/>
      <definition value="Clinical or Operational Relevant period of time that bounds the data controlled by this consent."/>
      <comment value="This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.data">
      <path value="Consent.data"/>
      <short value="Data controlled by this consent"/>
      <definition value="The resources controlled by this consent, if specific resources are referenced."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="all data"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="Role"/>
      </mapping>
    </element>
    <element id="Consent.data.meaning">
      <path value="Consent.data.meaning"/>
      <short value="instance | related | dependents | authoredby"/>
      <definition value="How the resource reference is interpreted when testing consent restrictions."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentDataMeaning"/>
        </extension>
        <strength value="required"/>
        <description value="How a resource reference is interpreted when testing consent restrictions"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-data-meaning"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.data.reference">
      <path value="Consent.data.reference"/>
      <short value="The actual data reference"/>
      <definition value="A reference to a specific resource that defines which resources are covered by this consent."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Except"/>
      </extension>
      <path value="Consent.except"/>
      <short value="Additional rule - addition or removal of permissions"/>
      <definition value="An exception to the base policy of this consent. An exception can be an addition or removal of access permissions."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.type">
      <path value="Consent.except.type"/>
      <short value="deny | permit"/>
      <definition value="Action to take - permit or deny - when the exception conditions are met."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentExceptType"/>
        </extension>
        <strength value="required"/>
        <description value="How an exception statement is applied, such as adding additional consent or removing consent"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-except-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.period">
      <path value="Consent.except.period"/>
      <short value="Timeframe for this exception"/>
      <definition value="The timeframe in this exception is valid."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.actor">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ExceptActor"/>
      </extension>
      <path value="Consent.except.actor"/>
      <short value="Who|what controlled by this exception (or group, by role)"/>
      <definition value="Who or what is controlled by this Exception. Use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="There is no specific actor associated with the exception"/>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.actor.role">
      <path value="Consent.except.actor.role"/>
      <short value="How the actor is involved"/>
      <definition value="How the individual is involved in the resources content that is described in the exception."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentActorRole"/>
        </extension>
        <strength value="extensible"/>
        <description value="How an actor is involved in the consent considerations"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-role-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.actor.reference">
      <path value="Consent.except.actor.reference"/>
      <short value="Resource for the actor (or group, by role)"/>
      <definition value="The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. &apos;admitting officers&apos;)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
    </element>
    <element id="Consent.except.action">
      <path value="Consent.except.action"/>
      <short value="Actions controlled by this exception"/>
      <definition value="Actions controlled by this Exception."/>
      <comment value="Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is &apos;read&apos;."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <meaningWhenMissing value="all actions"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentAction"/>
        </extension>
        <strength value="example"/>
        <description value="Detailed codes for the consent action."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-action"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.securityLabel">
      <path value="Consent.except.securityLabel"/>
      <short value="Security Labels that define affected resources"/>
      <definition value="A set of security labels that define which resources are controlled by this exception. If more than one label is specified, all resources must have all the specified labels."/>
      <comment value="If the consent specifies a security label of &quot;R&quot; then it applies to all resources that are labeled &quot;R&quot; or lower. E.g. for Confidentiality, it&apos;s a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="Security Labels from the Healthcare Privacy and Security Classification System."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.purpose">
      <path value="Consent.except.purpose"/>
      <short value="Context of activities covered by this exception"/>
      <definition value="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception."/>
      <comment value="E.g. if the purpose is &apos;research&apos;, then the operational context must be research, in order for the consent to apply. Not all of the security labels make sense for use in this element (may define a narrower value set?)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PurposeOfUse"/>
        </extension>
        <strength value="extensible"/>
        <description value="What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.class">
      <path value="Consent.except.class"/>
      <short value="e.g. Resource Type, Profile, or CDA etc"/>
      <definition value="The class of information covered by this exception. The type can be a FHIR resource type, a profile on a type, or a CDA document, or some other type that indicates what sort of information the consent relates to."/>
      <comment value="Multiple types are or&apos;ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentContentClass"/>
        </extension>
        <strength value="extensible"/>
        <description value="The class (type) of information a consent rule covers"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-content-class"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.code">
      <path value="Consent.except.code"/>
      <short value="e.g. LOINC or SNOMED CT code, etc in the content"/>
      <definition value="If this code is found in an instance, then the exception applies."/>
      <comment value="Typical use of this is a Document code with class = CDA."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentContentCode"/>
        </extension>
        <strength value="example"/>
        <description value="If this code is found in an instance, then the exception applies"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-content-code"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.dataPeriod">
      <path value="Consent.except.dataPeriod"/>
      <short value="Timeframe for data controlled by this exception"/>
      <definition value="Clinical or Operational Relevant period of time that bounds the data controlled by this exception."/>
      <comment value="This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="Consent.except.data">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ExceptData"/>
      </extension>
      <path value="Consent.except.data"/>
      <short value="Data controlled by this exception"/>
      <definition value="The resources controlled by this exception, if specific resources are referenced."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <meaningWhenMissing value="all data"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="Role"/>
      </mapping>
    </element>
    <element id="Consent.except.data.meaning">
      <path value="Consent.except.data.meaning"/>
      <short value="instance | related | dependents | authoredby"/>
      <definition value="How the resource reference is interpreted when testing consent restrictions."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentDataMeaning"/>
        </extension>
        <strength value="required"/>
        <description value="How a resource reference is interpreted when testing consent restrictions"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consent-data-meaning"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="Consent.except.data.reference">
      <path value="Consent.except.data.reference"/>
      <short value="The actual data reference"/>
      <definition value="A reference to a specific resource that defines which resources are covered by this consent."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
      <isSummary value="true"/>
    </element>
  </differential>
</StructureDefinition>