RatioRange.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="RatioRange" /> 4 <meta> 5 <lastUpdated value="2023-03-26T06:21:02.749+02:00" /> 6 </meta> 7 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 8 <valueCode value="trial-use" /> 9 </extension> 10 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics"> 11 <valueCode value="can-bind" /> 12 </extension> 13 <url value="http://hl7.org/fhir/StructureDefinition/RatioRange" /> 14 <version value="5.0.0" /> 15 <name value="RatioRange" /> 16 <status value="draft" /> 17 <experimental value="false" /> 18 <date value="2023-03-26T06:21:02.0000000+02:00" /> 19 <publisher value="HL7 FHIR Standard" /> 20 <contact> 21 <telecom> 22 <system value="url" /> 23 <value value="http://hl7.org/fhir" /> 24 </telecom> 25 </contact> 26 <description value="RatioRange Type: A range of ratios expressed as a low and high numerator and a denominator." /> 27 <jurisdiction> 28 <coding> 29 <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" /> 30 <code value="001" /> 31 <display value="World" /> 32 </coding> 33 </jurisdiction> 34 <purpose value="Need to be able to specify ranges of ratios." /> 35 <fhirVersion value="5.0.0" /> 36 <mapping> 37 <identity value="v2" /> 38 <uri value="http://hl7.org/v2" /> 39 <name value="HL7 V2 Mapping" /> 40 </mapping> 41 <mapping> 42 <identity value="rim" /> 43 <uri value="http://hl7.org/v3" /> 44 <name value="RIM Mapping" /> 45 </mapping> 46 <kind value="complex-type" /> 47 <abstract value="false" /> 48 <type value="RatioRange" /> 49 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DataType" /> 50 <derivation value="specialization" /> 51 <snapshot> 52 <element id="RatioRange"> 53 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 54 <valueCode value="trial-use" /> 55 </extension> 56 <path value="RatioRange" /> 57 <short value="Range of ratio values" /> 58 <definition value="A range of ratios expressed as a low and high numerator and a denominator." /> 59 <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." /> 60 <min value="0" /> 61 <max value="*" /> 62 <base> 63 <path value="RatioRange" /> 64 <min value="0" /> 65 <max value="*" /> 66 </base> 67 <constraint> 68 <key value="ele-1" /> 69 <severity value="error" /> 70 <human value="All FHIR elements must have a @value or children" /> 71 <expression value="hasValue() or (children().count() > id.count())" /> 72 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 73 </constraint> 74 <constraint> 75 <key value="ratrng-1" /> 76 <severity value="error" /> 77 <human value="One of lowNumerator or highNumerator and denominator SHALL be present, or all are absent. If all are absent, there SHALL be some extension present" /> 78 <expression value="((lowNumerator.exists() or highNumerator.exists()) and denominator.exists()) or (lowNumerator.empty() and highNumerator.empty() and denominator.empty() and extension.exists())" /> 79 <source value="http://hl7.org/fhir/StructureDefinition/RatioRange" /> 80 </constraint> 81 <constraint> 82 <key value="ratrng-2" /> 83 <severity value="error" /> 84 <human value="If present, lowNumerator SHALL have a lower value than highNumerator" /> 85 <expression value="lowNumerator.hasValue().not() or highNumerator.hasValue().not() or (lowNumerator.lowBoundary() <= highNumerator.highBoundary())" /> 86 <source value="http://hl7.org/fhir/StructureDefinition/RatioRange" /> 87 </constraint> 88 <isModifier value="false" /> 89 <mapping> 90 <identity value="rim" /> 91 <map value="n/a,IVL<RTO<QTY[not(type="TS")]>> [lowClosed="true" and highClosed="true"]or URG<<RTO<QTY[not(type="TS")]>>" /> 92 </mapping> 93 <mapping> 94 <identity value="v2" /> 95 <map value="NR and also possibly SN (but see also quantity)" /> 96 </mapping> 97 </element> 98 <element id="RatioRange.id"> 99 <path value="RatioRange.id" /> 100 <representation value="xmlAttr" /> 101 <short value="Unique id for inter-element referencing" /> 102 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 103 <min value="0" /> 104 <max value="1" /> 105 <base> 106 <path value="Element.id" /> 107 <min value="0" /> 108 <max value="1" /> 109 </base> 110 <type> 111 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 112 <valueUrl value="id" /> 113 </extension> 114 <code value="http://hl7.org/fhirpath/System.String" /> 115 </type> 116 <condition value="ele-1" /> 117 <isModifier value="false" /> 118 <isSummary value="false" /> 119 <mapping> 120 <identity value="rim" /> 121 <map value="n/a" /> 122 </mapping> 123 </element> 124 <element id="RatioRange.extension"> 125 <path value="RatioRange.extension" /> 126 <slicing> 127 <discriminator> 128 <type value="value" /> 129 <path value="url" /> 130 </discriminator> 131 <description value="Extensions are always sliced by (at least) url" /> 132 <rules value="open" /> 133 </slicing> 134 <short value="Additional content defined by implementations" /> 135 <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 managable, 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." /> 136 <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." /> 137 <alias value="extensions" /> 138 <alias value="user content" /> 139 <min value="0" /> 140 <max value="*" /> 141 <base> 142 <path value="Element.extension" /> 143 <min value="0" /> 144 <max value="*" /> 145 </base> 146 <type> 147 <code value="Extension" /> 148 </type> 149 <constraint> 150 <key value="ele-1" /> 151 <severity value="error" /> 152 <human value="All FHIR elements must have a @value or children" /> 153 <expression value="hasValue() or (children().count() > id.count())" /> 154 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 155 </constraint> 156 <constraint> 157 <key value="ext-1" /> 158 <severity value="error" /> 159 <human value="Must have either extensions or value[x], not both" /> 160 <expression value="extension.exists() != value.exists()" /> 161 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 162 </constraint> 163 <isModifier value="false" /> 164 <isSummary value="false" /> 165 <mapping> 166 <identity value="rim" /> 167 <map value="n/a" /> 168 </mapping> 169 </element> 170 <element id="RatioRange.lowNumerator"> 171 <path value="RatioRange.lowNumerator" /> 172 <short value="Low Numerator limit" /> 173 <definition value="The value of the low limit numerator." /> 174 <comment value="If the low element is missing, the low boundary is not known." /> 175 <min value="0" /> 176 <max value="1" /> 177 <base> 178 <path value="RatioRange.lowNumerator" /> 179 <min value="0" /> 180 <max value="1" /> 181 </base> 182 <type> 183 <code value="Quantity" /> 184 <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" /> 185 </type> 186 <condition value="ratrng-1" /> 187 <condition value="ratrng-2" /> 188 <constraint> 189 <key value="ele-1" /> 190 <severity value="error" /> 191 <human value="All FHIR elements must have a @value or children" /> 192 <expression value="hasValue() or (children().count() > id.count())" /> 193 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 194 </constraint> 195 <isModifier value="false" /> 196 <isSummary value="true" /> 197 <mapping> 198 <identity value="v2" /> 199 <map value="NR.1" /> 200 </mapping> 201 <mapping> 202 <identity value="rim" /> 203 <map value="./low" /> 204 </mapping> 205 </element> 206 <element id="RatioRange.highNumerator"> 207 <path value="RatioRange.highNumerator" /> 208 <short value="High Numerator limit" /> 209 <definition value="The value of the high limit numerator." /> 210 <comment value="If the high element is missing, the high boundary is not known." /> 211 <min value="0" /> 212 <max value="1" /> 213 <base> 214 <path value="RatioRange.highNumerator" /> 215 <min value="0" /> 216 <max value="1" /> 217 </base> 218 <type> 219 <code value="Quantity" /> 220 <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" /> 221 </type> 222 <condition value="ratrng-1" /> 223 <condition value="ratrng-2" /> 224 <constraint> 225 <key value="ele-1" /> 226 <severity value="error" /> 227 <human value="All FHIR elements must have a @value or children" /> 228 <expression value="hasValue() or (children().count() > id.count())" /> 229 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 230 </constraint> 231 <isModifier value="false" /> 232 <isSummary value="true" /> 233 <mapping> 234 <identity value="v2" /> 235 <map value="NR.2" /> 236 </mapping> 237 <mapping> 238 <identity value="rim" /> 239 <map value="./high" /> 240 </mapping> 241 </element> 242 <element id="RatioRange.denominator"> 243 <path value="RatioRange.denominator" /> 244 <short value="Denominator value" /> 245 <definition value="The value of the denominator." /> 246 <min value="0" /> 247 <max value="1" /> 248 <base> 249 <path value="RatioRange.denominator" /> 250 <min value="0" /> 251 <max value="1" /> 252 </base> 253 <type> 254 <code value="Quantity" /> 255 <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" /> 256 </type> 257 <condition value="ratrng-1" /> 258 <constraint> 259 <key value="ele-1" /> 260 <severity value="error" /> 261 <human value="All FHIR elements must have a @value or children" /> 262 <expression value="hasValue() or (children().count() > id.count())" /> 263 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 264 </constraint> 265 <isModifier value="false" /> 266 <isSummary value="true" /> 267 </element> 268 </snapshot> 269 <differential> 270 <element id="RatioRange"> 271 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 272 <valueCode value="trial-use" /> 273 </extension> 274 <path value="RatioRange" /> 275 <short value="Range of ratio values" /> 276 <definition value="A range of ratios expressed as a low and high numerator and a denominator." /> 277 <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." /> 278 <min value="0" /> 279 <max value="*" /> 280 <constraint> 281 <key value="ratrng-1" /> 282 <severity value="error" /> 283 <human value="One of lowNumerator or highNumerator and denominator SHALL be present, or all are absent. If all are absent, there SHALL be some extension present" /> 284 <expression value="((lowNumerator.exists() or highNumerator.exists()) and denominator.exists()) or (lowNumerator.empty() and highNumerator.empty() and denominator.empty() and extension.exists())" /> 285 <source value="http://hl7.org/fhir/StructureDefinition/RatioRange" /> 286 </constraint> 287 <constraint> 288 <key value="ratrng-2" /> 289 <severity value="error" /> 290 <human value="If present, lowNumerator SHALL have a lower value than highNumerator" /> 291 <expression value="lowNumerator.hasValue().not() or highNumerator.hasValue().not() or (lowNumerator.lowBoundary() <= highNumerator.highBoundary())" /> 292 <source value="http://hl7.org/fhir/StructureDefinition/RatioRange" /> 293 </constraint> 294 <mapping> 295 <identity value="v2" /> 296 <map value="NR and also possibly SN (but see also quantity)" /> 297 </mapping> 298 <mapping> 299 <identity value="rim" /> 300 <map value="IVL<RTO<QTY[not(type="TS")]>> [lowClosed="true" and highClosed="true"]or URG<<RTO<QTY[not(type="TS")]>>" /> 301 </mapping> 302 </element> 303 <element id="RatioRange.lowNumerator"> 304 <path value="RatioRange.lowNumerator" /> 305 <short value="Low Numerator limit" /> 306 <definition value="The value of the low limit numerator." /> 307 <comment value="If the low element is missing, the low boundary is not known." /> 308 <min value="0" /> 309 <max value="1" /> 310 <type> 311 <code value="Quantity" /> 312 <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" /> 313 </type> 314 <condition value="ratrng-1" /> 315 <condition value="ratrng-2" /> 316 <isSummary value="true" /> 317 <mapping> 318 <identity value="v2" /> 319 <map value="NR.1" /> 320 </mapping> 321 <mapping> 322 <identity value="rim" /> 323 <map value="./low" /> 324 </mapping> 325 </element> 326 <element id="RatioRange.highNumerator"> 327 <path value="RatioRange.highNumerator" /> 328 <short value="High Numerator limit" /> 329 <definition value="The value of the high limit numerator." /> 330 <comment value="If the high element is missing, the high boundary is not known." /> 331 <min value="0" /> 332 <max value="1" /> 333 <type> 334 <code value="Quantity" /> 335 <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" /> 336 </type> 337 <condition value="ratrng-1" /> 338 <condition value="ratrng-2" /> 339 <isSummary value="true" /> 340 <mapping> 341 <identity value="v2" /> 342 <map value="NR.2" /> 343 </mapping> 344 <mapping> 345 <identity value="rim" /> 346 <map value="./high" /> 347 </mapping> 348 </element> 349 <element id="RatioRange.denominator"> 350 <path value="RatioRange.denominator" /> 351 <short value="Denominator value" /> 352 <definition value="The value of the denominator." /> 353 <min value="0" /> 354 <max value="1" /> 355 <type> 356 <code value="Quantity" /> 357 <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" /> 358 </type> 359 <condition value="ratrng-1" /> 360 <isSummary value="true" /> 361 </element> 362 </differential> 363 </StructureDefinition>