Money.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="Money" /> 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="normative" /> 9 </extension> 10 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 11 <valueCode value="4.0.0" /> 12 </extension> 13 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics"> 14 <valueCode value="has-range" /> 15 </extension> 16 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics"> 17 <valueCode value="is-continuous" /> 18 </extension> 19 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics"> 20 <valueCode value="has-units" /> 21 </extension> 22 <url value="http://hl7.org/fhir/StructureDefinition/Money" /> 23 <version value="5.0.0" /> 24 <name value="Money" /> 25 <status value="active" /> 26 <experimental value="false" /> 27 <date value="2023-03-26T06:21:02.0000000+02:00" /> 28 <publisher value="HL7 FHIR Standard" /> 29 <contact> 30 <telecom> 31 <system value="url" /> 32 <value value="http://hl7.org/fhir" /> 33 </telecom> 34 </contact> 35 <description value="Money Type: An amount of economic utility in some recognized currency." /> 36 <jurisdiction> 37 <coding> 38 <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" /> 39 <code value="001" /> 40 <display value="World" /> 41 </coding> 42 </jurisdiction> 43 <fhirVersion value="5.0.0" /> 44 <mapping> 45 <identity value="rim" /> 46 <uri value="http://hl7.org/v3" /> 47 <name value="RIM Mapping" /> 48 </mapping> 49 <mapping> 50 <identity value="v2" /> 51 <uri value="http://hl7.org/v2" /> 52 <name value="HL7 V2 Mapping" /> 53 </mapping> 54 <kind value="complex-type" /> 55 <abstract value="false" /> 56 <type value="Money" /> 57 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DataType" /> 58 <derivation value="specialization" /> 59 <snapshot> 60 <element id="Money"> 61 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 62 <valueCode value="normative" /> 63 </extension> 64 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 65 <valueCode value="4.0.0" /> 66 </extension> 67 <path value="Money" /> 68 <short value="An amount of economic utility in some recognized currency" /> 69 <definition value="An amount of economic utility in some recognized currency." /> 70 <min value="0" /> 71 <max value="*" /> 72 <base> 73 <path value="Money" /> 74 <min value="0" /> 75 <max value="*" /> 76 </base> 77 <constraint> 78 <key value="ele-1" /> 79 <severity value="error" /> 80 <human value="All FHIR elements must have a @value or children" /> 81 <expression value="hasValue() or (children().count() > id.count())" /> 82 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 83 </constraint> 84 <isModifier value="false" /> 85 <mapping> 86 <identity value="rim" /> 87 <map value="n/a,MO" /> 88 </mapping> 89 </element> 90 <element id="Money.id"> 91 <path value="Money.id" /> 92 <representation value="xmlAttr" /> 93 <short value="Unique id for inter-element referencing" /> 94 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 95 <min value="0" /> 96 <max value="1" /> 97 <base> 98 <path value="Element.id" /> 99 <min value="0" /> 100 <max value="1" /> 101 </base> 102 <type> 103 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 104 <valueUrl value="id" /> 105 </extension> 106 <code value="http://hl7.org/fhirpath/System.String" /> 107 </type> 108 <condition value="ele-1" /> 109 <isModifier value="false" /> 110 <isSummary value="false" /> 111 <mapping> 112 <identity value="rim" /> 113 <map value="n/a" /> 114 </mapping> 115 </element> 116 <element id="Money.extension"> 117 <path value="Money.extension" /> 118 <slicing> 119 <discriminator> 120 <type value="value" /> 121 <path value="url" /> 122 </discriminator> 123 <description value="Extensions are always sliced by (at least) url" /> 124 <rules value="open" /> 125 </slicing> 126 <short value="Additional content defined by implementations" /> 127 <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." /> 128 <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." /> 129 <alias value="extensions" /> 130 <alias value="user content" /> 131 <min value="0" /> 132 <max value="*" /> 133 <base> 134 <path value="Element.extension" /> 135 <min value="0" /> 136 <max value="*" /> 137 </base> 138 <type> 139 <code value="Extension" /> 140 </type> 141 <constraint> 142 <key value="ele-1" /> 143 <severity value="error" /> 144 <human value="All FHIR elements must have a @value or children" /> 145 <expression value="hasValue() or (children().count() > id.count())" /> 146 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 147 </constraint> 148 <constraint> 149 <key value="ext-1" /> 150 <severity value="error" /> 151 <human value="Must have either extensions or value[x], not both" /> 152 <expression value="extension.exists() != value.exists()" /> 153 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 154 </constraint> 155 <isModifier value="false" /> 156 <isSummary value="false" /> 157 <mapping> 158 <identity value="rim" /> 159 <map value="n/a" /> 160 </mapping> 161 </element> 162 <element id="Money.value"> 163 <path value="Money.value" /> 164 <short value="Numerical value (with implicit precision)" /> 165 <definition value="Numerical value (with implicit precision)." /> 166 <comment value="Monetary values have their own rules for handling precision (refer to standard accounting text books)." /> 167 <requirements value="The amount of the currency. The value includes an implicit precision in the presentation of the value." /> 168 <min value="0" /> 169 <max value="1" /> 170 <base> 171 <path value="Money.value" /> 172 <min value="0" /> 173 <max value="1" /> 174 </base> 175 <type> 176 <code value="decimal" /> 177 </type> 178 <constraint> 179 <key value="ele-1" /> 180 <severity value="error" /> 181 <human value="All FHIR elements must have a @value or children" /> 182 <expression value="hasValue() or (children().count() > id.count())" /> 183 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 184 </constraint> 185 <isModifier value="false" /> 186 <isSummary value="true" /> 187 <mapping> 188 <identity value="v2" /> 189 <map value="MO.Value" /> 190 </mapping> 191 </element> 192 <element id="Money.currency"> 193 <path value="Money.currency" /> 194 <short value="ISO 4217 Currency Code" /> 195 <definition value="ISO 4217 Currency Code." /> 196 <requirements value="A code indicating the currency, taken from ISO 4217." /> 197 <min value="0" /> 198 <max value="1" /> 199 <base> 200 <path value="Money.currency" /> 201 <min value="0" /> 202 <max value="1" /> 203 </base> 204 <type> 205 <code value="code" /> 206 </type> 207 <constraint> 208 <key value="ele-1" /> 209 <severity value="error" /> 210 <human value="All FHIR elements must have a @value or children" /> 211 <expression value="hasValue() or (children().count() > id.count())" /> 212 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 213 </constraint> 214 <isModifier value="false" /> 215 <isSummary value="true" /> 216 <binding> 217 <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition"> 218 <valueString value="A code indicating the currency, taken from ISO 4217." /> 219 </extension> 220 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 221 <valueString value="CurrencyCode" /> 222 </extension> 223 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> 224 <valueBoolean value="true" /> 225 </extension> 226 <strength value="required" /> 227 <description value="A code indicating the currency, taken from ISO 4217." /> 228 <valueSet value="http://hl7.org/fhir/ValueSet/currencies|5.0.0" /> 229 </binding> 230 <mapping> 231 <identity value="v2" /> 232 <map value="MO.Currency" /> 233 </mapping> 234 </element> 235 </snapshot> 236 <differential> 237 <element id="Money"> 238 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 239 <valueCode value="normative" /> 240 </extension> 241 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 242 <valueCode value="4.0.0" /> 243 </extension> 244 <path value="Money" /> 245 <short value="An amount of economic utility in some recognized currency" /> 246 <definition value="An amount of economic utility in some recognized currency." /> 247 <min value="0" /> 248 <max value="*" /> 249 <mapping> 250 <identity value="rim" /> 251 <map value="MO" /> 252 </mapping> 253 </element> 254 <element id="Money.value"> 255 <path value="Money.value" /> 256 <short value="Numerical value (with implicit precision)" /> 257 <definition value="Numerical value (with implicit precision)." /> 258 <comment value="Monetary values have their own rules for handling precision (refer to standard accounting text books)." /> 259 <requirements value="The amount of the currency. The value includes an implicit precision in the presentation of the value." /> 260 <min value="0" /> 261 <max value="1" /> 262 <type> 263 <code value="decimal" /> 264 </type> 265 <isSummary value="true" /> 266 <mapping> 267 <identity value="v2" /> 268 <map value="MO.Value" /> 269 </mapping> 270 </element> 271 <element id="Money.currency"> 272 <path value="Money.currency" /> 273 <short value="ISO 4217 Currency Code" /> 274 <definition value="ISO 4217 Currency Code." /> 275 <requirements value="A code indicating the currency, taken from ISO 4217." /> 276 <min value="0" /> 277 <max value="1" /> 278 <type> 279 <code value="code" /> 280 </type> 281 <isSummary value="true" /> 282 <binding> 283 <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition"> 284 <valueString value="A code indicating the currency, taken from ISO 4217." /> 285 </extension> 286 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 287 <valueString value="CurrencyCode" /> 288 </extension> 289 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> 290 <valueBoolean value="true" /> 291 </extension> 292 <strength value="required" /> 293 <description value="A code indicating the currency, taken from ISO 4217." /> 294 <valueSet value="http://hl7.org/fhir/ValueSet/currencies|5.0.0" /> 295 </binding> 296 <mapping> 297 <identity value="v2" /> 298 <map value="MO.Currency" /> 299 </mapping> 300 </element> 301 </differential> 302 </StructureDefinition>