{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-12-20T14:18:46.428+00:00"
  },
  "url": "http://clinicalsite.org/fhir/StructureDefinition/consent-soa",
  "name": "consent-soa",
  "status": "draft",
  "date": "2017-12-20T08:33:30.302+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent.identifier",
        "path": "Consent.identifier",
        "max": "0"
      },
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "mustSupport": true
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "max": "0",
        "mustSupport": false
      },
      {
        "id": "Consent.category.coding",
        "path": "Consent.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.category.coding.system",
        "path": "Consent.category.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/consentcategorycodes"
      },
      {
        "id": "Consent.category.coding.code",
        "path": "Consent.category.coding.code",
        "min": 1,
        "fixedCode": "RESEARCH"
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "mustSupport": true
      },
      {
        "id": "Consent.dateTime",
        "path": "Consent.dateTime",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.consentingParty",
        "path": "Consent.consentingParty",
        "max": "0"
      },
      {
        "id": "Consent.actor",
        "path": "Consent.actor",
        "max": "0"
      },
      {
        "id": "Consent.action",
        "path": "Consent.action",
        "max": "0"
      },
      {
        "id": "Consent.organization",
        "path": "Consent.organization",
        "max": "0"
      },
      {
        "id": "Consent.source[x]",
        "path": "Consent.source[x]",
        "max": "0"
      },
      {
        "id": "Consent.policy",
        "path": "Consent.policy",
        "max": "0"
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "max": "0"
      },
      {
        "id": "Consent.securityLabel",
        "path": "Consent.securityLabel",
        "max": "0"
      },
      {
        "id": "Consent.purpose",
        "path": "Consent.purpose",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "description": "Any Consent Resource must have one of the following purposes:\r\n- preclinical trial research\r\n- clinical trial research without patient care or\r\n- clinical trial research with patient care",
          "rules": "closed"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.purpose:screeningConsent",
        "path": "Consent.purpose",
        "sliceName": "screeningConsent",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Consent.purpose:screeningConsent.system",
        "path": "Consent.purpose.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v3/ActReason"
      },
      {
        "id": "Consent.purpose:screeningConsent.code",
        "path": "Consent.purpose.code",
        "short": "preclinical trial research",
        "definition": "To perform one or more operations on information in preparation for conducting scientific investigation to obtain health care knowledge, such as research on animals or review of patient health records, to determine the feasibility of a clinical trial study; assist with protocol design; or in preparation for institutional review board or ethics committee approval process. May be post-coordinated or used with other purposes of use such as disease, discipline, specialty, population origins or ancestry, translational healthcare research.",
        "comment": "Pre-adopted from R4 valueset",
        "min": 1,
        "fixedCode": "PRECLINTRCH"
      },
      {
        "id": "Consent.purpose:observationTrialConsent",
        "path": "Consent.purpose",
        "sliceName": "observationTrialConsent",
        "max": "1",
        "fixedCoding": {
          "system": "http://hl7.org/fhir/v3/ActReason"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.purpose:observationTrialConsent.system",
        "path": "Consent.purpose.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v3/ActReason"
      },
      {
        "id": "Consent.purpose:observationTrialConsent.code",
        "path": "Consent.purpose.code",
        "short": "clinical trial research without patient care",
        "definition": "To perform one or more operations on information for conducting scientific investigations in accordance with clinical trial protocols to obtain health care knowledge without provision of patient care. May be post-coordinated or used with other purposes of use such as disease, discipline, specialty, population origins or ancestry, translational healthcare research. For example, a clinical trial conducted on laboratory specimens collected from a specified patient population.",
        "comment": "Pre-adopted from R4 valueset",
        "min": 1,
        "fixedCode": "CLINTRCHNPC"
      },
      {
        "id": "Consent.purpose:interventionTrialConsent",
        "path": "Consent.purpose",
        "sliceName": "interventionTrialConsent",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Consent.purpose:interventionTrialConsent.system",
        "path": "Consent.purpose.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v3/ActReason"
      },
      {
        "id": "Consent.purpose:interventionTrialConsent.code",
        "path": "Consent.purpose.code",
        "short": "clinical trial research with patient care",
        "definition": "To perform one or more operations on information for conducting scientific investigations with patient care in accordance with clinical trial protocols to obtain health care knowledge. May be post-coordinated or used with other purposes of use such as disease, discipline, specialty, population origins or ancestry, translational healthcare research. For example, an \"off-label\" drug used for cancer therapy administer to a specified patient population.",
        "comment": "Pre-adopted from R4 valueset",
        "min": 1,
        "fixedCode": "CLINTRCHPC"
      },
      {
        "id": "Consent.dataPeriod",
        "path": "Consent.dataPeriod",
        "max": "0"
      },
      {
        "id": "Consent.data",
        "path": "Consent.data",
        "max": "0"
      },
      {
        "id": "Consent.except",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Except"
          }
        ],
        "path": "Consent.except",
        "max": "0"
      }
    ]
  }
}