@htilabs/platform-common-models 0.7.0 → 0.8.0

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.
Files changed (99) hide show
  1. package/dist/constants/index.cjs +72 -7
  2. package/dist/constants/index.cjs.map +1 -1
  3. package/dist/constants/index.d.cts +1 -1
  4. package/dist/constants/index.d.ts +1 -1
  5. package/dist/constants/index.js +71 -7
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/cvcs/index.cjs +10051 -10
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +11750 -554
  10. package/dist/cvcs/index.d.ts +11750 -554
  11. package/dist/cvcs/index.js +9986 -9
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/index.cjs +11341 -19
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +1480 -8
  16. package/dist/index.d.ts +1480 -8
  17. package/dist/index.js +11212 -19
  18. package/dist/index.js.map +1 -1
  19. package/dist/{platform-auth-CjC57132.d.cts → platform-auth-7dL99tZh.d.cts} +18 -2
  20. package/dist/{platform-auth-CjC57132.d.ts → platform-auth-7dL99tZh.d.ts} +18 -2
  21. package/dist/schemas/index.cjs +63 -7
  22. package/dist/schemas/index.cjs.map +1 -1
  23. package/dist/schemas/index.js +63 -7
  24. package/dist/schemas/index.js.map +1 -1
  25. package/dist/types/index.d.cts +2 -2
  26. package/dist/types/index.d.ts +2 -2
  27. package/package.json +2 -2
  28. package/src/__tests__/__snapshots__/cvc-sot.snap +259 -3
  29. package/src/__tests__/cvc-sot-snapshot.test.ts +70 -2
  30. package/src/__tests__/cvc-structural.test.ts +65 -0
  31. package/src/constants/ic.ts +158 -3
  32. package/src/cvcs/accommodationType.v1.0.0.json +107 -0
  33. package/src/cvcs/actionStepCompletionStatus.v1.0.0.json +89 -0
  34. package/src/cvcs/actionStepType.v1.0.0.json +71 -0
  35. package/src/cvcs/announcementAudienceScope.v1.0.0.json +80 -0
  36. package/src/cvcs/announcementResponseType.v1.0.0.json +89 -0
  37. package/src/cvcs/basisQuickPicks.v1.0.0.json +123 -0
  38. package/src/cvcs/checkInActivity.v1.0.0.json +233 -0
  39. package/src/cvcs/checkInPhase.v1.0.0.json +152 -0
  40. package/src/cvcs/childBehavioralConcerns.v1.0.0.json +161 -0
  41. package/src/cvcs/childCustodyArrangement.v1.0.0.json +188 -0
  42. package/src/cvcs/collectionContext.v1.0.0.json +88 -0
  43. package/src/cvcs/daIncidentArchiveReason.v1.0.0.json +89 -0
  44. package/src/cvcs/daIncidentConfidence.v1.0.0.json +80 -0
  45. package/src/cvcs/daIncidentDayApprox.v1.0.0.json +89 -0
  46. package/src/cvcs/daIncidentSeverity.v1.0.0.json +97 -0
  47. package/src/cvcs/disabilitySubtype.v1.0.0.json +126 -0
  48. package/src/cvcs/discretionLevel.v1.0.0.json +89 -0
  49. package/src/cvcs/emergencyContactCallReason.v1.0.0.json +107 -0
  50. package/src/cvcs/emergencyContactPermissions.v1.0.0.json +125 -0
  51. package/src/cvcs/emergencyExitCascade.v1.0.0.json +89 -0
  52. package/src/cvcs/exitProcessChecklistItem.v1.0.0.json +152 -0
  53. package/src/cvcs/exitReasons.v1.0.0.json +224 -0
  54. package/src/cvcs/facialHair.v1.0.0.json +71 -0
  55. package/src/cvcs/funder.v1.0.0.json +125 -0
  56. package/src/cvcs/goalCategory.v1.0.0.json +161 -0
  57. package/src/cvcs/goalPriority.v1.0.0.json +80 -0
  58. package/src/cvcs/goalStatus.v1.0.0.json +98 -0
  59. package/src/cvcs/goalWithdrawalReason.v1.0.0.json +116 -0
  60. package/src/cvcs/hmisProjectType.v1.0.0.json +178 -0
  61. package/src/cvcs/hopeScaleCaptureContext.v1.0.0.json +116 -0
  62. package/src/cvcs/hopeScaleResponseOptions.v1.0.0.json +125 -0
  63. package/src/cvcs/hopeScaleTier.v1.0.0.json +89 -0
  64. package/src/cvcs/identificationStatus.v1.0.0.json +80 -0
  65. package/src/cvcs/index.ts +128 -0
  66. package/src/cvcs/investigativeRequestType.v1.0.0.json +89 -0
  67. package/src/cvcs/languages.v1.0.0.json +1924 -0
  68. package/src/cvcs/leReportStatus.v1.0.0.json +89 -0
  69. package/src/cvcs/legalActionType.v1.0.0.json +116 -0
  70. package/src/cvcs/messageReportReason.v1.0.0.json +107 -0
  71. package/src/cvcs/midStayEventType.v1.0.0.json +116 -0
  72. package/src/cvcs/milestoneType.v1.0.0.json +170 -0
  73. package/src/cvcs/needsResidentialAgain.v1.0.0.json +80 -0
  74. package/src/cvcs/personRelationships.v1.0.0.json +6 -6
  75. package/src/cvcs/petExitReason.v1.0.0.json +107 -0
  76. package/src/cvcs/petRelationshipBasis.v1.0.0.json +80 -0
  77. package/src/cvcs/programSpecificCode.v1.0.0.json +125 -0
  78. package/src/cvcs/proofOfIdType.v1.0.0.json +188 -0
  79. package/src/cvcs/referenceLinkType.v1.0.0.json +125 -0
  80. package/src/cvcs/relationshipDynamics.v1.0.0.json +445 -0
  81. package/src/cvcs/returnedToAbuserStatus.v1.0.0.json +80 -0
  82. package/src/cvcs/rsvpResponse.v1.0.0.json +80 -0
  83. package/src/cvcs/servicePlanClosureReason.v1.0.0.json +125 -0
  84. package/src/cvcs/servicePlanReviewSnoozeReason.v1.0.0.json +116 -0
  85. package/src/cvcs/serviceSource.v1.0.0.json +71 -0
  86. package/src/cvcs/serviceStates.v1.0.0.json +12 -2
  87. package/src/cvcs/severityFollowUp.v1.0.0.json +89 -0
  88. package/src/cvcs/signatureMethod.v1.0.0.json +89 -0
  89. package/src/cvcs/signatureType.v1.0.0.json +89 -0
  90. package/src/cvcs/smtBodyLocation.v1.0.0.json +314 -0
  91. package/src/cvcs/smtNameRelation.v1.0.0.json +116 -0
  92. package/src/cvcs/smtSignificanceFlags.v1.0.0.json +116 -0
  93. package/src/cvcs/substanceUseStatus.v1.0.0.json +90 -0
  94. package/src/cvcs/supportTopic.v1.0.0.json +116 -0
  95. package/src/cvcs/threadStatus.v1.0.0.json +80 -0
  96. package/src/cvcs/threadType.v1.0.0.json +98 -0
  97. package/src/cvcs/verificationStatus.v1.0.0.json +80 -0
  98. package/src/cvcs/visaType.v1.0.0.json +378 -0
  99. package/src/generated/cvc-enums.ts +1605 -5
@@ -0,0 +1,89 @@
1
+ {
2
+ "domain": "le_report_status",
3
+ "name": "Law Enforcement Report Status",
4
+ "version": "1.0.0",
5
+ "_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes from prototype/data/cvcs/core_le_report_status.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Source YAML's level-0 triplet (ANON/UNK/DNC) maps to the missingness root's anonymous/unknown/data_not_collected.",
6
+ "_source": "prototype/data/cvcs/core_le_report_status.yaml",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Report status"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "932-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "932-000-000-000-000-000-001",
20
+ "932-000-000-000-000-000-002",
21
+ "932-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic."
24
+ },
25
+ {
26
+ "code": "932-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "932-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "LE-report status not currently known. Maps the source YAML's UNK sentinel."
33
+ },
34
+ {
35
+ "code": "932-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "932-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Subject explicitly declined to provide LE-report information. Maps the source YAML's ANON sentinel; combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
42
+ },
43
+ {
44
+ "code": "932-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "932-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "System-derived sentinel — the field has not yet been asked. Maps the source YAML's DNC sentinel."
51
+ },
52
+ {
53
+ "code": "932-001-000-000-000-000-000",
54
+ "key": "yes_reported",
55
+ "title": "Yes — already reported",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Crime has been reported to law enforcement; report exists. Reveals Q3.a (agency + agent + report #)."
60
+ },
61
+ {
62
+ "code": "932-002-000-000-000-000-000",
63
+ "key": "no_not_reported",
64
+ "title": "No — not reported",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "Crime has not been reported to law enforcement. Distinct from declined_to_report (which is an explicit survivor decision)."
69
+ },
70
+ {
71
+ "code": "932-003-000-000-000-000-000",
72
+ "key": "scheduled",
73
+ "title": "Scheduled — interview is on the calendar",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "LE interview is scheduled but hasn't occurred yet. Reveals Q3.b (scheduled interview date + time). Captured per DragonFly's form-faithful 3rd-state pattern."
78
+ },
79
+ {
80
+ "code": "932-004-000-000-000-000-000",
81
+ "key": "declined_to_report",
82
+ "title": "Declined to report",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Survivor explicitly declined to make a law-enforcement report. Distinct from no_not_reported — the former carries a survivor-decision signal (potentially relevant for safety planning + advocacy work)."
87
+ }
88
+ ]
89
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "domain": "legal_action_type",
3
+ "name": "Legal Action Type",
4
+ "version": "1.0.0",
5
+ "_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes from prototype/data/cvcs/core_legal_action_type.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Source YAML's level-0 triplet (ANON/UNK/DNC) maps to the missingness root's anonymous/unknown/data_not_collected.",
6
+ "_source": "prototype/data/cvcs/core_legal_action_type.yaml",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Legal action type"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "933-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "933-000-000-000-000-000-001",
20
+ "933-000-000-000-000-000-002",
21
+ "933-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic."
24
+ },
25
+ {
26
+ "code": "933-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "933-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Legal action type not currently known. Maps the source YAML's UNK sentinel."
33
+ },
34
+ {
35
+ "code": "933-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "933-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Subject explicitly declined to provide legal-action information. Maps the source YAML's ANON sentinel; combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
42
+ },
43
+ {
44
+ "code": "933-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "933-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "System-derived sentinel — the field has not yet been asked. Maps the source YAML's DNC sentinel."
51
+ },
52
+ {
53
+ "code": "933-001-000-000-000-000-000",
54
+ "key": "continued_presence",
55
+ "title": "Continued Presence (HSI)",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Temporary immigration relief granted by ICE Homeland Security Investigations (HSI) to victims of severe forms of trafficking who may be witnesses. Filed by federal LE on victim's behalf. Renewable in ~12-month increments."
60
+ },
61
+ {
62
+ "code": "933-002-000-000-000-000-000",
63
+ "key": "t_visa",
64
+ "title": "T-Visa",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "USCIS Form I-914 — long-term nonimmigrant visa for victims of severe forms of trafficking. Survivor (typically through counsel) directly applies. Grants 4-year status; can lead to LPR eligibility."
69
+ },
70
+ {
71
+ "code": "933-003-000-000-000-000-000",
72
+ "key": "u_visa",
73
+ "title": "U-Visa",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "USCIS Form I-918 — nonimmigrant visa for victims of certain qualifying crimes who cooperate with law enforcement. Adjacent to T-Visa for foreign-national DV / sexual-assault survivors who aren't trafficking victims."
78
+ },
79
+ {
80
+ "code": "933-004-000-000-000-000-000",
81
+ "key": "vawa_self_petition",
82
+ "title": "VAWA Self-Petition",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Violence Against Women Act self-petition — immigration relief route for abused spouses, children, and parents of US citizens / LPRs. USCIS Form I-360."
87
+ },
88
+ {
89
+ "code": "933-005-000-000-000-000-000",
90
+ "key": "asylum",
91
+ "title": "Asylum",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "Protection from persecution in country of origin. USCIS Form I-589 (affirmative) or Immigration Court (defensive). Distinct from refugee status (granted prior to US entry)."
96
+ },
97
+ {
98
+ "code": "933-006-000-000-000-000-000",
99
+ "key": "sij",
100
+ "title": "Special Immigrant Juvenile (SIJ)",
101
+ "selectable": true,
102
+ "parentCode": null,
103
+ "childCodes": [],
104
+ "definition": "Special Immigrant Juvenile classification for abused, neglected, or abandoned children. USCIS Form I-360 + state-court predicate findings."
105
+ },
106
+ {
107
+ "code": "933-007-000-000-000-000-000",
108
+ "key": "other",
109
+ "title": "Other federal protection",
110
+ "selectable": true,
111
+ "parentCode": null,
112
+ "childCodes": [],
113
+ "definition": "Catch-all for federal protection types not listed above. Pairs with a free-text 'specify' input on the legal-action entry."
114
+ }
115
+ ]
116
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "domain": "message_report_reason",
3
+ "name": "Message Report Reason",
4
+ "version": "1.0.0",
5
+ "_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes from prototype/data/cvcs/core_message_report_reason.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog).",
6
+ "_source": "prototype/data/cvcs/core_message_report_reason.yaml",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Report reason"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "935-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "935-000-000-000-000-000-001",
20
+ "935-000-000-000-000-000-002",
21
+ "935-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected). Added per the temporary-author convention; the source YAML enumerates only the substantive single-select report reasons."
24
+ },
25
+ {
26
+ "code": "935-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "935-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Report reason is unknown at time of entry."
33
+ },
34
+ {
35
+ "code": "935-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "935-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Report reason is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
42
+ },
43
+ {
44
+ "code": "935-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "935-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "No attempt was made to collect the value."
51
+ },
52
+ {
53
+ "code": "935-001-000-000-000-000-000",
54
+ "key": "inappropriate",
55
+ "title": "Inappropriate content",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Content that violates Platform conduct standards but doesn't fit a more specific category — explicit / offensive / discriminatory language; content that doesn't belong in a professional cross-sector workspace. Routes to HTI Platform Trust & Safety; common outcomes range from a warning to a temporary messaging suspension depending on severity + history."
60
+ },
61
+ {
62
+ "code": "935-002-000-000-000-000-000",
63
+ "key": "harassment",
64
+ "title": "Harassment or threatening behavior",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "Targeted harassment, intimidation, or threats directed at the recipient or a third party. Distinct from inappropriate (which is about content register) — harassment is about targeted behavior toward a person. Routes to HTI Platform Trust & Safety; higher-severity triage reviewed within a short SLA per Platform conduct policy."
69
+ },
70
+ {
71
+ "code": "935-003-000-000-000-000-000",
72
+ "key": "safety_concern",
73
+ "title": "Survivor safety concern",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "The message contains content that suggests imminent risk to a survivor — disclosure of survivor location to an unverified party; mention of a stalking / DV pattern the recipient believes the sender is part of; coercion attempts. Routes to HTI Platform Trust & Safety; highest-severity triage, escalating to legal + appropriate authorities per the Platform's mandatory-report obligations + the survivor's safety-planning context."
78
+ },
79
+ {
80
+ "code": "935-004-000-000-000-000-000",
81
+ "key": "spam",
82
+ "title": "Spam or off-topic solicitation",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Unsolicited mass / bulk messaging, vendor solicitation, off-topic recruitment / advocacy unrelated to anti-trafficking work. Routes to HTI Platform Trust & Safety — lower-severity triage but still T&S-routed because repeated violations indicate the user shouldn't have Platform access."
87
+ },
88
+ {
89
+ "code": "935-005-000-000-000-000-000",
90
+ "key": "off_topic",
91
+ "title": "Off-topic for this thread",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "Content is professional + non-violating but doesn't belong in this specific thread. Routes to HTI Platform Support (not Trust & Safety) for thread-shape feedback; the reporter typically just wants the message moved + the thread refocused."
96
+ },
97
+ {
98
+ "code": "935-006-000-000-000-000-000",
99
+ "key": "other",
100
+ "title": "Other",
101
+ "selectable": true,
102
+ "parentCode": null,
103
+ "childCodes": [],
104
+ "definition": "Catch-all for reasons that don't fit the above 5 codes. Routes to HTI Platform Trust & Safety as the safer default (Platform Support can re-route). Reporter is encouraged to fill out the optional 'What's going on?' free-text field when picking Other."
105
+ }
106
+ ]
107
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "domain": "mid_stay_event_type",
3
+ "name": "Core Mid-Stay Event Type",
4
+ "version": "1.0.0",
5
+ "_source": "prototype/data/cvcs/core_mid_stay_event_type.yaml (Final-CVC-derived), CVC-221",
6
+ "_status": "DRAFT — Notion page is Not-started/empty; codes from prototype pending Notion-sub-DB ratification",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Mid-stay event type"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "221-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "221-000-000-000-000-000-001",
20
+ "221-000-000-000-000-000-002",
21
+ "221-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected). Absorbs the prototype YAML's UNK level-0 sentinel ('event captured but type unspecified' — an advocate logged a mid-stay note without classifying the event type) under the unknown child."
24
+ },
25
+ {
26
+ "code": "221-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "221-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Event captured but type unspecified. Used when an advocate logs a mid-stay note without classifying the event type — typically because the operational nature of the event is unclear at capture time and the advocate wants to record the moment without committing to a category. Maps the prototype UNK sentinel."
33
+ },
34
+ {
35
+ "code": "221-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "221-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
42
+ },
43
+ {
44
+ "code": "221-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "221-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "No attempt was made to collect the value."
51
+ },
52
+ {
53
+ "code": "221-001-000-000-000-000-000",
54
+ "key": "room_transfer",
55
+ "title": "Room transfer",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Survivor transferred from one room to another within the same residential program. Common in TLP / DV shelter contexts when space reconfigures, safety considerations warrant a unit change, or program-side operational needs (maintenance, capacity, etc.) drive the move. Free-text notes field captures the operational detail (prior unit, new unit, transfer rationale). Spring map: 'Moved to New Room' (Room Exit dropdown — operationally lumped with program exits at Spring, but canonically a mid-stay event)."
60
+ },
61
+ {
62
+ "code": "221-002-000-000-000-000-000",
63
+ "key": "overnight_pass_approved",
64
+ "title": "Overnight pass approved",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "Survivor received approval for an overnight absence from the residential program (visiting family, court appearance, medical appointment, etc.). Enrollment remains active; bed stays assigned and held for return. Spring map: 'Approved Overnight Pass' (Room Exit dropdown). Free-text notes field captures the authorized purpose and expected return date."
69
+ },
70
+ {
71
+ "code": "221-003-000-000-000-000-000",
72
+ "key": "bed_vacated_no_contact",
73
+ "title": "Bed vacated (no contact 48hr+)",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "Survivor has been absent from the residential program without contact for the agency-defined no-contact threshold (Spring uses 48 hours). The bed becomes operationally available for re-assignment, but the enrollment does NOT close — enrollment close is a separate threshold (typically 90 days, captured as LOST_TO_FOLLOWUP in core exit_reasons). This canonical separation is load-bearing: it prevents the 48-hour bed-vacancy operational change from prematurely terminating the enrollment and losing the survivor's case continuity. Spring map: 'No Contact (48 hours or more)' (Room Exit dropdown)."
78
+ },
79
+ {
80
+ "code": "221-004-000-000-000-000-000",
81
+ "key": "care_plan_review",
82
+ "title": "Care plan review completed",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Scheduled care plan review session per agency cadence (e.g., weekly, biweekly, monthly). Distinct from canonical Service Plan signature timing (OAC 75:30-5-3.1, captured on HTI_SERVICE_PLANS.next_review_due_at) — this captures the operational checkpoint regardless of whether the formal Service Plan review is concurrent. May co-occur with Service Plan review (formal cadence) or stand alone (operational check-in)."
87
+ },
88
+ {
89
+ "code": "221-005-000-000-000-000-000",
90
+ "key": "internal_referral",
91
+ "title": "Internal referral added",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "Cross-program internal referral made or accepted during the stay (e.g., from residential program to in-house legal advocacy, case management, or counseling). Captured here for operational continuity; the canonical service-instance routing happens separately on HTI_SERVICES (the new service instance carries its own source: 'internal_referral'). This mid-stay entry captures the moment-of-referral operational signal."
96
+ },
97
+ {
98
+ "code": "221-006-000-000-000-000-000",
99
+ "key": "safety_check_in",
100
+ "title": "Safety check-in",
101
+ "selectable": true,
102
+ "parentCode": null,
103
+ "childCodes": [],
104
+ "definition": "Structured safety check-in performed during the residential stay. Distinct from canonical Plans & Goals safety-plan-anchored review (which captures formal safety plan state changes) — this captures the operational moment regardless of formal safety plan state. May escalate to safety plan update (queued via Plans & Goals Safety Plan extension) or stand alone (routine check-in). Common after operational disruption (room transfer, neighbor conflict, external threat surfaced, etc.)."
105
+ },
106
+ {
107
+ "code": "221-007-000-000-000-000-000",
108
+ "key": "other",
109
+ "title": "Other operational event",
110
+ "selectable": true,
111
+ "parentCode": null,
112
+ "childCodes": [],
113
+ "definition": "Catch-all for operationally-significant mid-stay events that don't fit the canonical L1 types above. Free-text notes field captures the operational detail. If a particular operational event surfaces frequently in real-world data, consider promoting it to a canonical L1 code in a future CVC re-export."
114
+ }
115
+ ]
116
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "domain": "milestone_type",
3
+ "name": "Milestone Type",
4
+ "version": "1.0.0",
5
+ "_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes from prototype/data/cvcs/core_milestone_type.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). NOTE: the source YAML is single_select at the value level but each entry carries a rich per-entry writeback contract (one of three shapes — scalar demographics writeback, sub-log addEntry writeback, or service-instance writeback — or null for celebration-only); that writeback contract is summarized in each entry's definition but is NOT represented in this flat controlled-vocabulary shape. The L1 goal-category cross-reference is likewise carried in the definition, not as a structural field.",
6
+ "_source": "prototype/data/cvcs/core_milestone_type.yaml",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Milestone type (canonical positive event)"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "936-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "936-000-000-000-000-000-001",
20
+ "936-000-000-000-000-000-002",
21
+ "936-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected). Added per the temporary-author convention; the source YAML declares no L0 sentinels (milestones are positive events by construction) so these are provisional missingness anchors only."
24
+ },
25
+ {
26
+ "code": "936-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "936-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Milestone type is unknown at time of entry."
33
+ },
34
+ {
35
+ "code": "936-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "936-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Milestone type is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
42
+ },
43
+ {
44
+ "code": "936-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "936-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "No attempt was made to collect the value."
51
+ },
52
+ {
53
+ "code": "936-001-000-000-000-000-000",
54
+ "key": "edu_grade_complete",
55
+ "title": "EDU: Class / Year Grade Complete",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Survivor completed a grade level (class/year complete) prior to high school graduation. Category INFORMAL_EDUCATION_LIFE_SKILLS. Writeback (Shape 1, maps directly, silent): p.demographics.highest_education_level_completed = LT_HS. Spring code 'EDU: (C/Y) Grade Complete'."
60
+ },
61
+ {
62
+ "code": "936-002-000-000-000-000-000",
63
+ "key": "edu_ged_hs_diploma",
64
+ "title": "EDU: GED / HS Diploma",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "Survivor earned a GED or high school diploma. Category INFORMAL_EDUCATION_LIFE_SKILLS. Writeback (Shape 1, maps directly, silent): p.demographics.highest_education_level_completed = HS. Spring code 'EDU: GED/HS Diploma'."
69
+ },
70
+ {
71
+ "code": "936-003-000-000-000-000-000",
72
+ "key": "edu_higher_ed_degree",
73
+ "title": "EDU: Higher Ed Degree",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "Survivor earned a college degree. Category INFORMAL_EDUCATION_LIFE_SKILLS. Writeback (Shape 1, logic needed, advocate confirms): p.demographics.highest_education_level_completed candidates [BA, GRAD] via inline confirmation step. Spring code 'EDU: Higher Ed Degree'."
78
+ },
79
+ {
80
+ "code": "936-004-000-000-000-000-000",
81
+ "key": "edu_trade_school_degree",
82
+ "title": "EDU: Trade School Degree",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Survivor completed trade school. Category INFORMAL_EDUCATION_LIFE_SKILLS. Writeback (Shape 1, logic needed, advocate confirms): p.demographics.highest_education_level_completed candidates [AA, TRADE]; trade school may or may not equate to an associate's degree. Spring code 'EDU: Trade School Degree'."
87
+ },
88
+ {
89
+ "code": "936-005-000-000-000-000-000",
90
+ "key": "obtained_employment",
91
+ "title": "Obtained Employment",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "Survivor secured a job. Category FINANCIAL_AND_EMPLOYMENT. Writeback (Shape 1, maps directly, silent): p.demographics.employment_status = EMP. Spring code 'Obtained Employment'."
96
+ },
97
+ {
98
+ "code": "936-006-000-000-000-000-000",
99
+ "key": "received_housing_offer",
100
+ "title": "Received Housing Offer",
101
+ "selectable": true,
102
+ "parentCode": null,
103
+ "childCodes": [],
104
+ "definition": "Survivor was offered housing. Category HOUSING. Writeback (Shape 2, sub-log addEntry, logic needed): if advocate confirms move-in, dispatch HTI_LIVING_SITUATIONS_API.addEntry with code_candidates [OWN_RENT, TEMP_HOUSING_PROGRAM, OTHER], status current, source milestone_writeback; otherwise celebrates the offer without changing residence state. Spring code 'Received Housing Offer'."
105
+ },
106
+ {
107
+ "code": "936-007-000-000-000-000-000",
108
+ "key": "recovery_anniversary",
109
+ "title": "Recovery Anniversary",
110
+ "selectable": true,
111
+ "parentCode": null,
112
+ "childCodes": [],
113
+ "definition": "Survivor reached a sobriety anniversary. Category HEALTHCARE. Writeback null (celebration-only) — canonical field p.demographics.previous_substance_abuse_disorder_status does not yet exist; Phase 2.5 follow-up restores the logic-needed contract once Crysta authors the field. Spring code 'Recovery Anniversary'."
114
+ },
115
+ {
116
+ "code": "936-008-000-000-000-000-000",
117
+ "key": "parenting_class_completed",
118
+ "title": "Parenting Class Completed",
119
+ "selectable": true,
120
+ "parentCode": null,
121
+ "childCodes": [],
122
+ "definition": "Survivor completed a parenting class. Category DEPENDENTS. Writeback (Shape 3, service instance, logic needed): service_instance_path ['Social Support & Community Engagement Services', 'Dependents', 'Parenting Education & Family Skill-Building'], service_instance_code VSCAT-36, state provided. Spring code 'Parenting Class Completed'."
123
+ },
124
+ {
125
+ "code": "936-009-000-000-000-000-000",
126
+ "key": "opened_bank_account",
127
+ "title": "Opened Bank Account",
128
+ "selectable": true,
129
+ "parentCode": null,
130
+ "childCodes": [],
131
+ "definition": "Survivor opened a bank account. Category FINANCIAL_AND_EMPLOYMENT. Writeback null (celebration-only) — canonical has_bank_account field intentionally NOT authored per Crysta Q14 (gap accepted; not a HUD-required UDE). Spring code 'Opened Bank Account'."
132
+ },
133
+ {
134
+ "code": "936-010-000-000-000-000-000",
135
+ "key": "baptism",
136
+ "title": "Baptism",
137
+ "selectable": true,
138
+ "parentCode": null,
139
+ "childCodes": [],
140
+ "definition": "Survivor was baptized. Category SOCIAL_SUPPORT_COMMUNITY_ENGAGEMENT. Writeback null (celebration-only) — faith celebrations fold under Social Support & Community Engagement per Crysta Q3; no semantic data implication. Spring code 'Baptism'."
141
+ },
142
+ {
143
+ "code": "936-011-000-000-000-000-000",
144
+ "key": "spiritual_decision",
145
+ "title": "Spiritual Decision",
146
+ "selectable": true,
147
+ "parentCode": null,
148
+ "childCodes": [],
149
+ "definition": "Survivor made a spiritual commitment / decision. Category SOCIAL_SUPPORT_COMMUNITY_ENGAGEMENT. Writeback null (celebration-only) per Crysta Q3. Spring code 'Spiritual Decision'."
150
+ },
151
+ {
152
+ "code": "936-012-000-000-000-000-000",
153
+ "key": "baby_child_youth_dedication",
154
+ "title": "Baby / Child / Youth Dedication",
155
+ "selectable": true,
156
+ "parentCode": null,
157
+ "childCodes": [],
158
+ "definition": "Faith-tradition ceremony dedicating a baby, child, or youth. Category SOCIAL_SUPPORT_COMMUNITY_ENGAGEMENT. Writeback null (celebration-only) per Crysta Q13. Spring code 'Baby/Child/Youth Dedic.'."
159
+ },
160
+ {
161
+ "code": "936-013-000-000-000-000-000",
162
+ "key": "other",
163
+ "title": "Other Milestone",
164
+ "selectable": true,
165
+ "parentCode": null,
166
+ "childCodes": [],
167
+ "definition": "Other milestone type not captured by canonical entries. Category OTHER_SERVICES. Writeback null (pure celebration unless paired with an explicit linked_goal_id for goal-completion linkage). Pairs with a required description free-text."
168
+ }
169
+ ]
170
+ }