@htilabs/platform-common-models 0.8.23 → 0.8.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -188,6 +188,7 @@ __export(src_exports, {
188
188
  CVC_99_ENGLISH_PROFICIENCY: () => CVC_99_ENGLISH_PROFICIENCY,
189
189
  CVC_99_LABELS: () => CVC_99_LABELS,
190
190
  CVC_99_VALUES: () => CVC_99_VALUES,
191
+ CarCorrectionReasonKeys: () => CarCorrectionReasonKeys,
191
192
  CaseShareStateKeys: () => CaseShareStateKeys,
192
193
  CheckInActivityKeys: () => CheckInActivityKeys,
193
194
  CheckInPhaseKeys: () => CheckInPhaseKeys,
@@ -494,6 +495,7 @@ __export(src_exports, {
494
495
  buildQuestionSchema: () => buildQuestionSchema,
495
496
  buildScoringRuleSchema: () => buildScoringRuleSchema,
496
497
  buildSectionSchema: () => buildSectionSchema,
498
+ carCorrectionReasonSot: () => carCorrectionReason_v1_0_0_default,
497
499
  cascadeExclusions: () => cascadeExclusions,
498
500
  caseShareStateSot: () => caseShareState_v1_0_0_default,
499
501
  checkInActivitySot: () => checkInActivity_v1_0_0_default,
@@ -11835,6 +11837,16 @@ var AssertionStatusKeys = {
11835
11837
  superseded: "985-002-000-000-000-000-000",
11836
11838
  retracted: "985-003-000-000-000-000-000"
11837
11839
  };
11840
+ var CarCorrectionReasonKeys = {
11841
+ missingness_root: "992-000-000-000-000-000-000",
11842
+ unknown: "992-000-000-000-000-000-001",
11843
+ anonymous: "992-000-000-000-000-000-002",
11844
+ data_not_collected: "992-000-000-000-000-000-003",
11845
+ entered_in_error: "992-001-000-000-000-000-000",
11846
+ duplicate: "992-002-000-000-000-000-000",
11847
+ superseded_externally: "992-003-000-000-000-000-000",
11848
+ removed_by_recipient_curation: "992-004-000-000-000-000-000"
11849
+ };
11838
11850
  var CreatedBySystemKeys = {
11839
11851
  missingness_root: "986-000-000-000-000-000-000",
11840
11852
  unknown: "986-000-000-000-000-000-001",
@@ -55106,6 +55118,97 @@ var assertionStatus_v1_0_0_default = {
55106
55118
  ]
55107
55119
  };
55108
55120
 
55121
+ // src/cvcs/carCorrectionReason.v1.0.0.json
55122
+ var carCorrectionReason_v1_0_0_default = {
55123
+ domain: "car_correction_reason",
55124
+ name: "CAR Correction Reason",
55125
+ version: "1.0.0",
55126
+ _status: "DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering (992). Non-clinical bookkeeping/provenance vocabulary \u2014 the coded KIND of a CAR (Contextual Assertion Record) correction or retraction, engineer-direct-authored per the PAVE CVC-authoring governance steer (structural, provisional/ratify-later; FYI to Crysta, NOT Crysta-gated). The first three tokens are sourced verbatim from PAVE `@pave/domain` CAR_CORRECTION_REASONS / RETRACTION_TYPES (packages/domain/src/carGovernance.ts), themselves hoisted from packages/db/src/services/assertionRetraction.ts's documented `retractionType` set; publishing them here retires that PAVE-local const in favour of the SOT it always wanted (carGovernance.ts \xA7'Where these labels are DERIVED' notes 'the day a CVC publishes these three the swap is one deriveLabels call'). The fourth, removed_by_recipient_curation, is added for the PAVE CaseShare received-content curation lane (bead pv-p6share-curation-retract-reason-vocab, 2026-09-18). CASING: lower_snake per the CVC key regex. PENDING canonical Notion authoring + steward ratification.",
55127
+ _source: "pave-2.0/packages/domain/src/carGovernance.ts CAR_CORRECTION_REASONS; pave-2.0/packages/db/src/services/assertionRetraction.ts RetractAssertionInput.retractionType; removed_by_recipient_curation net-new for the received-content curation lane (pv-p6share-curation-retract-reason-vocab)",
55128
+ levels: {
55129
+ "0": "Unknown or Missing",
55130
+ "1": "CAR correction / retraction reason (single-select per correction event)"
55131
+ },
55132
+ entries: [
55133
+ {
55134
+ code: "992-000-000-000-000-000-000",
55135
+ key: "missingness_root",
55136
+ title: "Unknown, Redacted, or Missing",
55137
+ selectable: false,
55138
+ parentCode: null,
55139
+ childCodes: [
55140
+ "992-000-000-000-000-000-001",
55141
+ "992-000-000-000-000-000-002",
55142
+ "992-000-000-000-000-000-003"
55143
+ ],
55144
+ definition: "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected). No prefer_not_to_answer \u2014 workspace standard ANON semantic rolls 'declined to answer' into the anonymous sentinel. A correction reason is always explicitly chosen in practice; the quadruplet is present per SOT convention, not because a correction is expected to be missing."
55145
+ },
55146
+ {
55147
+ code: "992-000-000-000-000-000-001",
55148
+ key: "unknown",
55149
+ title: "Unknown",
55150
+ selectable: true,
55151
+ parentCode: "992-000-000-000-000-000-000",
55152
+ childCodes: [],
55153
+ definition: "Value is unknown at time of entry."
55154
+ },
55155
+ {
55156
+ code: "992-000-000-000-000-000-002",
55157
+ key: "anonymous",
55158
+ title: "Anonymous / declined to answer",
55159
+ selectable: true,
55160
+ parentCode: "992-000-000-000-000-000-000",
55161
+ childCodes: [],
55162
+ definition: "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
55163
+ },
55164
+ {
55165
+ code: "992-000-000-000-000-000-003",
55166
+ key: "data_not_collected",
55167
+ title: "Data not collected",
55168
+ selectable: true,
55169
+ parentCode: "992-000-000-000-000-000-000",
55170
+ childCodes: [],
55171
+ definition: "No attempt was made to collect the value."
55172
+ },
55173
+ {
55174
+ code: "992-001-000-000-000-000-000",
55175
+ key: "entered_in_error",
55176
+ title: "Entered in error",
55177
+ selectable: true,
55178
+ parentCode: null,
55179
+ childCodes: [],
55180
+ definition: "The assertion should never have been recorded \u2014 it was captured by mistake (wrong subject, wrong field, an advocate mis-click, or a claim the conversation did not actually support). The row is RETRACTED, not hard-deleted: a retraction retains the row it retracts so the log of record stays forensic. The canonical 'this is not true and never was' correction."
55181
+ },
55182
+ {
55183
+ code: "992-002-000-000-000-000-000",
55184
+ key: "duplicate",
55185
+ title: "Duplicate of another assertion",
55186
+ selectable: true,
55187
+ parentCode: null,
55188
+ childCodes: [],
55189
+ definition: "The same claim was asserted twice in the same spine partition (e.g. captured from two surfaces, or re-emitted by an ingest path that did not de-duplicate). The duplicate copy is retracted; the canonical copy remains active. Distinct from entered_in_error: the claim IS true, it is merely recorded more than once."
55190
+ },
55191
+ {
55192
+ code: "992-003-000-000-000-000-000",
55193
+ key: "superseded_externally",
55194
+ title: "Superseded externally",
55195
+ selectable: true,
55196
+ parentCode: null,
55197
+ childCodes: [],
55198
+ definition: "The assertion is retired because a truer or more current value arrived from OUTSIDE the ordinary in-partition supersession chain (e.g. a corrected value from another system or a later disclosure that a normal supersede row could not express). Use when the successor is not itself a spine row that carries `supersedes_assertion_id`; where an in-partition successor exists, status 'superseded' with `supersedes_assertion_id` is the right shape instead."
55199
+ },
55200
+ {
55201
+ code: "992-004-000-000-000-000-000",
55202
+ key: "removed_by_recipient_curation",
55203
+ title: "Removed by recipient curation",
55204
+ selectable: true,
55205
+ parentCode: null,
55206
+ childCodes: [],
55207
+ definition: "Recipient-side curation removal of a received (re-emitted) assertion; added for PAVE CaseShare received-content curation, 2026-09-18. A recipient agency curates a cleanly-attributed foreign re-emitted CAR (indicator / victimization / involvement) out of their own record \u2014 the claim is not asserted as false, it is simply not one this recipient chooses to carry. The row is RETRACTED with this coded, honest reason rather than silently dropped, so the received-then-removed sequence stays on the log of record and the origin's assertion is untouched. Distinct from entered_in_error (a mistaken capture) and from duplicate (a redundant copy): the assertion was validly received and validly removed by the receiving side's curation decision."
55208
+ }
55209
+ ]
55210
+ };
55211
+
55109
55212
  // src/cvcs/createdBySystem.v1.0.0.json
55110
55213
  var createdBySystem_v1_0_0_default = {
55111
55214
  domain: "created_by_system",
@@ -55746,6 +55849,7 @@ var CVC_197_VALUES = selectableCodes(
55746
55849
  CVC_99_ENGLISH_PROFICIENCY,
55747
55850
  CVC_99_LABELS,
55748
55851
  CVC_99_VALUES,
55852
+ CarCorrectionReasonKeys,
55749
55853
  CaseShareStateKeys,
55750
55854
  CheckInActivityKeys,
55751
55855
  CheckInPhaseKeys,
@@ -56052,6 +56156,7 @@ var CVC_197_VALUES = selectableCodes(
56052
56156
  buildQuestionSchema,
56053
56157
  buildScoringRuleSchema,
56054
56158
  buildSectionSchema,
56159
+ carCorrectionReasonSot,
56055
56160
  cascadeExclusions,
56056
56161
  caseShareStateSot,
56057
56162
  checkInActivitySot,