{
"description": "Base StructureDefinition for decimal Type: A rational number with implicit precision",
"_filename": "decimal.profile.json",
"package_name": "hl7.fhir.core",
"date": "2016-12-06T12:22:34+11:00",
"derivation": "specialization",
"publisher": "HL7 FHIR Standard",
"fhirVersion": "1.8.0",
"name": "decimal",
"abstract": false,
"type": "decimal",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "1.8.0",
"snapshot": {
"element": [ {
"id": "decimal",
"max": "*",
"min": 0,
"path": "decimal",
"short": "Primitive Type decimal",
"comments": "Do not use a IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)",
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "Element",
"severity": "error",
"expression": "children().count() > id.count()"
} ],
"definition": "A rational number with implicit precision"
}, {
"path": "decimal.id",
"min": 0,
"definition": "unique id for the element within a resource (for internal references)",
"short": "xml:id (or equivalent in JSON)",
"type": [ {
"code": "id"
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "decimal.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
}
}, {
"path": "decimal.extension",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
"short": "Additional Content defined by implementations",
"comments": "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.",
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "decimal.extension",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
}
}, {
"id": "decimal.value",
"max": "1",
"min": 0,
"path": "decimal.value",
"type": [ {
"_code": {
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
"valueString": "number"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
"valueString": "xsd:decimal"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type",
"valueString": "xsd:decimal"
} ]
},
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
"valueString": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?"
} ]
} ],
"short": "Primitive value for decimal",
"definition": "The actual value",
"representation": [ "xmlAttr" ]
} ]
},
"status": "draft",
"id": "c7f63001-c0a3-4c63-8a7d-c90b8fa0327a",
"kind": "primitive-type",
"url": "http://hl7.org/fhir/StructureDefinition/decimal",
"version": null,
"differential": {
"element": [ {
"id": "decimal",
"max": "*",
"min": 0,
"path": "decimal",
"short": "Primitive Type decimal",
"comments": "Do not use a 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": {
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
"valueString": "number"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
"valueString": "xsd:decimal"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type",
"valueString": "xsd:decimal"
} ]
},
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
"valueString": "-?([0]|([1-9][0-9]*))(\\.[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/Element"
}