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 Stringreference set containing query 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 | Part of Primary Key | |
id | A 128 bit unsigned Integer, uniquely identifying this reference set member. Different versions of a reference set member share the same id but have different effectiveTime. This allows a reference set member to be modified or made active (i.e. removed from the active set) at a specified time. | NO | YES (Full/Snapshot) | |
The inclusive date or time at which this version of the identified reference set memberbecame the current version. The current version of this reference set memberat time T is the version with the most recent effectiveTime prior to or equal to time T . | YES | YES (Full) Optional (Snapshot) | ||
The state of the identified reference set memberas at the specified effectiveTime . If active = 1 (true) the reference set memberis part of the current version of the set, if active = 0 (false) the reference set memberis not part of the current version of the set. | YES | NO | ||
Identifies the SNOMED CT modulethat contains this reference set memberas at the specified effectiveTime . The value must be a subtypeof 900000000000443000 | Module (core metadata concept)| within the metadata hierarchy. | YES | NO | ||
Identifies the reference setto which this reference set memberbelongs. In this case, a subtype descendant of: 900000000000512005 | Query specification type| | NO | NO | ||
A reference to the SNOMED CT componentto be included in the reference set. | NO | NO | ||
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. | YES | NO |
Metadata
The following metadata in the "Foundation metadata concept " hierarchy supports this reference set :
Reference Set Descriptor and Example Data
Notes on the tables used to show descriptors and examples
The reference set example tables on this page have been revised as follows to aid clarity and understanding:
- The first four columns which are present in all release files are not shown. The omitted columns (id, effectiveTime, active, moduleId) are used in the same way in all referenced sets to support identification, versioning and packaging. They do not directly affect the specific features of a particular reference set or reference set type.
- Reference set columns that contain SNOMED CT identifiers are expanded to show details of the concept or description referenced by that identifier. In some cases, the term is shown in the same column using the expression syntax, in other cases an additional column with a name suffix '_term' has been added. In the standard reference set files only the identifier is present in the column and there is no added column for the term. When using reference sets, the term and other details of the component are looked up from the relevant component release files.
Descriptor Template
The table below shows the descriptor that defines the structure of the 900000000000512005 | Query specification type reference set| pattern.
refsetId | referencedComponentId | attributeDescription | attributeType | attributeOrder |
---|---|---|---|---|
900000000000512005 | Query specification type reference set| | 0 | |||
900000000000512005 | Query specification type reference set| | 1 |
Example Data
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 |
---|---|---|
References
- The syntax for specifying the intensional definition of a concept subset is specified in the Expression Constraint Language
Feedback