<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="consentdirective" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">to do</div>
  </text>
  <url value="http://hl7.org/fhir/StructureDefinition/consentdirective" />
  <name value="Consent Directive" />
  <status value="draft" />
  <date value="2014-01-31" />
  <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.1" />
  <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" />
  <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>