Patsiendi elulõpu tahteavaldus
0.1.0 - trial-use

Patsiendi elulõpu tahteavaldus, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/ig-ee-pet/ and changes regularly. See the Directory of published versions

OperationDefinition: PET confirmation ($complete)

Official URL: https://fhir.ee/ahd/OperationDefinition/ahd-complete Version: 0.1.0
Active as of 2026-09-04 Computable Name: AHDQuestionnaireResponseComplete

UC-AHD-055: confirms a patient's end-of-life directive (PET). Input is exactly one of: a digitally signed PET as a Binary (signedBinary) or a QuestionnaireResponse and Provenance collection Bundle for paper signing (bundle). Under the stage-1 mock configuration, the digital path parses the ASiC-E container without DigiDoc signature verification and stores it locally instead of DRIT. Where digital signing is not enabled, the digital path responds with HTTP 501.

URL: [base]/QuestionnaireResponse/$complete

URL: [base]/QuestionnaireResponse/[id]/$complete

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INsignedBinary0..1Binary

Digitally signed PET (ASiC-E container) as a Binary resource.

INbundle0..1Bundle

Collection Bundle with the QuestionnaireResponse and the paper-signing Provenance.

OUTquestionnaireResponse1..1Reference

Reference to the stored PET version.

OUTprovenance1..1Reference

Reference to the stored signing Provenance.

OUTsignedBinary0..1Reference

Reference to the stored signed Binary (digital signing only).