openEHR Terminology

Table of Contents

top

Schema Document Properties

Target Namespace http://openehr.org/Terminology.xsd
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.

Declared Namespaces

Prefix Namespace
Default namespace http://openehr.org/Terminology.xsd
xml http://www.w3.org/XML/1998/namespace
mstns http://openehr.org/Terminology.xsd
xs http://www.w3.org/2001/XMLSchema
msdata urn:schemas-microsoft-com:xml-msdata
Schema Component Representation
<xs:schema id="Terminology" targetNamespace="http://openehr.org/Terminology.xsd" elementFormDefault="qualified">
...
</xs:schema>
top

Global Declarations

Element: Concept

Name Concept
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<Concept
Language=" xs:string [0..1]"
ConceptID=" xs:nonNegativeInteger [0..1]"
Rubric=" xs:string [0..1]">
<!--
Key Constraint - TerminologyKey1
Selector - .
Field(s) - @Language, @ConceptID
-->
<!--
Key Reference Constraint - LanguageTerminology
Selector - .
Field(s) - @Language
Refers to - LanguageKey1
-->
<!--
Key Reference Constraint - TermTerminology
Selector - .
Field(s) - @ConceptID
Refers to - TermKey1
-->
<!--
Key Constraint - TerminologyKey2
Selector - .
Field(s) - @Language
-->
<!--
Key Constraint - TerminologyKey3
Selector - .
Field(s) - @ConceptID
-->

</Concept>
Diagram
Schema Component Representation
<xs:element name="Concept">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="Language" type=" xs:string "/>
<xs:attribute name="ConceptID" type=" xs:nonNegativeInteger "/>
<xs:attribute name="Rubric" type=" xs:string "/>
</xs:complexType>
<xs:key name="TerminologyKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@Language"/>
<xs:field xpath="@ConceptID"/>
</xs:key>
<xs:keyref name="LanguageTerminology" refer=" LanguageKey1 " ConstraintOnly="true" AcceptRejectRule="Cascade" DeleteRule="Cascade" UpdateRule="Cascade" IsNested="true">
<xs:selector xpath="."/>
<xs:field xpath="@Language"/>
</xs:keyref>
<xs:keyref name="TermTerminology" refer=" TermKey1 " ConstraintOnly="true" AcceptRejectRule="Cascade" DeleteRule="Cascade" UpdateRule="Cascade">
<xs:selector xpath="."/>
<xs:field xpath="@ConceptID"/>
</xs:keyref>
<xs:key name="TerminologyKey2">
<xs:selector xpath="."/>
<xs:field xpath="@Language"/>
</xs:key>
<xs:key name="TerminologyKey3">
<xs:selector xpath="."/>
<xs:field xpath="@ConceptID"/>
</xs:key>
</xs:element>
top

Element: GroupedConcept

Name GroupedConcept
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<GroupedConcept
GrouperID=" xs:nonNegativeInteger [0..1]"
ChildID=" xs:nonNegativeInteger [0..1]">
<!--
Key Reference Constraint - GrouperGrouperTerm
Selector - .
Field(s) - @GrouperID
Refers to - GrouperKey1
-->
<!--
Key Constraint - GrouperTermKey1
Selector - .
Field(s) - @GrouperID, @ChildID
-->
<!--
Key Reference Constraint - TermGroup1
Selector - .
Field(s) - @ChildID
Refers to - TerminologyKey3
-->

</GroupedConcept>
Diagram
Schema Component Representation
<xs:element name="GroupedConcept">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="GrouperID" type=" xs:nonNegativeInteger "/>
<xs:attribute name="ChildID" type=" xs:nonNegativeInteger "/>
</xs:complexType>
<xs:keyref name="GrouperGrouperTerm" refer=" GrouperKey1 " AcceptRejectRule="Cascade" DeleteRule="Cascade" UpdateRule="Cascade">
<xs:selector xpath="."/>
<xs:field xpath="@GrouperID"/>
</xs:keyref>
<xs:key name="GrouperTermKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@GrouperID"/>
<xs:field xpath="@ChildID"/>
</xs:key>
<xs:keyref name="TermGroup1" refer=" TerminologyKey3 " DeleteRule="Cascade">
<xs:selector xpath="."/>
<xs:field xpath="@ChildID"/>
</xs:keyref>
</xs:element>
top

Element: Grouper

Name Grouper
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<Grouper
id=" xs:nonNegativeInteger [0..1]"
ConceptID=" xs:nonNegativeInteger [0..1]">
<!--
Key Constraint - GrouperKey1
Selector - .
Field(s) - @id
-->
<!--
Key Reference Constraint - TerminologyGrouper
Selector - .
Field(s) - @ConceptID
Refers to - TerminologyKey3
-->

</Grouper>
Diagram
Schema Component Representation
<xs:element name="Grouper">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="id" type=" xs:nonNegativeInteger " AutoIncrement="true" AutoIncrementSeed="0" AutoIncrementStep="1"/>
<xs:attribute name="ConceptID" type=" xs:nonNegativeInteger "/>
</xs:complexType>
<xs:key name="GrouperKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@id"/>
</xs:key>
<xs:keyref name="TerminologyGrouper" refer=" TerminologyKey3 ">
<xs:selector xpath="."/>
<xs:field xpath="@ConceptID"/>
</xs:keyref>
</xs:element>
top

Element: Language

Name Language
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<Language
code=" xs:string [0..1]"
Description=" xs:string [0..1]">
<!--
Key Constraint - LanguageKey1
Selector - .
Field(s) - @code
-->

</Language>
Diagram
Schema Component Representation
<xs:element name="Language">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="code" type=" xs:string "/>
<xs:attribute name="Description" type=" xs:string "/>
</xs:complexType>
<xs:key name="LanguageKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@code"/>
</xs:key>
</xs:element>
top

Element: MediaType

Name MediaType
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<MediaType
MIME=" xs:string [0..1]"
Description=" xs:string [0..1]">
<!--
Key Constraint - MediaTypeKey1
Selector - .
Field(s) - @MIME
-->

</MediaType>
Diagram
Schema Component Representation
<xs:element name="MediaType">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="MIME" type=" xs:string "/>
<xs:attribute name="Description" type=" xs:string "/>
</xs:complexType>
<xs:key name="MediaTypeKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@MIME"/>
</xs:key>
</xs:element>
top

Element: PrimaryRubric

Name PrimaryRubric
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<PrimaryRubric
Id=" xs:nonNegativeInteger [0..1]"
Language=" xs:string [0..1]">
<!--
Key Constraint - TermKey1
Selector - .
Field(s) - @Id
-->

</PrimaryRubric>
Diagram
Schema Component Representation
<xs:element name="PrimaryRubric">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="Id" type=" xs:nonNegativeInteger " AutoIncrementSeed="0" AutoIncrementStep="1" AutoIncrement="true"/>
<xs:attribute name="Language" type=" xs:string "/>
</xs:complexType>
<xs:key name="TermKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@Id"/>
</xs:key>
</xs:element>
top

Element: Property

Name Property
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<Property
ID=" xs:nonNegativeInteger [0..1]"
ConceptID=" xs:nonNegativeInteger [0..1]">
<!--
Key Constraint - PropertyKey1
Selector - .
Field(s) - @ID
-->

</Property>
Diagram
Schema Component Representation
<xs:element name="Property">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="ID" type=" xs:nonNegativeInteger " AutoIncrementSeed="0" AutoIncrementStep="1"/>
<xs:attribute name="ConceptID" type=" xs:nonNegativeInteger "/>
</xs:complexType>
<xs:key name="PropertyKey1">
<xs:selector xpath="."/>
<xs:field xpath="@ID"/>
</xs:key>
</xs:element>
top

Element: PropertyUnits

Name PropertyUnits
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<PropertyUnits
PropertyID=" xs:nonNegativeInteger [0..1]"
UnitID=" xs:nonNegativeInteger [0..1]">
<!--
Key Reference Constraint - PropertyPropertyUnits
Selector - .
Field(s) - @PropertyID
Refers to - PropertyKey1
-->
<!--
Key Reference Constraint - UnitPropertyUnits
Selector - .
Field(s) - @UnitID
Refers to - UnitKey1
-->
<!--
Key Constraint - PropertyUnitsKey1
Selector - .
Field(s) - @PropertyID, @UnitID
-->

</PropertyUnits>
Diagram
Schema Component Representation
<xs:element name="PropertyUnits">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="PropertyID" type=" xs:nonNegativeInteger "/>
<xs:attribute name="UnitID" type=" xs:nonNegativeInteger "/>
</xs:complexType>
<xs:keyref name="PropertyPropertyUnits" refer=" PropertyKey1 " ConstraintOnly="true">
<xs:selector xpath="."/>
<xs:field xpath="@PropertyID"/>
</xs:keyref>
<xs:keyref name="UnitPropertyUnits" refer=" UnitKey1 " ConstraintOnly="true">
<xs:selector xpath="."/>
<xs:field xpath="@UnitID"/>
</xs:keyref>
<xs:key name="PropertyUnitsKey1">
<xs:selector xpath="."/>
<xs:field xpath="@PropertyID"/>
<xs:field xpath="@UnitID"/>
</xs:key>
</xs:element>
top

Element: TerminologyIdentifiers

Name TerminologyIdentifiers
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<TerminologyIdentifiers
VSAB=" xs:string [0..1]"
SourceName=" xs:string [0..1]"
Authority=" xs:string [0..1]">
<!--
Key Constraint - TerminologyIdentifiersKey1
Selector - .
Field(s) - @VSAB
-->

</TerminologyIdentifiers>
Diagram
Schema Component Representation
<xs:element name="TerminologyIdentifiers">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="VSAB" type=" xs:string " Caption="Versioned source"/>
<xs:attribute name="SourceName" type=" xs:string "/>
<xs:attribute name="Authority" type=" xs:string " Caption="Authority"/>
</xs:complexType>
<xs:key name="TerminologyIdentifiersKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@VSAB"/>
</xs:key>
</xs:element>
top

Element: Territory

Name Territory
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<Territory
NumericCode=" xs:string [1]"
TwoLetter=" xs:string [0..1]"
ThreeLetter=" xs:string [0..1]"
Text=" xs:string [0..1]">
<!--
Key Constraint - TerritoryKey1
Selector - .
Field(s) - @NumericCode
-->

</Territory>
Diagram
Schema Component Representation
<xs:element name="Territory">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="NumericCode" type=" xs:string " use="required"/>
<xs:attribute name="TwoLetter" type=" xs:string "/>
<xs:attribute name="ThreeLetter" type=" xs:string "/>
<xs:attribute name="Text" type=" xs:string "/>
</xs:complexType>
<xs:key name="TerritoryKey1" PrimaryKey="true">
<xs:selector xpath="."/>
<xs:field xpath="@NumericCode"/>
</xs:key>
</xs:element>
top

Element: Unit

Name Unit
Type Locally-defined complex type
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<Unit
ID=" xs:nonNegativeInteger [0..1]"
Unit=" xs:string [0..1]">
<!--
Key Constraint - UnitKey1
Selector - .
Field(s) - @ID
-->

</Unit>
Diagram
Schema Component Representation
<xs:element name="Unit">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="ID" type=" xs:nonNegativeInteger " AutoIncrementStep="1" AutoIncrementSeed="0"/>
<xs:attribute name="Unit" type=" xs:string "/>
</xs:complexType>
<xs:key name="UnitKey1">
<xs:selector xpath="."/>
<xs:field xpath="@ID"/>
</xs:key>
</xs:element>
top

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia" >
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice [1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1] ?
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

Schema Component Representation
<complexType name="AusAddress">
<complexContent>
<extension base=" Address ">
<sequence>
<element name="state" type=" AusStates "/>
<element name="postcode">
<simpleType>
<restriction base=" string ">
<pattern value="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attribute name="country" type=" string " fixed="Australia"/>
</extension>
</complexContent>
</complexType>
The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)
top

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

top