<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="UpdateConsentEffectivePeriod" />
  <url value="http://electronichealth.se/fhir/NDI/OperationDefinition/UpdateConsentEffectivePeriod" />
  <version value="0.1.0" />
  <name value="UpdateConsentEffectivePeriod" />
  <status value="draft" />
  <kind value="operation" />
  <description value="Updates effective period of a Consent resource." />
  <affectsState value="true" />
  <code value="update-period" />
  <resource value="Consent" />
  <system value="false" />
  <type value="false" />
  <instance value="true" />
  <parameter>
    <name value="updatedBy" />
    <use value="in" />
    <min value="1" />
    <max value="1" />
    <documentation value="Identifier of person who is updating the Consent, with system and value." />
    <type value="Identifier" />
  </parameter>
  <parameter>
    <name value="period" />
    <use value="in" />
    <min value="1" />
    <max value="1" />
    <documentation value="New effective period of Consent, with at least start time supplied." />
    <type value="Period" />
  </parameter>
  <parameter>
    <name value="provisioningDestination" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="Identifier of organization to which the Consent effective period update should be provisioned, with system and value." />
    <type value="Identifier" />
  </parameter>
  <parameter>
    <name value="return" />
    <use value="out" />
    <min value="1" />
    <max value="1" />
    <documentation value="Outcome of operation" />
    <type value="OperationOutcome" />
  </parameter>
</OperationDefinition>