Function: makeStatus()
makeStatus(
activity,raw?,billable?):ConceptStatus
Assemble a frozen ConceptStatus from a normalized activity, carrying the raw token and (for
classification systems) the billable flag, and attaching the stable diagnostic code for the two
concerns it distinguishes - TERM_CONCEPT_DEPRECATED and TERM_CONCEPT_HEADER_NOT_BILLABLE.
Parameters
activity
The normalized activity.
raw?
string
The verbatim steward token, if any (omitted from the result when empty).
billable?
boolean
The billable flag for a classification system, if applicable.
Returns
A frozen ConceptStatus.
Example
import { makeStatus } from "@cosyte/terminology";
makeStatus("deprecated", "DEPRECATED").code; // => "TERM_CONCEPT_DEPRECATED"