{
  "resourceType" : "OperationDefinition",
  "id" : "ahd-task-complete",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition ahd-task-complete</b></p><a name=\"ahd-task-complete\"> </a><a name=\"hcahd-task-complete\"> </a><p>URL: [base]/Task/[id]/$complete</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>signedBinary</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/binary.html\">Binary</a></td><td/><td><div><p>Digitally signed trusted person (ASiC-E container) as a Binary resource.</p>\n</div></td></tr><tr><td>OUT</td><td>task</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/references.html#Reference\">Reference</a></td><td/><td><div><p>Reference to the completed invitation (Task) version.</p>\n</div></td></tr><tr><td>OUT</td><td>relatedPerson</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/references.html#Reference\">Reference</a></td><td/><td><div><p>Reference to the confirmed trusted person (RelatedPerson) version.</p>\n</div></td></tr><tr><td>OUT</td><td>provenance</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/references.html#Reference\">Reference</a></td><td/><td><div><p>Reference to the stored signing Provenance.</p>\n</div></td></tr><tr><td>OUT</td><td>signedBinary</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/references.html#Reference\">Reference</a></td><td/><td><div><p>Reference to the stored signed Binary (the ASiC-E container).</p>\n</div></td></tr></table></div>"
  },
  "url" : "https://fhir.ee/ahd/OperationDefinition/ahd-task-complete",
  "version" : "0.1.0",
  "name" : "AHDTrusteeInvitationComplete",
  "title" : "Trusted person invitation acceptance ($complete)",
  "status" : "draft",
  "kind" : "operation",
  "experimental" : false,
  "date" : "2026-09-04T09:27:54+00:00",
  "publisher" : "TEHIK",
  "contact" : [{
    "name" : "TEHIK",
    "telecom" : [{
      "system" : "url",
      "value" : "https://tehik.ee"
    },
    {
      "system" : "email",
      "value" : "abi@tehik.ee"
    }]
  }],
  "description" : "UC-AHD-060: the invitation recipient accepts the trusted person invitation with a digitally signed RelatedPerson (ASiC-E container). Under the stage-1 mock configuration, the operation parses the container without DigiDoc signature verification and stores it locally instead of DRIT. Where digital signing is not enabled, the operation responds with HTTP 501.",
  "affectsState" : true,
  "code" : "complete",
  "resource" : ["Task"],
  "system" : false,
  "type" : false,
  "instance" : true,
  "parameter" : [{
    "name" : "signedBinary",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "Digitally signed trusted person (ASiC-E container) as a Binary resource.",
    "type" : "Binary"
  },
  {
    "name" : "task",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "Reference to the completed invitation (Task) version.",
    "type" : "Reference"
  },
  {
    "name" : "relatedPerson",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "Reference to the confirmed trusted person (RelatedPerson) version.",
    "type" : "Reference"
  },
  {
    "name" : "provenance",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "Reference to the stored signing Provenance.",
    "type" : "Reference"
  },
  {
    "name" : "signedBinary",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "Reference to the stored signed Binary (the ASiC-E container).",
    "type" : "Reference"
  }]
}