@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.ee/ahd/OperationDefinition/ahd-task-complete> a fhir:OperationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ahd-task-complete"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<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>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [ fhir:v "https://fhir.ee/ahd/OperationDefinition/ahd-task-complete"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "AHDTrusteeInvitationComplete"] ; # 
  fhir:title [ fhir:v "Trusted person invitation acceptance ($complete)"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:kind [ fhir:v "operation"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-09-04T09:27:54+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "TEHIK"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "TEHIK" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://tehik.ee" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "abi@tehik.ee" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "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."] ; # 
  fhir:affectsState [ fhir:v true] ; # 
  fhir:code [ fhir:v "complete"] ; # 
  fhir:resource ( [ fhir:v "Task"] ) ; # 
  fhir:system [ fhir:v false] ; # 
  fhir:type [ fhir:v false] ; # 
  fhir:instance [ fhir:v true] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "signedBinary" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "Digitally signed trusted person (ASiC-E container) as a Binary resource." ] ;
     fhir:type [ fhir:v "Binary" ]
  ] [
     fhir:name [ fhir:v "task" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "Reference to the completed invitation (Task) version." ] ;
     fhir:type [ fhir:v "Reference" ]
  ] [
     fhir:name [ fhir:v "relatedPerson" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "Reference to the confirmed trusted person (RelatedPerson) version." ] ;
     fhir:type [ fhir:v "Reference" ]
  ] [
     fhir:name [ fhir:v "provenance" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "Reference to the stored signing Provenance." ] ;
     fhir:type [ fhir:v "Reference" ]
  ] [
     fhir:name [ fhir:v "signedBinary" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "Reference to the stored signed Binary (the ASiC-E container)." ] ;
     fhir:type [ fhir:v "Reference" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

