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: EEVRISConditionComorbidity - XML Profile

Draft as of 2026-07-16

XML representation of the ee-vris-condition-comorbidity resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="ee-vris-condition-comorbidity"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition ee-vris-condition-comorbidity</b></p><a name="ee-vris-condition-comorbidity"> </a><a name="hcee-vris-condition-comorbidity"> </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-condition-comorbidity-definitions.html#Condition">Condition</a><a name="Condition"> </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="http://hl7.org/fhir/R5/condition.html">Condition</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">Detailed information about conditions, problems or diagnoses</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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.identifier">identifier</a><a name="Condition.identifier"> </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">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: #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#Identifier">Identifier</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">Kaasuvate haiguste identifikaator</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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.clinicalStatus">clinicalStatus</a><a name="Condition.clinicalStatus"> </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">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: white; 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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Kliiniline staatus (nt active, resolved, inactive)</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-condition-comorbidity-definitions.html#Condition.verificationStatus">verificationStatus</a><a name="Condition.verificationStatus"> </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">0</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 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">Kinnituse staatus (nt confirmed, provisional)</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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.category">category</a><a name="Condition.category"> </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 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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Haiguse kategooria</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-condition-comorbidity-definitions.html#Condition.severity">severity</a><a name="Condition.severity"> </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">0</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 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">Haiguse raskusaste</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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.code">code</a><a name="Condition.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..<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 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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(ee Kaasuvate haiguse kood RHK-10 järgi. NB! IGA HAIGUSE JAOKS RESURSS KORDUB, ühe alla ei saa mitut panna!!)<br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="https://fhir.ee/ValueSet/rhk-10" class="binding">https://fhir.ee/ValueSet/rhk-10</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: #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 style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.bodySite">bodySite</a><a name="Condition.bodySite"> </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="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</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"/><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="font-style: italic">Anatomical location, if relevant</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_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: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.subject">subject</a><a name="Condition.subject"> </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">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: white; 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="https://fhir.ee/packages/mpi/1.5.0/site/StructureDefinition-ee-mpi-patient-verified.html">EE MPI Patient Verified</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 Doonor või retsipient, partner või annetaja kellel kaasuv haigus esineb)</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 style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.encounter">encounter</a><a name="Condition.encounter"> </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="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</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"/><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="font-style: italic">The Encounter during which this Condition was created</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_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-condition-comorbidity-definitions.html#Condition.onset[x]">onset[x]</a><a name="Condition.onset_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"><span style="opacity: 0.5">0</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: 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 Millal haigus tuvastati)</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_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.abatement[x]">abatement[x]</a><a name="Condition.abatement_x_"> </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">0</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/datatypes.html#dateTime">dateTime</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 Millal haigus lõppes / taandus)</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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.recordedDate">recordedDate</a><a name="Condition.recordedDate"> </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">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 style="opacity: 0.5; opacity: 0.5" 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 Millal haigus kirja pandi)</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-condition-comorbidity-definitions.html#Condition.participant">participant</a><a name="Condition.participant"> </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">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: #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/types.html#BackboneElement">BackboneElement</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 Kes haiguse kirja pani)</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_bck100.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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.participant.actor">actor</a><a name="Condition.participant.actor"> </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">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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/references.html">Reference</a>(<a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/practitioner.html">Practitioner</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/practitionerrole.html">PractitionerRole</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/patient.html">Patient</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/relatedperson.html">RelatedPerson</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/device.html">Device</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/organization.html">Organization</a> | <a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/careteam.html">CareTeam</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 Osaleja viide. NB! SPD viide)</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 style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.stage">stage</a><a name="Condition.stage"> </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="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</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"/><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="font-style: italic">Stage/grade, usually assessed formally</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_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: white; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.evidence">evidence</a><a name="Condition.evidence"> </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="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</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"/><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="font-style: italic">Supporting evidence for the verification status</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_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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ee-vris-condition-comorbidity-definitions.html#Condition.note">note</a><a name="Condition.note"> </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">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: #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#Annotation">Annotation</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 Lisainfo / täpsustus kaasuvate haiguste kohta)</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-condition-comorbidity"/>
      <version value="0.1.0"/>
      <name value="EEVRISConditionComorbidity"/>
      <title value="Condition: EE VRIS Comorbidity"/>
      <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="Condition profile for comorbidities of a donor or recipient in the Estonian VRIS fertility system. (ee Kaasuv haigus. NB! Tulevikus viidata Diagnoosi-teenusele!)"/>
      <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="w5"/>
        <uri value="http://hl7.org/fhir/fivews"/>
        <name value="FiveWs Pattern Mapping"/>
      </mapping>
      <mapping>
        <identity value="sct-concept"/>
        <uri value="http://snomed.info/conceptdomain"/>
        <name value="SNOMED CT Concept Domain Binding"/>
      </mapping>
      <mapping>
        <identity value="v2"/>
        <uri value="http://hl7.org/v2"/>
        <name value="HL7 V2 Mapping"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <mapping>
        <identity value="sct-attr"/>
        <uri value="http://snomed.org/attributebinding"/>
        <name value="SNOMED CT Attribute Binding"/>
      </mapping>
      <kind value="resource"/>
      <abstract value="false"/>
      <type value="Condition"/>
      <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Condition"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="5.0.0"/>
        </extension>
        <element id="Condition">
          <path value="Condition"/>
          <short
                 value="Detailed information about conditions, problems or diagnoses"/>
          <definition
                      value="A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Condition"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="con-2"/>
            <severity value="warning"/>
            <human
                   value="If category is problems list item, the clinicalStatus should not be unknown"/>
            <expression
                        value="category.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-category' and code='problem-list-item').exists() implies clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and code='unknown').exists().not()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Condition"/>
          </constraint>
          <constraint>
            <key value="con-3"/>
            <severity value="error"/>
            <human
                   value="If condition is abated, then clinicalStatus must be either inactive, resolved, or remission."/>
            <expression
                        value="abatement.exists() implies (clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='inactive' or code='resolved' or code='remission')).exists())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Condition"/>
          </constraint>
          <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,Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value&lt;Diagnosis]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="clinical.general"/>
          </mapping>
          <mapping>
            <identity value="sct-concept"/>
            <map
                 value="&lt; 243796009 |Situation with explicit context| : 246090004 |Associated finding| = ( ( &lt; 404684003 |Clinical finding| MINUS ( &lt;&lt; 420134006 |Propensity to adverse reactions| OR &lt;&lt; 473010000 |Hypersensitivity condition| OR &lt;&lt; 79899007 |Drug interaction| OR &lt;&lt; 69449002 |Drug action| OR &lt;&lt; 441742003 |Evaluation finding| OR &lt;&lt; 307824009 |Administrative status| OR &lt;&lt; 385356007 |Tumor stage finding|)) OR &lt; 272379006 |Event|)"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PPR message"/>
          </mapping>
        </element>
        <element id="Condition.id">
          <path value="Condition.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="Condition.meta">
          <path value="Condition.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="Condition.implicitRules">
          <path value="Condition.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="Condition.language">
          <path value="Condition.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="Condition.text">
          <path value="Condition.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="Condition.contained">
          <path value="Condition.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="Condition.extension">
          <path value="Condition.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="Condition.modifierExtension">
          <path value="Condition.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="Condition.identifier">
          <path value="Condition.identifier"/>
          <short value="Kaasuvate haiguste identifikaator"/>
          <definition
                      value="Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates 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 a Person resource instance might share the same social insurance number."/>
          <requirements
                        value="Allows identification of the condition 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="Condition.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="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Condition.clinicalStatus">
          <path value="Condition.clinicalStatus"/>
          <short value="Kliiniline staatus (nt active, resolved, inactive)"/>
          <definition value="The clinical status of the condition."/>
          <comment
                   value="The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.  clinicalStatus is required since it is a modifier element.  For conditions that are problems list items, the clinicalStatus should not be unknown.  For conditions that are not problem list items, the clinicalStatus may be unknown.  For example, conditions derived from a claim are point in time, so those conditions may have a clinicalStatus of unknown"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Condition.clinicalStatus"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="con-3"/>
          <condition value="con-2"/>
          <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 status contains codes that mark the condition as no longer active."/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionClinicalStatus"/>
            </extension>
            <strength value="required"/>
            <description
                         value="The clinical status of the condition or diagnosis."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/condition-clinical|5.0.0"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
          <mapping>
            <identity value="sct-concept"/>
            <map value="&lt; 303105007 |Disease phases|"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PRB-14"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="Observation ACT
    .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;clinicalStatus&quot;, moodCode=EVN].value"/>
          </mapping>
        </element>
        <element id="Condition.verificationStatus">
          <path value="Condition.verificationStatus"/>
          <short value="Kinnituse staatus (nt confirmed, provisional)"/>
          <definition
                      value="The verification status to support the clinical status of the condition.  The verification status pertains to the condition, itself, not to any specific condition attribute."/>
          <comment
                   value="verificationStatus is not required.  For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.
    The data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.verificationStatus"/>
            <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="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid."/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionVerificationStatus"/>
            </extension>
            <strength value="required"/>
            <description
                         value="The verification status to support or decline the clinical status of the condition or diagnosis."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/condition-ver-status|5.0.0"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
          <mapping>
            <identity value="sct-concept"/>
            <map value="&lt; 410514004 |Finding context value|"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PRB-13"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="Observation ACT
    .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;verificationStatus&quot;, moodCode=EVN].value"/>
          </mapping>
          <mapping>
            <identity value="sct-attr"/>
            <map value="408729009"/>
          </mapping>
        </element>
        <element id="Condition.category">
          <path value="Condition.category"/>
          <short value="Haiguse kategooria"/>
          <definition value="A category assigned to the condition."/>
          <comment
                   value="The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Condition.category"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="con-2"/>
          <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="ConditionCategory"/>
            </extension>
            <strength value="preferred"/>
            <description value="A category assigned to the condition."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/condition-category|5.0.0"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
          <mapping>
            <identity value="sct-concept"/>
            <map value="&lt; 404684003 |Clinical finding|"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".code"/>
          </mapping>
        </element>
        <element id="Condition.severity">
          <path value="Condition.severity"/>
          <short value="Haiguse raskusaste"/>
          <definition
                      value="A subjective assessment of the severity of the condition as evaluated by the clinician."/>
          <comment
                   value="Coding of the severity with a terminology is preferred, where possible."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.severity"/>
            <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="ConditionSeverity"/>
            </extension>
            <strength value="preferred"/>
            <description
                         value="A subjective assessment of the severity of the condition as evaluated by the clinician."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/condition-severity|5.0.0"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.grade"/>
          </mapping>
          <mapping>
            <identity value="sct-concept"/>
            <map value="&lt; 272141005 |Severities|"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PRB-26 / ABS-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="Can be pre/post-coordinated into value.  Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;severity&quot;].value"/>
          </mapping>
          <mapping>
            <identity value="sct-attr"/>
            <map value="246112005"/>
          </mapping>
        </element>
        <element id="Condition.code">
          <path value="Condition.code"/>
          <short
                 value="(ee Kaasuvate haiguse kood RHK-10 järgi. NB! IGA HAIGUSE JAOKS RESURSS KORDUB, ühe alla ei saa mitut panna!!)"/>
          <definition
                      value="Identification of the condition, problem or diagnosis."/>
          <requirements
                        value="0..1 to account for primarily narrative only resources."/>
          <alias value="type"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Condition.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>
            <strength value="preferred"/>
            <valueSet value="https://fhir.ee/ValueSet/rhk-10"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.what[x]"/>
          </mapping>
          <mapping>
            <identity value="sct-concept"/>
            <map
                 value="(&lt; 404684003 |Clinical finding| MINUS (
    &lt;&lt; 420134006 |Propensity to adverse reactions| OR
    &lt;&lt; 473010000 |Hypersensitivity condition| OR
    &lt;&lt; 79899007 |Drug interaction| OR
    &lt;&lt; 69449002 |Drug action| OR
    &lt;&lt; 441742003 |Evaluation finding| OR
    &lt;&lt; 307824009 |Administrative status| OR
    &lt;&lt; 385356007 |Tumor stage finding|))
    OR &lt; 413350009 |Finding with explicit context|
    OR &lt; 272379006 |Event|"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PRB-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".value"/>
          </mapping>
          <mapping>
            <identity value="sct-attr"/>
            <map value="246090004"/>
          </mapping>
        </element>
        <element id="Condition.bodySite">
          <path value="Condition.bodySite"/>
          <short value="Anatomical location, if relevant"/>
          <definition
                      value="The anatomical location where this condition manifests itself."/>
          <comment
                   value="Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodyStructure resource (e.g. to identify and track separately) then use the standard extension [http://hl7.org/fhir/StructureDefinition/bodySite](http://hl7.org/fhir/extensions/StructureDefinition-bodySite.html).  May be a summary code, or a reference to a very precise definition of the location, or both."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Condition.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="sct-concept"/>
            <map value="&lt; 442083009  |Anatomical or acquired body structure|"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".targetBodySiteCode"/>
          </mapping>
          <mapping>
            <identity value="sct-attr"/>
            <map value="363698007"/>
          </mapping>
        </element>
        <element id="Condition.subject">
          <path value="Condition.subject"/>
          <short
                 value="(ee Doonor või retsipient, partner või annetaja kellel kaasuv haigus esineb)"/>
          <definition
                      value="Indicates the patient or group who the condition record is associated with."/>
          <requirements
                        value="Group is typically used for veterinary or public health use cases."/>
          <alias value="patient"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Condition.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/mpi/StructureDefinition/ee-mpi-patient-verified"/>
          </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>
          <mapping>
            <identity value="v2"/>
            <map value="PID-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]"/>
          </mapping>
        </element>
        <element id="Condition.encounter">
          <path value="Condition.encounter"/>
          <short value="The Encounter during which this Condition was created"/>
          <definition
                      value="The Encounter during which this Condition was created 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. This record indicates the encounter this particular record is associated with.  In the case of a &quot;new&quot; diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first &quot;known&quot;."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Condition.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="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PV1-19 (+PV1-54)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Condition.onset[x]">
          <path value="Condition.onset[x]"/>
          <short value="(ee Millal haigus tuvastati)"/>
          <definition
                      value="Estimated or actual date or date-time  the condition began, in the opinion of the clinician."/>
          <comment
                   value="Age is generally used when the patient reports an age at which the Condition began to occur.  Period is generally used to convey an imprecise onset that occurred within the time period.  For example, Period is not intended to convey the transition period before the chronic bronchitis or COPD condition was diagnosed, but Period can be used to convey an imprecise diagnosis date.  Range is generally used to convey an imprecise age range (e.g. 4 to 6 years old).  Because a Condition.code can represent multiple levels of granularity and can be modified over time, the onset and abatement dates can have ambiguity whether those dates apply to the current Condition.code or an earlier representation of that Condition.code.   For example, if the Condition.code was initially documented as severe asthma, then it is ambiguous whether the onset and abatement dates apply to asthma (overall in that subject's lifetime) or when asthma transitioned to become severe."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.onset[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="w5"/>
            <map value="FiveWs.init"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PRB-16"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;age at onset&quot;].value"/>
          </mapping>
        </element>
        <element id="Condition.abatement[x]">
          <path value="Condition.abatement[x]"/>
          <short value="(ee Millal haigus lõppes / taandus)"/>
          <definition
                      value="The date or estimated date that the condition resolved or went into remission. This is called &quot;abatement&quot; because of the many overloaded connotations associated with &quot;remission&quot; or &quot;resolution&quot; - Some conditions, such as chronic conditions, are never really resolved, but they can abate."/>
          <comment
                   value="There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated.  If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid.  When abatementString exists, it implies the condition is abated.
    Because a Condition.code can represent multiple levels of granularity and can be modified over time, the onset and abatement dates can have ambiguity whether those dates apply to the current Condition.code or an earlier representation of that Condition.code.   For example, if the Condition.code was initially documented as severe asthma, then it is ambiguous whether the onset and abatement dates apply to asthma (overall in that subject's lifetime) or when asthma transitioned to become severe."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.abatement[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <condition value="con-3"/>
          <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="w5"/>
            <map value="FiveWs.done[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;age at remission&quot;].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed"/>
          </mapping>
        </element>
        <element id="Condition.recordedDate">
          <path value="Condition.recordedDate"/>
          <short value="(ee Millal haigus kirja pandi)"/>
          <definition
                      value="The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date."/>
          <comment
                   value="When onset date is unknown, recordedDate can be used to establish if the condition was present on or before a given date.  If the recordedDate is known and provided by a sending system, it is preferred that the receiving system preserve that recordedDate value. If the recordedDate is not provided by the sending system, the receipt timestamp is sometimes used as the recordedDate."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.recordedDate"/>
            <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="w5"/>
            <map value="FiveWs.recorded"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="REL-11"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=AUT].time"/>
          </mapping>
        </element>
        <element id="Condition.participant">
          <path value="Condition.participant"/>
          <short value="(ee Kes haiguse kirja pani)"/>
          <definition
                      value="Indicates who or what participated in the activities related to the condition and how they were involved."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Condition.participant"/>
            <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="true"/>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PRF]"/>
          </mapping>
        </element>
        <element id="Condition.participant.id">
          <path value="Condition.participant.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="Condition.participant.extension">
          <path value="Condition.participant.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="Condition.participant.modifierExtension">
          <path value="Condition.participant.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="Condition.participant.function">
          <path value="Condition.participant.function"/>
          <short value="Type of involvement"/>
          <definition
                      value="Distinguishes the type of involvement of the actor in the activities related to the condition."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.participant.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="ConditionParticipantFunction"/>
            </extension>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/participation-role-type|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value=".participation.functionCode"/>
          </mapping>
        </element>
        <element id="Condition.participant.actor">
          <path value="Condition.participant.actor"/>
          <short value="(ee Osaleja viide. NB! SPD viide)"/>
          <definition
                      value="Indicates who or what participated in the activities related to the condition."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Condition.participant.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/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/Organization|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/CareTeam|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.who"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".player"/>
          </mapping>
        </element>
        <element id="Condition.stage">
          <path value="Condition.stage"/>
          <short value="Stage/grade, usually assessed formally"/>
          <definition
                      value="A simple summary of the stage such as &quot;Stage 3&quot; or &quot;Early Onset&quot;. The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Condition.stage"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="con-1"/>
            <severity value="error"/>
            <human value="Stage SHALL have summary or assessment"/>
            <expression value="summary.exists() or assessment.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Condition"/>
          </constraint>
          <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, code=&quot;stage/grade&quot;]"/>
          </mapping>
        </element>
        <element id="Condition.stage.id">
          <path value="Condition.stage.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="Condition.stage.extension">
          <path value="Condition.stage.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="Condition.stage.modifierExtension">
          <path value="Condition.stage.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="Condition.stage.summary">
          <path value="Condition.stage.summary"/>
          <short value="Simple summary (disease specific)"/>
          <definition
                      value="A simple summary of the stage such as &quot;Stage 3&quot; or &quot;Early Onset&quot;. The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.stage.summary"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="con-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"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionStage"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes describing condition stages (e.g. Cancer stages)."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/condition-stage|5.0.0"/>
          </binding>
          <mapping>
            <identity value="sct-concept"/>
            <map value="&lt; 254291000 |Staging and scales|"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PRB-14"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".value"/>
          </mapping>
        </element>
        <element id="Condition.stage.assessment">
          <path value="Condition.stage.assessment"/>
          <short value="Formal record of assessment"/>
          <definition
                      value="Reference to a formal record of the evidence on which the staging assessment is based."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Condition.stage.assessment"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ClinicalImpression|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Observation|5.0.0"/>
          </type>
          <condition value="con-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=".self"/>
          </mapping>
        </element>
        <element id="Condition.stage.type">
          <path value="Condition.stage.type"/>
          <short value="Kind of staging"/>
          <definition
                      value="The kind of staging, such as pathological or clinical staging."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Condition.stage.type"/>
            <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="ConditionStageType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes describing the kind of condition staging (e.g. clinical or pathological)."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/condition-stage-type|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;stage type&quot;]"/>
          </mapping>
        </element>
        <element id="Condition.evidence">
          <path value="Condition.evidence"/>
          <short value="Supporting evidence for the verification status"/>
          <definition
                      value="Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition."/>
          <comment
                   value="If the condition was confirmed, but subsequently refuted, then the evidence can be cumulative including all evidence over time.  The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.  For example, if the Condition.code is pneumonia, then there could be an evidence list where Condition.evidence.concept = fever (CodeableConcept), Condition.evidence.concept = cough (CodeableConcept), and Condition.evidence.reference = bronchitis (reference to Condition)."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Condition.evidence"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <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="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ManifestationOrSymptom"/>
            </extension>
            <strength value="example"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/clinical-findings|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Condition.note">
          <path value="Condition.note"/>
          <short value="(ee Lisainfo / täpsustus kaasuvate haiguste kohta)"/>
          <definition
                      value="Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Condition.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="v2"/>
            <map value="NTE child of PRB"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value"/>
          </mapping>
        </element>
      </snapshot>
      <differential>
        <element id="Condition">
          <path value="Condition"/>
        </element>
        <element id="Condition.identifier">
          <path value="Condition.identifier"/>
          <short value="Kaasuvate haiguste identifikaator"/>
        </element>
        <element id="Condition.clinicalStatus">
          <path value="Condition.clinicalStatus"/>
          <short value="Kliiniline staatus (nt active, resolved, inactive)"/>
        </element>
        <element id="Condition.verificationStatus">
          <path value="Condition.verificationStatus"/>
          <short value="Kinnituse staatus (nt confirmed, provisional)"/>
        </element>
        <element id="Condition.category">
          <path value="Condition.category"/>
          <short value="Haiguse kategooria"/>
        </element>
        <element id="Condition.severity">
          <path value="Condition.severity"/>
          <short value="Haiguse raskusaste"/>
        </element>
        <element id="Condition.code">
          <path value="Condition.code"/>
          <short
                 value="(ee Kaasuvate haiguse kood RHK-10 järgi. NB! IGA HAIGUSE JAOKS RESURSS KORDUB, ühe alla ei saa mitut panna!!)"/>
          <min value="1"/>
          <binding>
            <strength value="preferred"/>
            <valueSet value="https://fhir.ee/ValueSet/rhk-10"/>
          </binding>
        </element>
        <element id="Condition.bodySite">
          <path value="Condition.bodySite"/>
          <max value="0"/>
        </element>
        <element id="Condition.subject">
          <path value="Condition.subject"/>
          <short
                 value="(ee Doonor või retsipient, partner või annetaja kellel kaasuv haigus esineb)"/>
          <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/mpi/StructureDefinition/ee-mpi-patient-verified"/>
          </type>
        </element>
        <element id="Condition.encounter">
          <path value="Condition.encounter"/>
          <max value="0"/>
        </element>
        <element id="Condition.onset[x]">
          <path value="Condition.onset[x]"/>
          <short value="(ee Millal haigus tuvastati)"/>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="Condition.abatement[x]">
          <path value="Condition.abatement[x]"/>
          <short value="(ee Millal haigus lõppes / taandus)"/>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="Condition.recordedDate">
          <path value="Condition.recordedDate"/>
          <short value="(ee Millal haigus kirja pandi)"/>
        </element>
        <element id="Condition.participant">
          <path value="Condition.participant"/>
          <short value="(ee Kes haiguse kirja pani)"/>
        </element>
        <element id="Condition.participant.actor">
          <path value="Condition.participant.actor"/>
          <short value="(ee Osaleja viide. NB! SPD viide)"/>
        </element>
        <element id="Condition.stage">
          <path value="Condition.stage"/>
          <max value="0"/>
        </element>
        <element id="Condition.evidence">
          <path value="Condition.evidence"/>
          <max value="0"/>
        </element>
        <element id="Condition.note">
          <path value="Condition.note"/>
          <short value="(ee Lisainfo / täpsustus kaasuvate haiguste kohta)"/>
        </element>
      </differential>
    </StructureDefinition>