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="2019-10-31T23:29:23.356+01: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 <url value="http://hl7.org/fhir/StructureDefinition/Money" /> 14 <version value="4.0.1" /> 15 <name value="Money" /> 16 <status value="active" /> 17 <date value="2019-10-31T23:29:23.0000000+01:00" /> 18 <publisher value="HL7 FHIR Standard" /> 19 <contact> 20 <telecom> 21 <system value="url" /> 22 <value value="http://hl7.org/fhir" /> 23 </telecom> 24 </contact> 25 <description value="Base StructureDefinition for Money Type: An amount of economic utility in some recognized currency." /> 26 <fhirVersion value="4.0.1" /> 27 <mapping> 28 <identity value="rim" /> 29 <uri value="http://hl7.org/v3" /> 30 <name value="RIM Mapping" /> 31 </mapping> 32 <mapping> 33 <identity value="v2" /> 34 <uri value="http://hl7.org/v2" /> 35 <name value="HL7 v2 Mapping" /> 36 </mapping> 37 <kind value="complex-type" /> 38 <abstract value="false" /> 39 <type value="Money" /> 40 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" /> 41 <derivation value="specialization" /> 42 <snapshot> 43 <element id="Money"> 44 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 45 <valueCode value="normative" /> 46 </extension> 47 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 48 <valueCode value="4.0.0" /> 49 </extension> 50 <path value="Money" /> 51 <short value="An amount of economic utility in some recognized currency" /> 52 <definition value="An amount of economic utility in some recognized currency." /> 53 <min value="0" /> 54 <max value="*" /> 55 <base> 56 <path value="Money" /> 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 <isModifier value="false" /> 70 <mapping> 71 <identity value="rim" /> 72 <map value="n/a" /> 73 </mapping> 74 <mapping> 75 <identity value="rim" /> 76 <map value="MO" /> 77 </mapping> 78 </element> 79 <element id="Money.id"> 80 <path value="Money.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="Money.extension"> 105 <path value="Money.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="Additional content defined by implementations" /> 115 <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." /> 116 <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." /> 117 <alias value="extensions" /> 118 <alias value="user content" /> 119 <min value="0" /> 120 <max value="*" /> 121 <base> 122 <path value="Element.extension" /> 123 <min value="0" /> 124 <max value="*" /> 125 </base> 126 <type> 127 <code value="Extension" /> 128 </type> 129 <constraint> 130 <key value="ele-1" /> 131 <severity value="error" /> 132 <human value="All FHIR elements must have a @value or children" /> 133 <expression value="hasValue() or (children().count() > id.count())" /> 134 <xpath value="@value|f:*|h:div" /> 135 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 136 </constraint> 137 <constraint> 138 <key value="ext-1" /> 139 <severity value="error" /> 140 <human value="Must have either extensions or value[x], not both" /> 141 <expression value="extension.exists() != value.exists()" /> 142 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 143 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 144 </constraint> 145 <isModifier value="false" /> 146 <isSummary value="false" /> 147 <mapping> 148 <identity value="rim" /> 149 <map value="n/a" /> 150 </mapping> 151 </element> 152 <element id="Money.value"> 153 <path value="Money.value" /> 154 <short value="Numerical value (with implicit precision)" /> 155 <definition value="Numerical value (with implicit precision)." /> 156 <comment value="Monetary values have their own rules for handling precision (refer to standard accounting text books)." /> 157 <requirements value="The amount of the currency. The value includes an implicit precision in the presentation of the value." /> 158 <min value="0" /> 159 <max value="1" /> 160 <base> 161 <path value="Money.value" /> 162 <min value="0" /> 163 <max value="1" /> 164 </base> 165 <type> 166 <code value="decimal" /> 167 </type> 168 <constraint> 169 <key value="ele-1" /> 170 <severity value="error" /> 171 <human value="All FHIR elements must have a @value or children" /> 172 <expression value="hasValue() or (children().count() > id.count())" /> 173 <xpath value="@value|f:*|h:div" /> 174 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 175 </constraint> 176 <isModifier value="false" /> 177 <isSummary value="true" /> 178 <mapping> 179 <identity value="v2" /> 180 <map value="MO.Value" /> 181 </mapping> 182 </element> 183 <element id="Money.currency"> 184 <path value="Money.currency" /> 185 <short value="ISO 4217 Currency Code" /> 186 <definition value="ISO 4217 Currency Code." /> 187 <requirements value="A code indicating the currency, taken from ISO 4217." /> 188 <min value="0" /> 189 <max value="1" /> 190 <base> 191 <path value="Money.currency" /> 192 <min value="0" /> 193 <max value="1" /> 194 </base> 195 <type> 196 <code value="code" /> 197 </type> 198 <constraint> 199 <key value="ele-1" /> 200 <severity value="error" /> 201 <human value="All FHIR elements must have a @value or children" /> 202 <expression value="hasValue() or (children().count() > id.count())" /> 203 <xpath value="@value|f:*|h:div" /> 204 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 205 </constraint> 206 <isModifier value="false" /> 207 <isSummary value="true" /> 208 <binding> 209 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 210 <valueString value="CurrencyCode" /> 211 </extension> 212 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> 213 <valueBoolean value="true" /> 214 </extension> 215 <strength value="required" /> 216 <description value="A code indicating the currency, taken from ISO 4217." /> 217 <valueSet value="http://hl7.org/fhir/ValueSet/currencies|4.0.1" /> 218 </binding> 219 <mapping> 220 <identity value="v2" /> 221 <map value="MO.Currency" /> 222 </mapping> 223 </element> 224 </snapshot> 225 <differential> 226 <element id="Money"> 227 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 228 <valueCode value="normative" /> 229 </extension> 230 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 231 <valueCode value="4.0.0" /> 232 </extension> 233 <path value="Money" /> 234 <short value="An amount of economic utility in some recognized currency" /> 235 <definition value="An amount of economic utility in some recognized currency." /> 236 <min value="0" /> 237 <max value="*" /> 238 <mapping> 239 <identity value="rim" /> 240 <map value="MO" /> 241 </mapping> 242 </element> 243 <element id="Money.value"> 244 <path value="Money.value" /> 245 <short value="Numerical value (with implicit precision)" /> 246 <definition value="Numerical value (with implicit precision)." /> 247 <comment value="Monetary values have their own rules for handling precision (refer to standard accounting text books)." /> 248 <requirements value="The amount of the currency. The value includes an implicit precision in the presentation of the value." /> 249 <min value="0" /> 250 <max value="1" /> 251 <type> 252 <code value="decimal" /> 253 </type> 254 <isSummary value="true" /> 255 <mapping> 256 <identity value="v2" /> 257 <map value="MO.Value" /> 258 </mapping> 259 </element> 260 <element id="Money.currency"> 261 <path value="Money.currency" /> 262 <short value="ISO 4217 Currency Code" /> 263 <definition value="ISO 4217 Currency Code." /> 264 <requirements value="A code indicating the currency, taken from ISO 4217." /> 265 <min value="0" /> 266 <max value="1" /> 267 <type> 268 <code value="code" /> 269 </type> 270 <isSummary value="true" /> 271 <binding> 272 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 273 <valueString value="CurrencyCode" /> 274 </extension> 275 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> 276 <valueBoolean value="true" /> 277 </extension> 278 <strength value="required" /> 279 <description value="A code indicating the currency, taken from ISO 4217." /> 280 <valueSet value="http://hl7.org/fhir/ValueSet/currencies|4.0.1" /> 281 </binding> 282 <mapping> 283 <identity value="v2" /> 284 <map value="MO.Currency" /> 285 </mapping> 286 </element> 287 </differential> 288 </StructureDefinition>