1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! The table set of one artifact.
//!
//! Every value is a byte string decoded by `record`, so a damaged artifact is
//! a typed error at read time rather than a panic inside the database. Keys
//! are dense ordinals; the vocabulary tables give each property key,
//! designation use, and language reference set its ordinal and name.
use TableDefinition;
/// Artifact-level facts: system URI, version, edition, layout version.
pub const META: = new;
/// Native code to concept ordinal.
pub const CODES: = new;
/// Packed columns by name, each a [`crate::column::Column`] addressed by
/// ordinal. `concepts` holds the encoded [`crate::record::Concept`] of every
/// ordinal.
pub const COLUMNS: = new;
/// The `COLUMNS` key of the concept column.
pub const COLUMN_CONCEPTS: &str = "concepts";
/// The `COLUMNS` key of the preferred-designation column, the displays the
/// build chose per concept.
pub const COLUMN_DISPLAYS: &str = "displays";
/// The `COLUMNS` key of the property column, one encoded
/// [`crate::record::Properties`] per concept.
pub const COLUMN_PROPERTIES: &str = "properties";
/// The `COLUMNS` key of the acceptability column, one encoded
/// [`crate::record::Acceptability`] per concept.
pub const COLUMN_ACCEPTABILITY: &str = "acceptability";
/// Concept ordinal to its encoded [`crate::record::Designations`].
///
/// The designation text is the largest thing an artifact holds, so it stays in
/// the database and is point-read per concept; the columns the store reads
/// into memory carry only what a request path walks (#338).
pub const DESIGNATIONS: = new;
/// Property key ordinal to its name.
pub const PROPERTY_KEYS: = new;
/// Designation use ordinal to its code (for SNOMED, the description type SCTID).
pub const DESIGNATION_USES: = new;
/// Language reference set ordinal to its code.
pub const LANGUAGE_REFSETS: = new;
/// Acceptability ordinal to its code.
pub const ACCEPTABILITIES: = new;
/// The `META` key of the layout version.
pub const META_LAYOUT: &str = "layout";
/// The layout version this build writes and reads.
pub const LAYOUT_VERSION: &str = "6";
/// The `META` key of the code system URI.
pub const META_SYSTEM: &str = "system";
/// The `META` key of the code system version string.
pub const META_VERSION: &str = "version";
/// The `META` key of the number of concepts.
pub const META_CONCEPTS: &str = "concepts";
/// The `META` key of the acceptability ordinal that marks a designation
/// preferred in its language reference set.
pub const META_PREFERRED: &str = "preferred";