FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R3 R2

StructureDefinition: Consent Directive - JSON

StructureDefinition for Consent Directive

Raw JSON

{
  "resourceType": "StructureDefinition",
  "id": "consentdirective",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/consentdirective",
  "name": "Consent Directive",
  "status": "draft",
  "date": "2014-01-31",
  "publisher": "Health Level Seven International (Community Based Collaborative Care)",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://hl7.org/special/committees/Security"
        }
      ]
    }
  ],
  "description": "Consent Directive",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Contract",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Contract",
  "derivation": "constraint",
  "snapshot": {
    "element": [
      {
        "id": "Contract",
        "path": "Contract",
        "short": "Consent Directive",
        "definition": "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": 0,
        "max": "*",
        "base": {
          "path": "Contract",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract"
          },
          {
            "identity": "w5",
            "map": "financial.other"
          }
        ]
      },
      {
        "id": "Contract.id",
        "path": "Contract.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.meta",
        "path": "Contract.meta",
        "short": "Metadata about the resource",
        "definition": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.meta",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Meta"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.implicitRules",
        "path": "Contract.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "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": "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 as much as possible.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.implicitRules",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true,
        "isSummary": true
      },
      {
        "id": "Contract.language",
        "path": "Contract.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comment": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.language",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "A human language.",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "id": "Contract.text",
        "path": "Contract.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "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 \"clinically safe\" 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": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "id": "Contract.contained",
        "path": "Contract.contained",
        "short": "Contained, inline Resources",
        "definition": "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": "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": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.contained",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.extension",
        "path": "Contract.extension",
        "short": "Additional Content defined by implementations",
        "definition": "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": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.modifierExtension",
        "path": "Contract.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.identifier",
        "path": "Contract.identifier",
        "label": "ConsentDirective-identifier",
        "short": "Consent Directive identifier",
        "definition": "Unique identifier for this Consent Directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract id"
          }
        ]
      },
      {
        "id": "Contract.issued",
        "path": "Contract.issued",
        "label": "ConsentDirective-issued",
        "short": "When this Consent Directive was issued",
        "definition": "Date and time when this Consent Directive was executed and became effective.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.issued",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract effectiveTime"
          }
        ]
      },
      {
        "id": "Contract.applies",
        "path": "Contract.applies",
        "label": "ConsentDirective-applies",
        "short": "Effective time",
        "definition": "Time period during which this Consent Directive is in effect.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.applies",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract activityTime"
          }
        ]
      },
      {
        "id": "Contract.subject",
        "path": "Contract.subject",
        "label": "ConsentDirective-subject",
        "short": "Patient who is the subject of this Privacy Consent Directive",
        "definition": "Patient information and actions taken on that information that are governed by this Privacy Consent Directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.subject",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "Role"
          }
        ]
      },
      {
        "id": "Contract.authority",
        "path": "Contract.authority",
        "label": "ConsentDirective-authority",
        "short": "Authority under which this Consent Directive has standing",
        "definition": "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": 0,
        "max": "*",
        "base": {
          "path": "Contract.authority",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Role Scoper"
          }
        ]
      },
      {
        "id": "Contract.domain",
        "path": "Contract.domain",
        "label": "ConsentDirective-domain",
        "short": "Domain in which this Consent Directive applies",
        "definition": "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": [
          "scope of governance jurisdiction"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.domain",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ]
      },
      {
        "id": "Contract.type",
        "path": "Contract.type",
        "label": "ConsentDirective-type",
        "short": "Consent Directive Type",
        "definition": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "List of overall contract codes.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-type"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "CNTRCT"
          }
        ]
      },
      {
        "id": "Contract.subType",
        "path": "Contract.subType",
        "label": "ConsentDirective-subType",
        "short": "Consent Directive Subtype",
        "definition": "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": 0,
        "max": "*",
        "base": {
          "path": "Contract.subType",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "Detailed codes within the above.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-subtype"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "e.g. RECOV"
          }
        ]
      },
      {
        "id": "Contract.action",
        "path": "Contract.action",
        "label": "ConsentDirective-action",
        "short": "Consent Directive Action",
        "definition": "Action stipulated by this Consent Directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.action",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-action"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "e.g. JURISPOL"
          }
        ]
      },
      {
        "id": "Contract.actionReason",
        "path": "Contract.actionReason",
        "label": "ConsentDirective-actionReason",
        "short": "Consent Directive Action Reason",
        "definition": "Reason for action stipulated by this Consent Directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.actionReason",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action reason.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "e.g. QUALIMP"
          }
        ]
      },
      {
        "id": "Contract.actor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Actor"
          }
        ],
        "path": "Contract.actor",
        "label": "ConsentDirective-actor",
        "short": "Consent Directive Actor",
        "definition": "List of Consent Directive actors.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.actor",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.actor.id",
        "path": "Contract.actor.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.actor.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.actor.extension",
        "path": "Contract.actor.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.actor.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.actor.modifierExtension",
        "path": "Contract.actor.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.actor.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.actor.entity",
        "path": "Contract.actor.entity",
        "label": "ConsentDirective-actor-entity",
        "short": "Consent Directive Actor Type",
        "definition": "Who or what actors are assigned roles in this Consent Directive.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.actor.entity",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ]
      },
      {
        "id": "Contract.actor.role",
        "path": "Contract.actor.role",
        "label": "ConsentDirective-actor-role",
        "short": "Consent Directive Actor Role",
        "definition": "Role type of actors assigned roles in this Consent Directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.actor.role",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract actor role.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
          }
        }
      },
      {
        "id": "Contract.valuedItem",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ValuedItem"
          }
        ],
        "path": "Contract.valuedItem",
        "label": "ConsentDirective-valuedItem",
        "short": "Contract Valued Item",
        "definition": "Contract Valued Item List.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Contract.valuedItem",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem classCode INVE"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.id",
        "path": "Contract.valuedItem.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.extension",
        "path": "Contract.valuedItem.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.valuedItem.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.modifierExtension",
        "path": "Contract.valuedItem.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.valuedItem.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.entity[x]",
        "path": "Contract.valuedItem.entity[x]",
        "label": "ConsentDirective-valuedItem-entity[x]",
        "short": "Contract Valued Item Type",
        "definition": "Specific type of Contract Valued Item that may be priced.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.entity[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem code"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.identifier",
        "path": "Contract.valuedItem.identifier",
        "label": "ConsentDirective-valuedItem-identifier",
        "short": "Contract Valued Item Identifier",
        "definition": "Identifies a Contract Valued Item instance.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem id"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.effectiveTime",
        "path": "Contract.valuedItem.effectiveTime",
        "label": "ConsentDirective-valuedItem-effectiveTime",
        "short": "Contract Valued Item Effective Time",
        "definition": "Indicates the time during which this Contract ValuedItem information is effective.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.effectiveTime",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem                effectiveTime"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.quantity",
        "path": "Contract.valuedItem.quantity",
        "label": "ConsentDirective-valuedItem-quantity",
        "short": "Count of Contract Valued Items",
        "definition": "Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances.",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.quantity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "code.empty() or system"
              }
            ],
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system",
            "xpath": "not(exists(f:code)) or exists(f:system)"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "comparator.empty()"
              }
            ],
            "key": "sqty-1",
            "severity": "error",
            "human": "The comparator is not used on a SimpleQuantity",
            "expression": "comparator.empty()",
            "xpath": "not(exists(f:comparator))"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.unitPrice",
        "path": "Contract.valuedItem.unitPrice",
        "label": "ConsentDirective-valuedItem-unitprice",
        "short": "Contract Valued Item fee, charge, or cost.",
        "definition": "A Contract Valued Item unit valuation measure.",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.unitPrice",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "code.empty() or system"
              }
            ],
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system",
            "xpath": "not(exists(f:code)) or exists(f:system)"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')"
              }
            ],
            "key": "mny-1",
            "severity": "error",
            "human": "There SHALL be a code if there is a value and it SHALL be an expression of currency.  If system is present, it SHALL be ISO 4217 (system = \"urn:iso:std:iso:4217\" - currency).",
            "expression": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')",
            "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='urn:iso:std:iso:4217')"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          },
          {
            "identity": "v2",
            "map": "F12"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.factor",
        "path": "Contract.valuedItem.factor",
        "label": "ConsentDirective-valuedItem-factor",
        "short": "Contract Valued Item Price Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.factor",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem factorNumber"
          },
          {
            "identity": "v2",
            "map": "F13/F14"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.points",
        "path": "Contract.valuedItem.points",
        "label": "ConsentDirective-valuedItem-points",
        "short": "Contract Valued Item Difficulty Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.points",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem pointNumber"
          },
          {
            "identity": "v2",
            "map": "F13/F14"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.net",
        "path": "Contract.valuedItem.net",
        "label": "ConsentDirective-valuedItem-net",
        "short": "Total Contract Valued Item Value",
        "definition": "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.",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.valuedItem.net",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "code.empty() or system"
              }
            ],
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system",
            "xpath": "not(exists(f:code)) or exists(f:system)"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')"
              }
            ],
            "key": "mny-1",
            "severity": "error",
            "human": "There SHALL be a code if there is a value and it SHALL be an expression of currency.  If system is present, it SHALL be ISO 4217 (system = \"urn:iso:std:iso:4217\" - currency).",
            "expression": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')",
            "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='urn:iso:std:iso:4217')"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          },
          {
            "identity": "v2",
            "map": "F13/F14"
          }
        ]
      },
      {
        "id": "Contract.signer",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Signatory"
          }
        ],
        "path": "Contract.signer",
        "label": "ConsentDirective-signer",
        "short": "Consent Directive Signer",
        "definition": "Party signing this Consent Directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.signer",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.signer.id",
        "path": "Contract.signer.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.signer.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.signer.extension",
        "path": "Contract.signer.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.signer.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.signer.modifierExtension",
        "path": "Contract.signer.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.signer.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.signer.type",
        "path": "Contract.signer.type",
        "label": "ConsentDirective-signer-type",
        "short": "Consent Directive Signer Type",
        "definition": "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": 1,
        "max": "1",
        "base": {
          "path": "Contract.signer.type",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "List of parties who may be signing.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-signer-type"
          }
        }
      },
      {
        "id": "Contract.signer.party",
        "path": "Contract.signer.party",
        "label": "ConsentDirective-signer-party",
        "short": "Consent Directive Signatory party",
        "definition": "Party which is a signatory to this Consent Directive.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.signer.party",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ]
      },
      {
        "id": "Contract.signer.signature",
        "path": "Contract.signer.signature",
        "label": "ConsentDirective-signer-signature",
        "short": "Consent Directive Documentation Signature",
        "definition": "Legally binding Consent Directive DSIG signature contents in Base64.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.signer.signature",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Contract.term",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Term"
          }
        ],
        "path": "Contract.term",
        "label": "ConsentDirective-term",
        "short": "Consent Directive Term List",
        "definition": "One or more Consent DirectiveProvisions, which may be related and conveyed as a group, and may contain nested groups.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.term.id",
        "path": "Contract.term.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.term.extension",
        "path": "Contract.term.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.term.modifierExtension",
        "path": "Contract.term.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.term.identifier",
        "path": "Contract.term.identifier",
        "label": "ConsentDirective-term-identifier",
        "short": "Consent Directive Term identifier",
        "definition": "Unique identifier for this particular Consent Directive Provision.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.term.issued",
        "path": "Contract.term.issued",
        "label": "ConsentDirective-term-issued",
        "short": "Consent Directive Term Issue Date Time",
        "definition": "When this Consent Directive Provision was issued.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.issued",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.term.applies",
        "path": "Contract.term.applies",
        "label": "ConsentDirective-term-applies",
        "short": "Consent Directive Term Effective Time",
        "definition": "Relevant time or time-period when this Consent Directive Provision is applicable.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.applies",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.term.type",
        "path": "Contract.term.type",
        "label": "ConsentDirective-term-type",
        "short": "Consent Directive Term Type",
        "definition": "Type of Consent Directive Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the types of contract provisions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-term-type"
          }
        }
      },
      {
        "id": "Contract.term.subType",
        "path": "Contract.term.subType",
        "label": "ConsentDirective-term-subType",
        "short": "Consent Directive Term Subtype",
        "definition": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.subType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the subtypes of contract provisions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-term-subtype"
          }
        }
      },
      {
        "id": "Contract.term.topic",
        "path": "Contract.term.topic",
        "label": "ConsentDirective-term-topic",
        "short": "Topic of this Consent Directive Term",
        "definition": "Who or what this Consent Directive Provision is about.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.topic",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ]
      },
      {
        "id": "Contract.term.action",
        "path": "Contract.term.action",
        "label": "ConsentDirective-term-action",
        "short": "Consent Directive Term Action",
        "definition": "Action stipulated by this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.action",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-action"
          }
        }
      },
      {
        "id": "Contract.term.actionReason",
        "path": "Contract.term.actionReason",
        "label": "ConsentDirective-term-actionReason",
        "short": "Consent Directive Term Action Reason",
        "definition": "Reason or purpose for the action stipulated by this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.actionReason",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action reason.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        }
      },
      {
        "id": "Contract.term.actor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "TermActor"
          }
        ],
        "path": "Contract.term.actor",
        "label": "ConsentDirective-term-actor",
        "short": "Consent Directive  Term Actor List",
        "definition": "List of actors participating in this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.actor",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.term.actor.id",
        "path": "Contract.term.actor.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.actor.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.term.actor.extension",
        "path": "Contract.term.actor.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.actor.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.term.actor.modifierExtension",
        "path": "Contract.term.actor.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.actor.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.term.actor.entity",
        "path": "Contract.term.actor.entity",
        "label": "ConsentDirective-term-actor-entity",
        "short": "Consent Directive Term Actor",
        "definition": "The actor assigned a role in this Consent Directive Provision.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.term.actor.entity",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ]
      },
      {
        "id": "Contract.term.actor.role",
        "path": "Contract.term.actor.role",
        "label": "ConsentDirective-term-actor-role",
        "short": "Consent Directive Term Actor Role",
        "definition": "Role played by the actor assigned this role in this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.actor.role",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract actor role.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
          }
        }
      },
      {
        "id": "Contract.term.text",
        "path": "Contract.term.text",
        "label": "ConsentDirective-term-text",
        "short": "Human readable Consent Directive term text",
        "definition": "Human readable form of this Consent Directive Provision.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "TermValuedItem"
          }
        ],
        "path": "Contract.term.valuedItem",
        "label": "ConsentDirective-term-valuedItem",
        "short": "Contract Term Valued Item",
        "definition": "Contract Provision Valued Item List.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Contract.term.valuedItem",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem classCode INVE"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.id",
        "path": "Contract.term.valuedItem.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.extension",
        "path": "Contract.term.valuedItem.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.valuedItem.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.modifierExtension",
        "path": "Contract.term.valuedItem.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.valuedItem.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.entity[x]",
        "path": "Contract.term.valuedItem.entity[x]",
        "label": "ConsentDirective-term-valuedItem-entity[x]",
        "short": "Contract Term Valued Item Type",
        "definition": "Specific type of Contract Provision Valued Item that may be priced.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.entity[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem code"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.identifier",
        "path": "Contract.term.valuedItem.identifier",
        "label": "ConsentDirective-term-valuedItem",
        "short": "Contract Term Valued Item Identifier",
        "definition": "Identifies a Contract Provision Valued Item instance.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem id"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.effectiveTime",
        "path": "Contract.term.valuedItem.effectiveTime",
        "label": "ConsentDirective-term-valuedItem-effectiveTime",
        "short": "Contract Term Valued Item Effective Time",
        "definition": "Indicates the time during which this Contract Term ValuedItem information is effective.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.effectiveTime",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem effectiveTime"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.quantity",
        "path": "Contract.term.valuedItem.quantity",
        "label": "ConsentDirective-term-valuedItem-quantity",
        "short": "Contract Term Valued Item Count",
        "definition": "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.",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.quantity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "code.empty() or system"
              }
            ],
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system",
            "xpath": "not(exists(f:code)) or exists(f:system)"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "comparator.empty()"
              }
            ],
            "key": "sqty-1",
            "severity": "error",
            "human": "The comparator is not used on a SimpleQuantity",
            "expression": "comparator.empty()",
            "xpath": "not(exists(f:comparator))"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.unitPrice",
        "path": "Contract.term.valuedItem.unitPrice",
        "label": "ConsentDirective-term-valuedItem-unitPrice",
        "short": "Contract Term Valued Item fee, charge, or cost.",
        "definition": "A Contract Provision Valued Item unit valuation measure.",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.unitPrice",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "code.empty() or system"
              }
            ],
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system",
            "xpath": "not(exists(f:code)) or exists(f:system)"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')"
              }
            ],
            "key": "mny-1",
            "severity": "error",
            "human": "There SHALL be a code if there is a value and it SHALL be an expression of currency.  If system is present, it SHALL be ISO 4217 (system = \"urn:iso:std:iso:4217\" - currency).",
            "expression": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')",
            "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='urn:iso:std:iso:4217')"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.factor",
        "path": "Contract.term.valuedItem.factor",
        "label": "ConsentDirective-term-valuedItem-factor",
        "short": "Contract Term Valued Item Price Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.factor",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem factorNumber"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.points",
        "path": "Contract.term.valuedItem.points",
        "label": "ConsentDirective-term-valuedItem-points",
        "short": "Contract Term Valued Item Difficulty Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.points",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem pointNumber"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.net",
        "path": "Contract.term.valuedItem.net",
        "label": "ConsentDirective-term-valuedItem-net",
        "short": "Total Contract Term Valued Item Value",
        "definition": "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.",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.term.valuedItem.net",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "code.empty() or system"
              }
            ],
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system",
            "xpath": "not(exists(f:code)) or exists(f:system)"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')"
              }
            ],
            "key": "mny-1",
            "severity": "error",
            "human": "There SHALL be a code if there is a value and it SHALL be an expression of currency.  If system is present, it SHALL be ISO 4217 (system = \"urn:iso:std:iso:4217\" - currency).",
            "expression": "(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')",
            "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='urn:iso:std:iso:4217')"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          }
        ]
      },
      {
        "id": "Contract.term.group",
        "path": "Contract.term.group",
        "label": "ConsentDirective-term-group",
        "short": "Nested Consent DirectiveTerm Group",
        "definition": "Nested group of Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.term.group",
          "min": 0,
          "max": "*"
        },
        "contentReference": "#Contract.term"
      },
      {
        "id": "Contract.binding[x]",
        "path": "Contract.binding[x]",
        "label": "ConsentDirective-binding[x]",
        "short": "Binding Consent Directive",
        "definition": "Legally binding onsent Directive Provision.  This is the signed and legally recognized representation of the Consent Directive. that is considered the \"source of truth\", which would be the basis for legal action related to enforcement of the onsent Directive Provision.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.binding[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          }
        ]
      },
      {
        "id": "Contract.friendly",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "FriendlyLanguage"
          }
        ],
        "path": "Contract.friendly",
        "label": "ConsentDirective-friendly",
        "short": "Consent Directive Friendly Language",
        "definition": "The \"patient friendly language\" versionof the Consent Directive in whole or in parts. \"Patient friendly language\" 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": 0,
        "max": "*",
        "base": {
          "path": "Contract.friendly",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.friendly.id",
        "path": "Contract.friendly.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.friendly.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.friendly.extension",
        "path": "Contract.friendly.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.friendly.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.friendly.modifierExtension",
        "path": "Contract.friendly.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.friendly.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.friendly.content[x]",
        "path": "Contract.friendly.content[x]",
        "label": "ConsentDirective-friendly-content[x]",
        "short": "Easily comprehended representation of this Consent Directive",
        "definition": "Human readable rendering of this  Consent Directive in a format and representation intended to enhance comprehension and ensure understandability.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.friendly.content[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          }
        ]
      },
      {
        "id": "Contract.legal",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "LegalLanguage"
          }
        ],
        "path": "Contract.legal",
        "label": "ConsentDirective-legal",
        "short": "Consent Directive Legal Language",
        "definition": "List of Legal expressions or representations of this  Consent Directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.legal",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.legal.id",
        "path": "Contract.legal.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.legal.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.legal.extension",
        "path": "Contract.legal.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.legal.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.legal.modifierExtension",
        "path": "Contract.legal.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.legal.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.legal.content[x]",
        "path": "Contract.legal.content[x]",
        "label": "ConsentDirective-legal-content[x]",
        "short": "Consent Directive Legal Text",
        "definition": "Legal  Consent Directive text in human renderable form.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.legal.content[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          }
        ]
      },
      {
        "id": "Contract.rule",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ComputableLanguage"
          }
        ],
        "path": "Contract.rule",
        "label": "ConsentDirective-rule",
        "short": "Computable Consent Directive Language",
        "definition": "List of Computable Policy Rule Language Representations of this  Consent Directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.rule",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.rule.id",
        "path": "Contract.rule.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Contract.rule.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.rule.extension",
        "path": "Contract.rule.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "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": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.rule.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Contract.rule.modifierExtension",
        "path": "Contract.rule.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comment": "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": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Contract.rule.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Contract.rule.content[x]",
        "path": "Contract.rule.content[x]",
        "label": "ConsentDirective-rule-content[x]",
        "short": "Computable Consent Directive Rules",
        "definition": "Computable Consent Directive conveyed using a policy rule language (e.g. XACML, DKAL, SecPal).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Contract.rule.content[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Contract",
        "path": "Contract",
        "short": "Consent Directive",
        "definition": "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": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract"
          },
          {
            "identity": "w5",
            "map": "financial.other"
          }
        ]
      },
      {
        "id": "Contract.actor",
        "path": "Contract.actor",
        "label": "ConsentDirective-actor",
        "short": "Consent Directive Actor",
        "definition": "List of Consent Directive actors.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.actor.entity",
        "path": "Contract.actor.entity",
        "label": "ConsentDirective-actor-entity",
        "short": "Consent Directive Actor Type",
        "definition": "Who or what actors are assigned roles in this Consent Directive.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ]
      },
      {
        "id": "Contract.actor.role",
        "path": "Contract.actor.role",
        "label": "ConsentDirective-actor-role",
        "short": "Consent Directive Actor Role",
        "definition": "Role type of actors assigned roles in this Consent Directive.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract actor role.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
          }
        }
      },
      {
        "id": "Contract.identifier",
        "path": "Contract.identifier",
        "label": "ConsentDirective-identifier",
        "short": "Consent Directive identifier",
        "definition": "Unique identifier for this Consent Directive.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract id"
          }
        ]
      },
      {
        "id": "Contract.issued",
        "path": "Contract.issued",
        "label": "ConsentDirective-issued",
        "short": "When this Consent Directive was issued",
        "definition": "Date and time when this Consent Directive was executed and became effective.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract effectiveTime"
          }
        ]
      },
      {
        "id": "Contract.applies",
        "path": "Contract.applies",
        "label": "ConsentDirective-applies",
        "short": "Effective time",
        "definition": "Time period during which this Consent Directive is in effect.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "FinancialContract activityTime"
          }
        ]
      },
      {
        "id": "Contract.topic",
        "path": "Contract.topic",
        "label": "ConsentDirective-topic",
        "short": "The Patient is the topic of this Consent Directive",
        "definition": "Patient information and actions taken on that information that are governed by this Consent Directive.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "Role"
          }
        ]
      },
      {
        "id": "Contract.authority",
        "path": "Contract.authority",
        "label": "ConsentDirective-authority",
        "short": "Authority under which this Consent Directive has standing",
        "definition": "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": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Role Scoper"
          }
        ]
      },
      {
        "id": "Contract.domain",
        "path": "Contract.domain",
        "label": "ConsentDirective-domain",
        "short": "Domain in which this Consent Directive applies",
        "definition": "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": [
          "scope of governance jurisdiction"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ]
      },
      {
        "id": "Contract.type",
        "path": "Contract.type",
        "label": "ConsentDirective-type",
        "short": "Consent Directive Type",
        "definition": "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": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "List of overall contract codes.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-type"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "CNTRCT"
          }
        ]
      },
      {
        "id": "Contract.type.coding.code",
        "path": "Contract.type.coding.code",
        "short": "Symbol in syntax defined by the system",
        "definition": "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": "Need to refer to a particular code in the system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "57016-8",
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1"
          },
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }
        ]
      },
      {
        "id": "Contract.type.coding.system",
        "path": "Contract.type.coding.system",
        "short": "Identity of the terminology system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
        "comment": "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": "Need to be unambiguous about the source of the definition of the symbol.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://loinc.org",
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.3"
          },
          {
            "identity": "rim",
            "map": "./codeSystem"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }
        ]
      },
      {
        "id": "Contract.subType",
        "path": "Contract.subType",
        "label": "ConsentDirective-subType",
        "short": "Consent Directive Subtype",
        "definition": "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": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "Detailed codes within the above.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-subtype"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "e.g. RECOV"
          }
        ]
      },
      {
        "id": "Contract.action",
        "path": "Contract.action",
        "label": "ConsentDirective-action",
        "short": "Consent Directive Action",
        "definition": "Action stipulated by this Consent Directive.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-action"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "e.g. JURISPOL"
          }
        ]
      },
      {
        "id": "Contract.actionReason",
        "path": "Contract.actionReason",
        "label": "ConsentDirective-actionReason",
        "short": "Consent Directive Action Reason",
        "definition": "Reason for action stipulated by this Consent Directive.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action reason.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "e.g. QUALIMP"
          }
        ]
      },
      {
        "id": "Contract.signer",
        "path": "Contract.signer",
        "label": "ConsentDirective-signer",
        "short": "Consent Directive Signer",
        "definition": "Party signing this Consent Directive.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.signer.type",
        "path": "Contract.signer.type",
        "label": "ConsentDirective-signer-type",
        "short": "Consent Directive Signer Type",
        "definition": "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": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "List of parties who may be signing.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-signer-type"
          }
        }
      },
      {
        "id": "Contract.signer.party",
        "path": "Contract.signer.party",
        "label": "ConsentDirective-signer-party",
        "short": "Consent Directive Signatory party",
        "definition": "Party which is a signatory to this Consent Directive.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ]
      },
      {
        "id": "Contract.signer.signature",
        "path": "Contract.signer.signature",
        "label": "ConsentDirective-signer-signature",
        "short": "Consent Directive Documentation Signature",
        "definition": "Legally binding Consent Directive DSIG signature contents in Base64.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Contract.valuedItem",
        "path": "Contract.valuedItem",
        "label": "ConsentDirective-valuedItem",
        "short": "Contract Valued Item",
        "definition": "Contract Valued Item List.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem classCode INVE"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.entity[x]",
        "path": "Contract.valuedItem.entity[x]",
        "label": "ConsentDirective-valuedItem-entity[x]",
        "short": "Contract Valued Item Type",
        "definition": "Specific type of Contract Valued Item that may be priced.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem code"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.identifier",
        "path": "Contract.valuedItem.identifier",
        "label": "ConsentDirective-valuedItem-identifier",
        "short": "Contract Valued Item Identifier",
        "definition": "Identifies a Contract Valued Item instance.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem id"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.effectiveTime",
        "path": "Contract.valuedItem.effectiveTime",
        "label": "ConsentDirective-valuedItem-effectiveTime",
        "short": "Contract Valued Item Effective Time",
        "definition": "Indicates the time during which this Contract ValuedItem information is effective.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem                effectiveTime"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.quantity",
        "path": "Contract.valuedItem.quantity",
        "label": "ConsentDirective-valuedItem-quantity",
        "short": "Count of Contract Valued Items",
        "definition": "Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedItem unitQuantity"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.unitPrice",
        "path": "Contract.valuedItem.unitPrice",
        "label": "ConsentDirective-valuedItem-unitprice",
        "short": "Contract Valued Item fee, charge, or cost.",
        "definition": "A Contract Valued Item unit valuation measure.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "F12"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.factor",
        "path": "Contract.valuedItem.factor",
        "label": "ConsentDirective-valuedItem-factor",
        "short": "Contract Valued Item Price Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "F13/F14"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.points",
        "path": "Contract.valuedItem.points",
        "label": "ConsentDirective-valuedItem-points",
        "short": "Contract Valued Item Difficulty Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "F13/F14"
          }
        ]
      },
      {
        "id": "Contract.valuedItem.net",
        "path": "Contract.valuedItem.net",
        "label": "ConsentDirective-valuedItem-net",
        "short": "Total Contract Valued Item Value",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "F13/F14"
          }
        ]
      },
      {
        "id": "Contract.term",
        "path": "Contract.term",
        "label": "ConsentDirective-term",
        "short": "Consent Directive Term List",
        "definition": "One or more Consent DirectiveProvisions, which may be related and conveyed as a group, and may contain nested groups.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.term.actor",
        "path": "Contract.term.actor",
        "label": "ConsentDirective-term-actor",
        "short": "Consent Directive  Term Actor List",
        "definition": "List of actors participating in this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.term.actor.entity",
        "path": "Contract.term.actor.entity",
        "label": "ConsentDirective-term-actor-entity",
        "short": "Consent Directive Term Actor",
        "definition": "The actor assigned a role in this Consent Directive Provision.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ]
      },
      {
        "id": "Contract.term.actor.role",
        "path": "Contract.term.actor.role",
        "label": "ConsentDirective-term-actor-role",
        "short": "Consent Directive Term Actor Role",
        "definition": "Role played by the actor assigned this role in this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract actor role.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
          }
        }
      },
      {
        "id": "Contract.term.identifier",
        "path": "Contract.term.identifier",
        "label": "ConsentDirective-term-identifier",
        "short": "Consent Directive Term identifier",
        "definition": "Unique identifier for this particular Consent Directive Provision.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.term.issued",
        "path": "Contract.term.issued",
        "label": "ConsentDirective-term-issued",
        "short": "Consent Directive Term Issue Date Time",
        "definition": "When this Consent Directive Provision was issued.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.term.applies",
        "path": "Contract.term.applies",
        "label": "ConsentDirective-term-applies",
        "short": "Consent Directive Term Effective Time",
        "definition": "Relevant time or time-period when this Consent Directive Provision is applicable.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Contract.term.type",
        "path": "Contract.term.type",
        "label": "ConsentDirective-term-type",
        "short": "Consent Directive Term Type",
        "definition": "Type of Consent Directive Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the types of contract provisions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-term-type"
          }
        }
      },
      {
        "id": "Contract.term.subType",
        "path": "Contract.term.subType",
        "label": "ConsentDirective-term-subType",
        "short": "Consent Directive Term Subtype",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the subtypes of contract provisions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-term-subtype"
          }
        }
      },
      {
        "id": "Contract.term.topic",
        "path": "Contract.term.topic",
        "label": "ConsentDirective-term-topic",
        "short": "Topic of this Consent Directive Term",
        "definition": "Who or what this Consent Directive Provision is about.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ]
      },
      {
        "id": "Contract.term.action",
        "path": "Contract.term.action",
        "label": "ConsentDirective-term-action",
        "short": "Consent Directive Term Action",
        "definition": "Action stipulated by this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contract-action"
          }
        }
      },
      {
        "id": "Contract.term.actionReason",
        "path": "Contract.term.actionReason",
        "label": "ConsentDirective-term-actionReason",
        "short": "Consent Directive Term Action Reason",
        "definition": "Reason or purpose for the action stipulated by this Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Detailed codes for the contract action reason.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        }
      },
      {
        "id": "Contract.term.text",
        "path": "Contract.term.text",
        "label": "ConsentDirective-term-text",
        "short": "Human readable Consent Directive term text",
        "definition": "Human readable form of this Consent Directive Provision.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem",
        "path": "Contract.term.valuedItem",
        "label": "ConsentDirective-term-valuedItem",
        "short": "Contract Term Valued Item",
        "definition": "Contract Provision Valued Item List.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem classCode INVE"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.entity[x]",
        "path": "Contract.term.valuedItem.entity[x]",
        "label": "ConsentDirective-term-valuedItem-entity[x]",
        "short": "Contract Term Valued Item Type",
        "definition": "Specific type of Contract Provision Valued Item that may be priced.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem code"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.identifier",
        "path": "Contract.term.valuedItem.identifier",
        "label": "ConsentDirective-term-valuedItem",
        "short": "Contract Term Valued Item Identifier",
        "definition": "Identifies a Contract Provision Valued Item instance.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem id"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.effectiveTime",
        "path": "Contract.term.valuedItem.effectiveTime",
        "label": "ConsentDirective-term-valuedItem-effectiveTime",
        "short": "Contract Term Valued Item Effective Time",
        "definition": "Indicates the time during which this Contract Term ValuedItem information is effective.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem effectiveTime"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.quantity",
        "path": "Contract.term.valuedItem.quantity",
        "label": "ConsentDirective-term-valuedItem-quantity",
        "short": "Contract Term Valued Item Count",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem unitQuantity"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.unitPrice",
        "path": "Contract.term.valuedItem.unitPrice",
        "label": "ConsentDirective-term-valuedItem-unitPrice",
        "short": "Contract Term Valued Item fee, charge, or cost.",
        "definition": "A Contract Provision Valued Item unit valuation measure.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem unitPriceAmt"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.factor",
        "path": "Contract.term.valuedItem.factor",
        "label": "ConsentDirective-term-valuedItem-factor",
        "short": "Contract Term Valued Item Price Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem factorNumber"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.points",
        "path": "Contract.term.valuedItem.points",
        "label": "ConsentDirective-term-valuedItem-points",
        "short": "Contract Term Valued Item Difficulty Scaling Factor",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "COCT_RM440000UV09 ValuedUnitItem pointNumber"
          }
        ]
      },
      {
        "id": "Contract.term.valuedItem.net",
        "path": "Contract.term.valuedItem.net",
        "label": "ConsentDirective-term-valuedItem-net",
        "short": "Total Contract Term Valued Item Value",
        "definition": "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": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Money"
          }
        ]
      },
      {
        "id": "Contract.term.group",
        "path": "Contract.term.group",
        "label": "ConsentDirective-term-group",
        "short": "Nested Consent DirectiveTerm Group",
        "definition": "Nested group of Consent Directive Provision.",
        "min": 0,
        "max": "*",
        "contentReference": "#term"
      },
      {
        "id": "Contract.binding[x]",
        "path": "Contract.binding[x]",
        "label": "ConsentDirective-binding[x]",
        "short": "Binding Consent Directive",
        "definition": "Legally binding onsent Directive Provision.  This is the signed and legally recognized representation of the Consent Directive. that is considered the \"source of truth\", which would be the basis for legal action related to enforcement of the onsent Directive Provision.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          }
        ]
      },
      {
        "id": "Contract.friendly",
        "path": "Contract.friendly",
        "label": "ConsentDirective-friendly",
        "short": "Consent Directive Friendly Language",
        "definition": "The \"patient friendly language\" versionof the Consent Directive in whole or in parts. \"Patient friendly language\" 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": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.friendly.content[x]",
        "path": "Contract.friendly.content[x]",
        "label": "ConsentDirective-friendly-content[x]",
        "short": "Easily comprehended representation of this Consent Directive",
        "definition": "Human readable rendering of this  Consent Directive in a format and representation intended to enhance comprehension and ensure understandability.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          }
        ]
      },
      {
        "id": "Contract.legal",
        "path": "Contract.legal",
        "label": "ConsentDirective-legal",
        "short": "Consent Directive Legal Language",
        "definition": "List of Legal expressions or representations of this  Consent Directive.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.legal.content[x]",
        "path": "Contract.legal.content[x]",
        "label": "ConsentDirective-legal-content[x]",
        "short": "Consent Directive Legal Text",
        "definition": "Legal  Consent Directive text in human renderable form.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          }
        ]
      },
      {
        "id": "Contract.rule",
        "path": "Contract.rule",
        "label": "ConsentDirective-rule",
        "short": "Computable Consent Directive Language",
        "definition": "List of Computable Policy Rule Language Representations of this  Consent Directive.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Contract.rule.content[x]",
        "path": "Contract.rule.content[x]",
        "label": "ConsentDirective-rule-content[x]",
        "short": "Computable Consent Directive Rules",
        "definition": "Computable Consent Directive conveyed using a policy rule language (e.g. XACML, DKAL, SecPal).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          }
        ]
      }
    ]
  }
}