{
  "resourceType": "StructureDefinition",
  "id": "5fdbd1c5-88d6-4ff2-9e89-0b9b03f7ed4f",
  "meta": {
    "lastUpdated": "2018-01-28T22:59:13.832+00:00"
  },
  "url": "StructureDefinition/DHPconsent",
  "name": "DHP Consent",
  "status": "draft",
  "date": "2018-01-27T20:19:10.198+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.category",
        "path": "Consent.category",
        "requirements": "NOTE: because all Consent resources are Privacy resources",
        "max": "0"
      },
      {
        "id": "Consent.period",
        "path": "Consent.period",
        "max": "0"
      },
      {
        "id": "Consent.dateTime",
        "path": "Consent.dateTime",
        "min": 1
      },
      {
        "id": "Consent.consentingParty",
        "path": "Consent.consentingParty",
        "max": "0"
      },
      {
        "id": "Consent.actor",
        "path": "Consent.actor",
        "max": "0"
      },
      {
        "id": "Consent.action",
        "path": "Consent.action",
        "requirements": "Note Only Treatment actions are considered",
        "max": "0"
      },
      {
        "id": "Consent.organization",
        "path": "Consent.organization",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.source[x]:sourceAttachment",
        "path": "Consent.sourceAttachment",
        "sliceName": "sourceAttachment",
        "type": [
          {
            "code": "Attachment"
          }
        ]
      },
      {
        "id": "Consent.policy",
        "path": "Consent.policy",
        "max": "0"
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "min": 1
      },
      {
        "id": "Consent.securityLabel",
        "path": "Consent.securityLabel",
        "max": "0"
      },
      {
        "id": "Consent.purpose",
        "path": "Consent.purpose",
        "max": "0"
      },
      {
        "id": "Consent.dataPeriod",
        "path": "Consent.dataPeriod",
        "max": "0"
      },
      {
        "id": "Consent.data",
        "path": "Consent.data",
        "max": "0"
      },
      {
        "id": "Consent.except.period",
        "path": "Consent.except.period",
        "requirements": "future",
        "max": "0"
      },
      {
        "id": "Consent.except.action",
        "path": "Consent.except.action",
        "max": "0"
      },
      {
        "id": "Consent.except.securityLabel",
        "path": "Consent.except.securityLabel",
        "min": 1
      },
      {
        "id": "Consent.except.class",
        "path": "Consent.except.class",
        "max": "0"
      },
      {
        "id": "Consent.except.code",
        "path": "Consent.except.code",
        "max": "0"
      },
      {
        "id": "Consent.except.dataPeriod",
        "path": "Consent.except.dataPeriod",
        "requirements": "future",
        "max": "0"
      },
      {
        "id": "Consent.except.data",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ExceptData"
          }
        ],
        "path": "Consent.except.data",
        "max": "0"
      }
    ]
  }
}