DSTU2 FHIR Release 3 (STU)

This page is part of the FHIR Specification (v1.0.2: DSTU (v3.0.2: STU 2). 3). 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 R3 R2

Extension: Amount of time individual was exposed to Substance exposureDuration

Patient Care Work Group   Maturity Level : 1 Informative Use Context : Any

URL for this extension:


http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration

Status: draft. Extension maintained by: Health Level Seven, Inc / openEHR project

The amount of time the individual was exposed to the Substance.

Context of Use: Use on element: AllergyIntolerance.reaction

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

Extension Content

Summary

Name Flags Card. Type Description & Constraints doco
. . extension 0..1 Duration URL = http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration
Amount of time individual was exposed to Substance: exposureDuration: The amount of time the individual was exposed to the Substance.
Use on element: AllergyIntolerance.reaction

doco Documentation for this format

Fulle Full Structure

extension 0 .. 0 ∑ I A length of time qty-3: If a code for the unit is present, the system SHALL also be present drt-1: There SHALL be a code if there is a value and it SHALL be an expression
Name Flags Card. Type Description & Constraints doco
. . extension 0..1 Extension URL = http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration
Amount of time individual was exposed to Substance: exposureDuration: The amount of time the individual was exposed to the Substance.
Use on element: AllergyIntolerance.reaction
. . . url 1..1 uri "http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration"
. . valueQuantity . valueDuration 1..1 0..1 Duration Value of time. If system is present, it SHALL be UCUM. extension

doco Documentation for this format

XML Template

<!-- Amount of time individual was exposed to Substance -->

<!-- exposureDuration -->doco


<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration" >
  <!-- from Element: extension -->
 <</valueQuantity>

 <valueDuration><!-- 0..1 Duration Value of extension --></valueDuration>

</extension>

JSON Template

{ // 

{ // exposureDuration

  // from Element: extension
    "extension" : [ //  sliced by value:url  in the specified orderOpen
    ],

    "url" : "http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration", // R! 
    "

    "valueDuration" : { Duration } //Value of extension

  }

Summary

Name Flags Card. Type Description & Constraints doco
. . extension 0..1 Duration URL = http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration
Amount of time individual was exposed to Substance: exposureDuration: The amount of time the individual was exposed to the Substance.
Use on element: AllergyIntolerance.reaction

doco Documentation for this format

Full Structure

extension 0 .. 0 ∑ I A length of time qty-3: If a code for the unit is present, the system SHALL also be present drt-1: There SHALL be a code if there is a value and it SHALL be an expression
Name Flags Card. Type Description & Constraints doco
. . extension 0..1 Extension URL = http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration
Amount of time individual was exposed to Substance: exposureDuration: The amount of time the individual was exposed to the Substance.
Use on element: AllergyIntolerance.reaction
. . . url 1..1 uri "http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration"
. . valueQuantity . valueDuration 1..1 0..1 Duration Value of time. If system is present, it SHALL be UCUM. extension

doco Documentation for this format

XML Template

<!-- Amount of time individual was exposed to Substance -->

<!-- exposureDuration -->doco


<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration" >
  <!-- from Element: extension -->
 <</valueQuantity>

 <valueDuration><!-- 0..1 Duration Value of extension --></valueDuration>

</extension>

JSON Template

{ // 

{ // exposureDuration

  // from Element: extension
    "extension" : [ //  sliced by value:url  in the specified orderOpen
    ],

    "url" : "http://hl7.org/fhir/StructureDefinition/openEHR-exposureDuration", // R! 
    "

    "valueDuration" : { Duration } //Value of extension

  }

 

Constraints

  • qty-3 ele-1 : On Extension.valueQuantity: If All FHIR elements must have a code for the unit is present, the system SHALL also be present (xpath on f:Extension/f:valueQuantity: not(exists(f:code)) @value or exists(f:system) children (xpath: @value|f:*|h:div )
  • drt-1 ext-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. (xpath on f:Extension/f:valueQuantity: (f:code or not(f:value)) and (not(exists(f:system)) Must have either extensions or f:system/@value='http://unitsofmeasure.org') value[x], not both (xpath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) )