openEHR Release 1.0.1 Archetype XML schema

Table of Contents

top

Schema Document Properties

Target Namespace http://schemas.openehr.org/v1
Version 1.0.1
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.
Schema Composition
  • This schema includes components from the following schema document(s):

Declared Namespaces

Prefix Namespace
Default namespace http://schemas.openehr.org/v1
xml http://www.w3.org/XML/1998/namespace
xs http://www.w3.org/2001/XMLSchema
Schema Component Representation
<schema targetNamespace="http://schemas.openehr.org/v1" elementFormDefault="qualified" version="1.0.1" id="Archetype.xsd">
<include schemaLocation="Resource.xsd"/>
...
</schema>
top

Global Declarations

Element: archetype

Name archetype
Type ARCHETYPE
Nillable no
Abstract no
Logical Diagram
XML Instance Representation
<archetype>
<original_language> CODE_PHRASE </original_language> [1]
<is_controlled> boolean </is_controlled> [0..1]
<description> RESOURCE_DESCRIPTION </description> [0..1]
<translations> TRANSLATION_DETAILS </translations> [0..*]
<revision_history> REVISION_HISTORY </revision_history> [0..1]
<uid> HIER_OBJECT_ID </uid> [0..1]
<archetype_id> ARCHETYPE_ID </archetype_id> [1]
<adl_version> string </adl_version> [0..1]
<concept> string </concept> [1]
<parent_archetype_id> ARCHETYPE_ID </parent_archetype_id> [0..1]
<definition> C_COMPLEX_OBJECT </definition> [1]
<invariants> ASSERTION </invariants> [0..*]
<ontology> ARCHETYPE_ONTOLOGY </ontology> [1]
</archetype>
Diagram
Schema Component Representation
<element name="archetype" type=" ARCHETYPE "/>
top

Global Definitions

Complex Type: ARCHETYPE

Super-types: AUTHORED_RESOURCE < ARCHETYPE (by extension)
Sub-types: None
Name ARCHETYPE
Used by (from the same schema document) Element archetype
Abstract no
XML Instance Representation
<...>
<original_language> CODE_PHRASE </original_language> [1]
<is_controlled> boolean </is_controlled> [0..1]
<description> RESOURCE_DESCRIPTION </description> [0..1]
<translations> TRANSLATION_DETAILS </translations> [0..*]
<revision_history> REVISION_HISTORY </revision_history> [0..1]
<uid> HIER_OBJECT_ID </uid> [0..1]
<archetype_id> ARCHETYPE_ID </archetype_id> [1]
<adl_version> string </adl_version> [0..1]
<concept> string </concept> [1]
<parent_archetype_id> ARCHETYPE_ID </parent_archetype_id> [0..1]
<definition> C_COMPLEX_OBJECT </definition> [1]
<invariants> ASSERTION </invariants> [0..*]
<ontology> ARCHETYPE_ONTOLOGY </ontology> [1]
</...>
Diagram
Schema Component Representation
<complexType name="ARCHETYPE">
<complexContent>
<extension base=" AUTHORED_RESOURCE ">
<sequence>
<element name="uid" type=" HIER_OBJECT_ID " minOccurs="0"/>
<element name="archetype_id" type=" ARCHETYPE_ID "/>
<element name="adl_version" type=" string " minOccurs="0"/>
<element name="concept" type=" string "/>
<element name="parent_archetype_id" type=" ARCHETYPE_ID " minOccurs="0"/>
<element name="definition" type=" C_COMPLEX_OBJECT "/>
<element name="invariants" type=" ASSERTION " minOccurs="0" maxOccurs="unbounded"/>
<element name="ontology" type=" ARCHETYPE_ONTOLOGY "/>
</sequence>
</extension>
</complexContent>
</complexType>
top

Complex Type: ARCHETYPE_CONSTRAINT

Super-types: None
Sub-types:
Name ARCHETYPE_CONSTRAINT
Abstract yes
XML Instance Representation
<.../>
Diagram
Schema Component Representation
<complexType name="ARCHETYPE_CONSTRAINT" abstract="true">
<sequence/>
</complexType>
top

Complex Type: ARCHETYPE_INTERNAL_REF

Super-types: ARCHETYPE_CONSTRAINT < C_OBJECT (by extension) < ARCHETYPE_INTERNAL_REF (by extension)
Sub-types: None
Name ARCHETYPE_INTERNAL_REF
Abstract no
XML Instance Representation
<...>
<rm_type_name> string </rm_type_name> [1]
<occurrences> IntervalOfInteger </occurrences> [1]
<node_id> string </node_id> [1]
<target_path> string </target_path> [1]
</...>
Diagram
Schema Component Representation
<complexType name="ARCHETYPE_INTERNAL_REF">
<complexContent>
<extension base=" C_OBJECT ">
<sequence>
<element name="target_path" type=" string "/>
</sequence>
</extension>
</complexContent>
</complexType>
top

Complex Type: ARCHETYPE_ONTOLOGY

Super-types: None
Sub-types: None
Name ARCHETYPE_ONTOLOGY
Used by (from the same schema document) Complex Type ARCHETYPE
Abstract no
XML Instance Representation
<...>
<term_definitions> CodeDefinitionSet </term_definitions> [1..*]
<constraint_definitions> CodeDefinitionSet </constraint_definitions> [0..*]
<term_bindings> TermBindingSet </term_bindings> [0..*]
<constraint_bindings> ConstraintBindingSet </constraint_bindings> [0..*]
</...>
Diagram
h1655509821 h1655509821 h-1786649362 h-256330401
Schema Component Representation
<complexType name="ARCHETYPE_ONTOLOGY">
<sequence>
<element name="term_definitions" type=" CodeDefinitionSet " maxOccurs="unbounded"/>
<element name="constraint_definitions" type=" CodeDefinitionSet " minOccurs="0" maxOccurs="unbounded"/>
<element name="term_bindings" type=" TermBindingSet " minOccurs="0" maxOccurs="unbounded"/>
<element name="constraint_bindings" type=" ConstraintBindingSet " minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
top

Complex Type: ARCHETYPE_SLOT

Super-types: ARCHETYPE_CONSTRAINT < C_OBJECT (by extension) < ARCHETYPE_SLOT (by extension)
Sub-types: None
Name ARCHETYPE_SLOT
Abstract no
XML Instance Representation
<...>
<rm_type_name> string </rm_type_name> [1]
<occurrences> IntervalOfInteger </occurrences> [1]
<node_id> string </node_id> [1]
<includes> ASSERTION </includes> [0..*]
<excludes> ASSERTION </excludes> [0..*]
</...>
Diagram
Schema Component Representation
<complexType name="ARCHETYPE_SLOT">
<complexContent>
<extension base=" C_OBJECT ">
<sequence>
<element name="includes" type=" ASSERTION " minOccurs="0" maxOccurs="unbounded"/>
<element name="excludes" type=" ASSERTION " minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
top

Complex Type: ARCHETYPE_TERM

Super-types: None
Sub-types: None
Name ARCHETYPE_TERM
Used by (from the same schema document) Complex Type CodeDefinitionSet
Abstract no
XML Instance Representation
<...
code="string [1]">
<items> StringDictionaryItem </items> [1..*]
</...>
Diagram
h1815463743
Schema Component Representation
<complexType name="ARCHETYPE_TERM">
<sequence>
<element name="items" type=" StringDictionaryItem " maxOccurs="unbounded"/>
</sequence>
<attribute name="code" type=" string " use="required"/>
</complexType>
top

Complex Type: ASSERTION

Super-types: None
Sub-types: None
Name ASSERTION
Used by (from the same schema document) Complex Type ARCHETYPE , Complex Type ARCHETYPE_SLOT , Complex Type ARCHETYPE_SLOT
Abstract no
XML Instance Representation
<...>
<tag> string </tag> [0..1]
<string_expression> string </string_expression> [0..1]
<expression> EXPR_ITEM </expression> [1]
<variables> ASSERTION_VARIABLE </variables> [0..*]
</...>
Diagram
h-1665682344 h-294759330
Schema Component Representation
<complexType name="ASSERTION">
<sequence>
<element name="tag" type=" string " minOccurs="0"/>
<element name="string_expression" type=" string " minOccurs="0"/>
<element name="expression" type=" EXPR_ITEM "/>
<element name="variables" type=" ASSERTION_VARIABLE " minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
top

Complex Type: ASSERTION_VARIABLE

Super-types: None
Sub-types: None
Name ASSERTION_VARIABLE
Used by (from the same schema document) Complex Type ASSERTION
Abstract no
XML Instance Representation
<...>
<name> string </name> [1]
<definition> string </definition> [1]
</...>
Diagram
Schema Component Representation
<complexType name="ASSERTION_VARIABLE">
<sequence>
<element name="name" type=" string "/>
<element name="definition" type=" string "/>
</sequence>
</complexType>
top

Complex Type: CARDINALITY

Super-types: None
Sub-types: None
Name CARDINALITY
Used by (from the same schema document) Complex Type C_MULTIPLE_ATTRIBUTE
Abstract no
XML Instance Representation
<...>
<is_ordered> boolean </is_ordered> [1]
<is_unique> boolean </is_unique> [1]
<interval> IntervalOfInteger </interval> [1]
</...>
Diagram
h1337655869
Schema Component Representation
<complexType name="CARDINALITY">
<sequence>
<element name="is_ordered" type=" boolean "/>
<element name="is_unique" type=" boolean "/>
<element name="interval" type=" IntervalOfInteger "/>
</sequence>
</complexType>
top

Complex Type: CONSTRAINT_BINDING_ITEM

Super-types: None
Sub-types: None
Name CONSTRAINT_BINDING_ITEM
Used by (from the same schema document) Complex Type ConstraintBindingSet
Abstract no
XML Instance Representation
<...
code="string [1]">
<value> anyURI </value> [1]
</...>
Diagram
Schema Component Representation
<complexType name="CONSTRAINT_BINDING_ITEM">
<sequence>
<element name="value" type=" anyURI "/>
</sequence>
<attribute name="code" type=" string " use="required"/>
</complexType>
top

Complex Type: CONSTRAINT_REF

Super-types: ARCHETYPE_CONSTRAINT < C_OBJECT (by extension) < CONSTRAINT_REF (by extension)
Sub-types: None
Name CONSTRAINT_REF
Abstract no
XML Instance Representation
<...>
<rm_type_name> string </rm_type_name> [1]
<occurrences> IntervalOfInteger </occurrences> [1]
<node_id> string </node_id> [1]
<reference> string </reference> [1]
</...>
Diagram
Schema Component Representation
<complexType name="CONSTRAINT_REF">
<complexContent>
<extension base=" C_OBJECT ">
<sequence>
<element name="reference" type=" string "/>
</sequence>
</extension>
</complexContent>
</complexType>
top

Complex Type: C_ATTRIBUTE

Super-types: ARCHETYPE_CONSTRAINT < C_ATTRIBUTE (by extension)
Sub-types:
Name C_ATTRIBUTE
Used by (from the same schema document) Complex Type C_COMPLEX_OBJECT
Abstract yes
XML Instance Representation
<...>
<rm_attribute_name> string </rm_attribute_name> [1]
<existence> IntervalOfInteger </existence> [1]
<children> C_OBJECT </children> [0..*]
</...>
Diagram
Schema Component Representation
<complexType name="C_ATTRIBUTE" abstract="true">
<complexContent>
<extension base=" ARCHETYPE_CONSTRAINT ">
<sequence>
<element name="rm_attribute_name" type=" string "/>
<element name="existence" type=" IntervalOfInteger "/>
<element name="children" type=" C_OBJECT " minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
top

Complex Type: C_BOOLEAN

Super-types: C_PRIMITIVE < C_BOOLEAN (by extension)
Sub-types: None
Name C_BOOLEAN
Abstract no
XML Instance Representation
<...>
<true_valid> boolean </true_valid> [1]
<false_valid> boolean </false_valid> [1]
<assumed_value> boolean </assumed_value> [0..1]
</...>
Diagram
Schema Component Representation
<complexType name="C_BOOLEAN">
<complexContent>
<extension base=" C_PRIMITIVE ">
<sequence>
<element name="true_valid" type=" boolean "/>
<element name="false_valid" type=" boolean "/>
<element name="assumed_value" type=" boolean " minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
top

Complex Type: C_COMPLEX_OBJECT

Super-types: ARCHETYPE_CONSTRAINT < C_OBJECT (by extension) < C_DEFINED_OBJECT (by extension) < C_COMPLEX_OBJECT (by extension)
Sub-types: None
Name C_COMPLEX_OBJECT
Used by (from the same schema document) Complex Type ARCHETYPE
Abstract no
XML Instance Representation
<...>
<rm_type_name> string </rm_type_name> [1]
<occurrences> IntervalOfInteger </occurrences> [1]
<node_id> string </node_id> [1]
<attributes> C_ATTRIBUTE </attributes> [0..*]
</...>
Diagram
Schema Component Representation
<complexType name="C_COMPLEX_OBJECT">
<complexContent>
<extension base=" C_DEFINED_OBJECT ">
<sequence>
<element name="attributes" type=" C_ATTRIBUTE " minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>