<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="consent-list" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2018-04-18T22:07:53.436+00:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">This profile is part of the FHIR DSTU2 (Release 2) Consent-as-Contract implementation guide and it used to specify protected data types/categories referenced by a Contract resources that conform to the Consent-as-Contract profile (URL: http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract). 
  The List can specify whether the items should be permitted or denied from disclosure. By default, the list identifies the sensitive data permitted by the consent.  The items listed are supposed to be Basic resources that conform to profile:http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-consent-item. </div>
  </text>
  <url value="http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-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-04-16T12:33:50.7039507-04:00" />
  <description value="This profile is part of the FHIR DSTU2 (Release 2) Consent-as-Contract implementation guide and it used to specify protected data types/categories referenced by a Contract resources that conform to the Consent-as-Contract profile (URL: http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract). &#xD;&#xA;  The List can specify whether the items should be permitted or denied from disclosure. By default, the list identifies the sensitive data permitted by the consent.  The items listed are supposed to be Basic resources that conform to profile:http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-consent-item. &#xD;&#xA;" />
  <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" />
    </element>
    <element>
      <path value="List.identifier" />
      <max value="0" />
    </element>
    <element>
      <path value="List.title" />
      <max value="0" />
    </element>
    <element>
      <path value="List.code" />
      <comments value="For Consent-as-Contract, the list &quot;code&quot; specifies whether the List.entry.item elements are intended to be included/permited or excluded/denied from the data disclosure covered by the consent." />
      <min 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 Code System SetOperator" />
        <valueSetUri value="http://hl7.org/fhir/v3/SetOperator" />
      </binding>
    </element>
    <element>
      <path value="List.code.coding.system" />
      <fixedUri value="http://hl7.org/fhir/v3/SetOperator" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.code.coding.code" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.subject" />
      <max value="0" />
    </element>
    <element>
      <path value="List.source" />
      <max value="0" />
    </element>
    <element>
      <path value="List.encounter" />
      <max value="0" />
    </element>
    <element>
      <path value="List.status" />
      <fixedCode value="current" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.date" />
      <max value="0" />
    </element>
    <element>
      <path value="List.orderedBy" />
      <max value="0" />
    </element>
    <element>
      <path value="List.mode" />
      <fixedCode value="snapshot" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.note" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry" />
      <requirements value="Category of information referenced by a Consent represented as a Contract resource." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element>
      <path value="List.entry.flag" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry.deleted" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry.date" />
      <max value="0" />
    </element>
    <element>
      <path value="List.entry.item" />
      <comments value="This data element is a reference to a Basic resouce that conform to http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-item and specifies a protected data category (e.g. HIV-related)." />
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/us/core/StructureDefinition/consent-as-contract-item" />
      </type>
    </element>
    <element>
      <path value="List.emptyReason" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>