Load SNOMED
From DOC
Contents |
Objectives
- SNOMED is loaded to the Wiki under program control
- Loaded content is to be read only by end-users
- End-users are encouraged to comment on SNOMED content using the Discussion (talk) pages behind each SNOMED page
- The loaded content will be versioned (in the usual way) such that only updated terms will get a new article version in the Wiki.
- The loaded content is represented both visually and semantically
- One article per concept
- And additional article per synonym that redirects to the main concept article
SNOMED Reference
The SNOMED User's Guide describes the overall SNOMED approach.
The Technical Reference Guide might also be useful for decoding specific fields.
SNOMED Content
There are three files involved:
- Concepts: sct_concepts_20080731.txt
- Descriptions: sct_descriptions_20080731.txt
- Relationships: sct_relationships_20080731.txt
These files are described in section 6.2 of the User's guide
A zip file containing SNOMED files can bre found here.
Only select active concepts for loading, that is, concepts with a ConceptStatus = 0.
Wiki Representation
Each item in the concepts file will result in an entry in wiki. Each item in the descriptions file will result in an entry in the wiki that is a redirect to the concept entry. Each item in the relationships file will add to the concept entry. In effect, the relationship entry adds "properties" to the Concepts entries as described below.
Templates
Rather than loading Wiki markup commands directly, the loaded content is represented in the form of Wiki "templates".
The body of each template will layout the article and semantic content as needed.
Loaded Content
Two types of Wiki articles are created: A concept article and a synonym (redirect) article. The synonym article does nothing more than reference a synonym to the concept article. The concept article contains the bulk of the information about a concept and how it relates to other concepts. The name of a concept article is critical and is used throughout to reference concept pages.
Concept Article Name
There will be one article per concept (per SNOMED conceptId). The name (title) of the article will be as follows:
- The Preferred Term of the concept
- A space
- The literal "(SCT"
- A space
- The conceptId
- The literal ")"
For example:
Myocardial infarction (SCT 22298006)
Notice that the ID in the article name is the concept ID, not the description ID.
Concept Article Content
The following is an example of a concept header:
{{Concept (SCT)|conceptId=22298006}}
Zero or more axis parameters can be specified.
{{Axis (SCT)|disorder}}
The axis is extracted from the name in parentheses in the FullySpecifiedName description entry. The fully specified name (not preferred term) for this article is:
Myocardial infarction (disorder)
So the axis parameter value is disorder.
A fully specified name can have more than one axis. For example, the following fully specified name has two.
Immunotherapy for cancer (regime/therapy)(procedure)
which would result in:
{{Axis (SCT)|regime/therapy}}
{{Axis (SCT)|procedure}}
If a fully specified name has no axis entries or if more than one fully specified name entry is found, use the aggregate without duplicates.
Matching on parentheses is not completely reliable for determining axis and so one more test must be performed on the axis: If a a candidate for axis such as, say, (animal) is identified but it is also found in the preferred term (including the parentheses), then it is not an axis.
Each item in the descriptions file for a concept is represented by a term entry. For example,
{{Term (SCT)|descriptionId=751689013|type=FullySpecifiedName|name=Myocardial infarction (disorder)}}
{{Term (SCT)|descriptionId=37436014|type=Preferred|name=Myocardial infarction}}
{{Term (SCT)|descriptionId=37442013|type=Synonym|name=Cardiac infarction}}
{{Term (SCT)|descriptionId=37443015|type=Synonym|name=Heart attack}}
{{Term (SCT)|descriptionId=37441018|type=Synonym|name=Infarction of heart}}
DescriptionType values (Type in the template):
- 0 = Unspecified
- 1 = Preferred
- 2 = Synonym
- 3 = FullySpecifiedName
Relationships are also be added to the article. One relationship per record. One concept will have zero or more relationship entries in the article. Consider the following record from the relationships table:
RELA..ID CONCEPTID1 REL...TYPE CONCEPTID2 CH..PE REF..ITY REL...GROUP 184430024 22298006 116680003 57809008 0 0 0
The from concept would be this article, which is named
Myocardial infarction (SCT 22298006)
The relationship type is determined by looking up the concept for 116680003 and creating the name based on the preferred term (not the fully specified term) of that concept.
Is a (SCT)
Notice that the concept code is not appended in this case, only (SCT). The concept code of the relationship is also supplied as a separate parameter (relConceptId).
116680003
Finally, the other concept, ie concept2, is specified by name as well.
Disorder of myocardium (SCT 57809008)
resulting in an entry in the concept article of:
{{Relation (SCT)|relationshipId=184430024|relationship=Is a (SCT)|relConceptId=116680003|concept2=Disorder of myocardium (SCT 57809008)}}
Summary of a Concept Article
A complete article named:
Myocardial infarction (SCT 22298006)
might look like this:
{{Concept (SCT)|conceptId=22298006}}
{{Axis (SCT)|disorder}}
{{Term (SCT)|descriptionId=751689013|type=FullySpecifiedName|name=Myocardial infarction (disorder)}}
{{Term (SCT)|descriptionId=37436014|type=Preferred|name=Myocardial infarction}}
{{Term (SCT)|descriptionId=37442013|type=Synonym |name=Cardiac infarction}}
{{Term (SCT)|descriptionId=37443015|type=Synonym |name=Heart attack}}
{{Term (SCT)|descriptionId=37441018|type=Synonym |name=Infarction of heart}}
{{Relation (SCT)|relationshipId=184430024|relationship=Is a (SCT)|concept2=Disorder of myocardium (SCT 57809008)}}
{{Relation (SCT)|relationshipId=2689547022|relationship=Is a (SCT)|concept2=Structural disorder of heart (SCT 128599005)}}
for example: Myocardial infarction (SCT 22298006)
Synonym Article
An additional article must be created for each "synonym" associated with the concept. That is, one for each description record for a concept where the DescriptionType is synonym (DescriptionType=2). This article will only contain a redirect referencing the concept article and a category indicator.
Synonym Article Content
The content of a synonym page should contain a Wiki redirect to the concept article.
#REDIRECT [[Myocardial infarction (SCT 22298006)]]
It is important that the name used in the redirect be identical to the name of the concept article. That is, the redirect value must be based on the preferred term plus the SNOMED ID of the article that the user will be directed to.
Synonym Article Name
The name of a redirect article is specified as follows:
- Synonym (from Description record)
- A space
- The literal "(SCTD"
- A space
- The descriptionId
- The literal ")"
For example:
Cardiac infarction (SCTD 37442013)
Summary of Synonym Article
For example: Cardiac infarction (SCTD 37442013)

