<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Condition" />
  <meta>
    <lastUpdated value="2019-11-01T09:29:23.356+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Summary" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="3" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pc" />
  </extension>
  <url value="https://fhir.kemkes.go.id/r4/StructureDefinition/Condition" />
  <version value="4.0.1" />
  <name value="Condition" />
  <status value="active" />
  <date value="2022-07-08T15:10:50.6856647+00:00" />
  <publisher value="Health Level Seven International (Patient Care)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/patientcare/index.cfm" />
    </telecom>
  </contact>
  <description value="A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </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="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern 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/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <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." />
      <constraint>
        <key value="con-5" />
        <severity value="error" />
        <human value="Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error" />
        <expression value="verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()" />
        <xpath value="not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))" />
        <source value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </constraint>
      <constraint>
        <key value="con-4" />
        <severity value="error" />
        <human value="If condition is abated, then clinicalStatus must be either inactive, resolved, or remission" />
        <expression value="abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()" />
        <xpath value="not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </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="Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis." />
        </extension>
        <key value="con-3" />
        <severity value="warning" />
        <human value="Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item" />
        <expression value="clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()" />
        <xpath value="exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))" />
        <source value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </constraint>
      <mapping>
        <identity value="workflow" />
        <map value="Event" />
      </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>
      <mapping>
        <identity value="rim" />
        <map value="Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value&lt;Diagnosis]" />
      </mapping>
    </element>
    <element id="Condition.identifier">
      <path value="Condition.identifier" />
      <short value="External Ids for this condition" />
      <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](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." />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.identifier" />
      </mapping>
      <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="active | recurrence | relapse | inactive | remission | resolved" />
      <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." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <condition value="con-3" />
      <condition value="con-4" />
      <condition value="con-5" />
      <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|4.0.1" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.status" />
      </mapping>
      <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&#xA;.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="unconfirmed | provisional | differential | confirmed | refuted | entered-in-error" />
      <definition value="The verification status to support the clinical status of the condition." />
      <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.&#xA;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." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <condition value="con-3" />
      <condition value="con-5" />
      <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|4.0.1" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.status" />
      </mapping>
      <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&#xA;.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="problem-list-item | encounter-diagnosis" />
      <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." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConditionCategory" />
        </extension>
        <strength value="extensible" />
        <description value="A category assigned to the condition." />
        <valueSet value="http://hl7.org/fhir/ValueSet/condition-category" />
      </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="Subjective severity of condition" />
      <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." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <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" />
      </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="Identification of the condition, problem or diagnosis" />
      <definition value="Identification of the condition, problem or diagnosis." />
      <requirements value="0..1 to account for primarily narrative only resources." />
      <alias value="type" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConditionKind" />
        </extension>
        <strength value="example" />
        <description value="Identification of the condition or diagnosis." />
        <valueSet value="http://hl7.org/fhir/ValueSet/condition-code" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.what[x]" />
      </mapping>
      <mapping>
        <identity value="sct-concept" />
        <map value="code 246090004 |Associated finding| (&lt; 404684003 |Clinical finding| MINUS&#xA;&lt;&lt; 420134006 |Propensity to adverse reactions| MINUS &#xA;&lt;&lt; 473010000 |Hypersensitivity condition| MINUS &#xA;&lt;&lt; 79899007 |Drug interaction| MINUS&#xA;&lt;&lt; 69449002 |Drug action| MINUS &#xA;&lt;&lt; 441742003 |Evaluation finding| MINUS &#xA;&lt;&lt; 307824009 |Administrative status| MINUS &#xA;&lt;&lt; 385356007 |Tumor stage finding|) &#xA;OR &lt; 413350009 |Finding with explicit context|&#xA;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 BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  May be a summary code, or a reference to a very precise definition of the location, or both." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BodySite" />
        </extension>
        <strength value="example" />
        <description value="Codes describing anatomical locations. May include laterality." />
        <valueSet value="http://hl7.org/fhir/ValueSet/body-site" />
      </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="Who has the condition?" />
      <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" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.subject" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="PID-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="Condition.encounter">
      <path value="Condition.encounter" />
      <short value="Encounter created as part of" />
      <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;." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.context" />
      </mapping>
      <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="Estimated or actual date,  date-time, or age" />
      <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." />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.occurrence[x]" />
      </mapping>
      <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="When in resolution/remission" />
      <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; - 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." />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="string" />
      </type>
      <condition value="con-4" />
      <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="Date record was first recorded" />
      <definition value="The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date." />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <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.recorder">
      <path value="Condition.recorder" />
      <short value="Who recorded the condition" />
      <definition value="Individual who recorded the record and takes responsibility for its content." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.author" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=AUT].role" />
      </mapping>
    </element>
    <element id="Condition.asserter">
      <path value="Condition.asserter" />
      <short value="Person who asserts this condition" />
      <definition value="Individual who is making the condition statement." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.source" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="REL-7.1 identifier + REL-7.12 type code" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=INF].role" />
      </mapping>
    </element>
    <element id="Condition.stage">
      <path value="Condition.stage" />
      <short value="Stage/grade, usually assessed formally" />
      <definition value="Clinical stage or grade of a condition. May include formal severity assessments." />
      <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()" />
        <xpath value="exists(f:summary) or exists(f:assessment)" />
        <source value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </constraint>
      <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.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;. The determination of the stage is disease-specific." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <condition value="con-1" />
      <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" />
      </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." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ClinicalImpression" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
      </type>
      <condition value="con-1" />
      <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." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <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" />
      </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" />
      <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="The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both." />
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="con-2" />
        <severity value="error" />
        <human value="evidence SHALL have code or details" />
        <expression value="code.exists() or detail.exists()" />
        <xpath value="exists(f:code) or exists(f:detail)" />
        <source value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]" />
      </mapping>
    </element>
    <element id="Condition.evidence.code">
      <path value="Condition.evidence.code" />
      <short value="Manifestation/symptom" />
      <definition value="A manifestation or symptom that led to the recording of this condition." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <condition value="con-2" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ManifestationOrSymptom" />
        </extension>
        <strength value="example" />
        <description value="Codes that describe the manifestation or symptoms of a condition." />
        <valueSet value="http://hl7.org/fhir/ValueSet/manifestation-or-symptom" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.reasonCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="sct-concept" />
        <map value="&lt; 404684003 |Clinical finding|" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="[code=&quot;diagnosis&quot;].value" />
      </mapping>
    </element>
    <element id="Condition.evidence.detail">
      <path value="Condition.evidence.detail" />
      <short value="Supporting information found elsewhere" />
      <definition value="Links to other relevant information, including pathology reports." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <condition value="con-2" />
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".self" />
      </mapping>
    </element>
    <element id="Condition.note">
      <path value="Condition.note" />
      <short value="Additional information about the Condition" />
      <definition value="Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis." />
      <type>
        <code value="Annotation" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.note" />
      </mapping>
      <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>
  </differential>
</StructureDefinition>