<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2019-01-08T14:09:14.11+00:00" />
  </meta>
  <url value="http://healthyme.philips.com/fhir/StructureDefinition/ConsentPolicy" />
  <version value="1" />
  <name value="ConsentPolicy" />
  <title value="Consent Policy" />
  <status value="draft" />
  <date value="2019-01-08" />
  <publisher value="Philips" />
  <description value="A special case of a RelatedArtifact, which specifies the consent that is needed from the patient to enrol in a care plan. The consent policy will typically be about sharing the patient’s data with healthcare professionals, but it could also express the participation in a clinical trial." />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="RelatedArtifact" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/RelatedArtifact" />
  <derivation value="constraint" />
  <differential>
    <element id="RelatedArtifact">
      <path value="RelatedArtifact" />
      <short value="Specification of the consent that is needed from the patient to enrol in a care plan" />
      <definition value="A special case of a RelatedArtifact, which specifies the consent that is needed from the patient to enrol in a care plan. The consent policy will typically be about sharing the patient’s data with healthcare professionals, but it could also express the participation in a clinical trial." />
      <comment value="Each related artifact is either an attachment, or a reference to another knowledge resource, but not both." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="RelatedArtifact.type">
      <path value="RelatedArtifact.type" />
      <fixedCode value="depends-on" />
    </element>
    <element id="RelatedArtifact.display">
      <path value="RelatedArtifact.display" />
      <short value="Brief description of the consent policy" />
      <definition value="A brief description of the consent policy, which can be presented as a title" />
      <min value="1" />
    </element>
    <element id="RelatedArtifact.url">
      <path value="RelatedArtifact.url" />
      <short value="Unique identifier for the consent policy" />
      <definition value="This identifies the consent policy uniquely in the system, in the sense that if two ConsentPolicy elements have the same url, their document fields must also be identical. The url may or may not point to a location on the web, but if it does, it should result in the same document." />
    </element>
    <element id="RelatedArtifact.document">
      <path value="RelatedArtifact.document" />
      <short value="Detailed description of the consent policy" />
      <definition value="A plain or HTML text describing the consent policy in detail, which can be presented to the patient to ask for consent." />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>