Current Build

Extension: conditions

FHIR Infrastructure Work Group Maturity Level: 1InformativeUse Context: Any

URL for this extension:

http://hl7.org/fhir/StructureDefinition/dosage-conditions

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

Conditions that apply to this set of dosing instructions.

Context of Use: Use on Element ID Dosage

Extension Content

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. conditions0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/dosage-conditions
conditions: Conditions that apply to this set of dosing instructions.


Use on Element ID Dosage
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"goal"
..... valueReference 0..1Reference(Goal)Value of extension
.... url 1..1uri"meetGoal"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"trigger"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"whenTrigger"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"doesNotOccur"
..... valueBoolean 0..1booleanValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"condition"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"precondition"
.... value[x] 0..0
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/dosage-conditions"
... value[x] 0..0

doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/dosage-conditions
conditions: Conditions that apply to this set of dosing instructions.


Use on Element ID Dosage
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"goal"
..... valueReference 0..1Reference(Goal)Value of extension
.... url 1..1uri"meetGoal"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"trigger"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"whenTrigger"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"doesNotOccur"
..... valueBoolean 0..1booleanValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"condition"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"precondition"
.... value[x] 0..0
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/dosage-conditions"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- conditions -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/dosage-conditions" >
 <-- extension sliced by value:url  in the specified orderOpen-->
 <extension url="meetGoal"> 0..* Extension  <!-- 0..* Extension -->
  <value[x]><!-- 0..0 base64Binary|boolean|canonical|code|
    date|dateTime|decimal|id|instant|integer|markdown|oid|positiveInt|string|
    time|unsignedInt|uri|url|uuid|Address|Age|Annotation|Attachment|
    CodeableConcept|Coding|ContactPoint|Count|Distance|Duration|HumanName|
    Identifier|Money|Period|Quantity|Range|Ratio|Reference|SampledData|Signature|
    Timing|ContactDetail|Contributor|DataRequirement|Expression|
    ParameterDefinition|RelatedArtifact|TriggerDefinition|UsageContext|Dosage 
      Value of extension --></value[x]>
 </extension>
 <extension url="whenTrigger"> 0..* Extension  <!-- 0..* Extension -->
  <value[x]><!-- 0..0 base64Binary|boolean|canonical|code|
    date|dateTime|decimal|id|instant|integer|markdown|oid|positiveInt|string|
    time|unsignedInt|uri|url|uuid|Address|Age|Annotation|Attachment|
    CodeableConcept|Coding|ContactPoint|Count|Distance|Duration|HumanName|
    Identifier|Money|Period|Quantity|Range|Ratio|Reference|SampledData|Signature|
    Timing|ContactDetail|Contributor|DataRequirement|Expression|
    ParameterDefinition|RelatedArtifact|TriggerDefinition|UsageContext|Dosage 
      Value of extension --></value[x]>
 </extension>
 <extension url="precondition"> 0..* Extension  <!-- 0..* Extension -->
  <value[x]><!-- 0..0 base64Binary|boolean|canonical|code|
    date|dateTime|decimal|id|instant|integer|markdown|oid|positiveInt|string|
    time|unsignedInt|uri|url|uuid|Address|Age|Annotation|Attachment|
    CodeableConcept|Coding|ContactPoint|Count|Distance|Duration|HumanName|
    Identifier|Money|Period|Quantity|Range|Ratio|Reference|SampledData|Signature|
    Timing|ContactDetail|Contributor|DataRequirement|Expression|
    ParameterDefinition|RelatedArtifact|TriggerDefinition|UsageContext|Dosage 
      Value of extension --></value[x]>
 </extension>
</extension>

JSON Template

{ // conditions
    "extension" : [ //  sliced by value:url  in the specified order, Open 
      { // Extension //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "meetGoal" // R! 
// value[x]: Value of extension. One of these 49:
      },
      { // Extension //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "whenTrigger" // R! 
// value[x]: Value of extension. One of these 49:
      },
      { // Extension //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "precondition" // R! 
// value[x]: Value of extension. One of these 49:
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/dosage-conditions", // R! 
// value[x]: Value of extension. One of these 49:
  }

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. conditions0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/dosage-conditions
conditions: Conditions that apply to this set of dosing instructions.


Use on Element ID Dosage
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"goal"
..... valueReference 0..1Reference(Goal)Value of extension
.... url 1..1uri"meetGoal"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"trigger"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"whenTrigger"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"doesNotOccur"
..... valueBoolean 0..1booleanValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"condition"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"precondition"
.... value[x] 0..0
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/dosage-conditions"
... value[x] 0..0

doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/dosage-conditions
conditions: Conditions that apply to this set of dosing instructions.


Use on Element ID Dosage
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"goal"
..... valueReference 0..1Reference(Goal)Value of extension
.... url 1..1uri"meetGoal"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"offset"
..... valueDuration 0..1DurationValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"trigger"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"whenTrigger"
.... value[x] 0..0
... extension 0..*ExtensionExtension
.... extension 0..0
.... extension 0..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"doesNotOccur"
..... valueBoolean 0..1booleanValue of extension
.... extension 1..1ExtensionExtension
..... extension 0..0
..... url 1..1uri"condition"
..... valueReference 1..1Reference(Procedure | MedicationAdministration | Observation)Value of extension
.... url 1..1uri"precondition"
.... value[x] 0..0
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/dosage-conditions"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- conditions -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/dosage-conditions" >
 <-- extension sliced by value:url  in the specified orderOpen-->
 <extension url="meetGoal"> 0..* Extension  <!-- 0..* Extension -->
  <value[x]><!-- 0..0 base64Binary|boolean|canonical|code|
    date|dateTime|decimal|id|instant|integer|markdown|oid|positiveInt|string|
    time|unsignedInt|uri|url|uuid|Address|Age|Annotation|Attachment|
    CodeableConcept|Coding|ContactPoint|Count|Distance|Duration|HumanName|
    Identifier|Money|Period|Quantity|Range|Ratio|Reference|SampledData|Signature|
    Timing|ContactDetail|Contributor|DataRequirement|Expression|
    ParameterDefinition|RelatedArtifact|TriggerDefinition|UsageContext|Dosage 
      Value of extension --></value[x]>
 </extension>
 <extension url="whenTrigger"> 0..* Extension  <!-- 0..* Extension -->
  <value[x]><!-- 0..0 base64Binary|boolean|canonical|code|
    date|dateTime|decimal|id|instant|integer|markdown|oid|positiveInt|string|
    time|unsignedInt|uri|url|uuid|Address|Age|Annotation|Attachment|
    CodeableConcept|Coding|ContactPoint|Count|Distance|Duration|HumanName|
    Identifier|Money|Period|Quantity|Range|Ratio|Reference|SampledData|Signature|
    Timing|ContactDetail|Contributor|DataRequirement|Expression|
    ParameterDefinition|RelatedArtifact|TriggerDefinition|UsageContext|Dosage 
      Value of extension --></value[x]>
 </extension>
 <extension url="precondition"> 0..* Extension  <!-- 0..* Extension -->
  <value[x]><!-- 0..0 base64Binary|boolean|canonical|code|
    date|dateTime|decimal|id|instant|integer|markdown|oid|positiveInt|string|
    time|unsignedInt|uri|url|uuid|Address|Age|Annotation|Attachment|
    CodeableConcept|Coding|ContactPoint|Count|Distance|Duration|HumanName|
    Identifier|Money|Period|Quantity|Range|Ratio|Reference|SampledData|Signature|
    Timing|ContactDetail|Contributor|DataRequirement|Expression|
    ParameterDefinition|RelatedArtifact|TriggerDefinition|UsageContext|Dosage 
      Value of extension --></value[x]>
 </extension>
</extension>

JSON Template

{ // conditions
    "extension" : [ //  sliced by value:url  in the specified order, Open 
      { // Extension //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "meetGoal" // R! 
// value[x]: Value of extension. One of these 49:
      },
      { // Extension //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "whenTrigger" // R! 
// value[x]: Value of extension. One of these 49:
      },
      { // Extension //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "precondition" // R! 
// value[x]: Value of extension. One of these 49:
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/dosage-conditions", // R! 
// value[x]: Value of extension. One of these 49:
  }

 

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