<OperationDefinition xmlns="http://hl7.org/fhir">
  <url value="http://electronichealth.se/fhir/OperationDefinition/NLLRestore" />
  <version value="1.0.0" />
  <name value="NLLRestore" />
  <status value="active" />
  <kind value="operation" />
  <date value="2024-03-22" />
  <publisher value="The Swedish eHealth Agency" />
  <description value="Restores one or two (if parallell) prescriptions to their previous versions." />
  <affectsState value="true" />
  <code value="restore" />
  <comment value="Can be invoked with a HTTP POST.&#xD;&#xA;This operation is used for restoring one or two (if parallell) MedicationRequests to their previous versions." />
  <resource value="MedicationRequest" />
  <system value="false" />
  <type value="true" />
  <instance value="false" />
  <parameter>
    <name value="resource" />
    <use value="in" />
    <min value="1" />
    <max value="2" />
    <documentation value="Reference to the MedicationRequest(s) that should be restored to previous versions. Shall contain version specific reference to the resource version that will be restored on the following format: MedicationRequest/[id]/_history/[vid]." />
    <type value="Reference" />
    <targetProfile value="http://electronichealth.se/fhir/StructureDefinition/NLLReference" />
  </parameter>
  <parameter>
    <name value="result" />
    <use value="out" />
    <min value="1" />
    <max value="2" />
    <documentation value="The restored MedicationRequests." />
    <type value="MedicationRequest" />
  </parameter>
</OperationDefinition>