Difference between revisions of "DTr1 QTY"

(Automated ADBot page content)
(Automated ADBot page content)
Line 17: Line 17:
 
|}
 
|}
 
==Core Schematron Rules (CSR)==
 
==Core Schematron Rules (CSR)==
The following rules are defined in the base core schematrons.
+
The following rules ({{Error}} errors or {{Warning}} warnings)are defined in the base core schematrons.
 
{{ConstraintBox|Rule ID: '''QTY'''
 
{{ConstraintBox|Rule ID: '''QTY'''
 
Extends Rule(s): [[DTr1_ANY|ANY]]  
 
Extends Rule(s): [[DTr1_ANY|ANY]]  

Revision as of 14:55, 5 December 2017

QTY Quantity

Datatype Release 1 Realm Flavors
QTY INT.NONNEG INT.POS REAL.NONNEG REAL.POS IVL_TS.EPSOS.TZ IVL_TS.IPS.TZ IVL_TS.EPSOS.TZ.OPT IVL_TS.CH.TZ TS.DATE TS.DATE.FULL TS.DATE.MIN TS.DATETIME.MIN TS.EPSOS.TZ TS.IPS.TZ TS.EPSOS.TZ.OPT TS.CH.TZ TS.AT.TZ

Registered Attributes and Child Elements

@Attribute / Element Cardinality Datatype
@nullFlavor   optional   cs
@xsi:type   optional   cs

Core Schematron Rules (CSR)

The following rules (Alert.png errors or Warning.png warnings)are defined in the base core schematrons.

Check-circle.svg Rule ID: QTY

Extends Rule(s): ANY

Constraints

  • Alert.png dtr1-1-QTY: no uncertainty
  • Alert.png dtr1-2-QTY: no history or updateMode

Additional Strict Schematron Rules (SSR)

The following rules are defined in the strict mode of core schematrons.

Check-circle.svg Constraints
  • Alert.png dtr1-3-QTY: [RIM-001] <value-of select="$name"/> SHALL NOT have nullFlavor, if there are other <value-of select="$name"/> elements which are not null
  • Alert.png dtr1-4-QTY: [RIM-002] <value-of select="$name"/> (@value=<value-of select="$value"/> @unit=<value-of select="$unit"/>) SHALL be distinct