Search



Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For each snapshot view the SNOMED CT example database includes two views that select the

Gloss
tsupertype parents
 of a specified concept and two views that select the
Gloss
tsubtype children
 of a specified concept. These views select the id and either the fully specified name or preferred synonym of each parent or child concept. The characteristics of each of these views are shown in 
Caption reference
CapRefIdparent-child-view
CapRefTypeTable
 and a general template for the SQL definitions of these views is shown in 
Caption reference
CapRefIdparent-child-view
CapRefTypeTemplate
. To create each of the views named in the table, the placeholders for {termtype} need to be replaced with values in the Specific Settings column of the table. 

...

For each snapshot view the SNOMED CT example database includes two views that select the 

Gloss
tsupertype ancestors
 of a specified concept and two views that select the 
Gloss
tsubtype descendants
 of a specified concept. These views select the id and either the fully specified name or preferred synonym of each ancestor or descendant concept. The characteristics of each of these views are shown in 
Caption reference
CapRefIdtransitive-closure-view
CapRefTypeTable
 and a general template for the SQL definitions of these views is shown in 
Caption reference
CapRefIdtransitive-closure-view
CapRefTypeTemplate
. To create each of the views named in the table, the placeholders for {termtype} need to be replaced with values in the Specific Settings column of the table. 

...

Name

Footnote Macro

Transitive closure and proximal primitive views are only available for the current snapshot..


DescriptionSpecific Settings
{termtype}
snap_tc_ancestor_fsn
Selects the id and fully specified name of each supertype ancestor of a concept specified by conceptId. fsn
snap_tc_ancestor_pref
Selects the id and preferred synonym of each supertype ancestor of a concept specified by conceptId.

pref

snap_tc_descendant_fsn
Selects the id and fully specified name of each subtype descendant of a concept specified by conceptId. fsn
snap_tc_descendant_pref
Selects the id and preferred synonym of each subtype descendant of a concept specified by conceptId.

pref

...

SQL Query


Code Block
languagesql
themeConfluence
Select "Concept", conceptid, term from snap_pref where conceptId=602500716001004
UNION
Select "Ancestor", id, term from snap_tc_ancestor_pref where conceptId=602500716001004
UNION
Select "Descendant", id, term from snap_tc_descendant_pref where conceptId=602500716001004;


Result
ConceptconceptIdterm
Concept16001004Otalgia
Ancestor22253000Pain
Ancestor102957003Neurological finding
Ancestor106147001Sensory nervous system finding
Ancestor118234003Finding by site
Ancestor118236001Ear and auditory finding
Ancestor118254002Finding of head and neck region
Ancestor138875005SNOMED CT Concept
Ancestor247234006Ear finding
Ancestor276435006Pain / sensation finding
Ancestor279001004Pain finding at anatomical site
Ancestor297268004Ear, nose and throat finding
Ancestor301354004Pain of ear structure
Ancestor301857004Finding of body region
Ancestor404684003Clinical finding
Ancestor406122000Head finding
Ancestor699697007Finding of sensation by site
Descendant12336008Referred otalgia
Descendant74123003Otogenic otalgia
Descendant162356005Earache symptoms
Descendant162359003Bilateral earache
Descendant430879002Posterior auricular pain
Descendant1084561000119106Bilateral referred otalgia of ears
Descendant1089561000119107Referred otalgia of left ear
Descendant1092171000119100Referred otalgia of right ear

...

For each snapshot view the SNOMED CT example database includes two views that select the 

Gloss
tproximal primitive parents
 of a specified concept and two views that select the 
Gloss
tsubtype children
 of a specified concept. These views select the id and either the fully specified name or preferred synonym of each parent or child concept. The characteristics of each of these views are shown in 
Caption reference
CapRefIdparent-child-view
CapRefTypeTable
 and a general template for the SQL definitions of these views is shown in 
Caption reference
CapRefIdparent-child-view
CapRefTypeTemplate
. To create each of the views named in the table, the placeholders for {termtype} need to be replaced with values in the Specific Settings column of the table. 

Caption reference
CapRefIdparent-child-view
CapRefTypeExample
 and
Caption reference
CapRefIdtransitive-closure-view
CapRefTypeExample
 demonstrate the use of these views to select the id and preferred term for a specified concept and all of its supertype parents and subtype children.

For each snapshot view the SNOMED CT example database includes ... . The characteristics of each of these views are shown in 

Caption reference
CapRefIdproximal-primitive-view
CapRefTypeTable
 and a general template for the SQL definitions of these views is shown in 
Caption reference
CapRefIdproximal-primitive-view
CapRefTypeTemplate
. To create each of the views named in the table, the placeholders for {viewtype} need to be replaced with values in the Specific Settings column of the table. 

...