real-simple
type: StructureDefinition
node role: treeRoot
id:
  v: real-simple
text:
  status:
    v: generated
  div: Primitive type 'real'
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value: uri
    v: urn:hl7-org:v3
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/logical-container
  value: uri
    v: http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics
  value: code
    v: has-range
url:
  v: http://hl7.org/cda/stds/core/StructureDefinition/real-simple
version:
  v: 1.0.1
name:
  v: real
title:
  v: real: Real Number
status:
  v: active
experimental:
  v: false
date:
  v: 2025-10-10T09:58:30+10:00
publisher:
  v: HL7
description:
  v: Fractional numbers. Typically used whenever quantities are measured, estimated, or computed from other real numbers. The typical representation is decimal, where the number of significant decimal digits is known as the precision. Real numbers are needed beyond integers whenever quantities of the real world are measured, estimated, or computed from other real numbers. The term "Real number" in this specification is used to mean that fractional values are covered without necessarily implying the full set of the mathematical real numbers.
fhir version:
  v: 5.0.0
kind:
  v: primitive-type
abstract:
  v: false
type:
  v: decimal
base definition:
  v: http://hl7.org/fhir/StructureDefinition/decimal
  link: http://hl7.org/fhir/StructureDefinition/decimal
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 5.0.0
  element:
    id:
      v: decimal
    path:
      v: decimal
    short:
      v: Primitive Type decimal
    definition:
      v: A rational number with implicit precision
    comment:
      v: Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: decimal
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    is modifier:
      v: false
    is summary:
      v: false
  element:
    id:
      v: decimal.id
    path:
      v: decimal.id
    representation:
      v: xmlAttr
    short:
      v: xml:id (or equivalent in JSON)
    definition:
      v: unique id for the element within a resource (for internal references)
    min:
      v: 0
    max:
      v: 0
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: url
      code:
        v: http://hl7.org/fhirpath/System.String
    is modifier:
      v: false
    is summary:
      v: false
  element:
    id:
      v: decimal.extension
    path:
      v: decimal.extension
    short:
      v: Extension
    definition:
      v: An Extension
    min:
      v: 0
    max:
      v: 0
    base:
      path:
        v: Element.extension
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Extension
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    constraint:
      key:
        v: ext-1
      severity:
        v: error
      human:
        v: Must have either extensions or value[x], not both
      expression:
        v: extension.exists() != value.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/Extension
        link: http://hl7.org/fhir/StructureDefinition/Extension
    is modifier:
      v: false
    is summary:
      v: false
  element:
    id:
      v: decimal.value
    path:
      v: decimal.value
    representation:
      v: xmlAttr
    short:
      v: Primitive value for decimal
    definition:
      v: The actual value
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: decimal.value
      min:
        v: 0
      max:
        v: 1

url
v: string

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
  value: url
    v: decimal
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/regex
  value: string
    v: -?(0|[1-9][0-9]{0,17})(\.[0-9]{1,17})?([eE][+-]?[0-9]{1,9}})?
code:
  v: http://hl7.org/fhirpath/System.Decimal

v: false

v: false

element:
  id:
    v: decimal.id
  path:
    v: decimal.id
  max:
    v: 0
element:
  id:
    v: decimal.extension
  path:
    v: decimal.extension
  max:
    v: 0