Skip to main content

Module eval

Module eval 

Source
Expand description

The evaluator: an expression constraint to the set of concept ordinals it selects, as set algebra over the materialized closure, the attribute graph, and the reference set tables of one edition.

The semantics are the ECL specification’s (https://docs.snomed.org/snomed-ct-specifications/snomed-ct-expression-constraint-language, the quick reference in Appendix D): < is the closure’s descendants, ^ the active members, a refinement the sources whose attribute rows satisfy the attributes with their cardinalities per role group, and the filters and history supplements restrict or extend the set. The edition is reached through Model; nothing here walks a graph edge by edge.

Enums§

ConceptPredicate
One concept filter with its concept sets resolved, for the model.
DescriptionPredicate
One description filter with its concept sets and aliases resolved, for the model; every predicate of one {{ D ... }} must hold for the same description.
EvalError
A failure to evaluate.

Constants§

HISTORICAL_ASSOCIATION
The historical association reference set root (900000000000522004 |Historical association reference set|).
PARTIALLY_EQUIVALENT_TO
1186924009 |PARTIALLY EQUIVALENT TO association reference set|.
REPLACED_BY
900000000000526001 |REPLACED BY association reference set|.
SAME_AS
900000000000527005 |SAME AS association reference set|.
WAS_A
900000000000528000 |WAS A association reference set|.

Traits§

Model
The edition an expression is evaluated against.

Functions§

evaluate
Evaluates constraint against model.
term_matches
Whether every word of a match term is a prefix of some word of text, case-insensitively, or a wild pattern matches the whole text.
wild_matches
Whether pattern, with * for any run of characters and \*, \", \\ for the literal characters, matches the whole of text (case-insensitively, as description matching is).