Connectathon 11 Snapshot

This page is part of the FHIR Specification (v1.2.0: STU 3 Draft). 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: Age that the allergy or intolerance resolved

URL for this extension:

http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge

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

The estimated patient age at which the allergy or intolerance resolved. Should be specified only if the status is resolved.

Context of Use: Use on element: AllergyIntolerance

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

Extension Content

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..1AgeURL = http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge
Age that the allergy or intolerance resolved: The estimated patient age at which the allergy or intolerance resolved. Should be specified only if the status is resolved.
Use on element: AllergyIntolerance

doco Documentation for this format

Fulle Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..1ExtensionURL = http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge
Age that the allergy or intolerance resolved: The estimated patient age at which the allergy or intolerance resolved. Should be specified only if the status is resolved.
Use on element: AllergyIntolerance
... extension 0..0
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge"
... valueQuantity I1..1AgeValue of extension
qty-3: If a code for the unit is present, the system SHALL also be present
age-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. If value is present, it SHALL be positive.

doco Documentation for this format

XML Template

<!-- Age that the allergy or intolerance resolved -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge" >
  <!-- from Element: extension -->
 <valueQuantity><!-- ?? 1..1 Quantity Value of extension --></valueQuantity>
</extension>

JSON Template

{ // Age that the allergy or intolerance resolved
  // from Element: extension
    "url" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge", // R! 
    "valueQuantity" : { Quantity(Age) } // C? R! Value of extension
  }

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..1AgeURL = http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge
Age that the allergy or intolerance resolved: The estimated patient age at which the allergy or intolerance resolved. Should be specified only if the status is resolved.
Use on element: AllergyIntolerance

doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..1ExtensionURL = http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge
Age that the allergy or intolerance resolved: The estimated patient age at which the allergy or intolerance resolved. Should be specified only if the status is resolved.
Use on element: AllergyIntolerance
... extension 0..0
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge"
... valueQuantity I1..1AgeValue of extension
qty-3: If a code for the unit is present, the system SHALL also be present
age-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. If value is present, it SHALL be positive.

doco Documentation for this format

XML Template

<!-- Age that the allergy or intolerance resolved -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge" >
  <!-- from Element: extension -->
 <valueQuantity><!-- ?? 1..1 Quantity Value of extension --></valueQuantity>
</extension>

JSON Template

{ // Age that the allergy or intolerance resolved
  // from Element: extension
    "url" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge", // R! 
    "valueQuantity" : { Quantity(Age) } // C? R! Value of extension
  }

 

Constraints

  • qty-3: On Extension.valueQuantity: If a code for the unit is present, the system SHALL also be present (xpath on f:Extension/f:valueQuantity: not(exists(f:code)) or exists(f:system))
  • age-1: On Extension.valueQuantity: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. If value is present, it SHALL be positive. (xpath on f:Extension/f:valueQuantity: (f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org') and not(contains(f:value/@value, '-')))