IF Commons GitHub

governance/id

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-governance FR-005

The identity of an element (commons data 0003-governance FR-005): made of the element's names and no more, so that it does not change while the names do not, and so that the logical and the physical layers can link back to it. A domain d, a concept d/c, an attribute d/c.a, a relationship d/c>r, a code list d/list:l and a code d/list:l.k.

Source: commons/data/governance/id.ts

6 of 8 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

attributeIdconst
const attributeId: (domain: string, concept: string, attribute: string) => ElementId

The identity of an attribute of a concept.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

codeIdconst
const codeId: (domain: string, list: string, code: string) => ElementId

The identity of a code of a code list.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

codeListIdconst
const codeListId: (domain: string, list: string) => ElementId

The identity of a code list of a domain.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

conceptIdconst
const conceptId: (domain: string, concept: string) => ElementId

The identity of a concept of a domain.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

domainIdconst
const domainId: (domain: string) => ElementId

The identity of a domain.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

ElementIdtypeno test imports it
type ElementId = Brand<string, "ElementId">;

The identity of an element.

ElementKindtypeno test imports it
type ElementKind = "domain" | "concept" | "attribute" | "relationship" | "codelist" | "code";

The kinds of element.

relationshipIdconst
const relationshipId: (domain: string, concept: string, relationship: string) => ElementId

The identity of a relationship of a concept.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.