{
"description": "Base StructureDefinition for decimal Type: A rational number with implicit precision",
"_filename": "StructureDefinition-decimal.json",
"package_name": "hl7.fhir.r5.examples",
"date": "2019-12-31T21:03:40+11:00",
"derivation": "specialization",
"publisher": "HL7 FHIR Standard",
"fhirVersion": "4.2.0",
"name": "decimal",
"abstract": false,
"type": "decimal",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "4.2.0",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "normative"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
"valueCode": "4.0.0"
} ],
"snapshot": {
"element": [ {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "decimal",
"min": 0,
"definition": "A rational number with implicit precision",
"isModifier": false,
"short": "Primitive Type decimal",
"max": "*",
"id": "decimal",
"comment": "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)",
"base": {
"max": "*",
"min": 0,
"path": "decimal"
},
"isSummary": false
}, {
"path": "decimal.id",
"min": 0,
"definition": "unique id for the element within a resource (for internal references)",
"isModifier": false,
"short": "xml:id (or equivalent in JSON)",
"type": [ {
"code": "http://hl7.org/fhirpath/System.String",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUri": "string"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "decimal.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "decimal.extension",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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.",
"isModifier": false,
"short": "Additional content defined by implementations",
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "decimal.extension",
"comment": "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.",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"path": "decimal.value",
"min": 0,
"definition": "The actual value",
"isModifier": false,
"short": "Primitive value for decimal",
"type": [ {
"code": "http://hl7.org/fhirpath/System.Decimal",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUri": "decimal"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/regex",
"valueString": "-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "decimal.value",
"base": {
"max": "1",
"min": 0,
"path": "decimal.value"
},
"isSummary": false
} ]
},
"status": "active",
"id": "82e79418-e4ba-485b-a352-308de80fa58b",
"kind": "primitive-type",
"url": "http://hl7.org/fhir/StructureDefinition/decimal",
"version": "4.2.0",
"differential": {
"element": [ {
"id": "decimal",
"max": "*",
"min": 0,
"path": "decimal",
"short": "Primitive Type decimal",
"comment": "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)",
"definition": "A rational number with implicit precision"
}, {
"id": "decimal.value",
"max": "1",
"min": 0,
"path": "decimal.value",
"type": [ {
"code": "http://hl7.org/fhirpath/System.Decimal",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUri": "decimal"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/regex",
"valueString": "-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?"
} ]
} ],
"short": "Primitive value for decimal",
"definition": "Primitive value for decimal",
"representation": [ "xmlAttr" ]
} ]
},
"contact": [ {
"telecom": [ {
"value": "http://hl7.org/fhir",
"system": "url"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/PrimitiveType"
}