STU 3 Ballot

This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Extension: Other associated conditions

URL for this extension:

http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition

Status: draft. Extension maintained by: Health Level Seven, Inc. - FHIR WG

The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.

Context of Use: Use on element: Encounter

usage info: insert a list of places where this extension is used

Extension Content

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition
Other associated conditions: The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.
Use on element: Encounter
... condition0..1Reference(Condition)The reference to conditions related to this encounter, aside from the primary condition.
... role0..1CodeableConceptThe role of the condition within this encounter, e.g. chief complaint, admission diagnosis, discharge diagnosis, comorbidity.

doco Documentation for this format

Fulle Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition
Other associated conditions: The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.
Use on element: Encounter
... extension 0..1ExtensionA condition related to this encounter
.... extension 0..0
.... url 1..1uri"condition"
.... valueReference 1..1Reference(Condition)Detailed information about conditions, problems or diagnoses
... extension 0..1ExtensionThe role of the condition
.... extension 0..0
.... url 1..1uri"role"
.... valueCodeableConcept 1..1CodeableConceptValue of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition"
... valueReference 0..1Reference(Condition)Detailed information about conditions, problems or diagnoses

doco Documentation for this format

XML Template

<!-- Other associated conditions -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition" >
 <-- extension sliced by url  in the specified orderOpen-->
 <extension url="condition"> 0..1 Extension  <!-- 0..1 A condition related to this encounter -->
  <valueReference><!-- 1..1 Reference(Condition) 
      Detailed information about conditions, problems or diagnoses --></valueReference>
 </extension>
 <extension url="role"> 0..1 Extension  <!-- 0..1 The role of the condition -->
  <valueCodeableConcept><!-- 1..1 CodeableConcept 
      Value of extension --></valueCodeableConcept>
 </extension>
 <valueReference><!-- 0..1 Reference(Condition) 
     Detailed information about conditions, problems or diagnoses --></valueReference>
</extension>

JSON Template

{ // Other associated conditions
    "extension" : [ //  sliced by url  in the specified orderOpen
      { // A condition related to this encounter //
        // from Element: extension
        "url" : "condition", // R! 
        "valueReference" : { Reference(Condition) } // R! Detailed information about conditions, problems or diagnoses
      },
      { // The role of the condition //
        // from Element: extension
        "url" : "role", // R! 
        "valueCodeableConcept" : { CodeableConcept } // R! Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition", // R! 
    "valueReference" : { Reference(Condition) }, //Detailed information about conditions, problems or diagnoses
  }

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition
Other associated conditions: The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.
Use on element: Encounter
... condition0..1Reference(Condition)The reference to conditions related to this encounter, aside from the primary condition.
... role0..1CodeableConceptThe role of the condition within this encounter, e.g. chief complaint, admission diagnosis, discharge diagnosis, comorbidity.

doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition
Other associated conditions: The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.
Use on element: Encounter
... extension 0..1ExtensionA condition related to this encounter
.... extension 0..0
.... url 1..1uri"condition"
.... valueReference 1..1Reference(Condition)Detailed information about conditions, problems or diagnoses
... extension 0..1ExtensionThe role of the condition
.... extension 0..0
.... url 1..1uri"role"
.... valueCodeableConcept 1..1CodeableConceptValue of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition"
... valueReference 0..1Reference(Condition)Detailed information about conditions, problems or diagnoses

doco Documentation for this format

XML Template

<!-- Other associated conditions -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition" >
 <-- extension sliced by url  in the specified orderOpen-->
 <extension url="condition"> 0..1 Extension  <!-- 0..1 A condition related to this encounter -->
  <valueReference><!-- 1..1 Reference(Condition) 
      Detailed information about conditions, problems or diagnoses --></valueReference>
 </extension>
 <extension url="role"> 0..1 Extension  <!-- 0..1 The role of the condition -->
  <valueCodeableConcept><!-- 1..1 CodeableConcept 
      Value of extension --></valueCodeableConcept>
 </extension>
 <valueReference><!-- 0..1 Reference(Condition) 
     Detailed information about conditions, problems or diagnoses --></valueReference>
</extension>

JSON Template

{ // Other associated conditions
    "extension" : [ //  sliced by url  in the specified orderOpen
      { // A condition related to this encounter //
        // from Element: extension
        "url" : "condition", // R! 
        "valueReference" : { Reference(Condition) } // R! Detailed information about conditions, problems or diagnoses
      },
      { // The role of the condition //
        // from Element: extension
        "url" : "role", // R! 
        "valueCodeableConcept" : { CodeableConcept } // R! Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition", // R! 
    "valueReference" : { Reference(Condition) }, //Detailed information about conditions, problems or diagnoses
  }

 

Constraints

  • ele-1: All FHIR elements must have a @value or children (xpath: @value|f:*|h:div)
  • ext-1: Must have either extensions or value[x], not both (xpath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]))