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-Arelationship) 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 packageClass Definitions
Terminology_term Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
Terminology_term |
|
|---|---|---|
Description |
Leaf type representing a standalone term from a terminology, which consists of the term text and the code, i.e. a concept reference. |
|
Inherit |
||
Attributes |
Signature |
Meaning |
1..1 |
concept: |
Reference to the terminology concept formally representing this term. |
1..1 |
text: |
Text of term. |
| Terminology_term | |||
|---|---|---|---|
Leaf type representing a standalone term from a terminology, which consists of the term text and the code, i.e. a concept reference. |
|||
Inherits: Any |
|||
Attributes |
|||
concept: |
Reference to the terminology concept formally representing this term. |
||
text: |
Text of term. |
||
Functions |
|||
Value equality: return True if Parameters
|
|||
Reference equality for reference types, value equality for value types. Parameters
|
|||
Create new instance of a type. |
|||
Type name of an object as a string. May include generic parameters, as in |
|||
Any.not_equal alias "!=", "≠" ( |
True if current object not equal to |
||
{
"name": "Terminology_term",
"documentation": "Leaf type representing a standalone 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": "Reference 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_code Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
Terminology_code |
|
|---|---|---|
Description |
Primitive type representing a standalone reference to a terminology concept, in the form of a terminology identifier, optional version, and a code or code string from the terminology. |
|
Inherit |
||
Attributes |
Signature |
Meaning |
1..1 |
terminology_id: |
The archetype environment namespace identifier used to identify a terminology. Typically a value like |
0..1 |
terminology_version: |
Optional string value representing terminology version, typically a date or dotted numeric. |
1..1 |
code_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: |
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 | |||
|---|---|---|---|
Primitive type representing a standalone 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: |
The archetype environment namespace identifier used to identify a terminology. Typically a value like |
||
terminology_version: |
Optional string value representing terminology version, typically a date or dotted numeric. |
||
code_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. |
||
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. |
||
Functions |
|||
Value equality: return True if Parameters
|
|||
Reference equality for reference types, value equality for value types. Parameters
|
|||
Create new instance of a type. |
|||
Type name of an object as a string. May include generic parameters, as in |
|||
Any.not_equal alias "!=", "≠" ( |
True if current object not equal to |
||
{
"name": "Terminology_code",
"documentation": "Primitive type representing a standalone 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"
}
}
}
CODE_PHRASE Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
CODE_PHRASE |
|
|---|---|---|
Description |
A fully coordinated (i.e. all coordination has been performed) term from a terminology service (as distinct from a particular terminology). Retain for LEGACY only, while ADL1.4 requires CODE_PHRASE. |
|
Attributes |
Signature |
Meaning |
1..1 |
terminology_id: |
Identifier of the distinct terminology from which the code_string (or its elements) was extracted. |
1..1 |
code_string: |
The key used by the terminology service to identify a concept or coordination of concepts. This string is most likely parsable inside the terminology service, but nothing can be assumed about its syntax outside that context. |
0..1 |
preferred_term: |
Optional attribute to carry preferred term corresponding to the code or expression in |
Invariants |
Code_string_valid: |
|
| CODE_PHRASE | |
|---|---|
A fully coordinated (i.e. all coordination has been performed) term from a terminology service (as distinct from a particular terminology). Retain for LEGACY only, while ADL1.4 requires CODE_PHRASE. |
|
Attributes |
|
terminology_id: |
Identifier of the distinct terminology from which the code_string (or its elements) was extracted. |
code_string: |
The key used by the terminology service to identify a concept or coordination of concepts. This string is most likely parsable inside the terminology service, but nothing can be assumed about its syntax outside that context. |
preferred_term: |
Optional attribute to carry preferred term corresponding to the code or expression in |
Invariants |
|
Code_string_valid: |
|
{
"name": "CODE_PHRASE",
"documentation": "A fully coordinated (i.e. all coordination has been performed) term from a terminology service (as distinct from a particular terminology).\n\nRetain for LEGACY only, while ADL1.4 requires CODE_PHRASE.",
"properties": {
"terminology_id": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "terminology_id",
"documentation": "Identifier of the distinct terminology from which the code_string (or its elements) was extracted.",
"is_mandatory": true,
"type": "TERMINOLOGY_ID"
},
"code_string": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "code_string",
"documentation": "The key used by the terminology service to identify a concept or coordination of concepts. This string is most likely parsable inside the terminology service, but nothing can be assumed about its syntax outside that context. ",
"is_mandatory": true,
"type": "String"
},
"preferred_term": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "preferred_term",
"documentation": "Optional attribute to carry preferred term corresponding to the code or expression in `_code_string_`. Typical use in integration situations which create mappings, and representing data for which both a (non-preferred) actual term and a preferred term are both required.",
"type": "String"
}
},
"invariants": {
"Code_string_valid": "not code_string.is_empty"
}
}