{
  "resourceType": "StructureDefinition",
  "constrainedType": "Contract",
  "base": "http://hl7.org/fhir/StructureDefinition/Contract",
  "id": "consent-as-contract",
  "meta": {
    "lastUpdated": "2018-04-17T05:03:00.638+00:00"
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">This FHIR DSTU2 (Release 2) Consent profile describes how to use the Contract resource needs to represent and persist patient consent for treatment, research, or disclosure (e.g. 42 CFR Part 2, Title 38). Prior to FHIR Release 3 (STU3), implementers where required to use the Contract resource to    represent an electronic patient's consent.\n   Since a Contract is not sufficient to represent a granular consent, implementers need to use both a List and one or more Basic resources to define granular references to specific protected data types. \n   The contained resources (List and Basic) allow us to enhance the structure of DSTU3 Contract specify protected data sets (e.g. HIV-related, Substance Use Disorder, STI) specified in a granular patient consent.  A simple opt-in consent consistent with previous specifications and policies (e.g. DURSA) do not require any other resources besides the Contract conforming to the Consent-as-Contract). List of consent items (Basic resources).\n      Dependencies:\n   Consents that conform to this profile will include reference other resources:  Patient (as patient and/or consenting party), RelatedPerson (as consenting party), Practitioner (custodians, information recipients), and Organization (custodian, custodians, information recipients).\n   Typically, the resources referring to the patients, related persons, providers, organizations are described as external   references to resources stored on the same server as the Contract (Consent-as-Contract) resource,  Instances of Consent-as-Contract will reference a List resources that must conform to the profile specified in the parent implementation guide    (URL: http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-list).\n</div>"
  },
  "url": "http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract",
  "version": "1",
  "name": "Consent using Contract",
  "status": "draft",
  "date": "2018-04-13T07:14:08.2197818+00:00",
  "publisher": "TBD",
  "contact": [
    {
      "name": "Ioana Singureanu"
    }
  ],
  "description": "This FHIR DSTU2 (Release 2) Consent profile describes how to use the Contract resource needs to represent and persist patient consent for treatment, research, or disclosure (e.g. 42 CFR Part 2, Title 38). Prior to FHIR Release 3 (STU3), implementers where required to use the Contract resource to    represent an electronic patient's consent.\r\n   Since a Contract is not sufficient to represent a granular consent, implementers need to use both a List and one or more Basic resources to define granular references to specific protected data types. \r\n   The contained resources (List and Basic) allow us to enhance the structure of DSTU3 Contract specify protected data sets (e.g. HIV-related, Substance Use Disorder, STI) specified in a granular patient consent.  A simple opt-in consent consistent with previous specifications and policies (e.g. DURSA) do not require any other resources besides the Contract conforming to the Consent-as-Contract). List of consent items (Basic resources).\r\n      Dependencies:\r\n   Consents that conform to this profile will include reference other resources:  Patient (as patient and/or consenting party), RelatedPerson (as consenting party), Practitioner (custodians, information recipients), and Organization (custodian, custodians, information recipients).\r\n   Typically, the resources referring to the patients, related persons, providers, organizations are described as external   references to resources stored on the same server as the Contract (Consent-as-Contract) resource,  Instances of Consent-as-Contract will reference a List resources that must conform to the profile specified in the parent implementation guide    (URL: http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-list).",
  "copyright": "TBD",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "abstract": false,
  "snapshot": {
    "element": [
      {
        "id": "Contract",
        "path": "Contract"
      },
      {
        "id": "Contract.identifier",
        "path": "Contract.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.issued",
        "path": "Contract.issued",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.applies",
        "path": "Contract.applies",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.subject",
        "path": "Contract.subject",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mustSupport": true
      },
      {
        "comments": "This data element references the organiation that holds the information covered by consent.",
        "id": "Contract.authority",
        "path": "Contract.authority",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.type",
        "path": "Contract.type",
        "max": "0"
      },
      {
        "id": "Contract.subType",
        "path": "Contract.subType",
        "max": "0"
      },
      {
        "id": "Contract.action",
        "path": "Contract.action",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.actionReason",
        "path": "Contract.actionReason",
        "definition": "Reason for action stipulated by this Contract. In the case of consent, this data element specifies the \"Purpose of use\" (e.g. TREAT for treatment, HRESCH for research)",
        "min": 1,
        "mustSupport": true
      },
      {
        "comments": "Intended recipients of the data referenced in the consent. Typically the references may include Practioner or Organization resources but a RelatedPerson (e.g. next-of-kin) may also be applicable.",
        "id": "Contract.actor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Actor"
          }
        ],
        "path": "Contract.actor",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.valuedItem",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ValuedItem"
          }
        ],
        "path": "Contract.valuedItem",
        "max": "0"
      },
      {
        "id": "Contract.signer",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Signatory"
          }
        ],
        "path": "Contract.signer",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "name": "term",
        "id": "Contract.term",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Term"
          }
        ],
        "path": "Contract.term",
        "requirements": "The Contract.terms are for granular consent, to specify the protected information addressed by the patient's consent.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.binding[x]",
        "path": "Contract.binding[x]",
        "max": "0"
      },
      {
        "id": "Contract.friendly",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "FriendlyLanguage"
          }
        ],
        "path": "Contract.friendly",
        "max": "0"
      },
      {
        "id": "Contract.legal",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "LegalLanguage"
          }
        ],
        "path": "Contract.legal",
        "max": "0"
      },
      {
        "comments": "This data element may be used to specify a computable representation of a consent (e.g. XACML, OAUth2). The policies or scopes are computed based on the Constract.term information .",
        "id": "Contract.rule",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ComputableLanguage"
          }
        ],
        "path": "Contract.rule"
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Contract"
      },
      {
        "path": "Contract.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.identifier.use",
        "max": "0"
      },
      {
        "path": "Contract.identifier.type",
        "max": "0"
      },
      {
        "path": "Contract.identifier.system",
        "meaningWhenMissing": "The identifier is GUID",
        "mustSupport": true
      },
      {
        "path": "Contract.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.identifier.period",
        "max": "0"
      },
      {
        "path": "Contract.identifier.assigner",
        "max": "0"
      },
      {
        "path": "Contract.issued",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.applies",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.applies.start",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.applies.end",
        "mustSupport": true
      },
      {
        "path": "Contract.subject",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mustSupport": true
      },
      {
        "comments": "This data element references the organiation that holds the information covered by consent.",
        "path": "Contract.authority",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Contract.type",
        "max": "0"
      },
      {
        "path": "Contract.subType",
        "max": "0"
      },
      {
        "path": "Contract.action",
        "min": 1,
        "mustSupport": true
      },
      {
        "exampleCoding": {
          "system": "http://hl7.org/fhir/consentaction",
          "code": "disclose"
        },
        "path": "Contract.action.coding",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/consent-action"
        }
      },
      {
        "path": "Contract.action.coding.system",
        "fixedUri": "http://hl7.org/fhir/consentaction"
      },
      {
        "path": "Contract.action.coding.code",
        "defaultValueCode": "disclose",
        "fixedCode": "disclose",
        "mustSupport": true
      },
      {
        "path": "Contract.actionReason",
        "definition": "Reason for action stipulated by this Contract. In the case of consent, this data element specifies the \"Purpose of use\" (e.g. TREAT for treatment, HRESCH for research)",
        "min": 1,
        "mustSupport": true
      },
      {
        "exampleCoding": {
          "system": "http://hl7.org/fhir/v3/ActReason",
          "code": "TREAT",
          "display": "treatment"
        },
        "path": "Contract.actionReason.coding",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUs"
        }
      },
      {
        "exampleUri": "http://hl7.org/fhir/v3/ActReason",
        "path": "Contract.actionReason.coding.system",
        "meaningWhenMissing": "http://hl7.org/fhir/v3/ActReason",
        "mustSupport": true
      },
      {
        "path": "Contract.actionReason.coding.version",
        "max": "0",
        "mustSupport": false
      },
      {
        "exampleCode": "TREAT",
        "path": "Contract.actionReason.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.actionReason.coding.display",
        "max": "0"
      },
      {
        "path": "Contract.actionReason.coding.userSelected",
        "max": "0"
      },
      {
        "comments": "Intended recipients of the data referenced in the consent. Typically the references may include Practioner or Organization resources but a RelatedPerson (e.g. next-of-kin) may also be applicable.",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Actor"
          }
        ],
        "path": "Contract.actor",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.actor.entity",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ]
      },
      {
        "path": "Contract.actor.role",
        "max": "1"
      },
      {
        "path": "Contract.actor.role.coding.system",
        "fixedUri": "http://hl7.org/fhir/v3/ParticipationType"
      },
      {
        "path": "Contract.actor.role.coding.code",
        "fixedCode": "IRCP"
      },
      {
        "path": "Contract.actor.role.text",
        "fixedString": "Information Recipient"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ValuedItem"
          }
        ],
        "path": "Contract.valuedItem",
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Signatory"
          }
        ],
        "path": "Contract.signer",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "name": "term",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Term"
          }
        ],
        "path": "Contract.term",
        "requirements": "The Contract.terms are for granular consent, to specify the protected information addressed by the patient's consent.",
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Contract.term.identifier",
        "max": "0"
      },
      {
        "path": "Contract.term.issued",
        "max": "0"
      },
      {
        "path": "Contract.term.applies",
        "max": "0"
      },
      {
        "path": "Contract.term.type",
        "max": "0"
      },
      {
        "path": "Contract.term.subType",
        "max": "0"
      },
      {
        "comments": "This data element contains a reference to the List that specifies the categories of information covered by the patient\r\ns consent.",
        "path": "Contract.term.subject",
        "requirements": "It specifies the list of data types referenced by the consent.",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-list",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "meaningWhenMissing": "If the Contract.erm.subject is missing, this consent is intended to cover all the protected data for the patient referenced in the Contract.subject.",
        "mustSupport": true
      },
      {
        "path": "Contract.term.subject.reference",
        "mustSupport": true
      },
      {
        "path": "Contract.term.action",
        "max": "0"
      },
      {
        "path": "Contract.term.actionReason",
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "TermActor"
          }
        ],
        "path": "Contract.term.actor",
        "max": "0"
      },
      {
        "path": "Contract.term.text",
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "TermValuedItem"
          }
        ],
        "path": "Contract.term.valuedItem",
        "max": "0"
      },
      {
        "path": "Contract.term.group",
        "max": "0"
      },
      {
        "path": "Contract.binding[x]",
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "FriendlyLanguage"
          }
        ],
        "path": "Contract.friendly",
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "LegalLanguage"
          }
        ],
        "path": "Contract.legal",
        "max": "0"
      },
      {
        "comments": "This data element may be used to specify a computable representation of a consent (e.g. XACML, OAUth2). The policies or scopes are computed based on the Constract.term information .",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ComputableLanguage"
          }
        ],
        "path": "Contract.rule"
      }
    ]
  }
}