Skip to content

0.0.8

Choose a tag to compare

@github-actions github-actions released this 03 Sep 12:02
· 795 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.0.8
2a34c7c

The ECL release: the SNOMED CT Expression Constraint Language 2.2, parsed
from the official grammar and evaluated as set algebra over the closure, the
attribute graph, and the reference set tables, behind ?fhir_vs=ecl/ and the
constraint filter; the artifact gains the attribute, member, and identifier
files the evaluator reads; LOINC's class parts and axes are served as the
release defines them.

Added

  • ECL: ferroterm-ecl parses the Expression Constraint Language 2.2 with a
    lexer and a parser that follow the official ANTLR grammar rule for rule
    (https://github.com/IHTSDO/snomed-expression-constraint-language, the tag
    pinned in docs/VERSIONS.md, vendored with the example corpus by
    scripts/vendor/ecl-grammar.sh). The syntax tree names the grammar's
    constructs; its Display prints a canonical form that parses back to the
    same tree; a malformed expression is a typed error with the byte offset and
    the token class expected there. Evaluation follows in the next change.
  • SNOMED CT: ferroterm-build --rf2 writes three more files beside the store
    for the ECL evaluator: attributes.bin (every active inferred relationship
    that is not is-a, with its role group and its concept, number, or string
    value, plus an inverted index by type and value), members.bin (the active
    member rows of every concept-referencing reference set with their fields,
    the OWL axiom reference sets left out), and identifiers.bin (the alternate
    identifiers of the RF2 identifier file). The provider opens them when the
    manifest names them; an older artifact still opens.
  • ECL: ferroterm-ecl evaluates a parsed expression constraint against an
    edition as set algebra over the closure, the attribute graph, and the
    reference set tables (ferroterm_ecl::eval): every constraint operator
    (<, <<, <!, <<!, >, >>, >!, >>!, !!>, !!<), member of
    with field selection, refinements with attribute and group cardinalities,
    the reverse flag, dotted attributes, concrete values, conjunction,
    disjunction, exclusion, the description, concept, and member filters, the
    history supplements, and alternate identifiers. The SNOMED provider is the
    edition behind it; an unknown identifier, scheme, field, or dialect alias
    is a typed error, and a construct the artifact cannot answer (a description
    module or effective time filter, a filter on inactive members) is refused
    as unsupported.
  • SNOMED CT: ?fhir_vs=ecl/[ecl] (the expression URI-encoded, on the
    system, edition, or version URI) and the constraint filter of
    ValueSet.compose evaluate the expression constraint
    (https://hl7.org/fhir/R4B/snomedct.html); the expressions filter accepts
    false and refuses true as not supported. Malformed ECL is an
    OperationOutcome invalid with the byte offset, an identifier the
    edition lacks is code-invalid. Parsed expressions are cached.

Fixed

  • LOINC: the class parts that only the Component Hierarchy by System names
    (42,554 in 2.83, such as LP442038-8 |Bacteria | Abscess | Microbiology|)
    are concepts with the hierarchy's text as their name, so concept is-a and
    ancestor over a part reach the terms under it (they were dropped with their
    terms before). The six axes (COMPONENT, PROPERTY, TIME_ASPCT,
    SYSTEM, SCALE_TYP, METHOD_TYP) carry the part the primary part links
    name, as the FHIR LOINC page types them; a filter on an axis matches the
    part's code or its name with = and in, and its name, code, or column
    text with regex. ferroterm-build --loinc reads LoincPartLink_Primary.csv
    from the zip.
  • LOINC: a part displays its PartName (PANEL.HL7.CYTOGEN), as the
    reference servers do where the FHIR page names no display; PartDisplayName
    follows as a synonym.
  • TerminologyCapabilities.codeSystem.version.language lists the designation
    languages as CommonLanguages codes (a tag outside the set by its primary
    subtag, or left out): R4B binds the element to nothing, but the FHIR
    validator converts the resource to R5, whose binding is required, and
    stopped on ar-JO from the LOINC linguistic variants. $lookup
    designations keep every tag.
  • LOINC: the release zip's AccessoryFiles/PanelsAndForms/Loinc.csv is no
    longer mistaken for the term table, and a published code whose check digit
    does not follow the Mod 10 algorithm (11491-6, deprecated, in 2.83) is
    read as the table lists it; the check digit still applies to codes a client
    submits.