tz-code.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="tz-code" /> 4 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"> 5 <valueCode value="fhir" /> 6 </extension> 7 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"> 8 <valueInteger value="1" /> 9 </extension> 10 <url value="http://hl7.org/fhir/StructureDefinition/tz-code" /> 11 <version value="4.0.1" /> 12 <name value="Timezone Code" /> 13 <title value="An IANA timezone code for the timezone offset per BCP 175" /> 14 <status value="draft" /> 15 <date value="2013-12-05" /> 16 <publisher value="Health Level Seven International (FHIR Infrastructure)" /> 17 <contact> 18 <telecom> 19 <system value="url" /> 20 <value value="http://www.hl7.org/Special/committees/fiwg" /> 21 </telecom> 22 </contact> 23 <description value="An IANA timezone code for the timezone offset per [BCP 175](https://www.iana.org/go/rfc6557). The offset is specified as part of a dateTime/instant (or using the tzOffset extension on a date if necessary). The timezone code may also be provided to allow for human display of the location associated with the offset." /> 24 <fhirVersion value="4.0.1" /> 25 <mapping> 26 <identity value="rim" /> 27 <uri value="http://hl7.org/v3" /> 28 <name value="RIM Mapping" /> 29 </mapping> 30 <kind value="complex-type" /> 31 <abstract value="false" /> 32 <context> 33 <type value="element" /> 34 <expression value="date" /> 35 </context> 36 <context> 37 <type value="element" /> 38 <expression value="dateTime" /> 39 </context> 40 <context> 41 <type value="element" /> 42 <expression value="instant" /> 43 </context> 44 <type value="Extension" /> 45 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 46 <derivation value="constraint" /> 47 <snapshot> 48 <element id="Extension"> 49 <path value="Extension" /> 50 <short value="IANA Timezone Code per BCP 175" /> 51 <definition value="An IANA timezone code for the timezone offset per [BCP 175](https://www.iana.org/go/rfc6557). The offset is specified as part of a dateTime/instant (or using the tzOffset extension on a date if necessary). The timezone code may also be provided to allow for human display of the location associated with the offset." /> 52 <comment value="See [https://www.iana.org/time-zones](https://www.iana.org/time-zones)." /> 53 <min value="0" /> 54 <max value="1" /> 55 <base> 56 <path value="Extension" /> 57 <min value="0" /> 58 <max value="*" /> 59 </base> 60 <condition value="ele-1" /> 61 <constraint> 62 <key value="ele-1" /> 63 <severity value="error" /> 64 <human value="All FHIR elements must have a @value or children" /> 65 <expression value="hasValue() or (children().count() > id.count())" /> 66 <xpath value="@value|f:*|h:div" /> 67 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 68 </constraint> 69 <constraint> 70 <key value="ext-1" /> 71 <severity value="error" /> 72 <human value="Must have either extensions or value[x], not both" /> 73 <expression value="extension.exists() != value.exists()" /> 74 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 75 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 76 </constraint> 77 <isModifier value="false" /> 78 </element> 79 <element id="Extension.id"> 80 <path value="Extension.id" /> 81 <representation value="xmlAttr" /> 82 <short value="Unique id for inter-element referencing" /> 83 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 84 <min value="0" /> 85 <max value="1" /> 86 <base> 87 <path value="Element.id" /> 88 <min value="0" /> 89 <max value="1" /> 90 </base> 91 <type> 92 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 93 <valueUrl value="string" /> 94 </extension> 95 <code value="http://hl7.org/fhirpath/System.String" /> 96 </type> 97 <isModifier value="false" /> 98 <isSummary value="false" /> 99 <mapping> 100 <identity value="rim" /> 101 <map value="n/a" /> 102 </mapping> 103 </element> 104 <element id="Extension.extension"> 105 <path value="Extension.extension" /> 106 <slicing> 107 <discriminator> 108 <type value="value" /> 109 <path value="url" /> 110 </discriminator> 111 <description value="Extensions are always sliced by (at least) url" /> 112 <rules value="open" /> 113 </slicing> 114 <short value="Extension" /> 115 <definition value="An Extension" /> 116 <min value="0" /> 117 <max value="0" /> 118 <base> 119 <path value="Element.extension" /> 120 <min value="0" /> 121 <max value="*" /> 122 </base> 123 <type> 124 <code value="Extension" /> 125 </type> 126 <constraint> 127 <key value="ele-1" /> 128 <severity value="error" /> 129 <human value="All FHIR elements must have a @value or children" /> 130 <expression value="hasValue() or (children().count() > id.count())" /> 131 <xpath value="@value|f:*|h:div" /> 132 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 133 </constraint> 134 <constraint> 135 <key value="ext-1" /> 136 <severity value="error" /> 137 <human value="Must have either extensions or value[x], not both" /> 138 <expression value="extension.exists() != value.exists()" /> 139 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 140 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 141 </constraint> 142 <isModifier value="false" /> 143 <isSummary value="false" /> 144 </element> 145 <element id="Extension.url"> 146 <path value="Extension.url" /> 147 <representation value="xmlAttr" /> 148 <short value="identifies the meaning of the extension" /> 149 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 150 <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." /> 151 <min value="1" /> 152 <max value="1" /> 153 <base> 154 <path value="Extension.url" /> 155 <min value="1" /> 156 <max value="1" /> 157 </base> 158 <type> 159 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 160 <valueUrl value="uri" /> 161 </extension> 162 <code value="http://hl7.org/fhirpath/System.String" /> 163 </type> 164 <fixedUri value="http://hl7.org/fhir/StructureDefinition/tz-code" /> 165 <isModifier value="false" /> 166 <isSummary value="false" /> 167 <mapping> 168 <identity value="rim" /> 169 <map value="N/A" /> 170 </mapping> 171 </element> 172 <element id="Extension.value[x]"> 173 <path value="Extension.value[x]" /> 174 <short value="Value of extension" /> 175 <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." /> 176 <min value="1" /> 177 <max value="1" /> 178 <base> 179 <path value="Extension.value[x]" /> 180 <min value="0" /> 181 <max value="1" /> 182 </base> 183 <type> 184 <code value="code" /> 185 </type> 186 <constraint> 187 <key value="ele-1" /> 188 <severity value="error" /> 189 <human value="All FHIR elements must have a @value or children" /> 190 <expression value="hasValue() or (children().count() > id.count())" /> 191 <xpath value="@value|f:*|h:div" /> 192 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 193 </constraint> 194 <isModifier value="false" /> 195 <isSummary value="false" /> 196 <binding> 197 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 198 <valueString value="IANATimezone" /> 199 </extension> 200 <strength value="required" /> 201 <description value="IANA Timezones (BCP 175)." /> 202 <valueSet value="http://hl7.org/fhir/ValueSet/timezones|4.0.1" /> 203 </binding> 204 <mapping> 205 <identity value="rim" /> 206 <map value="N/A" /> 207 </mapping> 208 </element> 209 </snapshot> 210 <differential> 211 <element id="Extension"> 212 <path value="Extension" /> 213 <short value="IANA Timezone Code per BCP 175" /> 214 <definition value="An IANA timezone code for the timezone offset per [BCP 175](https://www.iana.org/go/rfc6557). The offset is specified as part of a dateTime/instant (or using the tzOffset extension on a date if necessary). The timezone code may also be provided to allow for human display of the location associated with the offset." /> 215 <comment value="See [https://www.iana.org/time-zones](https://www.iana.org/time-zones)." /> 216 <min value="0" /> 217 <max value="1" /> 218 </element> 219 <element id="Extension.extension"> 220 <path value="Extension.extension" /> 221 <max value="0" /> 222 </element> 223 <element id="Extension.url"> 224 <path value="Extension.url" /> 225 <fixedUri value="http://hl7.org/fhir/StructureDefinition/tz-code" /> 226 </element> 227 <element id="Extension.value[x]"> 228 <path value="Extension.value[x]" /> 229 <min value="1" /> 230 <type> 231 <code value="code" /> 232 </type> 233 <binding> 234 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 235 <valueString value="IANATimezone" /> 236 </extension> 237 <strength value="required" /> 238 <description value="IANA Timezones (BCP 175)." /> 239 <valueSet value="http://hl7.org/fhir/ValueSet/timezones|4.0.1" /> 240 </binding> 241 </element> 242 </differential> 243 </StructureDefinition>