Search



You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Purpose

A 900000000000512005 | Query specification type reference set| allows a serialised query to represent the membership of a subset of SNOMED CT components. A query contained in the reference set is run against the content of SNOMED CT to produce a subset of concepts, descriptions or relationships. The query is referred to an intensional definition of the subset. It can be run against future releases of SNOMED CT to generate an updated set of subset members.

The members of the resulting subset may also be represented in an enumerated form as a Simple reference set . An enumerated representation of a subset is referred to as an extensional definition.

Data structure

A Query specification reference set is a String (data type) reference set containing query (field) that represent intensional definitions of subsets of components. The result of running the query is an extensional representation of the subset of components which can be represented as a Simple reference set . Its structure is shown in the following table.

Field

Data type

Purpose

id (field)

UUID (data type)

A 128 bit unsigned Integer (data type), uniquely identifying this reference set member .

Different versions of a reference set member share the same id (field) but have different effectiveTime (field). This allows a reference set member to be modified or made active (field) (i.e. removed from the active set) at a specified time.

effectiveTime (field)

Time (data type)

The inclusive date or time at which this version of the identified reference set member became the current version.

The current version of this reference set member at time T is the version with the most recent effectiveTime (field) prior to or equal to time T .

active (field)

Boolean (data type)

The state of the identified reference set member as at the specified effectiveTime (field) .

If active (field) = 1 (true) the reference set member is part of the current version of the set, if active (field) = 0 (false) the reference set member is not part of the current version of the set.

moduleId (field)

SCTID (data type)

Identifies the SNOMED CT module that contains this reference set member as at the specified effectiveTime (field) .

The value must be a subtype of 900000000000443000 | Module (core metadata concept)| within the metadata hierarchy .

refsetId (field)

SCTID (data type)

Identifies the reference set to which this reference set member belongs.

In this case, set to a subtype of 900000000000512005 | Query specification type|

referencedComponentId (field)

SCTID (data type)

The identifier ( refsetId (field)) of the reference set for which members are to be generated.

query

String (data type)

The serialised query that can be used to (re-)generate the reference set members.

A standard syntax for use in these queries is currently under development and is due for publication in late 2014.

Metadata

The following metadata in the "Foundation metadata concept " hierarchy supports this reference set :

Descriptor template

The table below shows the descriptor that defines the structure of the 900000000000512005 | Query specification type reference set| pattern.

Note: The tables above omit the initial four columns of data present in the release file. These follow the standards versioning pattern id (field), effectiveTime (field), active (field), active (field). Additionally, to aid understanding, the tables above also show the term from one of the descriptions associated with each of the identified concept. The release file only contains the identifier .

Example usage

In the example below, "serialised query 1" is a text string that can be used to generate members for Reference set1, which is a simple member reference set (without any additional fields within its member records).

refsetId

referencedComponentId

query

900000000000513000 | Simple query specification|

| Target reference set|

Serialized text of the query ...

Query language specification

The specification of the querylanguage has yet to be defined / selected, but it should be capable of:

Note: D uring 2014 work is underway to develop and pilot a standard approach to representation of queries including queries for generation of subset of SNOMED CT concepts .


Feedback
  • No labels