Difference between revisions of "DTr1 ED"

(Automated ADBot page content)
 
(Automated ADBot page content)
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
=Datatype Release 1: ED Encapsulated Data=
+
=ED Encapsulated Data=
 +
{| class="artdecorwiki"
 +
! style="text-align:left;" | Datatype Release 1 !! Realm
 +
|-
 +
| style="height:30px; vertical-align:middle;" | '''ED''' || style="vertical-align:middle;" | 
 +
|}
 +
 
 
==Registered Attributes and Child Elements==
 
==Registered Attributes and Child Elements==
{| class=artdecor
+
{| class="artdecorwiki"
 
! @Attribute / Element !! Cardinality !! Datatype  
 
! @Attribute / Element !! Cardinality !! Datatype  
 
|-
 
|-
Line 9: Line 15:
 
| @language ||  optional  || cs
 
| @language ||  optional  || cs
 
|-
 
|-
| @compression ||  optional  || 
+
| @compression
 +
*DF
 +
*GZ
 +
*Z
 +
*ZL
 +
||  optional  || cs
 
|-
 
|-
 
| @integrityCheck ||  optional  || bin
 
| @integrityCheck ||  optional  || bin
 
|-
 
|-
| @integrityCheckAlgorithm ||  optional  || cs
+
| @integrityCheckAlgorithm
 +
*SHA-1
 +
*SHA-256
 +
||  optional  || cs
 
|-
 
|-
| @representation ||  optional  || cs
+
| @representation
 +
*B64
 +
*TXT
 +
||  optional  || cs
 
|-
 
|-
 
| @nullFlavor ||  optional  || cs
 
| @nullFlavor ||  optional  || cs
Line 24: Line 41:
 
|-
 
|-
 
|}
 
|}
==Core Schematron Rules CSR==
+
==Core Schematron Rules (CSR)==
The following rules are defined in the base core schematrons.
+
The following rules are defined in the base core schematrons ({{Error}} errors, {{Warning}} warnings, {{Info}} infos).
 
{{ConstraintBox|Rule ID: '''ED'''
 
{{ConstraintBox|Rule ID: '''ED'''
Extends Rule(s): BIN  
+
Extends Rule(s): [[DTr1_BIN|BIN]]
  
 
Constraints
 
Constraints
Line 46: Line 63:
 
*{{Error}} dtr1-16-ED: no thumbnail if null
 
*{{Error}} dtr1-16-ED: no thumbnail if null
 
*{{Error}} dtr1-17-ED: no translation if null
 
*{{Error}} dtr1-17-ED: no translation if null
 +
*{{Error}} dtr1-18-ED: @language SHALL conform to RFC 3066. This usually has format sss?-CC with sss? for language code (ISO-639-1 / ISO-639-2) and optional CC for country code (conform ISO-3166 alpha-2)
 
}}
 
}}
==Additional Strict Schematron Rules SSR==
+
[[Category:DTr1|ED]]
The following rules are defined in the strict mode of core schematrons.
 

Latest revision as of 14:58, 5 December 2017

ED Encapsulated Data

Datatype Release 1 Realm
ED

Registered Attributes and Child Elements

@Attribute / Element Cardinality Datatype
@mediaType   optional   cs
@language   optional   cs
@compression
  • DF
  • GZ
  • Z
  • ZL
  optional   cs
@integrityCheck   optional   bin
@integrityCheckAlgorithm
  • SHA-1
  • SHA-256
  optional   cs
@representation
  • B64
  • TXT
  optional   cs
@nullFlavor   optional   cs
hl7:reference  0 .. 1  TEL
hl7:thumbnail  0 .. 1  thumbnail

Core Schematron Rules (CSR)

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

Check-circle.svg Rule ID: ED

Extends Rule(s): BIN

Constraints

  • Alert.png dtr1-2-ED: integrityCheckAlgorithm required if integrityCheck
  • Alert.png dtr1-3-ED: thumbnails not null and reference
  • Alert.png dtr1-4-ED: thumbnails do not have thumbnails
  • Alert.png dtr1-5-ED: compression only on binary
  • Alert.png dtr1-6-ED: value implies mediaType is text/plain
  • Alert.png dtr1-7-ED: no history or updateMode
  • Alert.png dtr1-8-ED: no charset for value or xml
  • Alert.png dtr1-9-ED: no nested translations
  • Alert.png dtr1-10-ED: no mediaType if null
  • Alert.png dtr1-11-ED: no charset if null
  • Alert.png dtr1-12-ED: no language if null
  • Alert.png dtr1-13-ED: no compression if null
  • Alert.png dtr1-14-ED: no integrityCheck if null
  • Alert.png dtr1-15-ED: no integrityCheckAlgorithm if null
  • Alert.png dtr1-16-ED: no thumbnail if null
  • Alert.png dtr1-17-ED: no translation if null
  • Alert.png dtr1-18-ED: @language SHALL conform to RFC 3066. This usually has format sss?-CC with sss? for language code (ISO-639-1 / ISO-639-2) and optional CC for country code (conform ISO-3166 alpha-2)