{
  "resourceType": "OperationDefinition",
  "url": "http://electronichealth.se/fhir/OperationDefinition/NLLPatientDosageDirections",
  "version": "1.0.0",
  "name": "NLLPatientDosageDirections",
  "title": "patient-dosage-directions",
  "status": "active",
  "kind": "operation",
  "date": "2022-10-14",
  "publisher": "The Swedish eHealth Agency",
  "description": "This operation creates patient friendly free text dosage instructions based on structured dosage attributes.",
  "affectsState": false,
  "code": "patient-dosage-directions",
  "comment": "Can be invoked with a HTTP POST.\r\nThis 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": true,
  "type": false,
  "instance": false,
  "parameter": [
    {
      "name": "dosageInstruction",
      "use": "in",
      "min": 1,
      "max": "*",
      "documentation": "Sv. Dosering. Expected to follow the profile: http://electronichealth.se/fhir/StructureDefinition/NLLDosage.",
      "type": "Dosage"
    },
    {
      "name": "nllPatientTreatmentReason",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "Corresponds to MedicationRequest.extension:nllPatientTreatmentReason. (Sv. Behandlingsändamål.)",
      "type": "string"
    },
    {
      "name": "nllPatientTreatmentReason",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "Sv. Behandlingsändamål.",
      "type": "string"
    },
    {
      "name": "patientInstruction",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "Sv. Doseringsinstruktion.\r\nPatient instruction to be included on the label that is attached to the medication package.",
      "type": "string"
    },
    {
      "name": "patientInstructionFormatted",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "Sv. Doseringsinstruktion formaterad.\r\nFormatted patient instructions to be included on a print-out with the complete instructions.",
      "type": "string"
    },
    {
      "name": "nllAdministeringInstruction",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "Sv. Administreringsinstruktion.",
      "type": "string"
    },
    {
      "name": "additionalInstruction",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "Sv. Annan instruktion.",
      "type": "string"
    },
    {
      "name": "notification",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "Notifications may be of severity level &quot;warning&quot; or &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": "OperationOutcome"
    }
  ]
}