VRIS - Viljatusravi infosüsteem
0.1.0 - draft

VRIS - Viljatusravi infosüsteem, 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-vris/ and changes regularly. See the Directory of published versions

## Resource Profile: EEVRISProcedureDestruction - XML Profile

Draft as of 2026-07-16

XML representation of the ee-vris-procedure-destruction resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="ee-vris-procedure-destruction"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition ee-vris-procedure-destruction</b></p><a name="ee-vris-procedure-destruction"> </a><a name="hcee-vris-procedure-destruction"> </a><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-ee-vris-procedure-destruction-definitions.html#Procedure">Procedure</a><a name="Procedure"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-ee-vris-procedure.html">EEVRISProcedure</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An action that is being or was performed on an individual or entity</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-procedure-destruction-definitions.html#Procedure.category">category</a><a name="Procedure.category"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(ee Fix kood: hävitamine. NB! Loendit pole veel! Fake kood hetkel!)<br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">At least the following</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck101.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: white; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R5/datatypes-definitions.html#CodeableConcept.coding">coding</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..*</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#Coding">Coding</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Code defined by a terminology system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">(Complex)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R5/datatypes-definitions.html#Coding.system">system</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Identity of the terminology system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">https://fhir.ee/ValueSet/vris-protseduuri-kategooria</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: white; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R5/datatypes-definitions.html#Coding.code">code</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Symbol in syntax defined by the system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">destruction</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-ee-vris-procedure-destruction-definitions.html#Procedure.subject">subject</a><a name="Procedure.subject"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/references.html">Reference</a>(<a href="StructureDefinition-ee-vris-donor.html">Patient: EE VRIS Donor</a> | <a href="StructureDefinition-ee-vris-recipient.html">Patient: EE VRIS Recipient</a> | <a href="StructureDefinition-ee-vris-donor-anonymous.html">Patient: EE VRIS Anonymous Patient</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(ee Kelle materjal hävitati)</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-ee-vris-procedure-destruction-definitions.html#Procedure.occurrence[x]">occurrence[x]</a><a name="Procedure.occurrence_x_"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(ee Hävitamise kuupäev, kohustuslik)</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-procedure-destruction-definitions.html#Procedure.reason">reason</a><a name="Procedure.reason"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/references.html">CodeableReference</a>(<a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/condition.html">Condition</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/observation.html">Observation</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/procedure.html">Procedure</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/diagnosticreport.html">DiagnosticReport</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/documentreference.html">DocumentReference</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(ee Hävitamise põhjus, kohustuslik. LOEND puudu!)<br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="https://fhir.ee/ValueSet/vris-havitamise-pohjus" class="binding">https://fhir.ee/ValueSet/vris-havitamise-pohjus</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R5/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant." class="binding">preferred</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-ee-vris-procedure-destruction-definitions.html#Procedure.used">used</a><a name="Procedure.used"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/references.html">CodeableReference</a>(<a href="StructureDefinition-ee-vris-sperm.html">BiologicallyDerivedProduct: EE VRIS Sperm</a> | <a href="StructureDefinition-ee-vris-embryo.html">BiologicallyDerivedProduct: EE VRIS Embryo</a> | <a href="StructureDefinition-ee-vris-oocyte.html">BiologicallyDerivedProduct: EE VRIS Oocyte</a> | <a href="StructureDefinition-ee-vris-reproductive-tissue.html">BiologicallyDerivedProduct: EE VRIS Reproductive Tissue</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(ee Viide hävitatud bioloogilisele materjalile)</td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <url
           value="https://fhir.ee/vris/StructureDefinition/ee-vris-procedure-destruction"/>
      <version value="0.1.0"/>
      <name value="EEVRISProcedureDestruction"/>
      <title value="Procedure: EE VRIS Destruction"/>
      <status value="draft"/>
      <date value="2026-07-16T13:10:38+00:00"/>
      <publisher value="TEHIK"/>
      <contact>
        <name value="TEHIK"/>
        <telecom>
          <system value="url"/>
          <value value="https://www.tehik.ee"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="fhir@tehik.ee"/>
        </telecom>
      </contact>
      <contact>
        <name value="TEHIK Andmekorraldus"/>
        <telecom>
          <system value="email"/>
          <value value="andmekorraldus@tehik.ee"/>
          <use value="work"/>
        </telecom>
      </contact>
      <description
                   value="Profile for destruction of biological material (sperm, oocyte, embryo, reproductive tissue). (ee Bioloogilise materjali hävitamise protseduur.)"/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="EE"/>
          <display value="Estonia"/>
        </coding>
      </jurisdiction>
      <fhirVersion value="5.0.0"/>
      <mapping>
        <identity value="workflow"/>
        <uri value="http://hl7.org/fhir/workflow"/>
        <name value="Workflow Pattern"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <uri value="http://hl7.org/fhir/fivews"/>
        <name value="FiveWs Pattern Mapping"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <mapping>
        <identity value="v2"/>
        <uri value="http://hl7.org/v2"/>
        <name value="HL7 V2 Mapping"/>
      </mapping>
      <kind value="resource"/>
      <abstract value="false"/>
      <type value="Procedure"/>
      <baseDefinition
                      value="https://fhir.ee/vris/StructureDefinition/ee-vris-procedure"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="0.1.0"/>
        </extension>
        <element id="Procedure">
          <path value="Procedure"/>
          <short
                 value="An action that is being or was performed on an individual or entity"/>
          <definition
                      value="An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy.  This can be a quality or safety inspection for a location, organization, or device.  This can be an accreditation procedure on a practitioner for licensing."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="dom-2"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
            <expression value="contained.contained.empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-3"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource"/>
            <expression
                        value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-4"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
            <expression
                        value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-5"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a security label"/>
            <expression value="contained.meta.security.empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
              <valueBoolean value="true"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
              <valueMarkdown
                             value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."/>
            </extension>
            <key value="dom-6"/>
            <severity value="warning"/>
            <human
                   value="A resource should have narrative for robust management"/>
            <expression value="text.`div`.exists()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Entity, Role, or Act,Procedure[moodCode=EVN]"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Event"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="clinical.general"/>
          </mapping>
        </element>
        <element id="Procedure.id">
          <path value="Procedure.id"/>
          <short value="Logical id of this artifact"/>
          <definition
                      value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
          <comment
                   value="Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="id"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Procedure.meta">
          <path value="Procedure.meta"/>
          <short value="Metadata about the resource"/>
          <definition
                      value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.meta"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Meta"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Procedure.implicitRules">
          <path value="Procedure.implicitRules"/>
          <short value="A set of rules under which this content was created"/>
          <definition
                      value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."/>
          <comment
                   value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.implicitRules"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation"/>
          <isSummary value="true"/>
        </element>
        <element id="Procedure.language">
          <path value="Procedure.language"/>
          <short value="Language of the resource content"/>
          <definition
                      value="The base language in which the resource is written."/>
          <comment
                   value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Language"/>
            </extension>
            <strength value="required"/>
            <description value="IETF language tag for a human language"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/all-languages|5.0.0"/>
            <additional>
              <purpose value="starter"/>
              <valueSet value="http://hl7.org/fhir/ValueSet/languages|5.0.0"/>
            </additional>
          </binding>
        </element>
        <element id="Procedure.text">
          <path value="Procedure.text"/>
          <short value="Text summary of the resource, for human interpretation"/>
          <definition
                      value="A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
          <comment
                   value="Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded information is added later."/>
          <alias value="narrative"/>
          <alias value="html"/>
          <alias value="xhtml"/>
          <alias value="display"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Narrative"/>
          </type>
          <condition value="dom-6"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Act.text?"/>
          </mapping>
        </element>
        <element id="Procedure.contained">
          <path value="Procedure.contained"/>
          <short value="Contained, inline Resources"/>
          <definition
                      value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."/>
          <comment
                   value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels."/>
          <alias value="inline resources"/>
          <alias value="anonymous resources"/>
          <alias value="contained resources"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.contained"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
          <condition value="dom-2"/>
          <condition value="dom-4"/>
          <condition value="dom-3"/>
          <condition value="dom-5"/>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Procedure.extension">
          <path value="Procedure.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Procedure.modifierExtension">
          <path value="Procedure.modifierExtension"/>
          <short value="Extensions that cannot be ignored"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Procedure.identifier">
          <path value="Procedure.identifier"/>
          <short value="External Identifiers for this procedure"/>
          <definition
                      value="Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server."/>
          <comment
                   value="This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R5/resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and Person resource instances might share the same social insurance number."/>
          <requirements
                        value="Allows identification of the procedure as it is known by various participating systems and in a way that remains consistent across servers."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PR1-19"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Procedure.instantiatesCanonical">
          <path value="Procedure.instantiatesCanonical"/>
          <short value="Instantiates FHIR protocol or definition"/>
          <definition
                      value="The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.instantiatesCanonical"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="canonical"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PlanDefinition|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Measure|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/OperationDefinition|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Questionnaire|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.instantiatesCanonical"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=DEFN].target"/>
          </mapping>
        </element>
        <element id="Procedure.instantiatesUri">
          <path value="Procedure.instantiatesUri"/>
          <short value="Instantiates external protocol or definition"/>
          <definition
                      value="The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure."/>
          <comment
                   value="This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.instantiatesUri"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.instantiatesUri"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=DEFN].target"/>
          </mapping>
        </element>
        <element id="Procedure.basedOn">
          <path value="Procedure.basedOn"/>
          <short value="A request for this procedure"/>
          <definition
                      value="A reference to a resource that contains details of the request for this procedure."/>
          <alias value="fulfills"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.basedOn"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/CarePlan|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ServiceRequest|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.basedOn"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=FLFS].target[classCode=(various e.g. PROC, OBS, PCPR, ACT,  moodCode=RQO].code"/>
          </mapping>
        </element>
        <element id="Procedure.partOf">
          <path value="Procedure.partOf"/>
          <short value="Part of referenced event"/>
          <definition
                      value="A larger event of which this particular procedure is a component or step."/>
          <comment
                   value="The MedicationAdministration resource has a partOf reference to Procedure, but this is not a circular reference.   For example, the anesthesia MedicationAdministration is part of the surgical Procedure (MedicationAdministration.partOf = Procedure).  For example, the procedure to insert the IV port for an IV medication administration is part of the medication administration (Procedure.partOf = MedicationAdministration)."/>
          <alias value="container"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.partOf"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy">
              <valueBoolean value="true"/>
            </extension>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Procedure|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Observation|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.partOf"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PR1-25"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=COMP].source[classCode=SBADM or PROC or OBS, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Procedure.status">
          <path value="Procedure.status"/>
          <short value="(ee See on kohustuslik!)"/>
          <definition
                      value="A code specifying the state of the procedure. Generally, this will be the in-progress or completed state."/>
          <comment
                   value="The &quot;unknown&quot; code is not to be used to convey other statuses.  The &quot;unknown&quot; code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the procedure.

    This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Procedure.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureStatus"/>
            </extension>
            <strength value="required"/>
            <description value="A code specifying the state of the procedure."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/event-status|5.0.0"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.status"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="statusCode"/>
          </mapping>
        </element>
        <element id="Procedure.statusReason">
          <path value="Procedure.statusReason"/>
          <short value="(ee STAATUSE Põhjuste LOEND?)"/>
          <definition
                      value="Captures the reason for the current state of the procedure."/>
          <comment
                   value="This is generally only used for &quot;exception&quot; statuses such as &quot;not-done&quot;, &quot;suspended&quot; or &quot;aborted&quot;. The reason for performing the event at all is captured in reasonCode, not here."/>
          <alias value="Suspended Reason"/>
          <alias value="Cancelled Reason"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.statusReason"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureNegationReason"/>
            </extension>
            <strength value="example"/>
            <description
                         value="A code that identifies the reason a procedure was not performed."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/procedure-not-performed-reason|5.0.0"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.statusReason"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".reason.Observation.value"/>
          </mapping>
        </element>
        <element id="Procedure.category">
          <path value="Procedure.category"/>
          <short
                 value="(ee Fix kood: hävitamine. NB! Loendit pole veel! Fake kood hetkel!)"/>
          <definition
                      value="A code that classifies the procedure for searching, sorting and display purposes (e.g. &quot;Surgical Procedure&quot;)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Procedure.category"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <patternCodeableConcept>
            <coding>
              <system
                      value="https://fhir.ee/ValueSet/vris-protseduuri-kategooria"/>
              <code value="destruction"/>
            </coding>
          </patternCodeableConcept>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureCategory"/>
            </extension>
            <strength value="example"/>
            <description
                         value="A code that classifies a procedure for searching, sorting and display purposes."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/procedure-category|5.0.0"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PR1-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;EVN&quot;].code"/>
          </mapping>
        </element>
        <element id="Procedure.code">
          <path value="Procedure.code"/>
          <short value="Identification of the procedure"/>
          <definition
                      value="The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. &quot;Laparoscopic Appendectomy&quot;)."/>
          <requirements
                        value="0..1 to account for primarily narrative only resources."/>
          <alias value="type"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureCode"/>
            </extension>
            <strength value="example"/>
            <description value="A code to identify a specific procedure ."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/procedure-code|5.0.0"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.code"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.what[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PR1-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".code"/>
          </mapping>
        </element>
        <element id="Procedure.subject">
          <path value="Procedure.subject"/>
          <short value="(ee Kelle materjal hävitati)"/>
          <definition
                      value="On whom or on what the procedure was performed. This is usually an individual human, but can also be performed on animals, groups of humans or animals, organizations or practitioners (for licensing), locations or devices (for safety inspections or regulatory authorizations).  If the actual focus of the procedure is different from the subject, the focus element specifies the actual focus of the procedure."/>
          <alias value="patient"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Procedure.subject"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-donor"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-recipient"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-donor-anonymous"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.subject"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PID-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=SBJ].role"/>
          </mapping>
        </element>
        <element id="Procedure.focus">
          <path value="Procedure.focus"/>
          <short
                 value="(ee Kui on vaja lisaks subjektile teist patsienti ka. Nt. doonori viide siia, retsipiendi viide subject-i alla?)"/>
          <definition
                      value="Who is the target of the procedure when it is not the subject of record only.  If focus is not present, then subject is the focus.  If focus is present and the subject is one of the targets of the procedure, include subject as a focus as well. If focus is present and the subject is not included in focus, it implies that the procedure was only targeted on the focus. For example, when a caregiver is given education for a patient, the caregiver would be the focus and the procedure record is associated with the subject (e.g. patient).  For example, use focus when recording the target of the education, training, or counseling is the parent or relative of a patient."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.focus"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Group|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/CareTeam|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Specimen|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject[x]"/>
          </mapping>
        </element>
        <element id="Procedure.encounter">
          <path value="Procedure.encounter"/>
          <short value="The Encounter during which this Procedure was created"/>
          <definition
                      value="The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated."/>
          <comment
                   value="This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.encounter"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Encounter|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.encounter"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PV1-19"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Procedure.occurrence[x]">
          <path value="Procedure.occurrence[x]"/>
          <short value="(ee Hävitamise kuupäev, kohustuslik)"/>
          <definition
                      value="Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring.  Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured."/>
          <comment
                   value="This indicates when the procedure actually occurred or is occurring, not when it was asked/requested/ordered to occur. For the latter, look at the occurence element of the Request this Procedure is &quot;basedOn&quot;. The status code allows differentiation of whether the timing reflects a historic event or an ongoing event. Ongoing events should not include an upper bound in the Period or Timing.bounds.

    Age is generally used when the patient reports an age at which the procedure was performed. Range is generally used when the patient reports an age range when the procedure was performed, such as sometime between 20-25 years old.  dateTime supports a range of precision due to some procedures being reported as past procedures that might not have millisecond precision while other procedures performed and documented during the encounter might have more precise UTC timestamps with timezone."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Procedure.occurrence[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.occurrence[x]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.done[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="PR1-5 - occurrencePeriod.end can be inferred when both PR1-5 (Procedure Date/Time) and PR1-7 (Procedure Minutes) are populated"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime"/>
          </mapping>
        </element>
        <element id="Procedure.recorded">
          <path value="Procedure.recorded"/>
          <short
                 value="When the procedure was first captured in the subject's record"/>
          <definition
                      value="The date the occurrence of the procedure was first captured in the record regardless of Procedure.status (potentially after the occurrence of the event)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.recorded"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.recorded"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.recorded"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=AUT].time"/>
          </mapping>
        </element>
        <element id="Procedure.recorder">
          <path value="Procedure.recorder"/>
          <short value="Who recorded the procedure"/>
          <definition
                      value="Individual who recorded the record and takes responsibility for its content."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.recorder"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.author"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=AUT].role"/>
          </mapping>
        </element>
        <element id="Procedure.reported[x]">
          <path value="Procedure.reported[x]"/>
          <short value="Reported rather than primary record"/>
          <definition
                      value="Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record.  It may also indicate the source of the report."/>
          <requirements
                        value="Reported data may have different rules on editing and may be visually distinguished from primary data."/>
          <alias value="informer"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.reported[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.reported[x]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.source"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=RPT].role"/>
          </mapping>
        </element>
        <element id="Procedure.performer">
          <path value="Procedure.performer"/>
          <short value="Who performed the procedure and what they did"/>
          <definition
                      value="Indicates who or what performed the procedure and how they were involved."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.performer"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="prc-1"/>
            <severity value="error"/>
            <human
                   value="Procedure.performer.onBehalfOf can only be populated when performer.actor isn't Practitioner or PractitionerRole"/>
            <expression
                        value="onBehalfOf.exists() and actor.resolve().exists() implies actor.resolve().where($this is Practitioner or $this is PractitionerRole).empty()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.performer"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PRF]"/>
          </mapping>
        </element>
        <element id="Procedure.performer.id">
          <path value="Procedure.performer.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Procedure.performer.extension">
          <path value="Procedure.performer.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Procedure.performer.modifierExtension">
          <path value="Procedure.performer.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Procedure.performer.function">
          <path value="Procedure.performer.function"/>
          <short value="Type of performance"/>
          <definition
                      value="Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist."/>
          <requirements
                        value="Allows disambiguation of the types of involvement of different performers."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.performer.function"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedurePerformerRole"/>
            </extension>
            <strength value="example"/>
            <description
                         value="A code that identifies the role of a performer of the procedure."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/performer-role|5.0.0"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.performer.function"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".functionCode"/>
          </mapping>
        </element>
        <element id="Procedure.performer.actor">
          <path value="Procedure.performer.actor"/>
          <short value="Who performed the procedure"/>
          <definition value="Indicates who or what performed the procedure."/>
          <requirements
                        value="A reference to Device supports use cases, such as pacemakers."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Procedure.performer.actor"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Device|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/CareTeam|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/HealthcareService|5.0.0"/>
          </type>
          <condition value="prc-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.performer.actor"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.actor"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="PR1-8 (Anesthesiologist),  PR1-11 (Surgeon), PR1-12 (Procedure Practitioner) --&gt; Procedure.performer.actor where Procedure.performer.function is also populated"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".role"/>
          </mapping>
        </element>
        <element id="Procedure.performer.onBehalfOf">
          <path value="Procedure.performer.onBehalfOf"/>
          <short value="Organization the device or practitioner was acting for"/>
          <definition
                      value="The Organization the Patient, RelatedPerson, Device, CareTeam, and HealthcareService was acting on behalf of."/>
          <comment
                   value="Organization, Patient, RelatedPerson, Device, CareTeam, and HealthcareService can be associated with multiple organizations. This element indicates which organization they were acting on behalf of when performing the action."/>
          <requirements
                        value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when performing the action."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.performer.onBehalfOf"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|5.0.0"/>
          </type>
          <condition value="prc-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".scoper"/>
          </mapping>
        </element>
        <element id="Procedure.performer.period">
          <path value="Procedure.performer.period"/>
          <short value="When the performer performed the procedure"/>
          <definition
                      value="Time period during which the performer performed the procedure."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.performer.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Procedure.location">
          <path value="Procedure.location"/>
          <short value="Where the procedure happened"/>
          <definition
                      value="The location where the procedure actually happened.  E.g. a newborn at home, a tracheostomy at a restaurant."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.location"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Location|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.where[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PR1-23"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=LOC].role[classCode=SDLOC]"/>
          </mapping>
        </element>
        <element id="Procedure.reason">
          <path value="Procedure.reason"/>
          <short value="(ee Hävitamise põhjus, kohustuslik. LOEND puudu!)"/>
          <definition
                      value="The coded reason or reference why the procedure was performed. This may be a coded entity of some type, be present as text, or be a reference to one of several resources that justify the procedure."/>
          <comment
                   value="Use Procedure.reason.concept when a code sufficiently describes the reason. Use Procedure.reason.reference when referencing a resource, which allows more information to be conveyed, such as onset date.  For a single Procedure.reason, if both Procedure.reason.concept and Procedure.reason.reference are present, they are expected to be consistent with each other."/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="Procedure.reason"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Condition|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Observation|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Procedure|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DocumentReference|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="preferred"/>
            <valueSet value="https://fhir.ee/ValueSet/vris-havitamise-pohjus"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.reason"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.why[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PR1-15"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".reasonCode"/>
          </mapping>
        </element>
        <element id="Procedure.bodySite">
          <path value="Procedure.bodySite"/>
          <short value="Target body sites"/>
          <definition
                      value="Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion."/>
          <comment
                   value="If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [http://hl7.org/fhir/StructureDefinition/procedure-targetBodyStructure](http://hl7.org/fhir/extensions/StructureDefinition-procedure-targetBodyStructure.html)."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Procedure.bodySite"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite"/>
            </extension>
            <strength value="example"/>
            <description value="SNOMED CT Body site concepts"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/body-site|5.0.0"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="OBX-20"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".targetSiteCode"/>
          </mapping>
        </element>
        <element id="Procedure.outcome">
          <path value="Procedure.outcome"/>
          <short
                 value="(ee Tegevuse/toimingu/protseduuri/jne jne... TULEMUS. Nb! LOEND)"/>
          <definition
                      value="The outcome of the procedure - did it resolve the reasons for the procedure being performed?"/>
          <comment
                   value="If outcome contains narrative text only, it can be captured using the CodeableConcept.text."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.outcome"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureOutcome"/>
            </extension>
            <strength value="example"/>
            <description
                         value="An outcome of a procedure - whether it was resolved or otherwise."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/procedure-outcome|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=OUT].target.text"/>
          </mapping>
        </element>
        <element id="Procedure.report">
          <path value="Procedure.report"/>
          <short value="Any report resulting from the procedure"/>
          <definition
                      value="This could be a histology result, pathology report, surgical report, etc."/>
          <comment
                   value="There could potentially be multiple reports - e.g. if this was a procedure which took multiple biopsies resulting in a number of anatomical pathology reports."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.report"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DocumentReference|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Composition|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Procedure.complication">
          <path value="Procedure.complication"/>
          <short
                 value="(ee TÜSISTUS. Referents Condition-ressursile või loend. NB! LOEND vajalik)"/>
          <definition
                      value="Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues."/>
          <comment
                   value="If complications are only expressed by the narrative text, they can be captured using the CodeableReference.concept.text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.complication"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Condition|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureComplication"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes describing complications that resulted from a procedure."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/condition-code|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=&quot;complication&quot;, moodCode=EVN].value"/>
          </mapping>
        </element>
        <element id="Procedure.followUp">
          <path value="Procedure.followUp"/>
          <short value="Instructions for follow up"/>
          <definition
                      value="If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.followUp"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureFollowUp"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Specific follow up required for a procedure e.g. removal of sutures."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/procedure-followup|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code"/>
          </mapping>
        </element>
        <element id="Procedure.note">
          <path value="Procedure.note"/>
          <short value="(ee lisainfo)"/>
          <definition value="Any other notes and comments about the procedure."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.note"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Annotation"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.note"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="NTE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value"/>
          </mapping>
        </element>
        <element id="Procedure.focalDevice">
          <path value="Procedure.focalDevice"/>
          <short value="Manipulated, implanted, or removed device"/>
          <definition
                      value="A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Procedure.focalDevice"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=DEV].role[classCode=MANU]"/>
          </mapping>
        </element>
        <element id="Procedure.focalDevice.id">
          <path value="Procedure.focalDevice.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Procedure.focalDevice.extension">
          <path value="Procedure.focalDevice.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Procedure.focalDevice.modifierExtension">
          <path value="Procedure.focalDevice.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Procedure.focalDevice.action">
          <path value="Procedure.focalDevice.action"/>
          <short value="Kind of change to device"/>
          <definition
                      value="The kind of change that happened to the device during the procedure."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Procedure.focalDevice.action"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceActionKind"/>
            </extension>
            <strength value="preferred"/>
            <description
                         value="A kind of change that happened to the device during the procedure."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/device-action|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;procedure device action&quot;].value=:procedure device action codes"/>
          </mapping>
        </element>
        <element id="Procedure.focalDevice.manipulated">
          <path value="Procedure.focalDevice.manipulated"/>
          <short value="Device that was changed"/>
          <definition
                      value="The device that was manipulated (changed) during the procedure."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Procedure.focalDevice.manipulated"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Device|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=DEV].role[classCode=SDLOC]"/>
          </mapping>
        </element>
        <element id="Procedure.used">
          <path value="Procedure.used"/>
          <short value="(ee Viide hävitatud bioloogilisele materjalile)"/>
          <definition
                      value="Identifies medications, devices and any other substance used as part of the procedure."/>
          <comment
                   value="For devices actually implanted or removed, use Procedure.focalDevice.manipulated."/>
          <requirements value="Used for tracking contamination, etc."/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="Procedure.used"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-sperm"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-embryo"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-oocyte"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-reproductive-tissue"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureUsed"/>
            </extension>
            <strength value="example"/>
            <description value="Codes describing items used during a procedure."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/device-type|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="participation[typeCode=Dev].role[classCode=MANU]"/>
          </mapping>
        </element>
        <element id="Procedure.supportingInfo">
          <path value="Procedure.supportingInfo"/>
          <short
                 value="(ee siia saab panna ükskõik mis referentsi kui vaja! Nt SupplyDelivery?)"/>
          <definition
                      value="Other resources from the patient record that may be relevant to the procedure.  The information from these resources was either used to create the instance or is provided to help with its interpretation. This extension should not be used if more specific inline elements or extensions are available."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Procedure.supportingInfo"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Resource|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=PERT].target"/>
          </mapping>
        </element>
      </snapshot>
      <differential>
        <element id="Procedure">
          <path value="Procedure"/>
        </element>
        <element id="Procedure.category">
          <path value="Procedure.category"/>
          <short
                 value="(ee Fix kood: hävitamine. NB! Loendit pole veel! Fake kood hetkel!)"/>
          <min value="1"/>
          <max value="1"/>
          <patternCodeableConcept>
            <coding>
              <system
                      value="https://fhir.ee/ValueSet/vris-protseduuri-kategooria"/>
              <code value="destruction"/>
            </coding>
          </patternCodeableConcept>
        </element>
        <element id="Procedure.subject">
          <path value="Procedure.subject"/>
          <short value="(ee Kelle materjal hävitati)"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-donor"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-recipient"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-donor-anonymous"/>
          </type>
        </element>
        <element id="Procedure.occurrence[x]">
          <path value="Procedure.occurrence[x]"/>
          <short value="(ee Hävitamise kuupäev, kohustuslik)"/>
          <min value="1"/>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="Procedure.reason">
          <path value="Procedure.reason"/>
          <short value="(ee Hävitamise põhjus, kohustuslik. LOEND puudu!)"/>
          <min value="1"/>
          <binding>
            <strength value="preferred"/>
            <valueSet value="https://fhir.ee/ValueSet/vris-havitamise-pohjus"/>
          </binding>
        </element>
        <element id="Procedure.used">
          <path value="Procedure.used"/>
          <short value="(ee Viide hävitatud bioloogilisele materjalile)"/>
          <min value="1"/>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-sperm"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-embryo"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-oocyte"/>
            <targetProfile
                           value="https://fhir.ee/vris/StructureDefinition/ee-vris-reproductive-tissue"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>