cascade:decimalValue decimal value
https://ns.cascadeprotocol.org/cascade#decimalValue
The number as an xsd:decimal in XSD's canonical form, for comparing, sorting and bounds: no exponent, no leading zero but the one before a point, no trailing zero after it, no point when it is a whole number, and no sign on zero. A number the source wrote with an exponent is written out in full.
- Type
owl:DatatypeProperty- Domain
cascade:Quantity- Range
xsd:decimal- Shapes
cascade:QuantityShape: datatypexsd:decimal; minCount1; maxCount1; pattern"^(-?[1-9][0-9]*|-?0\\.[0-9]*[1-9]|-?[1-9][0-9]*\\.[0-9]*[1-9]|0)$"A quantity has one decimal value, an xsd:decimal in XSD's canonical form: a number two runtimes write alike, whatever form the source wrote it in.
cascade:QuantityShapechecks the subject of anycascade:decimalValue,cascade:writtenValue,cascade:quantityComparator,cascade:ucumUnit,cascade:unitText.cascade:decimalValue: datatypexsd:decimal; minCount1; maxCount1; pattern"^(-?[1-9][0-9]*|-?0\\.[0-9]*[1-9]|-?[1-9][0-9]*\\.[0-9]*[1-9]|0)$"A quantity has one decimal value, an xsd:decimal in XSD's canonical form: a number two runtimes write alike, whatever form the source wrote it in.
cascade:writtenValue: datatypexsd:string; minCount1; maxCount1; pattern"^[+-]?([0-9]+(\\.[0-9]*)?|\\.[0-9]+)([eE][+-]?[0-9]+)?$"A quantity has one written value, the number as the source wrote it: digits, an optional sign, point and exponent.
cascade:quantityComparator: datatypexsd:string; maxCount1; in ("<""<="">="">")A quantity has at most one comparator, one of <, <=, >= and >: = is written as none, and ~, <> and ad are refused, since no rule can compare them.
cascade:ucumUnit: datatypexsd:string; maxCount1; minLength1A quantity has at most one UCUM unit, a non-empty string.
cascade:ucumUnit: pattern"^[!-~]+$"warningA UCUM code is printable ASCII with no space; this one is likely not UCUM, though its source said it was.
cascade:unitText: datatypexsd:string; maxCount1; minLength1A quantity has at most one unit text, a non-empty string.
Where it comes from and what uses it
- See also
- https://www.w3.org/TR/xmlschema11-2/#decimal
- Queries
- queries/derivations/medication-exposure-periods.rq
- queries/matcher/same-code-day-or-padded-time-value-and-unit-others-by-code-and-day.rq
- queries/matcher/same-code-instant-to-the-second-different-units-others-by-code-and-instant.rq
- queries/matcher/same-code-instant-to-the-second-different-values-others-by-code-and-instant.rq
- queries/matcher/same-code-instant-to-the-second-value-and-unit-others-by-code-and-instant.rq
- queries/views/lab-results.rq