StructureDefinition-ch-core-range-with-emed-units.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="ch-core-range-with-emed-units" /> 4 <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-range-with-emed-units" /> 5 <version value="6.0.0-ballot-ci-build" /> 6 <name value="CHCoreRangeWithEmedUnits" /> 7 <title value="CH Core Range with EMED Units" /> 8 <status value="active" /> 9 <date value="2025-01-29T14:29:51.0000000+01:00" /> 10 <publisher value="HL7 Switzerland" /> 11 <contact> 12 <name value="HL7 Switzerland" /> 13 <telecom> 14 <system value="url" /> 15 <value value="https://www.hl7.ch/" /> 16 </telecom> 17 </contact> 18 <contact> 19 <name value="HL7 Switzerland" /> 20 <telecom> 21 <system value="url" /> 22 <value value="https://www.hl7.ch/" /> 23 <use value="work" /> 24 </telecom> 25 </contact> 26 <description value="A range with defined quantity/units" /> 27 <jurisdiction> 28 <coding> 29 <system value="urn:iso:std:iso:3166" /> 30 <code value="CH" /> 31 </coding> 32 </jurisdiction> 33 <copyright value="CC0-1.0" /> 34 <fhirVersion value="4.0.1" /> 35 <mapping> 36 <identity value="v2" /> 37 <uri value="http://hl7.org/v2" /> 38 <name value="HL7 v2 Mapping" /> 39 </mapping> 40 <mapping> 41 <identity value="rim" /> 42 <uri value="http://hl7.org/v3" /> 43 <name value="RIM Mapping" /> 44 </mapping> 45 <kind value="complex-type" /> 46 <abstract value="false" /> 47 <type value="Range" /> 48 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Range" /> 49 <derivation value="constraint" /> 50 <snapshot> 51 <element id="Range"> 52 <path value="Range" /> 53 <short value="Set of values bounded by low and high" /> 54 <definition value="A set of ordered Quantities defined by a low and high limit." /> 55 <comment value="The stated low and high value are assumed to have arbitrarily high precision when it comes to determining which values are in the range. I.e. 1.99 is not in the range 2 -> 3." /> 56 <min value="0" /> 57 <max value="*" /> 58 <base> 59 <path value="Range" /> 60 <min value="0" /> 61 <max value="*" /> 62 </base> 63 <condition value="ele-1" /> 64 <constraint> 65 <key value="ele-1" /> 66 <severity value="error" /> 67 <human value="All FHIR elements must have a @value or children" /> 68 <expression value="hasValue() or (children().count() > id.count())" /> 69 <xpath value="@value|f:*|h:div" /> 70 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 71 </constraint> 72 <constraint> 73 <key value="rng-2" /> 74 <severity value="error" /> 75 <human value="If present, low SHALL have a lower value than high" /> 76 <expression value="low.empty() or high.empty() or (low <= high)" /> 77 <xpath value="not(exists(f:low/f:value/@value)) or not(exists(f:high/f:value/@value)) or (number(f:low/f:value/@value) <= number(f:high/f:value/@value))" /> 78 <source value="http://hl7.org/fhir/StructureDefinition/Range" /> 79 </constraint> 80 <isModifier value="false" /> 81 <mapping> 82 <identity value="rim" /> 83 <map value="n/a" /> 84 </mapping> 85 <mapping> 86 <identity value="v2" /> 87 <map value="NR and also possibly SN (but see also quantity)" /> 88 </mapping> 89 <mapping> 90 <identity value="rim" /> 91 <map value="IVL<QTY[not(type="TS")]> [lowClosed="true" and highClosed="true"]or URG<QTY[not(type="TS")]>" /> 92 </mapping> 93 </element> 94 <element id="Range.id"> 95 <path value="Range.id" /> 96 <representation value="xmlAttr" /> 97 <short value="Unique id for inter-element referencing" /> 98 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 99 <min value="0" /> 100 <max value="1" /> 101 <base> 102 <path value="Element.id" /> 103 <min value="0" /> 104 <max value="1" /> 105 </base> 106 <type> 107 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 108 <valueUrl value="string" /> 109 </extension> 110 <code value="http://hl7.org/fhirpath/System.String" /> 111 </type> 112 <isModifier value="false" /> 113 <isSummary value="false" /> 114 <mapping> 115 <identity value="rim" /> 116 <map value="n/a" /> 117 </mapping> 118 </element> 119 <element id="Range.extension"> 120 <path value="Range.extension" /> 121 <slicing> 122 <discriminator> 123 <type value="value" /> 124 <path value="url" /> 125 </discriminator> 126 <description value="Extensions are always sliced by (at least) url" /> 127 <rules value="open" /> 128 </slicing> 129 <short value="Additional content defined by implementations" /> 130 <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> 131 <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> 132 <alias value="extensions" /> 133 <alias value="user content" /> 134 <min value="0" /> 135 <max value="*" /> 136 <base> 137 <path value="Element.extension" /> 138 <min value="0" /> 139 <max value="*" /> 140 </base> 141 <type> 142 <code value="Extension" /> 143 </type> 144 <constraint> 145 <key value="ele-1" /> 146 <severity value="error" /> 147 <human value="All FHIR elements must have a @value or children" /> 148 <expression value="hasValue() or (children().count() > id.count())" /> 149 <xpath value="@value|f:*|h:div" /> 150 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 151 </constraint> 152 <constraint> 153 <key value="ext-1" /> 154 <severity value="error" /> 155 <human value="Must have either extensions or value[x], not both" /> 156 <expression value="extension.exists() != value.exists()" /> 157 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 158 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 159 </constraint> 160 <isModifier value="false" /> 161 <isSummary value="false" /> 162 <mapping> 163 <identity value="rim" /> 164 <map value="n/a" /> 165 </mapping> 166 </element> 167 <element id="Range.low"> 168 <path value="Range.low" /> 169 <short value="Low limit" /> 170 <definition value="The low limit. The boundary is inclusive." /> 171 <comment value="If the low element is missing, the low boundary is not known." /> 172 <min value="0" /> 173 <max value="1" /> 174 <base> 175 <path value="Range.low" /> 176 <min value="0" /> 177 <max value="1" /> 178 </base> 179 <type> 180 <code value="Quantity" /> 181 <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units" /> 182 </type> 183 <constraint> 184 <key value="ele-1" /> 185 <severity value="error" /> 186 <human value="All FHIR elements must have a @value or children" /> 187 <expression value="hasValue() or (children().count() > id.count())" /> 188 <xpath value="@value|f:*|h:div" /> 189 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 190 </constraint> 191 <isModifier value="false" /> 192 <isSummary value="true" /> 193 <mapping> 194 <identity value="v2" /> 195 <map value="NR.1" /> 196 </mapping> 197 <mapping> 198 <identity value="rim" /> 199 <map value="./low" /> 200 </mapping> 201 </element> 202 <element id="Range.high"> 203 <path value="Range.high" /> 204 <short value="High limit" /> 205 <definition value="The high limit. The boundary is inclusive." /> 206 <comment value="If the high element is missing, the high boundary is not known." /> 207 <min value="0" /> 208 <max value="1" /> 209 <base> 210 <path value="Range.high" /> 211 <min value="0" /> 212 <max value="1" /> 213 </base> 214 <type> 215 <code value="Quantity" /> 216 <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units" /> 217 </type> 218 <constraint> 219 <key value="ele-1" /> 220 <severity value="error" /> 221 <human value="All FHIR elements must have a @value or children" /> 222 <expression value="hasValue() or (children().count() > id.count())" /> 223 <xpath value="@value|f:*|h:div" /> 224 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 225 </constraint> 226 <isModifier value="false" /> 227 <isSummary value="true" /> 228 <mapping> 229 <identity value="v2" /> 230 <map value="NR.2" /> 231 </mapping> 232 <mapping> 233 <identity value="rim" /> 234 <map value="./high" /> 235 </mapping> 236 </element> 237 </snapshot> 238 <differential> 239 <element id="Range.low"> 240 <path value="Range.low" /> 241 <type> 242 <code value="Quantity" /> 243 <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units" /> 244 </type> 245 </element> 246 <element id="Range.high"> 247 <path value="Range.high" /> 248 <type> 249 <code value="Quantity" /> 250 <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-quantity-with-emed-units" /> 251 </type> 252 </element> 253 </differential> 254 </StructureDefinition>