Release 4

This page is part of the FHIR Specification (v4.0.1: R4 - Mixed Normative and STU) in it's permanent home (it will always be available at this URL). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Money.profile.ttl

Modeling and Methodology Work GroupMaturity Level: N/AStandards Status: Informative

Raw Turtle (+ also see Turtle/RDF Format Specification)

StructureDefinition for Money

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:StructureDefinition;
  fhir:Resource.id [ fhir:value "Money"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2019-11-01T09:29:23.356+11:00" ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
     fhir:Extension.value [ fhir:value "normative" ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ];
     fhir:Extension.value [ fhir:value "4.0.0" ]
  ];
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/Money"];
  fhir:StructureDefinition.version [ fhir:value "4.0.1"];
  fhir:StructureDefinition.name [ fhir:value "Money"];
  fhir:StructureDefinition.status [ fhir:value "active"];
  fhir:StructureDefinition.date [ fhir:value "2019-11-01T09:29:23+11:00"];
  fhir:StructureDefinition.publisher [ fhir:value "HL7 FHIR Standard"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ];
  fhir:StructureDefinition.description [ fhir:value "Base StructureDefinition for Money Type: An amount of economic utility in some recognized currency."];
  fhir:StructureDefinition.fhirVersion [ fhir:value "4.0.1"];
  fhir:StructureDefinition.mapping [
     fhir:index 0;
     fhir:StructureDefinition.identity [ fhir:value "rim" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinition.name [ fhir:value "RIM Mapping" ]
  ], [
     fhir:index 1;
     fhir:StructureDefinition.identity [ fhir:value "v2" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/v2" ];
     fhir:StructureDefinition.name [ fhir:value "HL7 v2 Mapping" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "complex-type"];
  fhir:StructureDefinition.abstract [ fhir:value "false"];
  fhir:StructureDefinition.type [ fhir:value "Money"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element"];
  fhir:StructureDefinition.derivation [ fhir:value "specialization"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Money" ];
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
         fhir:Extension.value [ fhir:value "normative" ]
       ], [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ];
         fhir:Extension.value [ fhir:value "4.0.0" ]
       ];
       fhir:ElementDefinition.path [ fhir:value "Money" ];
       fhir:ElementDefinition.short [ fhir:value "An amount of economic utility in some recognized currency" ];
       fhir:ElementDefinition.definition [ fhir:value "An amount of economic utility in some recognized currency." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Money" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.condition [
         fhir:value "ele-1";
         fhir:index 0
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "MO" ]
       ]
     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Money.id" ];
       fhir:ElementDefinition.path [ fhir:value "Money.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Money.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Money.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.discriminator [
           fhir:index 0;
           fhir:ElementDefinition.type [ fhir:value "value" ];
           fhir:ElementDefinition.path [ fhir:value "url" ]
         ];
         fhir:ElementDefinition.description [ fhir:value "Extensions are always sliced by (at least) url" ];
         fhir:ElementDefinition.rules [ fhir:value "open" ]
       ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir: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." ];
       fhir:ElementDefinition.comment [ fhir: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." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Money.value" ];
       fhir:ElementDefinition.path [ fhir:value "Money.value" ];
       fhir:ElementDefinition.short [ fhir:value "Numerical value (with implicit precision)" ];
       fhir:ElementDefinition.definition [ fhir:value "Numerical value (with implicit precision)." ];
       fhir:ElementDefinition.comment [ fhir:value "Monetary values have their own rules for handling precision (refer to standard accounting text books)." ];
       fhir:ElementDefinition.requirements [ fhir:value "The amount of the currency. The value includes an implicit precision in the presentation of the value." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Money.value" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "decimal" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "MO.Value" ]
       ]
     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Money.currency" ];
       fhir:ElementDefinition.path [ fhir:value "Money.currency" ];
       fhir:ElementDefinition.short [ fhir:value "ISO 4217 Currency Code" ];
       fhir:ElementDefinition.definition [ fhir:value "ISO 4217 Currency Code." ];
       fhir:ElementDefinition.requirements [ fhir:value "A code indicating the currency, taken from ISO 4217." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Money.currency" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "CurrencyCode" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.value [ fhir:value "true" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "A code indicating the currency, taken from ISO 4217." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/currencies|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "MO.Currency" ]
       ]
     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Money" ];
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
         fhir:Extension.value [ fhir:value "normative" ]
       ], [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ];
         fhir:Extension.value [ fhir:value "4.0.0" ]
       ];
       fhir:ElementDefinition.path [ fhir:value "Money" ];
       fhir:ElementDefinition.short [ fhir:value "An amount of economic utility in some recognized currency" ];
       fhir:ElementDefinition.definition [ fhir:value "An amount of economic utility in some recognized currency." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "MO" ]
       ]
     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Money.value" ];
       fhir:ElementDefinition.path [ fhir:value "Money.value" ];
       fhir:ElementDefinition.short [ fhir:value "Numerical value (with implicit precision)" ];
       fhir:ElementDefinition.definition [ fhir:value "Numerical value (with implicit precision)." ];
       fhir:ElementDefinition.comment [ fhir:value "Monetary values have their own rules for handling precision (refer to standard accounting text books)." ];
       fhir:ElementDefinition.requirements [ fhir:value "The amount of the currency. The value includes an implicit precision in the presentation of the value." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "decimal" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "MO.Value" ]
       ]
     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Money.currency" ];
       fhir:ElementDefinition.path [ fhir:value "Money.currency" ];
       fhir:ElementDefinition.short [ fhir:value "ISO 4217 Currency Code" ];
       fhir:ElementDefinition.definition [ fhir:value "ISO 4217 Currency Code." ];
       fhir:ElementDefinition.requirements [ fhir:value "A code indicating the currency, taken from ISO 4217." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "CurrencyCode" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.value [ fhir:value "true" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "A code indicating the currency, taken from ISO 4217." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/currencies|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "MO.Currency" ]
       ]
     ]
  ] .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.