{
  "resourceType": "StructureDefinition",
  "display": "Privacy Consent Definition for BHITS Project",
  "requirements": "This profile allows the application to specify a basic autorization to dislclose, a granular consent, or a consent for research.",
  "constrainedType": "Contract",
  "base": "http://hl7.org/fhir/StructureDefinition/Contract",
  "id": "spark178",
  "meta": {
    "versionId": "spark442",
    "lastUpdated": "2016-05-26T23:30:43.665+00:00"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/bhits-consent",
  "version": "1",
  "name": "BHITS Consent",
  "status": "active",
  "date": "2016-05-10T04:00:00+00:00",
  "contact": [
    {
      "name": "Ioana Singureanu"
    }
  ],
  "description": "Privacy Consent Directives structure for  BHITS",
  "copyright": "SAMHSA",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "abstract": false,
  "snapshot": {
    "element": [
      {
        "id": "Contract",
        "path": "Contract",
        "min": 0,
        "type": [
          {
            "code": "Contract"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Contract",
        "min": 0,
        "type": [
          {
            "code": "Contract"
          }
        ]
      },
      {
        "name": "Consent identifier GUID auto-generated by application",
        "path": "Contract.id",
        "label": "Consent GUID",
        "short": "Consent GUID",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. This is the same as the Consent.identifier.value and may be used to \"find\" a consent.",
        "min": 1,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.meta",
        "min": 0,
        "max": "0",
        "isSummary": true
      },
      {
        "path": "Contract.implicitRules",
        "min": 0,
        "max": "0",
        "isModifier": true,
        "isSummary": true
      },
      {
        "path": "Contract.language",
        "min": 0,
        "max": "0"
      },
      {
        "name": "Consent Display Text",
        "path": "Contract.text",
        "label": "Consent Display Test",
        "min": 0
      },
      {
        "name": "Contained Resorces",
        "path": "Contract.contained",
        "label": "Contained resources",
        "definition": "The Patient. Practitioner. Organization, List. and Basic resources referenced by the Privacy Consent.",
        "min": 1,
        "mustSupport": true
      },
      {
        "name": "Consent Identifier",
        "path": "Contract.identifier",
        "definition": "Unique identifier for this Contract. GUID/unique id for the element within a resource (for internal references). This is the same as the Contract.id",
        "min": 1,
        "isSummary": true
      },
      {
        "name": "Consent identifier GUID",
        "comments": "This identifier may be referenced if the consent is revoked by an application/end-user",
        "path": "Contract.identifier.id",
        "representation": [
          "xmlAttr"
        ],
        "label": "Consent Identifier",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.identifier.use",
        "min": 0,
        "max": "0",
        "isModifier": true,
        "isSummary": true
      },
      {
        "path": "Contract.identifier.type",
        "min": 0,
        "max": "0",
        "isSummary": true
      },
      {
        "name": "Source system OID",
        "comments": "This is the local system oid",
        "exampleUri": "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri",
        "path": "Contract.identifier.system",
        "min": 1,
        "isSummary": true
      },
      {
        "name": "Consent identifier GUID",
        "exampleString": "123456",
        "path": "Contract.identifier.value",
        "definition": "GUID/unique id for the element within a resource (for internal references). This is the same as the Contract.id",
        "min": 1,
        "isSummary": true
      },
      {
        "path": "Contract.identifier.period",
        "min": 0,
        "max": "0",
        "isSummary": true
      },
      {
        "path": "Contract.identifier.assigner",
        "min": 0,
        "max": "0",
        "isSummary": true
      },
      {
        "name": "Date of consent creation",
        "path": "Contract.issued",
        "short": "When this Consent was created",
        "definition": "When this  Consent was created.",
        "min": 1,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "name": "Applicable interval",
        "path": "Contract.applies",
        "definition": "Relevant time or time-period when this Consent is applicable.",
        "min": 0,
        "max": "0",
        "isSummary": true
      },
      {
        "path": "Contract.applies.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "name": "Consent start date",
        "comments": "If the low element is missing, the meaning is that the consent starts on the \"issued\" date.",
        "path": "Contract.applies.start",
        "definition": "This data element is optional. If represent start of the period. The boundary is inclusive.",
        "min": 0,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "name": "Expiration date",
        "path": "Contract.applies.end",
        "definition": "The date the consent expires.",
        "min": 1,
        "isSummary": true
      },
      {
        "name": "Subject of Consent",
        "path": "Contract.subject",
        "label": "Consenting patient/participant",
        "short": "Subject of Consent",
        "definition": "The patient or research participant subject to the consent.",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.subject.id",
        "representation": [
          "xmlAttr"
        ],
        "label": "NA",
        "definition": "This unique id references a contained Patient resource in the Contract",
        "min": 0,
        "max": "0"
      },
      {
        "name": "Patient Reference",
        "path": "Contract.subject.reference",
        "definition": "A reference to a the contained Patient resrouce.",
        "min": 1,
        "fixedString": "#patientId",
        "mustSupport": true,
        "isSummary": true
      },
      {
        "name": "Authorized Organization",
        "path": "Contract.authority",
        "label": "Authorized Organization",
        "definition": "It specifies the organization (i.e. provider, research, HIE) to wich the patient gives their consent for research, authorization to disclose, etc.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Contract.authority.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.authority.reference",
        "min": 1,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.domain",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.type",
        "min": 1,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.type.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "isSummary": true,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/contracttypecodes"
        }
      },
      {
        "path": "Contract.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/contracttypecodes",
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.type.coding.code",
        "min": 1,
        "patternCode": "disclosure",
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.subType",
        "min": 0,
        "max": "0",
        "isSummary": true
      },
      {
        "path": "Contract.subType.coding",
        "min": 1,
        "max": "1",
        "isSummary": true
      },
      {
        "path": "Contract.subType.coding.system",
        "min": 1,
        "isSummary": true
      },
      {
        "name": "Purpose of Use Code",
        "path": "Contract.subType.coding.code",
        "short": "Purpose of Use Code",
        "definition": "\"TREAT\" for \"purpose of treatment\", \r\n\"HRESCH\" for \"purpose of research\".",
        "min": 1,
        "isSummary": true
      },
      {
        "path": "Contract.action",
        "min": 0,
        "max": "0"
      },
      {
        "name": "Purpose of Consent",
        "path": "Contract.actionReason",
        "definition": "The purpose of consent (e.g. treatment/payment/operations, research, etc.).",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
        }
      },
      {
        "path": "Contract.actionReason.coding",
        "min": 1,
        "max": "1",
        "isSummary": true
      },
      {
        "name": "Purpose of Use for Consent Code System",
        "path": "Contract.actionReason.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/contractsubtypecodes",
        "mustSupport": true,
        "isSummary": true
      },
      {
        "name": "Purpose of Use Code",
        "path": "Contract.actionReason.coding.code",
        "label": "Purpose of Use Code",
        "definition": "\"TREAT\" for \"purpose of treatment\", \r\n\"HRESCH\" for \"purpose of research\".",
        "min": 1,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "name": "Authorized Practitioner",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Actor"
          }
        ],
        "path": "Contract.actor",
        "label": "Authorized Practitioner",
        "short": "Authorized Practitioner",
        "definition": "In addition to the Authorized Organization this element specifies a practitioner (e.g. a substance abuse treatment provider, psychiatrist) who authorized or receives the consent of the patient identified as \"Contract.subject\".",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Contract.actor.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "name": "Practitioner or Organization",
        "path": "Contract.actor.entity",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ],
        "mustSupport": true
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ValuedItem"
          }
        ],
        "path": "Contract.valuedItem",
        "min": 0,
        "max": "0"
      },
      {
        "name": "Consent Signer",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Signatory"
          }
        ],
        "path": "Contract.signer",
        "short": "Consent Signer",
        "definition": "Party signing this Consent.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Contract.signer.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.signer.type.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "name": "Signer type code system",
        "path": "Contract.signer.type.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/contractsignertypecodes",
        "isSummary": true
      },
      {
        "name": "Signer type code value",
        "path": "Contract.signer.type.code",
        "min": 1,
        "fixedCode": "1.2.840.10065.1.12.1.7",
        "isSummary": true
      },
      {
        "name": "Consent Signature",
        "path": "Contract.signer.party",
        "short": "Consent Signature",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ]
      },
      {
        "name": "Consent Terms",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Term"
          }
        ],
        "path": "Contract.term",
        "label": "Consent Terms",
        "short": "Consent Terms",
        "definition": "Specifies the items (e.g. protected data types, research study/protocols. etc.) applicable to the consent.",
        "min": 1,
        "mustSupport": true
      },
      {
        "path": "Contract.term.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.term.identifier",
        "min": 0,
        "max": "0",
        "isSummary": true
      },
      {
        "name": "Conset Term Issue Date Time",
        "path": "Contract.term.issued",
        "label": "Consent Duration",
        "short": "Conset Term Issue Date Time",
        "definition": "This data element may be bused to specify when the term of the consent expires. For instance if the consent to disclose expires in 12 months, this data element is use to specify that \"end\" date/",
        "min": 0,
        "max": "0",
        "mustSupport": true,
        "isSummary": true
      },
      {
        "name": "Consent time period",
        "path": "Contract.term.applies",
        "definition": "Relevant time or time-period when this Consent is applicable.\r\nFor instance if the consent to disclose expires in 12 months, this data element is use to specify that \"end\" date/",
        "min": 1,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.term.applies.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "name": "Start of consent period",
        "path": "Contract.term.applies.start",
        "min": 0,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "name": "Consent",
        "path": "Contract.term.applies.end",
        "min": 0,
        "mustSupport": true,
        "isSummary": true
      },
      {
        "path": "Contract.term.type",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.term.subType",
        "min": 0,
        "max": "0"
      },
      {
        "name": "Items Specified by Consent",
        "path": "Contract.term.subject",
        "definition": "This subject is a reference to list of consent items. \r\n This is used by a granual consent.",
        "min": 0,
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Resource",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "meaningWhenMissing": "If the reference to the list items is missing then all matching information is included, \r\nwithout any specific/granular specfiier.",
        "mustSupport": true
      },
      {
        "path": "Contract.term.subject.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "name": "Reference to the lst",
        "path": "Contract.term.subject.reference",
        "definition": "A reference to a the contained list of data types, this references (start with '#') refer to contained resources.",
        "min": 1,
        "isSummary": true
      },
      {
        "path": "Contract.term.action",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.term.actionReason",
        "min": 0,
        "max": "0"
      },
      {
        "name": "Intended Recipient(s)",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "TermActor"
          }
        ],
        "path": "Contract.term.actor",
        "definition": "The intended recipient practitionr",
        "min": 0,
        "mustSupport": true
      },
      {
        "path": "Contract.term.actor.id",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "0"
      },
      {
        "name": "Referenced Practitioner",
        "path": "Contract.term.actor.entity",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ]
      },
      {
        "path": "Contract.term.actor.role",
        "min": 0,
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "TermValuedItem"
          }
        ],
        "path": "Contract.term.valuedItem",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Contract.term.group",
        "min": 0,
        "max": "0"
      },
      {
        "name": "Alternative Document  (PDF)",
        "path": "Contract.binding[x]",
        "min": 0
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "FriendlyLanguage"
          }
        ],
        "path": "Contract.friendly",
        "min": 0,
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "LegalLanguage"
          }
        ],
        "path": "Contract.legal",
        "min": 0,
        "max": "0"
      },
      {
        "name": "XACML representation",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ComputableLanguage"
          }
        ],
        "path": "Contract.rule",
        "min": 0,
        "max": "1"
      }
    ]
  }
}