<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="consent-list" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">This FHIR DSTU2 List resource profile is used to specify protected data types/categories referenced by a Contract resource that conforms to the Consent-as-Contract profile. The List includes a series of Basic resources that conform to the Protected Information Category profile (see below). Each Basic resource referenced by the List represents a single assertion of the patient’s privacy/consent preferences. The List can specify whether these items should be permitted or denied from disclosure. The determination of whether to include or exclude the items in the List applies to all of the items in the List. </div>
  </text>
  <url value="http://hl7.org/fhir/StructureDefinition/consent-list" />
  <version value="2" />
  <name value="List of Consent Items" />
  <status value="draft" />
  <publisher value="TBD" />
  <contact>
    <name value="Ioana Singureanu" />
  </contact>
  <date value="2018-05-10T14:46:00-05:00" />
  <description value="This FHIR DSTU2 List resource profile is used to specify protected data types/categories referenced by a Contract resource that conforms to the Consent-as-Contract profile. The List includes a series of Basic resources that conform to the Protected Information Category profile (see below). Each Basic resource referenced by the List represents a single assertion of the patient’s privacy/consent preferences. The List can specify whether these items should be permitted or denied from disclosure. The determination of whether to include or exclude the items in the List applies to all of the items in the List." />
  <copyright value="TBD" />
  <fhirVersion value="1.0.2" />
  <kind value="resource" />
  <constrainedType value="List" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/List" />
  <differential>
    <element>
      <path value="List" />
      <comments value="This is a profile of the List resource." />
      <min value="1" />
      <max value="1" />
    </element>
    <element>
      <path value="List.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.title" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.code" />
      <comments value="This data element specifies whether the entries in the List are intended to be included/permitted or excluded/denied from the data disclosure covered by the consent." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.code.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="HL7 v3 Value Set SetOperator" />
        <valueSetUri value="http://hl7.org/fhir/ValueSet/v3-SetOperator" />
      </binding>
    </element>
    <element>
      <path value="List.code.coding.system" />
      <comments value="Code system is fixed to: http://hl7.org/fhir/v3/SetOperator" />
      <min value="1" />
      <max value="1" />
      <fixedUri value="http://hl7.org/fhir/v3/SetOperator" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.code.coding.code" />
      <comments value="The code value may be set to 'I' to include/permit or 'E' to exclude/deny disclosure of the items contained in the list." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.subject" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.source" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.encounter" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.status" />
      <fixedCode value="current" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.date" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.orderedBy" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.mode" />
      <min value="1" />
      <max value="1" />
      <fixedCode value="snapshot" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.note" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry" />
      <comments value="This data element is used to specify types of protected information that a patient has included/excluded from their consent directive. It includes a reference to a Basic resource that indicates a category of protected information based on the security-labels value set at http://hl7.org/fhir/ValueSet/security-labels." />
      <min value="1" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.entry.flag" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry.deleted" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry.date" />
      <min value="0" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry.item" />
      <comments value="This data element is a reference to a Basic resource that that indicates a category of protected information based on the security-labels value set at http://hl7.org/fhir/ValueSet/security-labels." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.emptyReason" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>