OntoDL Tutorial: Setting Properties (Part 1): Unterschied zwischen den Versionen

Aus CTS2-LE
Zur Navigation springen Zur Suche springen
(Example)
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 72: Zeile 72:
 
== Predefined Properties ==
 
== Predefined Properties ==
  
 
+
For each object type there are several properties defined in OntoDL which carry a defined semantics and are considered for the FHIR ValueSet resource that is generated from the OntoDL definitions. For each of these properties a fixed type is given; values assigned to such a property must comply to this type. Follow the links below to see the list of defined properties and their respective types for the object types introduced so far:
 +
* [[OntoDL Object Type: codesystem|''codesystem'']]
 +
* [[OntoDL Object Type: concept|''concept'']]
 +
Some properties have a type ''collection'' with a defined subtype. Properties of ''collection'' may be assigend to an object mutiple times; e.g. you may add multiple definitions to a concept. The subtype defines the type of the objects within the collection; e.g. ''definiton'' is a collection of strings.
  
 
== Qualified Properties ==
 
== Qualified Properties ==
  
 +
The FHIR ValueSet resource specification allows for concepts to have multiple designations for different usage and different language. OntoDL generalizes this idea and allows for every string value to be further qualified by a language and a usage restriction. For this strings are defined as objects of type ''string''. The ''string'' type defines two properties for holding this information:
 +
* Language: a string value holding a language code (e.g. ''de'' for Germany)
 +
* Use: a concept defining  the use of the string (e.g. synonym to the concept display name)
 +
In order to simplify the use of these properties, you may provide further qualifiers when defining a property. Qualifiers are placed in sqaure brackets and consis of a poperty-value-pair. Qualifiers set the respective properties of the object that represents the property to the defined object. E.g. when defing a property ''designation'' to a concept, OntoDL creates an object of type ''string'' that is linked with a ''collection'' named ''designation''. When the ''string'' object is defined, a qualifier ''Language=de" may be provided to instantiate the respective property of the ''string'' object.
 +
 +
<hr>
 +
{|
 +
|-
 +
! style="text-align:left; width:4em" | Style Sheet !! &nbsp; !! style="text-align:left; width:51em" | Text !! &nbsp; !! style="text-align:left" | ''Comment''
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">define codesystem (Clinics and Wards) {</span>|| || a new terminology is defined
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"|
 +
{|border="0" cellspacing="0" cellpadding = "0"
 +
  | style="text-align:left; width:0em" |&nbsp;
 +
  |
 +
  {|border="1" cellspacing="0" cellpadding = "4"
 +
  |- style="vertical-align:top"
 +
  |<span style="font-family:Courier;font-size:100%">...</span>
 +
  |<span style="font-family:Courier;font-size:100%">...</span>
 +
  |}
 +
|}
 +
|| || some properties are set
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">define concept (cardiologic clinic) {</span>|| || a concept is defined
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"|
 +
{|border="0" cellspacing="0" cellpadding = "0"
 +
  | style="text-align:left; width:2em" |&nbsp;
 +
  |
 +
  {|border="1" cellspacing="0" cellpadding = "4"
 +
  |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span>
 +
  |<span style="font-family:Courier;font-size:100%">Kardiologie</span>
 +
  |- style="vertical-align:top"
 +
  |<span style="font-family:Courier;font-size:100%">Designation[Language=es]</span>
 +
  |<span style="font-family:Courier;font-size:100%">cardiología</span>
 +
  |}
 +
|}
 +
|| || A German and a Spanisch designation is defined for the concept
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">}</span>|| ||
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">}</span>|| ||
 +
|}
 +
<hr>
 +
For this example OntoDL internally creates a ''collection'' named "Designation" because the property "Designation" has the type ''collection''. The expected values for the contents of the collection shall each have the type ''string''. In the example two such objects are defined. When creating these objects, OntoDL takes the defined qualifiers and applies them as property definitions to these objects. The first ''string'' object in the collection wil therefore have a property "Language" with the value "de" defined and the second will have a property "Language" with the value "es" defined.
  
 
== Example ==
 
== Example ==
 +
Below an example is shown, how the terminology defined in Lesson 1 looks like with all relevant properties set to meaningful values.
 
<hr>
 
<hr>
 
{|
 
{|
Zeile 83: Zeile 133:
 
! style="text-align:left; width:4em" | Style Sheet !! &nbsp; !! style="text-align:left; width:51em" | Text !! &nbsp; !! style="text-align:left" | ''Comment''
 
! style="text-align:left; width:4em" | Style Sheet !! &nbsp; !! style="text-align:left; width:51em" | Text !! &nbsp; !! style="text-align:left" | ''Comment''
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">define codesystem (T02 Property Tables) {</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">define codesystem (Clinics and Wards) {</span>|| || A new terminology "Clinics and Wards" is defined.
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
 
| OntoDL|| ||style="background:#fff588"|  
 
| OntoDL|| ||style="background:#fff588"|  
Zeile 91: Zeile 141:
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">URI</span>
+
   |<span style="font-family:Courier;font-size:100%">URI</span>
   |<span style="font-family:Courier;font-size:110%">http://hospital.com/placeofstay</span>
+
   |<span style="font-family:Courier;font-size:100%">http://hospital.com/placeofstay</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Version</span>
+
   |<span style="font-family:Courier;font-size:100%">Version</span>
   |<span style="font-family:Courier;font-size:110%">0.1</span>
+
   |<span style="font-family:Courier;font-size:100%">0.1</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Description</span>
+
   |<span style="font-family:Courier;font-size:100%">Description</span>
   |<span style="font-family:Courier;font-size:110%">This terminology lists all clinics and wards of the ABC-hospital. All internal IT-Systems shall dynamically load information about clinics and wards from this terminology.</span>
+
   |<span style="font-family:Courier;font-size:100%">This terminology lists all clinics and wards of the ABC-hospital. All internal IT-Systems shall dynamically load information about clinics and wards from this terminology.</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Group</span>
+
   |<span style="font-family:Courier;font-size:100%">Group</span>
   |<span style="font-family:Courier;font-size:110%">EXA</span>
+
   |<span style="font-family:Courier;font-size:100%">EXA</span>
 
   |}
 
   |}
 
  |}
 
  |}
|| || Comment
+
|| || The "URI" and "Version" properties of a ''codesystem'' object together form the unique identifier for the respective resource in CTS2-LE. The "Group" property advises CTS2-LE where to place the terminology in the terminology browser. The "Description" property gives some narrative text to help the user to understand what this terminology is for.
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:110%">define concept (cardiologic clinic) {</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">define concept (cardiologic clinic) {</span>|| || A concept named "cardiologic clinic" is defined within the code system.
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
 
| OntoDL|| ||style="background:#fff588"|  
 
| OntoDL|| ||style="background:#fff588"|  
Zeile 114: Zeile 164:
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Display</span>
+
   |<span style="font-family:Courier;font-size:100%">Display</span>
   |<span style="font-family:Courier;font-size:110%">Cardiologic Clinic, Prof. Smyth</span>
+
   |<span style="font-family:Courier;font-size:100%">Cardiologic Clinic, Prof. Smyth</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Designation[Language=de]</span>
+
   |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span>
   |<span style="font-family:Courier;font-size:110%">Kardiologische Klinik</span>
+
   |<span style="font-family:Courier;font-size:100%">Kardiologische Klinik</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Definition</span>
+
   |<span style="font-family:Courier;font-size:100%">Definition</span>
   |<span style="font-family:Courier;font-size:110%">The Cardiologic Clinic (Head: Prof. Smyth) takes responsibility for all cardiologic interventions and acute care therapies.</span>
+
   |<span style="font-family:Courier;font-size:100%">The Cardiologic Clinic (Head: Prof. Smyth) takes responsibility for all cardiologic interventions and acute care therapies.</span>
 
   |}
 
   |}
 
  |}
 
  |}
|| || Comment
+
|| || The "Display" property sets the text to be shown in the CTS2-LE terminology browser. The "Designation" property defines an alternative designation for the concept. A qualifier is used to signal that this is a German designation. In this example only a single designation is defined, but as "Designation" is defined as ''collection'' type, you may assign an arbitrary numer of designations - even with the same language - to a concept.<br>
 +
The "Definition" property provides the normative definition of the concept. This property is of type ''collection of string'', too, so we may have added further definitions with additional qualifiers (which makes no sense for this property, because FHIR does not allow for language tags with definition elements.
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:110%">define concept (ward 51.1) {</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">define concept (ward 51.1) {</span>|| ||  
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
 
| OntoDL|| ||style="background:#fff588"|  
 
| OntoDL|| ||style="background:#fff588"|  
Zeile 134: Zeile 185:
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Display</span>
+
   |<span style="font-family:Courier;font-size:100%">Display</span>
   |<span style="font-family:Courier;font-size:110%">Cardiologic care ward for Women and Children</span>
+
   |<span style="font-family:Courier;font-size:100%">Cardiologic care ward for Women and Children</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Designation[Language=de]</span>
+
   |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span>
   |<span style="font-family:Courier;font-size:110%">Kardiologische Station für Frauen und Kinder</span>
+
   |<span style="font-family:Courier;font-size:100%">Kardiologische Station für Frauen und Kinder</span>
 
   |}
 
   |}
 
  |}
 
  |}
|| || Comment
+
|| ||  
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">}</span>|| ||
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:110%">define concept (ward 51.2) {</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">define concept (ward 51.2) {</span>|| ||  
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
 
| OntoDL|| ||style="background:#fff588"|  
 
| OntoDL|| ||style="background:#fff588"|  
Zeile 151: Zeile 204:
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Display</span>
+
   |<span style="font-family:Courier;font-size:100%">Display</span>
   |<span style="font-family:Courier;font-size:110%">Cardiologic care ward for Intensive Care</span>
+
   |<span style="font-family:Courier;font-size:100%">Cardiologic care ward for Intensive Care</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Designation[Language=de]</span>
+
   |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span>
   |<span style="font-family:Courier;font-size:110%">Kardiologische Intensivstation</span>
+
   |<span style="font-family:Courier;font-size:100%">Kardiologische Intensivstation</span>
 
   |}
 
   |}
 
  |}
 
  |}
|| || Comment
+
|| ||  
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">}</span>|| ||
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:110%">}</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">}</span>|| || Comment
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:110%">define concept (orthopedic clinic) {</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">define concept (orthopedic clinic) {</span>|| ||  
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
 
| OntoDL|| ||style="background:#fff588"|  
 
| OntoDL|| ||style="background:#fff588"|  
Zeile 170: Zeile 225:
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Display</span>
+
   |<span style="font-family:Courier;font-size:100%">Display</span>
   |<span style="font-family:Courier;font-size:110%">Orthopedic Clinic, Prof. Miller</span>
+
   |<span style="font-family:Courier;font-size:100%">Orthopedic Clinic, Prof. Miller</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Designation[Language=de]</span>
+
   |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span>
   |<span style="font-family:Courier;font-size:110%">Orthopädische Klinik</span>
+
   |<span style="font-family:Courier;font-size:100%">Orthopädische Klinik</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Definition</span>
+
   |<span style="font-family:Courier;font-size:100%">Definition</span>
   |<span style="font-family:Courier;font-size:110%">The Orthopedic Clinic (Head: Prof. Miller) takes responsibility for all interventions and therapies related to knee and hip problems.</span>
+
   |<span style="font-family:Courier;font-size:100%">The Orthopedic Clinic (Head: Prof. Miller) takes responsibility for all interventions and therapies related to knee and hip problems.</span>
 
   |}
 
   |}
 
  |}
 
  |}
|| || Comment
+
|| ||  
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:110%">define concept (ward 52.1){</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">define concept (ward 52.1){</span>|| ||  
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
 
| OntoDL|| ||style="background:#fff588"|  
 
| OntoDL|| ||style="background:#fff588"|  
Zeile 190: Zeile 245:
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   {|border="1" cellspacing="0" cellpadding = "4"
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Display</span>
+
   |<span style="font-family:Courier;font-size:100%">Display</span>
   |<span style="font-family:Courier;font-size:110%">Orthopedic care ward for knee and hip patients</span>
+
   |<span style="font-family:Courier;font-size:100%">Orthopedic care ward for knee and hip patients</span>
 
   |- style="vertical-align:top"
 
   |- style="vertical-align:top"
   |<span style="font-family:Courier;font-size:110%">Designation[Language=de]</span>
+
   |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span>
   |<span style="font-family:Courier;font-size:110%">Orthopädische Station für Knie- und Hüft-Patienten</span>
+
   |<span style="font-family:Courier;font-size:100%">Orthopädische Station für Knie- und Hüft-Patienten</span>
 
   |}
 
   |}
 
  |}
 
  |}
 
|| || Comment
 
|| || Comment
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:110%">}</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">}</span>|| ||
 +
|- style="vertical-align:top"
 +
| OntoDL|| ||style="background:#fff588"| &nbsp;&nbsp;&nbsp;<span style="font-family:Courier;font-size:100%">}</span>|| ||  
 
|- style="vertical-align:top"
 
|- style="vertical-align:top"
| OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">}</span>|| || Comment
+
| OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">}</span>|| ||  
 
|}
 
|}
 
<hr>
 
<hr>

Aktuelle Version vom 12. September 2016, 17:49 Uhr

Motivation

Rationale
in the first lesson, the OntoDL object types codesystem and concept have been introduced. For the sampke code system a name, URI and version numer were provided while concepts had just been assigned a name which implicitly was considered the concept's code, too. Nevertheless, there is more to say about a code system or concept. E.g. a concept may need a definiton and a text to display to the user. Additional information may include synonyms for the concept or designations in different languages.
In this lesson you will learn how to use object properties to further describe a newly defined code system and concept
What you need
You should have worked through Lesson 1 of this tutorial in order to have a basic understanding of OntoDL objects. Beside this you need your MS Word with the OntoDL macro installed.
Example
This example builds upon the example introduced in Lesson 1 which again implements a simple story board:
Storyboard: In order to foster semantic interoperability among its IT-systems a hospital wants to define unique terminologies for its clinics. Each clinic and each ward shall be assigned a unique code that shall be used throughout all IT-systems for referring to that clinic or ward.

Properties of Code Systems and Concepts

Each OntoDL object can be further described by properties. In Lesson 1 the definitions of a URI and Version for a codesystem object are examples for the use of propereties. As properties are the most important means to control the definition of an object, OntoDL offers many different ways for assigning values to properties. In this lesson we will focus on the OntoDL Object Language syntax which is rather simple. All you need to do is to place a 2-column-table into the definition scope of an object that holds the property name in the first column and the assigned value of the property in the second column. The example below shows how to define a display value and a definition for a concept:


Style Sheet   Text   Comment
OntoDL
define concept (cardiologic clinic) {
The opening brace sets up the definition scope for the concept "cardiologic clinic". All property value assignements done within the definition scope are implicitly linked to this concept.
OntoDL
 
Display
Cardiologic Clinic, Prof. Smyth
Definition
The Cardiologic Clinic (Head: Prof. Smyth) takes responsibility for all cardiologic interventions and acute care therapies.
The left column gives the properties to be set while the second column gives the values to be assigned to these properties.
OntoDL
}
Comment

Predefined Properties

For each object type there are several properties defined in OntoDL which carry a defined semantics and are considered for the FHIR ValueSet resource that is generated from the OntoDL definitions. For each of these properties a fixed type is given; values assigned to such a property must comply to this type. Follow the links below to see the list of defined properties and their respective types for the object types introduced so far:

Some properties have a type collection with a defined subtype. Properties of collection may be assigend to an object mutiple times; e.g. you may add multiple definitions to a concept. The subtype defines the type of the objects within the collection; e.g. definiton is a collection of strings.

Qualified Properties

The FHIR ValueSet resource specification allows for concepts to have multiple designations for different usage and different language. OntoDL generalizes this idea and allows for every string value to be further qualified by a language and a usage restriction. For this strings are defined as objects of type string. The string type defines two properties for holding this information:

  • Language: a string value holding a language code (e.g. de for Germany)
  • Use: a concept defining the use of the string (e.g. synonym to the concept display name)

In order to simplify the use of these properties, you may provide further qualifiers when defining a property. Qualifiers are placed in sqaure brackets and consis of a poperty-value-pair. Qualifiers set the respective properties of the object that represents the property to the defined object. E.g. when defing a property designation to a concept, OntoDL creates an object of type string that is linked with a collection named designation. When the string object is defined, a qualifier Language=de" may be provided to instantiate the respective property of the string object.


Style Sheet   Text   Comment
OntoDL define codesystem (Clinics and Wards) { a new terminology is defined
OntoDL
 
... ...
some properties are set
OntoDL    define concept (cardiologic clinic) { a concept is defined
OntoDL
 
Designation[Language=de] Kardiologie
Designation[Language=es] cardiología
A German and a Spanisch designation is defined for the concept
OntoDL    }
OntoDL }

For this example OntoDL internally creates a collection named "Designation" because the property "Designation" has the type collection. The expected values for the contents of the collection shall each have the type string. In the example two such objects are defined. When creating these objects, OntoDL takes the defined qualifiers and applies them as property definitions to these objects. The first string object in the collection wil therefore have a property "Language" with the value "de" defined and the second will have a property "Language" with the value "es" defined.

Example

Below an example is shown, how the terminology defined in Lesson 1 looks like with all relevant properties set to meaningful values.


Style Sheet   Text   Comment
OntoDL define codesystem (Clinics and Wards) { A new terminology "Clinics and Wards" is defined.
OntoDL
 
URI http://hospital.com/placeofstay
Version 0.1
Description This terminology lists all clinics and wards of the ABC-hospital. All internal IT-Systems shall dynamically load information about clinics and wards from this terminology.
Group EXA
The "URI" and "Version" properties of a codesystem object together form the unique identifier for the respective resource in CTS2-LE. The "Group" property advises CTS2-LE where to place the terminology in the terminology browser. The "Description" property gives some narrative text to help the user to understand what this terminology is for.
OntoDL    define concept (cardiologic clinic) { A concept named "cardiologic clinic" is defined within the code system.
OntoDL
 
Display Cardiologic Clinic, Prof. Smyth
Designation[Language=de] Kardiologische Klinik
Definition The Cardiologic Clinic (Head: Prof. Smyth) takes responsibility for all cardiologic interventions and acute care therapies.
The "Display" property sets the text to be shown in the CTS2-LE terminology browser. The "Designation" property defines an alternative designation for the concept. A qualifier is used to signal that this is a German designation. In this example only a single designation is defined, but as "Designation" is defined as collection type, you may assign an arbitrary numer of designations - even with the same language - to a concept.

The "Definition" property provides the normative definition of the concept. This property is of type collection of string, too, so we may have added further definitions with additional qualifiers (which makes no sense for this property, because FHIR does not allow for language tags with definition elements.

OntoDL       define concept (ward 51.1) {
OntoDL
 
Display Cardiologic care ward for Women and Children
Designation[Language=de] Kardiologische Station für Frauen und Kinder
OntoDL       }
OntoDL       define concept (ward 51.2) {
OntoDL
 
Display Cardiologic care ward for Intensive Care
Designation[Language=de] Kardiologische Intensivstation
OntoDL       }
OntoDL    } Comment
OntoDL    define concept (orthopedic clinic) {
OntoDL
 
Display Orthopedic Clinic, Prof. Miller
Designation[Language=de] Orthopädische Klinik
Definition The Orthopedic Clinic (Head: Prof. Miller) takes responsibility for all interventions and therapies related to knee and hip problems.
OntoDL       define concept (ward 52.1){
OntoDL
 
Display Orthopedic care ward for knee and hip patients
Designation[Language=de] Orthopädische Station für Knie- und Hüft-Patienten
Comment
OntoDL       }
OntoDL    }
OntoDL }