Terminology Package

Overview

The base.foundation_types.terminology package provides leaf types used to represent a terminology code, i.e. a code within a terminology, and a term, which is the combination of a code and one rubric (natural language) string associated with it. Terminology codes are sometimes called concept codes among terminology experts, and when used as references, concept references.

An instance of Terminology_code is a reference to any referenceable entity within a terminology or ontology, which may be:

  • a single term, for which a rubric(s) and potentially relationships (at least the IS-A relationship) are defined;

  • a value set i.e. a set of single terms, possibly in a tree or other structure corresponding to relationships between the member terms;

  • any other terminological entity referencable with a code.

An instance of Terminology_term provides a way to record a terminology code and the rubric used in some operational context, allowing the receiver or reader of the data to avoid having to perform a terminology lookup to obtain the rubric, e.g. for display purposes.

BASE foundation types.terminology
Figure 1. base.foundation_types.terminology package

Class Definitions

Terminology_term Class

  • Definition

  • Effective

  • BMM

  • UML

Class

Terminology_term

Description

Leaf type representing a term from a terminology, which consists of the term text and the code, i.e. a concept reference.

Inherit

Any

Attributes

Signature

Meaning

1..1

concept: Terminology_code

Refrence to the terminology concept formally representing this term.

1..1

text: String

Text of term.

Terminology_term

Leaf type representing a term from a terminology, which consists of the term text and the code, i.e. a concept reference.

Inherits: Any

Attributes

concept: Terminology_code [1..1]

Refrence to the terminology concept formally representing this term.

text: String [1..1]

Text of term.

Functions

(abstract) is_equal (
other: Any[1]
): Boolean [1..1]

Value equality.
Inherited from Any

infix = (
other: Any[1]
): Boolean [1..1]

Reference equality.
Inherited from Any

Parameters
other

Reference equality.

instance_of (
a_type: String[1]
): Any [1..1]

Create new instance of a type.
Inherited from Any

type_of (
an_object: Any[1]
): String [1..1]

Type name of an object as a string. May include generic parameters, as in "Interval<Time>".
Inherited from Any

{
    "name": "Terminology_term",
    "documentation": "Leaf type representing a term from a terminology, which consists of the term text and the code, i.e. a concept reference.",
    "ancestors": [
        "Any"
    ],
    "properties": {
        "concept": {
            "_type": "P_BMM_SINGLE_PROPERTY",
            "name": "concept",
            "documentation": "Refrence to the terminology concept formally representing this term.",
            "is_mandatory": true,
            "type": "Terminology_code"
        },
        "text": {
            "_type": "P_BMM_SINGLE_PROPERTY",
            "name": "text",
            "documentation": "Text of term.",
            "is_mandatory": true,
            "type": "String"
        }
    }
}
terminology term

Terminology_code Class

  • Definition

  • Effective

  • BMM

  • UML

Class

Terminology_code

Description

Logically primitive type representing a reference to a terminology concept, in the form of a terminology identifier, optional version, and a code or code string from the terminology.

Inherit

Any

Attributes

Signature

Meaning

1..1

terminology_id: String

The archetype environment namespace identifier used to identify a terminology. Typically a value like "snomed_ct" that is mapped elsewhere to the full URI identifying the terminology.

0..1

terminology_version: String

Optional string value representing terminology version, typically a date or dotted numeric.

1..1

code_string: String

A terminology code or post-coordinated code expression, if supported by the terminology. The code may refer to a single term, a value set consisting of multiple terms, or some other entity representable within the terminology.

0..1

uri: Uri

The URI reference that may be used as a concrete key into a notional terminology service for queries that can obtain the term text, definition, and other associated elements.

Terminology_code

Logically primitive type representing a reference to a terminology concept, in the form of a terminology identifier, optional version, and a code or code string from the terminology.

Inherits: Any

Attributes

terminology_id: String [1..1]

The archetype environment namespace identifier used to identify a terminology. Typically a value like "snomed_ct" that is mapped elsewhere to the full URI identifying the terminology.

terminology_version: String [0..1]

Optional string value representing terminology version, typically a date or dotted numeric.

code_string: String [1..1]

A terminology code or post-coordinated code expression, if supported by the terminology. The code may refer to a single term, a value set consisting of multiple terms, or some other entity representable within the terminology.

uri: Uri [0..1]

The URI reference that may be used as a concrete key into a notional terminology service for queries that can obtain the term text, definition, and other associated elements.

Functions

(abstract) is_equal (
other: Any[1]
): Boolean [1..1]

Value equality.
Inherited from Any

infix = (
other: Any[1]
): Boolean [1..1]

Reference equality.
Inherited from Any

Parameters
other

Reference equality.

instance_of (
a_type: String[1]
): Any [1..1]

Create new instance of a type.
Inherited from Any

type_of (
an_object: Any[1]
): String [1..1]

Type name of an object as a string. May include generic parameters, as in "Interval<Time>".
Inherited from Any

{
    "name": "Terminology_code",
    "documentation": "Logically primitive type representing a reference to a terminology concept, in the form of a terminology identifier, optional version, and a code or code string from the terminology.",
    "ancestors": [
        "Any"
    ],
    "properties": {
        "terminology_id": {
            "_type": "P_BMM_SINGLE_PROPERTY",
            "name": "terminology_id",
            "documentation": "The archetype environment namespace identifier used to identify a terminology. Typically a value like `\"snomed_ct\"` that is mapped elsewhere to the full URI identifying the terminology.",
            "is_mandatory": true,
            "type": "String"
        },
        "terminology_version": {
            "_type": "P_BMM_SINGLE_PROPERTY",
            "name": "terminology_version",
            "documentation": "Optional string value representing terminology version, typically a date or dotted numeric.",
            "type": "String"
        },
        "code_string": {
            "_type": "P_BMM_SINGLE_PROPERTY",
            "name": "code_string",
            "documentation": "A terminology code or post-coordinated code expression, if supported by the terminology. The code may refer to a single term, a value set consisting of multiple terms, or some other entity representable within the terminology.",
            "is_mandatory": true,
            "type": "String"
        },
        "uri": {
            "_type": "P_BMM_SINGLE_PROPERTY",
            "name": "uri",
            "documentation": "The URI reference that may be used as a concrete key into a notional terminology service for queries that can obtain the term text, definition, and other associated elements.",
            "type": "Uri"
        }
    }
}
terminology code