{
  "resourceType" : "OperationDefinition",
  "id" : "trxhub-send-eprescription-custom",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition trxhub-send-eprescription-custom</b></p><a name=\"trxhub-send-eprescription-custom\"> </a><a name=\"hctrxhub-send-eprescription-custom\"> </a><p>URL: [base]/$send-eprescription</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>eprescription</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>The ePrescription string containing the signed CHMED16A</p>\n</div></td></tr><tr><td>IN</td><td>patientEmail</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>The email address of the patient</p>\n</div></td></tr></table></div>"
  },
  "url" : "https://trxhub.mediservice.ch/fhir/OperationDefinition/trxhub-send-eprescription-custom",
  "version" : "0.1.0",
  "name" : "send-eprescription",
  "title" : "Send ePrescription Internally",
  "status" : "active",
  "kind" : "operation",
  "date" : "2026-06-18T15:15:26+00:00",
  "description" : "One-off operation that accepts an ePrescription and a patient email address, and triggers the full prescription flow (patient creation, registration, and ordering) in a single request.",
  "affectsState" : true,
  "code" : "send-eprescription",
  "system" : true,
  "type" : false,
  "instance" : false,
  "parameter" : [{
    "name" : "eprescription",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "The ePrescription string containing the signed CHMED16A",
    "type" : "string"
  },
  {
    "name" : "patientEmail",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "The email address of the patient",
    "type" : "string"
  }]
}