<OperationDefinition xmlns="http://hl7.org/fhir">
  <url value="http://electronichealth.se/fhir/OperationDefinition/NLLPatientDosageDirections" />
  <version value="1.0.0" />
  <name value="NLLPatientDosageDirections" />
  <title value="patient-dosage-directions" />
  <status value="active" />
  <kind value="operation" />
  <date value="2022-10-14" />
  <publisher value="The Swedish eHealth Agency" />
  <description value="This operation creates patient friendly free text dosage instructions based on structured dosage attributes." />
  <affectsState value="false" />
  <code value="patient-dosage-directions" />
  <comment value="Can be invoked with a HTTP POST.&#xD;&#xA;This operation is used for generating patient friendly dosage directions based on structured dosage data. The generated dosage directions consist of separate parts that can be inserted on a MedicationRequest or a MedicationDispense." />
  <system value="true" />
  <type value="false" />
  <instance value="false" />
  <parameter>
    <name value="dosageInstruction" />
    <use value="in" />
    <min value="1" />
    <max value="*" />
    <documentation value="Sv. Dosering. Expected to follow the profile: http://electronichealth.se/fhir/StructureDefinition/NLLDosage." />
    <type value="Dosage" />
  </parameter>
  <parameter>
    <name value="nllPatientTreatmentReason" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="Corresponds to MedicationRequest.extension:nllPatientTreatmentReason. (Sv. Behandlingsändamål.)" />
    <type value="string" />
  </parameter>
  <parameter>
    <name value="nllPatientTreatmentReason" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="Sv. Behandlingsändamål." />
    <type value="string" />
  </parameter>
  <parameter>
    <name value="patientInstruction" />
    <use value="out" />
    <min value="1" />
    <max value="1" />
    <documentation value="Sv. Doseringsinstruktion.&#xD;&#xA;Patient instruction to be included on the label that is attached to the medication package." />
    <type value="string" />
  </parameter>
  <parameter>
    <name value="patientInstructionFormatted" />
    <use value="out" />
    <min value="1" />
    <max value="1" />
    <documentation value="Sv. Doseringsinstruktion formaterad.&#xD;&#xA;Formatted patient instructions to be included on a print-out with the complete instructions." />
    <type value="string" />
  </parameter>
  <parameter>
    <name value="nllAdministeringInstruction" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="Sv. Administreringsinstruktion." />
    <type value="string" />
  </parameter>
  <parameter>
    <name value="additionalInstruction" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="Sv. Annan instruktion." />
    <type value="string" />
  </parameter>
  <parameter>
    <name value="notification" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="Notifications may be of severity level &amp;quot;warning&amp;quot; or &amp;quot;information. The notifcations are included in the issue-list in a contained OperationOutcome. Note that the contained NLLOperationOutcome never will have the extension nllDetectedIssue." />
    <type value="OperationOutcome" />
  </parameter>
</OperationDefinition>