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.
A Query Specification Reference Set is a String reference 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.
Query specification reference set - Data structure
The following metadata in the "Foundation metadata concept " hierarchy supports this reference set :
Hierarchy of Foundation metadata concept
The table below shows the descriptor that defines the structure of the pattern.
Descriptor Template for Query Specification Reference Sets
In the example below, "serialised query 1" is a text string that can be used to generate members for Reference set 1 , which is a simple member reference set (without any additional fields within its member records).
Example rows from Query Specification Reference Set
See for details of the language used to specify intensional definitions of concept subsets.
Boolean
The state of the identified reference set member as at the specified effectiveTime. If active = 1 (true) the reference set member is part of the current version of the set, if active = 0 (false) the reference set member is not part of the current version of the set.
YES
NO
moduleId
SCTID
Identifies the SNOMED CT module that contains this reference set member as at the specified effectiveTime .
The value must be a subtype of within the metadata hierarchy.
YES
NO
refsetId
SCTID
Identifies the reference set to which this reference set member belongs.
A subtype descendant of:
NO
NO
referencedComponentId
SCTID
A reference to the SNOMED CT component to be included in the reference set.
NO
NO
query
String
The serialised query that can be used to (re-)generate the reference set members.
The syntax for specifying the intensional definitions of concept subsets is specified in the
YES
NO
1
id
UUID
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 inactive (i.e. removed from the active set) at a specified time.
NO
YES (Full/Snapshot)
effectiveTime
Time
The inclusive date or time at which this version of the identified reference set member became the current version.
Note : In distribution files the effectiveTime should follow the short ISO date format (YYYYMM DD) and should not include the hours, minutes, seconds or timezone indicator.The current version of this reference set member at time T is the version with the most recent effectiveTime prior to or equal to time T.
YES
YES (Full) Optional (Snapshot)
|Target reference set|
active
0