OntoDL Tutorial: Setting Properties (Part 1): Unterschied zwischen den Versionen
(→Predefined Properties) |
K (→Example) |
||
| Zeile 86: | Zeile 86: | ||
! style="text-align:left; width:4em" | Style Sheet !! !! style="text-align:left; width:51em" | Text !! !! style="text-align:left" | ''Comment'' | ! style="text-align:left; width:4em" | Style Sheet !! !! style="text-align:left; width:51em" | Text !! !! style="text-align:left" | ''Comment'' | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size: | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:120%">define codesystem (T02 Property Tables) {</span>|| || Comment |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| OntoDL|| ||style="background:#fff588"| | | OntoDL|| ||style="background:#fff588"| | ||
| Zeile 94: | Zeile 94: | ||
{|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: | + | |<span style="font-family:Courier;font-size:100%">URI</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Version</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Description</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Group</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<span style="font-family:Courier;font-size:100%">EXA</span> |
|} | |} | ||
|} | |} | ||
| Zeile 117: | Zeile 117: | ||
{|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: | + | |<span style="font-family:Courier;font-size:100%">Display</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Definition</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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 | || || Comment | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size: | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">define concept (ward 51.1) {</span>|| || Comment |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| OntoDL|| ||style="background:#fff588"| | | OntoDL|| ||style="background:#fff588"| | ||
| Zeile 137: | Zeile 137: | ||
{|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: | + | |<span style="font-family:Courier;font-size:100%">Display</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<span style="font-family:Courier;font-size:100%">Kardiologische Station für Frauen und Kinder</span> |
|} | |} | ||
|} | |} | ||
|| || Comment | || || Comment | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size: | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">define concept (ward 51.2) {</span>|| || Comment |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| OntoDL|| ||style="background:#fff588"| | | OntoDL|| ||style="background:#fff588"| | ||
| Zeile 154: | Zeile 154: | ||
{|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: | + | |<span style="font-family:Courier;font-size:100%">Display</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<span style="font-family:Courier;font-size:100%">Kardiologische Intensivstation</span> |
|} | |} | ||
|} | |} | ||
|| || Comment | || || Comment | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size: | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">}</span>|| || Comment |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">define concept (orthopedic clinic) {</span>|| || Comment | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">define concept (orthopedic clinic) {</span>|| || Comment | ||
| Zeile 173: | Zeile 173: | ||
{|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: | + | |<span style="font-family:Courier;font-size:100%">Display</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Definition</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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 | || || Comment | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size: | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">define concept (ward 52.1){</span>|| || Comment |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| OntoDL|| ||style="background:#fff588"| | | OntoDL|| ||style="background:#fff588"| | ||
| Zeile 193: | Zeile 193: | ||
{|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: | + | |<span style="font-family:Courier;font-size:100%">Display</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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: | + | |<span style="font-family:Courier;font-size:100%">Designation[Language=de]</span> |
| − | |<span style="font-family:Courier;font-size: | + | |<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"| <span style="font-family:Courier;font-size: | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">}</span>|| || Comment |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size: | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:100%">}</span>|| || Comment |
|} | |} | ||
<hr> | <hr> | ||
Version vom 12. September 2016, 15:58 Uhr
Inhaltsverzeichnis
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 |
|
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 |
|
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
Example
| Style Sheet | Text | Comment | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OntoDL | define codesystem (T02 Property Tables) { | Comment | ||||||||||||
| OntoDL |
|
Comment | ||||||||||||
| OntoDL | define concept (cardiologic clinic) { | Comment | ||||||||||||
| OntoDL |
|
Comment | ||||||||||||
| OntoDL | define concept (ward 51.1) { | Comment | ||||||||||||
| OntoDL |
|
Comment | ||||||||||||
| OntoDL | define concept (ward 51.2) { | Comment | ||||||||||||
| OntoDL |
|
Comment | ||||||||||||
| OntoDL | } | Comment | ||||||||||||
| OntoDL | define concept (orthopedic clinic) { | Comment | ||||||||||||
| OntoDL |
|
Comment | ||||||||||||
| OntoDL | define concept (ward 52.1){ | Comment | ||||||||||||
| OntoDL |
|
Comment | ||||||||||||
| OntoDL | } | Comment | ||||||||||||
| OntoDL | } | Comment |