09.04.2013 Views

SNOMED CT® Release Format 1 (RF1) Guide - ihtsdo

SNOMED CT® Release Format 1 (RF1) Guide - ihtsdo

SNOMED CT® Release Format 1 (RF1) Guide - ihtsdo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Now we have tree nodes and their children for each Concept. If the nodes have been added to a Windows<br />

tree view component, display will be automatic. If a text-based display is being used then the nodes can be<br />

output to the screen using the indent style display. Note that the Concept 'E' appears in the tree view twice,<br />

under each of its parents.<br />

Figure 51: Graphical view of sample hierarchy - descendants of "A"<br />

• (1) A<br />

• (2) B<br />

• (3) D<br />

• (4) E<br />

• (5) C<br />

• (6) E<br />

• (7) F<br />

Figure 52: Tree view of sample hierarchy<br />

4.4.2.6.2. Example 2 - Show all ancestors of Concept "E"<br />

In order to construct the tree view, we must start from the top down, so we must create a temporary view of<br />

the hierarchy before we can add nodes to the tree view. Query to get the parents of 'E'. Process each parent<br />

recursively, i.e. add an entry to the temporary table, stating that 'E' is a child of each of its parents, then query<br />

to get its parent, etc. When the top of the tree is reached, a record is kept of the top-level Concept, since this<br />

will be the starting point for building the tree view.<br />

Table 258: Temporary view of the hierarchy<br />

Concept<br />

B<br />

C<br />

A<br />

Child Concept<br />

E<br />

E<br />

B<br />

Terminology services <strong>Guide</strong> (<strong>RF1</strong>) | 331<br />

© 2002-2012 International Health Terminology Standards Development Organisation CVR #: 30363434

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!