{
  "resourceType" : "OperationDefinition",
  "id" : "begin-personal-signature",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition begin-personal-signature</b></p><a name=\"begin-personal-signature\"> </a><a name=\"hcbegin-personal-signature\"> </a><p>URL: [base]/Task/$begin-personal-signature</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>target-resources</td><td/><td>1..*</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a> (<a href=\"StructureDefinition-EraMedicationListMedicationRequest.html\" title=\"https://eradocumentation.atostek.com/StructureDefinition/EraMedicationListMedicationRequest\">EraMedicationListMedicationRequest</a>, <a href=\"StructureDefinition-EraMedicationListDiscontinuationMedicationRequest.html\" title=\"https://eradocumentation.atostek.com/StructureDefinition/EraMedicationListDiscontinuationMedicationRequest\">EraMedicationListDiscontinuationMedicationRequest</a>)</td><td/><td><div><p>A list of references to resources that the user wants to sign.</p>\n</div></td></tr><tr><td>OUT</td><td>task</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/task.html\">Task</a> (<a href=\"StructureDefinition-EraSignatureTask.html\" title=\"https://eradocumentation.atostek.com/StructureDefinition/EraSignatureTask\">EraSignatureTask</a>)</td><td/><td><div><p>A Task containing references to provided signable resources and resources that are generated from them for signing.</p>\n</div></td></tr><tr><td>OUT</td><td>command-data</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>Command Data contains the raw command base64 encoded that the client needs to send to the signature device.</p>\n</div></td></tr></table></div>"
  },
  "url" : "https://eradocumentation.atostek.com/OperationDefinition/Task-begin-personal-signature",
  "version" : "1.0.0",
  "name" : "Begin-Personal-Signature",
  "title" : "Begin Personal Signature",
  "status" : "draft",
  "kind" : "operation",
  "date" : "2026-10-28T11:52:12+00:00",
  "publisher" : "Atostek",
  "contact" : [{
    "name" : "Atostek",
    "telecom" : [{
      "system" : "url",
      "value" : "https://atostek.com/"
    }]
  }],
  "description" : "The operation generates signable documents of listed resources and saves them as DocumentReference resources that reference the original resources. The operation returns a Task resource with information about the resources and command data with necessary parameters for signing.\n\nMedicationRequests: All MedicationRequests that are prepared for signing need to have a status 'draft' and be prescribed for the same patient by the author who makes the request.",
  "code" : "begin-personal-signature",
  "resource" : ["Task"],
  "system" : false,
  "type" : true,
  "instance" : false,
  "parameter" : [{
    "name" : "target-resources",
    "use" : "in",
    "min" : 1,
    "max" : "*",
    "documentation" : "A list of references to resources that the user wants to sign.",
    "type" : "Reference",
    "targetProfile" : ["https://eradocumentation.atostek.com/StructureDefinition/EraMedicationListMedicationRequest",
    "https://eradocumentation.atostek.com/StructureDefinition/EraMedicationListDiscontinuationMedicationRequest"]
  },
  {
    "name" : "task",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "A Task containing references to provided signable resources and resources that are generated from them for signing.",
    "type" : "Task",
    "targetProfile" : ["https://eradocumentation.atostek.com/StructureDefinition/EraSignatureTask"]
  },
  {
    "name" : "command-data",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "Command Data contains the raw command base64 encoded that the client needs to send to the signature device.",
    "type" : "string"
  }]
}