DMSObjDef XML Format
The DMSObjDef format describes the complete object definition of a enaio® system. It contains all cabinets (archives), object types and their fields including layout, control and validation properties.
The associated schema file is DMSObjDef.xsd.
The DMSObjDef.xsd is outdated and no longer reflects the complete state of enaio® object definitions. Attributes and elements present in real-world object definitions may be missing from or differ in the XSD. This documentation may therefore be incomplete.
|
1. Usage
The DMSObjDef format is used by the following jobs:
| Job | Description |
|---|---|
Returns the complete object definition of the system as XML |
|
Returns the schema file |
2. XML Structure
<asobjdef version="5.00" created="2024-01-01T00:00:00" limited_objects="0">
<languages>
<language lang_id="1" active="1" name="de_DE"/>
</languages>
<cabinet cotype="0" name="Patient Record" internal="patient_cabinet">
<object maintype="1" cotype="0" tablename="object1"
name="Folder" internal="folder" iconid="0"
os_guid="..." compressionflags="0" historyflags="0">
<names>
<name lang_id="1">Folder</name>
</names>
<fields>
<field name="Last Name" internal="last_name" os_guid="..." taborder="1">
<names>
<name lang_id="1">Last Name</name>
</names>
<flags dt="A" flags="0" flags1="0" flags2="0"
control_type="edit" datatype="text" align="left"
required="0" readonly="" multifield="0"/>
<field_pos top="0" left="0" right="200" bottom="20"/>
<input_pos top="0" left="100" right="400" bottom="20"/>
</field>
</fields>
<ids oid="196616" pid="0" vid="0"/>
<frame top="0" left="0" right="800" bottom="600"/>
<multiframe height="600" width="800"/>
</object>
</cabinet>
</asobjdef>
3. Elements and Attributes
3.1. <asobjdef> — Root Element
| Attribute | Type | Required | Description |
|---|---|---|---|
|
dateTime |
Yes |
Creation timestamp of the object definition |
|
String |
No |
Schema version (default: |
|
Short |
No |
|
3.2. <languages> / <language>
Lists all languages configured in the system.
| Attribute | Type | Required | Description |
|---|---|---|---|
|
Long |
Yes |
Numeric language ID |
|
Short (0–2) |
Yes |
Activation status: |
|
Name |
Yes |
Language identifier (e.g. |
3.3. <cabinet> — Cabinet (Archive)
An <asobjdef> contains zero or more <cabinet> elements.
| Attribute | Type | Required | Description |
|---|---|---|---|
|
String (1–100) |
Yes |
Display name of the cabinet |
|
Short |
Yes |
Internal cabinet type |
|
String |
No |
Internal name of the cabinet |
3.4. <object> — Object Type
Each cabinet contains at least one <object> entry.
| Attribute | Type | Required | Description |
|---|---|---|---|
|
String (1–100) |
Yes |
Display name of the object type |
|
String |
No |
Internal name of the object type |
|
NMTOKEN |
Yes |
Database table name of the object (e.g. |
|
String |
No |
Name of the extended database table |
|
String |
Yes |
Globally unique identifier of the object type |
|
Short |
Yes |
Main type of the object type. Value range and meaning: see Object Type ID. |
|
Short |
Yes |
Subtype of the object type (lowword of the object type ID). See Object Type ID. |
|
Long |
Yes |
ID of the custom icon ( |
|
Long |
Yes |
Compression settings (bitmask) |
|
Long |
Yes |
History settings (bitmask) |
|
Short |
No |
|
|
Short |
No |
|
|
Short |
No |
|
|
Short |
No |
|
|
Short |
No |
|
Sub-elements of <object>:
| Element | Description |
|---|---|
|
Multilingual display names — one |
|
List of index fields for the object type ( |
|
Internal type IDs: |
|
Size and position of the input mask (attributes: |
|
Size of the multi-frame area (attributes: |
|
Restricted subtypes ( |
3.5. <field> — Index Field
Describes a single index field of an object type.
| Attribute | Type | Required | Description |
|---|---|---|---|
|
String (1–100) |
Yes |
Display name of the field |
|
String |
No |
Internal field name |
|
Name |
No |
Database column name |
|
String |
Yes |
Globally unique identifier of the field |
|
Long |
Yes |
Tab order in the input mask |
|
String |
No |
Tooltip text |
|
String |
No |
Print label (alias for reports) |
|
String |
No |
CSS class identifier for UI control |
|
String |
No |
Initialisation expression |
Sub-elements of <field>:
| Element | Description |
|---|---|
|
Multilingual field labels |
|
Internal field IDs (optional) |
|
Field properties (data type, control, validation — see below) |
|
Position of the field label in the mask ( |
|
Position of the input control in the mask ( |
|
Initialisation: |
|
Value list for list controls ( |
|
Column definition for grid controls |
|
Page view of the field (contains a further |
3.5.1. <flags> — Field Properties
| Attribute | Type | Default | Description |
|---|---|---|---|
|
osdatatype |
— |
Data type of the field (see Field Data Types) |
|
Long |
— |
Internal field flags (bitmask) |
|
Long |
— |
Extended field flags 1 (bitmask) |
|
Long |
— |
Extended field flags 2 (bitmask) |
|
controltype |
|
Control type (see Control Types) |
|
contenttype |
|
Content data type (see Content Types) |
|
aligntype |
|
Text alignment: |
|
readonlytype |
— |
Write-protection mode (see Read-only Types) |
|
Short |
|
|
|
Short |
|
|
|
Short |
|
|
|
constraintype |
|
Input constraint (see Constraint Types) |
|
Long |
|
Maximum input length in characters ( |
|
Short |
|
|
|
String |
— |
Field text colour (HTML colour value) |
|
Short |
|
Case rule: |
4. Type Definitions
4.1. Field Data Types (osdatatype)
| Value | Meaning |
|---|---|
|
Alphanumeric (variable length) |
|
Single character |
|
Date |
|
Decimal number |
|
Internal type |
|
Integer |
|
Internal type |
|
List |
|
Memo (multi-line text) |
|
Internal type |
|
String (fixed length) |
|
Time |
|
Internal type |
|
W-document type reference |
|
Internal type |
|
Internal type |
|
Internal special types |
4.2. Control Types (controltype)
| Value | Meaning |
|---|---|
|
Single-line input field (default) |
|
Multi-line input field |
|
Read-only display |
|
Checkbox |
|
Radio button |
|
List box (dropdown) |
|
Database-linked list |
|
Tree view |
|
Hierarchy control |
|
Structure field |
|
Grid control (table fields) |
|
Tab control (page tabs) |
|
Extension module |
4.3. Content Types (contenttype)
| Value | Meaning |
|---|---|
|
Text (default) |
|
Date |
|
Decimal number |
|
Integer |
|
Image |
|
Group |
|
Text (automatic uppercase) |