<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="mitz-consent-response" />
  <language value="nl-NL" />
  <url value="http://vzvz.nl/fhir/otv/StructureDefinition/mitz-consent-response" />
  <version value="4.0.0-beta.1" />
  <name value="MitzConsentResponse" />
  <title value="Mitz Consent Response" />
  <status value="draft" />
  <publisher value="VZVZ" />
  <contact>
    <name value="VZVZ" />
    <telecom>
      <system value="email" />
      <value value="standaardisatie@vzvz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="OperationOutcome to express a permit/deny response" />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="NL" />
      <display value="Netherlands" />
    </coding>
  </jurisdiction>
  <copyright value="VZVZ" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="OperationOutcome" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/OperationOutcome" />
  <derivation value="constraint" />
  <differential>
    <element id="OperationOutcome">
      <path value="OperationOutcome" />
      <constraint>
        <key value="oo-1" />
        <severity value="error" />
        <human value="If a consent response is given, the severity should be information and the code informational" />
        <expression value="issue.where(details.coding.system.contains('http://vzvz.nl/fhir/otv/CodeSystem/consent-response')).all(code = 'informational' and severity = 'information')" />
        <source value="http://vzvz.nl/fhir/otv/StructureDefinition/mitz-consent-response" />
      </constraint>
    </element>
    <element id="OperationOutcome.issue.details">
      <path value="OperationOutcome.issue.details" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://hl7.org/fhir/ValueSet/consent-provision-type" />
      </binding>
    </element>
  </differential>
</StructureDefinition>