Table Description
Selection Query: A selection query is used to generate a sample of cases and contains the criteria that is used to produce the list of cases.

This entity is an administrative entity which captures information relating to a custom query. Two types of selection query may be used. A dynamic query allows the audit coordinator to enter criteria such as case status and a case start date range, which is then used to produce a list of cases. A fixed query provides a predefined set of criteria. If a fixed query is used to generate a random sample of cases within an audit plan, then no audit coordinator entry of criteria is required.

Example

An audit coordinator has a requirement to audit Food Stamps cases, opened between the 10th and 14th of February which are currently approved. The system administrator creates a new selection query of type fixed. The system administrator then enters the appropriate SQL and criteria matching the audit coordinators needs. This selection query can be validated and published, making it available for the administrator to associate to the Food Stamps case type. When an audit coordinator then creates an audit plan for a Food Stamps case type, they will be presented with the option to run the fixed query that was created by the system administrator.

Model Details
Location in Model: Logical View::MetaModel::Curam::Core::Reference Model::Service Layer::SelectionQuery::Entity::SelectionQuery
Controlling File: core\model\Packages\Reference Model\Service Layer\SelectionQuery\Entity\Entity.efx
Table Options
ALLOW_OPTIMISTIC_LOCKINGyes
Attributes (10)
AttributeStereotypeNullableDescriptionDomain DefinitionCodetableDDL Type
selectionQueryIDkeynoUnique reference number assigned by the system to a selection query record.SELECTION_QUERY_ID SVR_INT64
namedetails The business name of the selection query.SELECTION_QUERY_NAME SVR_STRING<100>
categorydetails The type of objects that the selection query will impact. For example, a query may be associated to cases or participants.SELECTION_QUERY_CATEGORYSelectionQueryCategorySVR_STRING<10>
typedetails The type of selection query which determines whether or not search criteria parameters are explicitly included.SELECTION_QUERY_TYPESelectionQueryTypeSVR_STRING<10>
randPageNamedetails The name of the page that will be used to randomly gather the search criteria for dynamic queries.SELECTION_QUERY_PAGE_NAME SVR_STRING<600>
commentsdetails User comments on this record.COMMENTS SVR_STRING<300>
sqlTextdetails The SQL statement that will be used to execute the selection query.SELECTION_QUERY_SQL_TEXT SVR_STRING<5000>
recordStatusdetails The status of the selection query i.e. Active or Cancelled. Logical deletion supported.RECORD_STATUSRecordStatusSVR_STRING<10>
statusdetails The status is used to indicate if the selection query has been published.SELECTION_QUERY_STATUSSelectionQueryStatusSVR_STRING<10>
manPageNamedetails The name of the page that will be used to manually gather the search criteria for dynamic queries.SELECTION_QUERY_PAGE_NAME SVR_STRING<600>
Indices (1)
Index NameAttributes
categoryStatusIdxstatus, category, recordStatus
Operations (6)
OperationStereotypeOptionsDescriptionSQL
insertinsertAUTO_ID: selectionQueryID
AUTO_ID_KEY: SELQRY
Standard Operation 
readread Standard Operation 
modifymodifyOPTIMISTIC_LOCKING: yes
Standard Operation 
removeremove Standard Operation 
readAllnkreadmulti   
searchByStatusCategoryAndRecordStatusreadmultiWHERE: SelectionQuery.status = :status AND SelectionQuery.category = :category AND SelectionQuery.recordStatus = :recordStatus
Method to search selection queries by status, category and record status. 
Related Pages (20)