<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="consentdirective" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>The narrative has been removed to reduce the size of the distribution of the Hl7.Fhir.Specification library</p>
    </div>
  </text>
  <url value="http://hl7.org/fhir/StructureDefinition/consentdirective" />
  <name value="Consent Directive" />
  <status value="draft" />
  <publisher value="Health Level Seven International (Community Based Collaborative Care)" />
  <contact>
    <telecom>
      <system value="other" />
      <value value="http://hl7.org/special/committees/Security" />
    </telecom>
  </contact>
  <description value="Consent Directive" />
  <fhirVersion value="3.0.0" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Contract" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Contract" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Contract">
      <path value="Contract" />
      <short value="Consent Directive" />
      <definition value="A record of a healthcare consumer’s privacy policy, which is in accordance with governing jurisdictional and organization privacy policies that grant or withhold consent:   • To one or more identified entities in a defined role   • To perform one or more operations (e.g. collect, access, use, disclose, amend, or delete)   • On an instance or type of individually identifiable health information [IIHI]  • For a purpose such as treatment, payment, operations, research, public health, quality measures, health status evaluation by third parties, or marketing   • Under certain conditions, e.g. when unconscious   • For specified time period, e.g. effective and expiration dates   • In certain context, e.g. in an emergency   A consent directive is an instance of governing jurisdictional and organization privacy policies, which may or may not be backed up by a signed document (paper or electronic). [HITSP TP30]." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Resource" />
        <min value="0" />
        <max value="*" />
      </base>
      <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="http://hl7.org/fhir/StructureDefinition/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="http://hl7.org/fhir/StructureDefinition/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="http://hl7.org/fhir/StructureDefinition/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(('#'+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('#', $id))]))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="workflow" />
        <map value="Event" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="financial.other" />
      </mapping>
    </element>
    <element id="Contract.id">
      <path value="Contract.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="Contract.meta">
      <path value="Contract.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="Contract.implicitRules">
      <path value="Contract.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. &#xA;&#xA;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it'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="Contract.language">
      <path value="Contract.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>
        <strength value="extensible" />
        <description value="A human language." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.text">
      <path value="Contract.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="Contract.contained">
      <path value="Contract.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="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Contract.extension">
      <path value="Contract.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <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="Contract.modifierExtension">
      <path value="Contract.modifierExtension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <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="Contract.identifier">
      <path value="Contract.identifier" />
      <label value="ConsentDirective-identifier" />
      <short value="Consent Directive identifier" />
      <definition value="Unique identifier for this Consent Directive." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Contract.identifier" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract id" />
      </mapping>
    </element>
    <element id="Contract.status">
      <path value="Contract.status" />
      <short value="amended | appended | cancelled | disputed | entered-in-error | executable | executed | negotiable | offered | policy | rejected | renewed | revoked | resolved | terminated" />
      <definition value="The status of the resource instance." />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the contract as not currently valid or active." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Contract.status" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContractStatus" />
        </extension>
        <strength value="required" />
        <description value="A code specifying the state of the resource instance." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-status" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.status" />
      </mapping>
    </element>
    <element id="Contract.issued">
      <path value="Contract.issued" />
      <label value="ConsentDirective-issued" />
      <short value="When this Consent Directive was issued" />
      <definition value="Date and time when this Consent Directive was executed and became effective." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Contract.issued" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.occurrence" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act.availabilityTime.  Definition: A time expression specifying when an Observation, Procedure, or other Act occurs, or, depending on the mood, is supposed to occur, scheduled to occur, etc. The activityTime includes the times of component actions (such as preparation and clean-up). For Procedures and SubstanceAdministrations, the activityTime can provide a needed administrative function by providing a more inclusive time to be anticipated in scheduling. UsageNotes:The activityTime is primarily of administrative rather than clinical use. The clinically relevant time is the effectiveTime. When an observation of a prior symptom is made, the activityTime describes the time the observation is made, as opposed to effectiveTime which is the time the symptom is reported to have occurred. Thus the activityTime may be entirely different from the effectiveTime of the same Act. However, even apart from clinical use cases, designers should first consider effectiveTime as the primary relevant time for an Act. ActivityTime indicates when an Act occurs, not when it is recorded." />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="when.done" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract effectiveTime" />
      </mapping>
    </element>
    <element id="Contract.applies">
      <path value="Contract.applies" />
      <label value="ConsentDirective-applies" />
      <short value="Effective time" />
      <definition value="Time period during which this Consent Directive is in effect." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Contract.applies" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Period" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="Act.effectiveTime Definition: The clinically or operationally relevant time of an act, exclusive of administrative activity." />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract activityTime" />
      </mapping>
    </element>
    <element id="Contract.subject">
      <path value="Contract.subject" />
      <short value="Contract Target Entity" />
      <definition value="The target entity impacted by or of interest to parties to the agreement." />
      <comment value="The Contract.subject is an entity that has some role with respect to the Contract.topic and Contract.topic.term, which is of focal interest to the parties to the contract and likely impacted in a significant way by the Contract.action/Contract.action.reason and the Contract.term.action/Contract.action.reason. &#xD;In many cases, the Contract.subject is a Contract.signer if the subject is an adult; has a legal interest in the contract; and incompetent to participate in the contract agreement." />
      <requirements value="The Contract.subject is an entity that has some role with respect to the Contract.topic and Contract.topic.term, which is of focal interest to the parties to the contract and likely impacted in a significant way by the Contract.action/Contract.action.reason and the Contract.term.action/Contract.action.reason.  In many cases, the Contract.subject is a Contract.signer if the subject is an adult; has a legal interest in the contract; and incompetent to participate in the contract agreement." />
      <alias value="Patient" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.subject" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.subject" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="RoleClass, RoleCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="who.actor" />
      </mapping>
    </element>
    <element id="Contract.topic">
      <path value="Contract.topic" />
      <label value="ConsentDirective-topic" />
      <short value="The Patient is the topic of this Consent Directive" />
      <definition value="Patient information and actions taken on that information that are governed by this Consent Directive." />
      <comment value="The Contract.topic may be an application for or offer of a policy or service (e.g., uri to a consent directive form or a health insurance policy), which becomes the Contract once accepted by both the grantor and grantee. &#xD;The Contract Resource may function simply as the computable representation of the executed contract, which may be the attached to the Contract Resource as the “binding” or as the “friendly” electronic form.  For example, a Contract Resource may be automatically populated with the values expressed in a related QuestionnaireResponse. &#xD;However, the Contract Resource may be considered the legally binding contract if it is the only “executed” form of this contract, and includes the signatures as *The Contract Resource may function as the computable representation of an application or offer in a pre-executed Contract if the grantor has not entered any values.  In this case, it is populated with values in a “legal” form of the application or offer or by the values in an associated Questionnaire.  If the grantor has filled in the legal form or the associated Questionnaire Response, then these values are used to populate a pre-executed Contract Resource.&#xD;If the Contract.topic is considered an application or offer, then the policy is often required to be attached as the “legal” basis for the application to ensure “informed consent” to the contract, and that any discrepancy between the application and the policy are interpreted against the policy.  Implementers should check organizational and jurisdictional policies to determine the relationship among multiple representations of a contract pre- and post-execution." />
      <requirements value="In the context of a contract, the topic is the matter under consideration in regards to which specific rights, privileges, obligations, restrictions, and prohibitions are binding on any grantor and grantee parties upon the execution of the contract. &#xD;Given the wide range of contract topics, implementers need to be cognizant of the business use case for which they are designing a FHIR Contract, and narrowly specify the topic being represented with respect to the Contract.type and any specializing Contract.subtype. &#xD;The same topic, e.g., an asset such as a good or service, such as a real property, medical supply, insurance, information, a procedure or employment, or a manner of conduct, such adherence to a privacy, trust, or security policy, may be the topic of multiple types of contracts. &#xD;One way to determine the Contract.topic is to answer the question: “What is the object of negotiation?”&#xD;Answer: The Contract.topic, which may be described with more detail in the [0..*]Contract.valuedItem @ [0..1] Contract.valuedItem.entity[x] Definition: Specific type of Contract Valued Item that may be priced. CodeableConcept|Reference(Any)&#xD;Contract.topic is “the what” that a grantor is exchanging with a grantee in return for some benefit. &#xD;Contract.topic is “the what” to which any Contract.action is being applied for any stipulated Contract.action.reason. &#xD;AContract.topic is “the what” governed by the execution of the contract to which any party’s rights, privileges, obligations, restrictions, and prohibitions apply." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Contract.topic" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.context" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Includes many ActClass, ActCode, RoleClass, RoleCode, EntityClass, EntityCode, ParticipationType codes from HL7 concept domains and code systems. For example, RoleCode: HLD (held entity) Description: Entity that is currently in the possession of a holder (scoper), who holds, or uses it, usually based on some agreement with the owner. MANU (manufactured product) Description: Scoped by the manufacturer. OWN (owned entity) Description: An Entity (player) for which someone (scoper) is granted by law the right to call the material (player) his own. This entitles the scoper to make decisions about the disposition of that material. WRTE (warranted product) Description:&#xD;A role a product plays when a guarantee is given to the purchaser by the seller (scoping entity) stating that the product is reliable and free from known defects and that the seller will repair or replace defective parts within a given time limit and under certain conditions." />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Role" />
      </mapping>
    </element>
    <element id="Contract.authority">
      <path value="Contract.authority" />
      <label value="ConsentDirective-authority" />
      <short value="Authority under which this Consent Directive has standing" />
      <definition value="A formally recognized grouping of people, principals, organizations, or jurisdictions with legal standing to promulgate, administer, and enforce privacy policies and applicable Consent Directives." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.authority" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="Organization Role.  CONCEPT DOMAIN: OrganizationEntityType Description: Further classifies entities of EntityClass ORG." />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Role Scoper" />
      </mapping>
    </element>
    <element id="Contract.domain">
      <path value="Contract.domain" />
      <label value="ConsentDirective-domain" />
      <short value="Domain in which this Consent Directive applies" />
      <definition value="Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to privacy protection and control of the collection, access, use and disclosure of resources." />
      <alias value="scope of governance jurisdiction" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.domain" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="TERR (territory of authority) Description: Relates a place entity (player) as the region over which the scoper (typically an Organization) has certain authority (jurisdiction). For example, the Calgary Regional Health Authority (scoper) has authority over the territory &quot;Region 4 of Alberta&quot; (player) in matters of health.&#xD;Entity Class = Place? A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place may or may not be constant.&#xD;CONCEPT DOMAIN: TerritoryEntityType Description: A territorial entity that may be cited as the body over which an agency exercises jurisdiction, or which defines a sphere in which a party has a particular responsibility. CONCEPT DOMAIN: OrganizationEntityType&#xD;Description: Further classifies entities of EntityClass ORG." />
      </mapping>
    </element>
    <element id="Contract.type">
      <path value="Contract.type" />
      <label value="ConsentDirective-type" />
      <short value="Consent Directive Type" />
      <definition value="Specific type of patient privacy Consent Directive reflecting the range of patient discretion over granting of rights to patient information and actions that may be taken on that information; e.g. Opt-in, opt-out, Share All (such as authorization to disclose to payer for payment purposes or benefit eligibility), Share Partial(such as Title 38 Section 7332 and 42 CFR Part 2), Implied Consent, such as a HIPAA Notice of Privacy Practices." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Contract.type" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContractType" />
        </extension>
        <strength value="example" />
        <description value="List of overall contract codes." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-type" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="Maps to multiple ActClass and ActCode Concept Domains and Code Systems such as the following:   In the ActClass Concept Domain: ActClassPolicy. In the ActCode Concept Domain:   ActContractType, which generalizes ActFinancialContractType, ActCoverageType, ActBillingArrangementType.  ActConsentType, which generalizes ActDataConsentType; ActFinancialParticipationConsentType; ActInformationAccessCode; AdvanceBeneficiaryNoticeType.  ActPolicyType, which generalizes: ActPrivacyPolicyType, ActSensitivityPrivacyPolicyType, ActSecurityPolicyType.  In the ActClass Code System:  CNTRCT (contract) Description: An agreement of obligation between two or more parties that is subject to contractual law and enforcement, lwhich generalizes FCNTRCT (financial contract) and COV (coverage).  POLICY (policy) - Description: A mandate, regulation, obligation, requirement, rule, or expectation unilaterally imposed by one party on: The activity of another party; the behavior of another party; or the manner in which an act is executed. LEAF CONCEPTS: JURISPOL (jurisdictional policy) Description:A mandate, regulation, obligation, requirement, rule, or expectation unilaterally imposed by a jurisdiction on: The activity of another party; the behavior of another party; or the manner in which an act is executed.Examples:A jurisdictional mandate regarding the prescribing and dispensing of a particular medication. A jurisdictional privacy or security regulation dictating the manner in which personal health information is disclosed. A jurisdictional requirement that certain services or health conditions are reported to a monitoring program, e.g., immunizations, methadone treatment, or cancer registries.ORGPOL (organizational policy)Examples:A clinical or research protocols imposed by a payer, a malpractice insurer, or an institution to which a provider must adhere. A mandate imposed by a denominational institution for a provider to provide or withhold certain information from the patient about treatment options.SCOPOL (scope of practice policy)Description:An ethical or clinical obligation, requirement, rule, or expectation imposed or strongly encouraged by organizations that oversee particular clinical domains or provider certification which define the boundaries within which a provider may practice and which may have legal basis or ramifications.Examples:An ethical obligation for a provider to fully inform a patient about all treatment options. An ethical obligation for a provider not to disclose personal health information that meets certain criteria, e.g., where disclosure might result in harm to the patient or another person. The set of health care services which a provider is credentialed or privileged to provide. STDPOL (standard of practice policy) Examples:A payer may require a prescribing provider to adhere to formulary guidelines. An institution may adopt clinical guidelines and protocols and implement these within its electronic health record and decision support systems.  CONS (consent)Description: The Consent class represents informed consents and all similar medico-legal transactions between the patient (or his legal guardian) and the provider. Examples are informed consent for surgical procedures, informed consent for clinical trials, advanced beneficiary notice, against medical advice decline from service, release of information agreement, etc.  The details of consents vary. Often an institution has a number of different consent forms for various purposes, including reminding the physician about the topics to mention. Such forms also include patient education material. In electronic medical record communication, consents thus are information-generating acts on their own and need to be managed similar to medical activities. Thus, Consent is modeled as a special class of Act. The &quot;signatures&quot; to the consent document are represented electronically through Participation instances to the consent object. Typically an informed consent has Participation.typeCode of &quot;performer&quot;, the healthcare provider informing the patient, and &quot;consenter&quot;, the patient or legal guardian. Some consent may associate a witness or a notary public (e.g., living wills, advanced directives). In consents where a healthcare provider is not required (e.g. living will), the performer may be the patient himself or a notary public." />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CNTRCT" />
      </mapping>
    </element>
    <element id="Contract.subType">
      <path value="Contract.subType" />
      <label value="ConsentDirective-subType" />
      <short value="Consent Directive Subtype" />
      <definition value="A specialized type of an overarching or more general Consent Directive, such as a patient's right to opt-out of a Patient Directory under HIPAA or a multiparty 42 CFR Part 2 consent used in a health information exchange context by a Qualified Service Organization." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.subType" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContractSubtype" />
        </extension>
        <strength value="example" />
        <description value="Detailed codes within the above." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-subtype" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="Examples of Contract or Policy subtypes in ActCodes:_ActCoverageTypeCode Definition: Set of codes indicating the type of insurance policy or program that pays for the cost of benefits provided to covered parties. Generalizes:  _ActInsurancePolicyCode;  _ActInsuranceTypeCode; ActProgramTypeCode.  _ActPolicyType  Description:Types of policies that further specify the ActClassPolicy value set. Generalizes: _ActPrivacyPolicy; _ActPrivacyLaw; _InformationSensitivityPolicy; ActTrustPolicyType;  SecurityPolicy.  _ActInvoiceAdjudicationPaymentGroupCode  Description: Codes representing adjustments to a Payment Advice such as retroactive, clawback, garnishee, etc., e.g. RECOV (recovery) Description: Retroactive adjustment such as fee rate adjustment due to contract negotiations." />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="e.g. RECOV" />
      </mapping>
    </element>
    <element id="Contract.action">
      <path value="Contract.action" />
      <label value="ConsentDirective-action" />
      <short value="Consent Directive Action" />
      <definition value="Action stipulated by this Consent Directive." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.action" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContractAction" />
        </extension>
        <strength value="example" />
        <description value="Detailed codes for the contract action." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-action" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="Maps to multiple ActClass and ActCode Concept Domains and Code Systems." />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="e.g. JURISPOL" />
      </mapping>
    </element>
    <element id="Contract.actionReason">
      <path value="Contract.actionReason" />
      <label value="ConsentDirective-actionReason" />
      <short value="Consent Directive Action Reason" />
      <definition value="Reason for action stipulated by this Consent Directive." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.actionReason" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContractActionReason" />
        </extension>
        <strength value="example" />
        <description value="Detailed codes for the contract action reason." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="Examples from ActReason Concept Domains: ActCoverageReason Description:Codes used to specify reasons or criteria relating to coverage provided under a policy or program. May be used to convey reasons pertaining to coverage contractual provisions, including criteria for eligibility, coverage limitations, coverage maximums, or financial participation required of covered parties. ActInformationPrivacyReason Description: The rationale or purpose for an act relating to the management of personal information, such as disclosing personal tax information for the purpose of complying with a court order. ClinicalResearchObservationReason Definition: Specifies the reason that a test was performed or observation collected in a clinical research study. SafetyInvestigationReportReasonType Description: Possible reasons generating a report providing information developed during the investigation of an adverse event or a product problem. ControlActReason Description: Indicates the motivation, cause or rationale of an Act which results in a trigger event.  NonPerformanceReasonCode Description: The reason the action was not performed, e.g. why the medication was not taken. If an action was not performed, it is often clinically important to know why the action was not taken. RefusalReasonCode Description: Identifies why a request to add (or activate) a record is being refused. Examples include the receiving system not able to match the identifier and find that record in the receiving system, having no permission, or a detected issue exists which precludes the requested action.&#xD;&#xD;&#xD;&#xD;&#xD;&#xD;&#xD;&#xD;Examples from HL7 ActReason Code System: QUALIMP (quality improvement) Description:Operational activities conducted for the purposes of improving the quality of an activity, product, or service. _PatientProfileQueryReasonCode Description: A collection of concepts identifying why the patient's profile is being queried. _ActInformationManagementReason Description:The rationale or purpose for an act relating to information management, such as archiving information for the purpose of complying with an enterprise data retention policy. _ActInvalidReason (ActInvalidReason) Description: Types of reasons why a substance is invalid for use. _NonPerformanceReasonCode Description: The reason the action wasn't performed, e.g. why the medication was not taken. If an action wasn&quot;t performed, it is often clinically important to know why the action wasn&quot;t taken." />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="e.g. QUALIMP" />
      </mapping>
    </element>
    <element id="Contract.decisionType">
      <path value="Contract.decisionType" />
      <short value="Decision by Grantor" />
      <definition value="The type of decision made by a grantor with respect to an offer made by a grantee." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Contract.decisionType" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContractDecisionType" />
        </extension>
        <strength value="extensible" />
        <description value="The type of decision made by a grantor with respect to an offer made by a grantee." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-ActConsentDirective" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="ActCode: _ActConsentDirective [abstract term] Description: Specifies the type of agreement between one or more grantor and grantee in which rights and obligations related to one or more shared items of interest are allocated. Usage Note: Such agreements may be considered &quot;consent directives&quot; or &quot;contracts&quot; depending on the context, and are considered closely related or synonymous from a legal perspective." />
      </mapping>
    </element>
    <element id="Contract.contentDerivative">
      <path value="Contract.contentDerivative" />
      <short value="Content derived from the basal information" />
      <definition value="The minimal content derived from the basal information source at a specific stage in its lifecycle." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Contract.contentDerivative" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContractContentDerivative" />
        </extension>
        <strength value="example" />
        <description value="This is an example set of Content Derivative type codes, which represent the minimal content derived from the basal information source." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-content-derivative" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="Maps partially to several v3 codes: ActClass: REG (registration) Description: Represents the act of maintaining information about the registration of its associated registered subject. The subject can be either an Act or a Role, and includes subjects such as lab exam definitions, drug protocol definitions, prescriptions, persons, patients, practitioners, and equipment.&#xD;The registration may have a unique identifier - separate from the unique identification of the subject - as well as a core set of related participations and act relationships that characterize the registration event and aid in the disposition of the subject information by a receiving system. Observation: VERIF (Verification) Description: An act which describes the process whereby a 'verifying party' validates either the existence of the Role attested to by some Credential or the actual Vetting act and its details. TRFR (transfer) Description: The act of transferring information without the intent of imparting understanding about a topic to the subject that is the recipient or holder of the transferred information where the participation association must be RCV or HLD. _ActDetectedIssueManagementCode [abstract term] Description: Codes dealing with the management of Detected Issue observations. _ActInformationAccessContextCode [abstract term] Description: Concepts conveying the context in which authorization given under jurisdictional law, by organizational policy, or by a patient consent directive permits the collection, access, use or disclosure of specified patient health information. _ActListCode [abstract term]vDescription: Provides codes associated with ActClass value of LIST (working list). RefusalReasonCode [abstract term] Description:&#xD;Description: Identifies why a request to add (or activate) a record is being refused. Examples include the receiving system not able to match the identifier and find that record in the receiving system, having no permission, or a detected issue exists which precludes the requested action." />
      </mapping>
    </element>
    <element id="Contract.securityLabel">
      <path value="Contract.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." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.securityLabel" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels" />
        </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>
      <mapping>
        <identity value="rim" />
        <map value="ActCode ObservationType:SECOBS [abstract term]&#xD;Description: An observation identifying security metadata about an IT resource (data, information object, service, or system capability), which may be used to make access control decisions. Security metadata are used to name security labels. &#xD;Rationale: According to ISO/TS 22600-3:2009(E) A.9.1.7 SECURITY LABEL MATCHING, Security label matching compares the initiator's clearance to the target's security label. All of the following must be true for authorization to be granted:&#xD;The security policy identifiers shall be identical.  The classification level of the initiator shall be greater than or equal to that of the target (that is, there shall be at least one value in the classification list of the clearance greater than or equal to the classification of the target), and For each security category in the target label, there shall be a security category of the same type in the initiator's clearance and the initiator's classification level shall dominate that of the target. Examples: SecurityObservationType security label fields include: Confidentiality classification; Compartment category; Sensitivity category&#xD;Security mechanisms used to ensure data integrity or to perform authorized data transformation Indicators of an IT resource completeness, veracity, reliability, trustworthiness, or provenance. Usage Note: SecurityObservationType codes designate security label field types, which are valued with an applicable SecurityObservationValue code as the &quot;security label tag&quot;.  _SecurityObservationValue [abstract term] Description: Observation values used to indicate security observation metadata." />
      </mapping>
    </element>
    <element id="Contract.agent">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Agent" />
      </extension>
      <path value="Contract.agent" />
      <short value="Entity being ascribed responsibility" />
      <definition value="An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place." />
      <comment value="Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.&#xD;For example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, software, or system process. However, only one user may be the initiator/requestor for the event." />
      <requirements value="An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.agent" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.signer">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Signatory" />
      </extension>
      <path value="Contract.signer" />
      <label value="ConsentDirective-signer" />
      <short value="Consent Directive Signer" />
      <definition value="Party signing this Consent Directive." />
      <comment value="Signers who are principal parties to the contract are bound by the Contract.activity related to the Contract.topic, and the Contract.term(s), which either extend or restrict the overall action on the topic by, for example, stipulating specific policies or obligations constraining actions, action reason, or agents with respect to some or all of the topic.&#xD;For example, specifying how policies or obligations shall constrain actions and action reasons permitted or denied on all or a subset of the Contract.topic (e.g., all or a portion of property being transferred by the contract), agents (e.g., who can resell, assign interests, or alter the property being transferred by the contract), actions, and action reasons; or with respect to Contract.terms, stipulating, extending, or limiting the Contract.period of applicability or valuation of items under consideration." />
      <requirements value="The Contract.signer applies a signature to the Contract.binding referenced resource, which is the documentation that is the legal &quot;source of truth&quot;. The Contract.signer may delegate, such as a legally recognized personal representative, or have a delegate assigned e.g., by a court of law, to actually sign the Contract, such as a trustee in the case of incompetence." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.signer" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.valuedItem">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ValuedItem" />
      </extension>
      <path value="Contract.valuedItem" />
      <label value="ConsentDirective-valuedItem" />
      <short value="Contract Valued Item" />
      <definition value="Contract Valued Item List." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Contract.valuedItem" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedItem classCode INVE" />
      </mapping>
    </element>
    <element id="Contract.term">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Term" />
      </extension>
      <path value="Contract.term" />
      <label value="ConsentDirective-term" />
      <short value="Consent Directive Term List" />
      <definition value="One or more Consent DirectiveProvisions, which may be related and conveyed as a group, and may contain nested groups." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.term" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="RIM mechanism for grouping or nesting rules, which are likely Acts and Observations." />
      </mapping>
    </element>
    <element id="Contract.binding[x]">
      <path value="Contract.binding[x]" />
      <label value="ConsentDirective-binding[x]" />
      <short value="Binding Consent Directive" />
      <definition value="Legally binding onsent Directive Provision.  This is the signed and legally recognized representation of the Consent Directive. that is considered the &quot;source of truth&quot;, which would be the basis for legal action related to enforcement of the onsent Directive Provision." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Contract.binding[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
      </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/QuestionnaireResponse" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="DocumentCompletion code system AU (authenticated) Description: A completion status in which a document has been signed manually or electronically by one or more individuals who attest to its accuracy. No explicit determination is made that the assigned individual has performed the authentication. While the standard allows multiple instances of authentication, it would be typical to have a single instance of authentication, usually by the assigned individual." />
      </mapping>
    </element>
    <element id="Contract.friendly">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="FriendlyLanguage" />
      </extension>
      <path value="Contract.friendly" />
      <label value="ConsentDirective-friendly" />
      <short value="Consent Directive Friendly Language" />
      <definition value="The &quot;patient friendly language&quot; versionof the Consent Directive in whole or in parts. &quot;Patient friendly language&quot; means the representation of the  Consent Directive and  Consent Directive Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the  Consent Directive understand the roles, actions, obligations, responsibilities, and implication of the agreement." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.friendly" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.legal">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="LegalLanguage" />
      </extension>
      <path value="Contract.legal" />
      <label value="ConsentDirective-legal" />
      <short value="Consent Directive Legal Language" />
      <definition value="List of Legal expressions or representations of this  Consent Directive." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.legal" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.rule">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ComputableLanguage" />
      </extension>
      <path value="Contract.rule" />
      <label value="ConsentDirective-rule" />
      <short value="Computable Consent Directive Language" />
      <definition value="List of Computable Policy Rule Language Representations of this  Consent Directive." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Contract.rule" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.actor">
      <path value="Contract.actor" />
      <label value="ConsentDirective-actor" />
      <short value="Consent Directive Actor" />
      <definition value="List of Consent Directive actors." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
  </snapshot>
  <differential>
    <element id="Contract">
      <path value="Contract" />
      <short value="Consent Directive" />
      <definition value="A record of a healthcare consumer’s privacy policy, which is in accordance with governing jurisdictional and organization privacy policies that grant or withhold consent:   • To one or more identified entities in a defined role   • To perform one or more operations (e.g. collect, access, use, disclose, amend, or delete)   • On an instance or type of individually identifiable health information [IIHI]  • For a purpose such as treatment, payment, operations, research, public health, quality measures, health status evaluation by third parties, or marketing   • Under certain conditions, e.g. when unconscious   • For specified time period, e.g. effective and expiration dates   • In certain context, e.g. in an emergency   A consent directive is an instance of governing jurisdictional and organization privacy policies, which may or may not be backed up by a signed document (paper or electronic). [HITSP TP30]." />
      <min value="0" />
      <max value="*" />
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="financial.other" />
      </mapping>
    </element>
    <element id="Contract.actor">
      <path value="Contract.actor" />
      <label value="ConsentDirective-actor" />
      <short value="Consent Directive Actor" />
      <definition value="List of Consent Directive actors." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.actor.entity">
      <path value="Contract.actor.entity" />
      <label value="ConsentDirective-actor-entity" />
      <short value="Consent Directive Actor Type" />
      <definition value="Who or what actors are assigned roles in this Consent Directive." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
      </type>
      <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/Location" />
      </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>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
      </type>
    </element>
    <element id="Contract.actor.role">
      <path value="Contract.actor.role" />
      <label value="ConsentDirective-actor-role" />
      <short value="Consent Directive Actor Role" />
      <definition value="Role type of actors assigned roles in this Consent Directive." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the contract actor role." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-actorrole" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.identifier">
      <path value="Contract.identifier" />
      <label value="ConsentDirective-identifier" />
      <short value="Consent Directive identifier" />
      <definition value="Unique identifier for this Consent Directive." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract id" />
      </mapping>
    </element>
    <element id="Contract.issued">
      <path value="Contract.issued" />
      <label value="ConsentDirective-issued" />
      <short value="When this Consent Directive was issued" />
      <definition value="Date and time when this Consent Directive was executed and became effective." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract effectiveTime" />
      </mapping>
    </element>
    <element id="Contract.applies">
      <path value="Contract.applies" />
      <label value="ConsentDirective-applies" />
      <short value="Effective time" />
      <definition value="Time period during which this Consent Directive is in effect." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="FinancialContract activityTime" />
      </mapping>
    </element>
    <element id="Contract.topic">
      <path value="Contract.topic" />
      <label value="ConsentDirective-topic" />
      <short value="The Patient is the topic of this Consent Directive" />
      <definition value="Patient information and actions taken on that information that are governed by this Consent Directive." />
      <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>
    </element>
    <element id="Contract.authority">
      <path value="Contract.authority" />
      <label value="ConsentDirective-authority" />
      <short value="Authority under which this Consent Directive has standing" />
      <definition value="A formally recognized grouping of people, principals, organizations, or jurisdictions with legal standing to promulgate, administer, and enforce privacy policies and applicable Consent Directives." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="Role Scoper" />
      </mapping>
    </element>
    <element id="Contract.domain">
      <path value="Contract.domain" />
      <label value="ConsentDirective-domain" />
      <short value="Domain in which this Consent Directive applies" />
      <definition value="Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to privacy protection and control of the collection, access, use and disclosure of resources." />
      <alias value="scope of governance jurisdiction" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
    </element>
    <element id="Contract.type">
      <path value="Contract.type" />
      <label value="ConsentDirective-type" />
      <short value="Consent Directive Type" />
      <definition value="Specific type of patient privacy Consent Directive reflecting the range of patient discretion over granting of rights to patient information and actions that may be taken on that information; e.g. Opt-in, opt-out, Share All (such as authorization to disclose to payer for payment purposes or benefit eligibility), Share Partial(such as Title 38 Section 7332 and 42 CFR Part 2), Implied Consent, such as a HIPAA Notice of Privacy Practices." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="example" />
        <description value="List of overall contract codes." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-type" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="CNTRCT" />
      </mapping>
    </element>
    <element id="Contract.type.coding.code">
      <path value="Contract.type.coding.code" />
      <short value="Symbol in syntax defined by the system" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." />
      <requirements value="Need to refer to a particular code in the system." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <fixedCode value="57016-8" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element id="Contract.type.coding.system">
      <path value="Contract.type.coding.system" />
      <short value="Identity of the terminology system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
      <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously." />
      <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://loinc.org" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element id="Contract.subType">
      <path value="Contract.subType" />
      <label value="ConsentDirective-subType" />
      <short value="Consent Directive Subtype" />
      <definition value="A specialized type of an overarching or more general Consent Directive, such as a patient's right to opt-out of a Patient Directory under HIPAA or a multiparty 42 CFR Part 2 consent used in a health information exchange context by a Qualified Service Organization." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="example" />
        <description value="Detailed codes within the above." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-subtype" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="e.g. RECOV" />
      </mapping>
    </element>
    <element id="Contract.action">
      <path value="Contract.action" />
      <label value="ConsentDirective-action" />
      <short value="Consent Directive Action" />
      <definition value="Action stipulated by this Consent Directive." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the contract action." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-action" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="e.g. JURISPOL" />
      </mapping>
    </element>
    <element id="Contract.actionReason">
      <path value="Contract.actionReason" />
      <label value="ConsentDirective-actionReason" />
      <short value="Consent Directive Action Reason" />
      <definition value="Reason for action stipulated by this Consent Directive." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the contract action reason." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="e.g. QUALIMP" />
      </mapping>
    </element>
    <element id="Contract.signer">
      <path value="Contract.signer" />
      <label value="ConsentDirective-signer" />
      <short value="Consent Directive Signer" />
      <definition value="Party signing this Consent Directive." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.signer.type">
      <path value="Contract.signer.type" />
      <label value="ConsentDirective-signer-type" />
      <short value="Consent Directive Signer Type" />
      <definition value="Role of this Consent Directive signer, e.g. patient who is Consent Directive Grantee, the Substitute Decision Maker such as a person with Power of Attorney to whom the patient has granted or delegated rights to execute a Consent Directive on the patient's behalf, a notary public or witness." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="List of parties who may be signing." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-signer-type" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.signer.party">
      <path value="Contract.signer.party" />
      <label value="ConsentDirective-signer-party" />
      <short value="Consent Directive Signatory party" />
      <definition value="Party which is a signatory to this Consent Directive." />
      <min value="1" />
      <max value="1" />
      <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="Contract.signer.signature">
      <path value="Contract.signer.signature" />
      <label value="ConsentDirective-signer-signature" />
      <short value="Consent Directive Documentation Signature" />
      <definition value="Legally binding Consent Directive DSIG signature contents in Base64." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Contract.valuedItem">
      <path value="Contract.valuedItem" />
      <label value="ConsentDirective-valuedItem" />
      <short value="Contract Valued Item" />
      <definition value="Contract Valued Item List." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedItem classCode INVE" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.entity[x]">
      <path value="Contract.valuedItem.entity[x]" />
      <label value="ConsentDirective-valuedItem-entity[x]" />
      <short value="Contract Valued Item Type" />
      <definition value="Specific type of Contract Valued Item that may be priced." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedItem code" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.identifier">
      <path value="Contract.valuedItem.identifier" />
      <label value="ConsentDirective-valuedItem-identifier" />
      <short value="Contract Valued Item Identifier" />
      <definition value="Identifies a Contract Valued Item instance." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedItem id" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.effectiveTime">
      <path value="Contract.valuedItem.effectiveTime" />
      <label value="ConsentDirective-valuedItem-effectiveTime" />
      <short value="Contract Valued Item Effective Time" />
      <definition value="Indicates the time during which this Contract ValuedItem information is effective." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedItem                effectiveTime" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.quantity">
      <path value="Contract.valuedItem.quantity" />
      <label value="ConsentDirective-valuedItem-quantity" />
      <short value="Count of Contract Valued Items" />
      <definition value="Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedItem unitQuantity" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.unitPrice">
      <path value="Contract.valuedItem.unitPrice" />
      <label value="ConsentDirective-valuedItem-unitprice" />
      <short value="Contract Valued Item fee, charge, or cost." />
      <definition value="A Contract Valued Item unit valuation measure." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Money" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="F12" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.factor">
      <path value="Contract.valuedItem.factor" />
      <label value="ConsentDirective-valuedItem-factor" />
      <short value="Contract Valued Item Price Scaling Factor" />
      <definition value="A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="F13/F14" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.points">
      <path value="Contract.valuedItem.points" />
      <label value="ConsentDirective-valuedItem-points" />
      <short value="Contract Valued Item Difficulty Scaling Factor" />
      <definition value="An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="F13/F14" />
      </mapping>
    </element>
    <element id="Contract.valuedItem.net">
      <path value="Contract.valuedItem.net" />
      <label value="ConsentDirective-valuedItem-net" />
      <short value="Total Contract Valued Item Value" />
      <definition value="Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Money" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="F13/F14" />
      </mapping>
    </element>
    <element id="Contract.term">
      <path value="Contract.term" />
      <label value="ConsentDirective-term" />
      <short value="Consent Directive Term List" />
      <definition value="One or more Consent DirectiveProvisions, which may be related and conveyed as a group, and may contain nested groups." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.term.actor">
      <path value="Contract.term.actor" />
      <label value="ConsentDirective-term-actor" />
      <short value="Consent Directive  Term Actor List" />
      <definition value="List of actors participating in this Consent Directive Provision." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.term.actor.entity">
      <path value="Contract.term.actor.entity" />
      <label value="ConsentDirective-term-actor-entity" />
      <short value="Consent Directive Term Actor" />
      <definition value="The actor assigned a role in this Consent Directive Provision." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
      </type>
      <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/Location" />
      </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>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
      </type>
    </element>
    <element id="Contract.term.actor.role">
      <path value="Contract.term.actor.role" />
      <label value="ConsentDirective-term-actor-role" />
      <short value="Consent Directive Term Actor Role" />
      <definition value="Role played by the actor assigned this role in this Consent Directive Provision." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the contract actor role." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-actorrole" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.term.identifier">
      <path value="Contract.term.identifier" />
      <label value="ConsentDirective-term-identifier" />
      <short value="Consent Directive Term identifier" />
      <definition value="Unique identifier for this particular Consent Directive Provision." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Contract.term.issued">
      <path value="Contract.term.issued" />
      <label value="ConsentDirective-term-issued" />
      <short value="Consent Directive Term Issue Date Time" />
      <definition value="When this Consent Directive Provision was issued." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Contract.term.applies">
      <path value="Contract.term.applies" />
      <label value="ConsentDirective-term-applies" />
      <short value="Consent Directive Term Effective Time" />
      <definition value="Relevant time or time-period when this Consent Directive Provision is applicable." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Contract.term.type">
      <path value="Contract.term.type" />
      <label value="ConsentDirective-term-type" />
      <short value="Consent Directive Term Type" />
      <definition value="Type of Consent Directive Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the types of contract provisions." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-term-type" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.term.subType">
      <path value="Contract.term.subType" />
      <label value="ConsentDirective-term-subType" />
      <short value="Consent Directive Term Subtype" />
      <definition value="Subtype of this Consent Directive Provision, e.g. life time maximum payment for a contract term for specific valued item, e.g. disability payment." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the subtypes of contract provisions." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-term-subtype" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.term.topic">
      <path value="Contract.term.topic" />
      <label value="ConsentDirective-term-topic" />
      <short value="Topic of this Consent Directive Term" />
      <definition value="Who or what this Consent Directive Provision is about." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
    </element>
    <element id="Contract.term.action">
      <path value="Contract.term.action" />
      <label value="ConsentDirective-term-action" />
      <short value="Consent Directive Term Action" />
      <definition value="Action stipulated by this Consent Directive Provision." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the contract action." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contract-action" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.term.actionReason">
      <path value="Contract.term.actionReason" />
      <label value="ConsentDirective-term-actionReason" />
      <short value="Consent Directive Term Action Reason" />
      <definition value="Reason or purpose for the action stipulated by this Consent Directive Provision." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Detailed codes for the contract action reason." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Contract.term.text">
      <path value="Contract.term.text" />
      <label value="ConsentDirective-term-text" />
      <short value="Human readable Consent Directive term text" />
      <definition value="Human readable form of this Consent Directive Provision." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Contract.term.valuedItem">
      <path value="Contract.term.valuedItem" />
      <label value="ConsentDirective-term-valuedItem" />
      <short value="Contract Term Valued Item" />
      <definition value="Contract Provision Valued Item List." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem classCode INVE" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.entity[x]">
      <path value="Contract.term.valuedItem.entity[x]" />
      <label value="ConsentDirective-term-valuedItem-entity[x]" />
      <short value="Contract Term Valued Item Type" />
      <definition value="Specific type of Contract Provision Valued Item that may be priced." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem code" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.identifier">
      <path value="Contract.term.valuedItem.identifier" />
      <label value="ConsentDirective-term-valuedItem" />
      <short value="Contract Term Valued Item Identifier" />
      <definition value="Identifies a Contract Provision Valued Item instance." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem id" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.effectiveTime">
      <path value="Contract.term.valuedItem.effectiveTime" />
      <label value="ConsentDirective-term-valuedItem-effectiveTime" />
      <short value="Contract Term Valued Item Effective Time" />
      <definition value="Indicates the time during which this Contract Term ValuedItem information is effective." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem effectiveTime" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.quantity">
      <path value="Contract.term.valuedItem.quantity" />
      <label value="ConsentDirective-term-valuedItem-quantity" />
      <short value="Contract Term Valued Item Count" />
      <definition value="Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem unitQuantity" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.unitPrice">
      <path value="Contract.term.valuedItem.unitPrice" />
      <label value="ConsentDirective-term-valuedItem-unitPrice" />
      <short value="Contract Term Valued Item fee, charge, or cost." />
      <definition value="A Contract Provision Valued Item unit valuation measure." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Money" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem unitPriceAmt" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.factor">
      <path value="Contract.term.valuedItem.factor" />
      <label value="ConsentDirective-term-valuedItem-factor" />
      <short value="Contract Term Valued Item Price Scaling Factor" />
      <definition value="A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem factorNumber" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.points">
      <path value="Contract.term.valuedItem.points" />
      <label value="ConsentDirective-term-valuedItem-points" />
      <short value="Contract Term Valued Item Difficulty Scaling Factor" />
      <definition value="An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Provision Valued Item, such that a monetary amount can be assigned to each point." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="COCT_RM440000UV09 ValuedUnitItem pointNumber" />
      </mapping>
    </element>
    <element id="Contract.term.valuedItem.net">
      <path value="Contract.term.valuedItem.net" />
      <label value="ConsentDirective-term-valuedItem-net" />
      <short value="Total Contract Term Valued Item Value" />
      <definition value="Expresses the product of the Contract Provision Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Money" />
      </type>
    </element>
    <element id="Contract.term.group">
      <path value="Contract.term.group" />
      <label value="ConsentDirective-term-group" />
      <short value="Nested Consent DirectiveTerm Group" />
      <definition value="Nested group of Consent Directive Provision." />
      <min value="0" />
      <max value="*" />
      <contentReference value="#term" />
    </element>
    <element id="Contract.binding[x]">
      <path value="Contract.binding[x]" />
      <label value="ConsentDirective-binding[x]" />
      <short value="Binding Consent Directive" />
      <definition value="Legally binding onsent Directive Provision.  This is the signed and legally recognized representation of the Consent Directive. that is considered the &quot;source of truth&quot;, which would be the basis for legal action related to enforcement of the onsent Directive Provision." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
      </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/QuestionnaireResponse" />
      </type>
    </element>
    <element id="Contract.friendly">
      <path value="Contract.friendly" />
      <label value="ConsentDirective-friendly" />
      <short value="Consent Directive Friendly Language" />
      <definition value="The &quot;patient friendly language&quot; versionof the Consent Directive in whole or in parts. &quot;Patient friendly language&quot; means the representation of the  Consent Directive and  Consent Directive Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the  Consent Directive understand the roles, actions, obligations, responsibilities, and implication of the agreement." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.friendly.content[x]">
      <path value="Contract.friendly.content[x]" />
      <label value="ConsentDirective-friendly-content[x]" />
      <short value="Easily comprehended representation of this Consent Directive" />
      <definition value="Human readable rendering of this  Consent Directive in a format and representation intended to enhance comprehension and ensure understandability." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
      </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/QuestionnaireResponse" />
      </type>
    </element>
    <element id="Contract.legal">
      <path value="Contract.legal" />
      <label value="ConsentDirective-legal" />
      <short value="Consent Directive Legal Language" />
      <definition value="List of Legal expressions or representations of this  Consent Directive." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.legal.content[x]">
      <path value="Contract.legal.content[x]" />
      <label value="ConsentDirective-legal-content[x]" />
      <short value="Consent Directive Legal Text" />
      <definition value="Legal  Consent Directive text in human renderable form." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
      </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/QuestionnaireResponse" />
      </type>
    </element>
    <element id="Contract.rule">
      <path value="Contract.rule" />
      <label value="ConsentDirective-rule" />
      <short value="Computable Consent Directive Language" />
      <definition value="List of Computable Policy Rule Language Representations of this  Consent Directive." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Contract.rule.content[x]">
      <path value="Contract.rule.content[x]" />
      <label value="ConsentDirective-rule-content[x]" />
      <short value="Computable Consent Directive Rules" />
      <definition value="Computable Consent Directive conveyed using a policy rule language (e.g. XACML, DKAL, SecPal)." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
      </type>
    </element>
  </differential>
</StructureDefinition>