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 . Page versions: R4B R4 R3 R2

Extension: Precedent for this Condition

URL for this extension:

http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing

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

Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.

Context of Use: Use on element: Condition

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/condition-occurredFollowing
Precedent for this Condition: Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.
Use on element: Condition
... code0..1CodeableConceptCode that identifies the target of this relationship. The code takes the place of a detailed instance target.
... detail0..1Reference(Condition | Procedure | MedicationAdministration | Immunization | MedicationStatement)Target of the relationship.

doco Documentation for this format

Fulle Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing
Precedent for this Condition: Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.
Use on element: Condition
... extension 0..1ExtensionRelationship target by means of a predefined code
.... extension 0..0
.... url 1..1uri"code"
.... valueCodeableConcept 1..1CodeableConceptValue of extension
Binding: Condition Predecessor Codes (example)
... extension 0..1ExtensionRelationship target resource
.... extension 0..0
.... url 1..1uri"detail"
.... value[x] 1..1Reference(Condition | Procedure | MedicationAdministration | Immunization | MedicationStatement)Value of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- Precedent for this Condition -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing" >
 <-- extension sliced by url  in the specified orderOpen-->
 <extension url="code"> 0..1 Extension  <!-- 0..1 Relationship target by means of a predefined code -->
  <valueCodeableConcept><!-- 1..1 CodeableConcept Value of extension --></valueCodeableConcept>
 </extension>
 <extension url="detail"> 0..1 Extension  <!-- 0..1 Relationship target resource -->
  <value[x]><!-- 1..1 Reference(Condition)|Reference(Procedure)|Reference(MedicationAdministration)|
    Reference(Immunization)|Reference(MedicationStatement) Value of extension --></value[x]>
 </extension>
</extension>

JSON Template

{ // Precedent for this Condition
    "extension" : [ //  sliced by url  in the specified orderOpen
      { // Relationship target by means of a predefined code //
        // from Element: extension
        "url" : "code", // R! 
        "valueCodeableConcept" : { CodeableConcept } // R! Value of extension
      },
      { // Relationship target resource //
        // from Element: extension
        "url" : "detail", // R! 
// value[x]: Value of extension. One of these 5:
        "valueReference" : { Reference(Condition) } // R! Value of extension
        "valueReference" : { Reference(Procedure) }, // R! Value of extension
        "valueReference" : { Reference(MedicationAdministration) }, // R! Value of extension
        "valueReference" : { Reference(Immunization) }, // R! Value of extension
        "valueReference" : { Reference(MedicationStatement) }, // R! Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing", // R! 
// value[x]: Value of extension. One of these 38:
  }

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing
Precedent for this Condition: Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.
Use on element: Condition
... code0..1CodeableConceptCode that identifies the target of this relationship. The code takes the place of a detailed instance target.
... detail0..1Reference(Condition | Procedure | MedicationAdministration | Immunization | MedicationStatement)Target of the relationship.

doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing
Precedent for this Condition: Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.
Use on element: Condition
... extension 0..1ExtensionRelationship target by means of a predefined code
.... extension 0..0
.... url 1..1uri"code"
.... valueCodeableConcept 1..1CodeableConceptValue of extension
Binding: Condition Predecessor Codes (example)
... extension 0..1ExtensionRelationship target resource
.... extension 0..0
.... url 1..1uri"detail"
.... value[x] 1..1Reference(Condition | Procedure | MedicationAdministration | Immunization | MedicationStatement)Value of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- Precedent for this Condition -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing" >
 <-- extension sliced by url  in the specified orderOpen-->
 <extension url="code"> 0..1 Extension  <!-- 0..1 Relationship target by means of a predefined code -->
  <valueCodeableConcept><!-- 1..1 CodeableConcept Value of extension --></valueCodeableConcept>
 </extension>
 <extension url="detail"> 0..1 Extension  <!-- 0..1 Relationship target resource -->
  <value[x]><!-- 1..1 Reference(Condition)|Reference(Procedure)|Reference(MedicationAdministration)|
    Reference(Immunization)|Reference(MedicationStatement) Value of extension --></value[x]>
 </extension>
</extension>

JSON Template

{ // Precedent for this Condition
    "extension" : [ //  sliced by url  in the specified orderOpen
      { // Relationship target by means of a predefined code //
        // from Element: extension
        "url" : "code", // R! 
        "valueCodeableConcept" : { CodeableConcept } // R! Value of extension
      },
      { // Relationship target resource //
        // from Element: extension
        "url" : "detail", // R! 
// value[x]: Value of extension. One of these 5:
        "valueReference" : { Reference(Condition) } // R! Value of extension
        "valueReference" : { Reference(Procedure) }, // R! Value of extension
        "valueReference" : { Reference(MedicationAdministration) }, // R! Value of extension
        "valueReference" : { Reference(Immunization) }, // R! Value of extension
        "valueReference" : { Reference(MedicationStatement) }, // R! Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing", // R! 
// value[x]: Value of extension. One of these 38:
  }

 

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')]))