@htilabs/platform-common-models 0.8.8 → 0.9.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 (78) hide show
  1. package/README.md +44 -0
  2. package/dist/config/index.cjs +191 -0
  3. package/dist/config/index.cjs.map +1 -0
  4. package/dist/config/index.d.cts +101 -0
  5. package/dist/config/index.d.ts +101 -0
  6. package/dist/config/index.js +165 -0
  7. package/dist/config/index.js.map +1 -0
  8. package/dist/constants/index.cjs +5 -432
  9. package/dist/constants/index.cjs.map +1 -1
  10. package/dist/constants/index.d.cts +1 -1
  11. package/dist/constants/index.d.ts +1 -1
  12. package/dist/constants/index.js +5 -429
  13. package/dist/constants/index.js.map +1 -1
  14. package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-0BIB9sen.d.cts} +44 -44
  15. package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-0BIB9sen.d.ts} +44 -44
  16. package/dist/cvcs/index.cjs +5863 -7181
  17. package/dist/cvcs/index.cjs.map +1 -1
  18. package/dist/cvcs/index.d.cts +3127 -4581
  19. package/dist/cvcs/index.d.ts +3127 -4581
  20. package/dist/cvcs/index.js +5863 -7173
  21. package/dist/cvcs/index.js.map +1 -1
  22. package/dist/{index-C0J3f169.d.ts → index-CDoqrfc1.d.ts} +1 -1
  23. package/dist/{index-EPjPjR0z.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  24. package/dist/index.cjs +1780 -3613
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +191 -544
  27. package/dist/index.d.ts +191 -544
  28. package/dist/index.js +5967 -7775
  29. package/dist/index.js.map +1 -1
  30. package/dist/models/index.d.cts +2 -2
  31. package/dist/models/index.d.ts +2 -2
  32. package/dist/{platform-auth-BSKYSDKe.d.cts → platform-auth-XVB9aHqR.d.cts} +3 -19
  33. package/dist/{platform-auth-BSKYSDKe.d.ts → platform-auth-XVB9aHqR.d.ts} +3 -19
  34. package/dist/schemas/index.cjs +9 -26
  35. package/dist/schemas/index.cjs.map +1 -1
  36. package/dist/schemas/index.d.cts +39 -35
  37. package/dist/schemas/index.d.ts +39 -35
  38. package/dist/schemas/index.js +9 -26
  39. package/dist/schemas/index.js.map +1 -1
  40. package/dist/types/index.d.cts +2 -2
  41. package/dist/types/index.d.ts +2 -2
  42. package/package.json +25 -19
  43. package/src/__tests__/__snapshots__/cvc-sot.snap +13 -77
  44. package/src/__tests__/cvc-sot-snapshot.test.ts +11 -62
  45. package/src/__tests__/cvc-structural.test.ts +2 -11
  46. package/src/__tests__/runtime-contract-validator.test.ts +556 -0
  47. package/src/config/fixtures/valid.yaml +90 -0
  48. package/src/config/index.ts +352 -0
  49. package/src/constants/ic.ts +3 -445
  50. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +0 -9
  51. package/src/cvcs/hmisSex.v1.0.0.json +89 -0
  52. package/src/cvcs/identificationStatus.v1.0.0.json +0 -18
  53. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +2 -31
  54. package/src/cvcs/index.ts +1 -17
  55. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +96 -0
  56. package/src/cvcs/recencyBand.v1.0.0.json +57 -38
  57. package/src/cvcs/{serviceCategories.v1.1.0.json → serviceCategories.v1.0.0.json} +1091 -1091
  58. package/src/cvcs/serviceStates.v1.0.0.json +1 -23
  59. package/src/cvcs/sourceSubtype.v1.1.0.json +0 -36
  60. package/src/cvcs/verificationMethod.v1.0.0.json +0 -18
  61. package/src/generated/cvc-enums.ts +149 -572
  62. package/src/index.ts +20 -0
  63. package/src/schemas/common.ts +4 -0
  64. package/src/cvcs/activityType.v1.0.0.json +0 -143
  65. package/src/cvcs/assertionDomain.v1.0.0.json +0 -629
  66. package/src/cvcs/contactLinkType.v1.0.0.json +0 -89
  67. package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +0 -104
  68. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +0 -159
  69. package/src/cvcs/htType.v1.0.0.json +0 -87
  70. package/src/cvcs/livingSituation.v1.0.0.json +0 -213
  71. package/src/cvcs/provenanceSourceId.v1.0.0.json +0 -134
  72. package/src/cvcs/radiusBucket.v1.0.0.json +0 -98
  73. package/src/cvcs/relationshipConcern.v1.0.0.json +0 -114
  74. package/src/cvcs/roiMethod.v1.0.0.json +0 -107
  75. package/src/cvcs/serviceAudience.v1.0.0.json +0 -96
  76. package/src/cvcs/sessionNoteVisibility.v1.0.0.json +0 -80
  77. package/src/cvcs/suggestionSource.v1.0.0.json +0 -71
  78. package/src/cvcs/victimAbuseTypes.v1.0.0.json +0 -276
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/config/index.ts"],"sourcesContent":["/**\n * @htilabs/platform-common-models — Runtime Config Contract Validator\n *\n * Implements contract R12.1 (platform-common home):\n * - validateAgainstContract(runtimeYamlPath, opts?) — startup validator (R3.2)\n * - createConfigEndpoint(runtimeYamlPath, opts?) — /api/config factory (R7)\n *\n * Consumers MUST call validateAgainstContract once at process startup, before\n * any other initialization that reads env vars. Build-phase variables\n * (phase: build) are NOT checked at runtime per R3.4.\n *\n * No secret VALUES are read, stored, or returned here. Secret env vars are\n * validated for presence but their values are never logged or exposed.\n *\n * Dual ESM + CJS via tsup. Plain JS consumers (pave, leads) use require():\n * const { validateAgainstContract } = require('@htilabs/platform-common-models/config');\n */\n\nimport { readFileSync } from \"node:fs\";\nimport { parse } from \"yaml\";\n\n// ─── Schema types (mirrors thread's runtime-config-lib.ts VariableSpec) ──────\n\nexport interface VariableSpec {\n type: \"string\" | \"boolean\" | \"number\" | \"enum\" | \"url\" | \"json\";\n required: boolean;\n secret: boolean;\n description: string;\n phase?: \"runtime\" | \"build\";\n values?: string[];\n default?: Record<string, unknown>;\n provider?: string;\n name?: string;\n client_visible?: boolean;\n deprecated?: { since: string; remove_after?: string; replacement?: string };\n}\n\nexport interface ServiceContract {\n service: string;\n version: number;\n environments: string[];\n // Thread extensions (tolerated, not required — R1.1 note)\n port?: number;\n build_secrets?: string[];\n variables: Record<string, VariableSpec>;\n}\n\n/** Typed config accessor returned by validateAgainstContract. */\nexport type TypedConfig = Record<string, string | boolean | number | unknown>;\n\nexport interface ValidateOptions {\n /**\n * Environment name used to select per-env defaults (e.g. \"local\", \"test\").\n * Defaults to process.env.NODE_ENV, then \"local\".\n */\n env?: string;\n /**\n * If true, do not call process.exit(1) on failure; throw instead.\n * Useful for tests. Defaults to false (production mode exits).\n */\n throwOnFailure?: boolean;\n}\n\nexport interface EndpointOptions {\n /** Cache-Control header value. Defaults to \"private, no-store\". */\n cacheControl?: string;\n}\n\n/**\n * A framework-agnostic route handler that returns a JSON response.\n * Compatible with:\n * - Next.js App Router: export const GET = createConfigEndpoint(...)\n * - Fastify: instance.get('/api/config', createConfigEndpoint(...))\n * - Express: app.get('/api/config', createConfigEndpoint(...))\n */\nexport type RouteHandler = (\n req?: unknown,\n res?: unknown,\n) => Promise<Response | void> | Response | void;\n\n// ─── YAML parser ──────────────────────────────────────────────────────────────\n\nfunction loadContract(runtimeYamlPath: string): ServiceContract {\n let raw: string;\n try {\n raw = readFileSync(runtimeYamlPath, \"utf8\");\n } catch (err) {\n const msg =\n err instanceof Error ? err.message : String(err);\n throw new Error(\n `[platform-common/config] Cannot read ${runtimeYamlPath}: ${msg}`,\n );\n }\n const parsed = parse(raw) as ServiceContract | null;\n if (!parsed || typeof parsed !== \"object\") {\n throw new Error(\n `[platform-common/config] ${runtimeYamlPath}: not a YAML mapping`,\n );\n }\n if (parsed.version !== 1) {\n throw new Error(\n `[platform-common/config] ${runtimeYamlPath}: unsupported contract version ${parsed.version} (expected 1)`,\n );\n }\n if (!parsed.variables || typeof parsed.variables !== \"object\") {\n throw new Error(\n `[platform-common/config] ${runtimeYamlPath}: missing \"variables\" map`,\n );\n }\n return parsed;\n}\n\n// ─── Coercion ────────────────────────────────────────────────────────────────\n\n/**\n * Coerce a raw environment string value to the declared type.\n * Returns [ok, coerced] or [false, errorMessage].\n */\nfunction coerce(\n key: string,\n raw: string,\n spec: VariableSpec,\n): [true, unknown] | [false, string] {\n switch (spec.type) {\n case \"boolean\": {\n if (raw === \"true\" || raw === \"1\") return [true, true];\n if (raw === \"false\" || raw === \"0\") return [true, false];\n return [false, `${key}: expected boolean (\"true\"/\"false\"/\"1\"/\"0\"), got \"${raw}\"`];\n }\n case \"number\": {\n const n = Number(raw);\n if (!Number.isFinite(n)) {\n return [false, `${key}: expected number, got \"${raw}\"`];\n }\n return [true, n];\n }\n case \"enum\": {\n const vals = spec.values ?? [];\n if (!vals.includes(raw)) {\n return [false, `${key}: expected one of [${vals.join(\", \")}], got \"${raw}\"`];\n }\n return [true, raw];\n }\n case \"url\": {\n try {\n new URL(raw);\n return [true, raw];\n } catch {\n return [false, `${key}: expected a valid URL, got \"${raw}\"`];\n }\n }\n case \"json\": {\n try {\n const parsed = JSON.parse(raw) as unknown;\n return [true, parsed];\n } catch {\n return [false, `${key}: expected valid JSON, got \"${raw}\"`];\n }\n }\n default:\n // string\n return [true, raw];\n }\n}\n\n// ─── Default application ─────────────────────────────────────────────────────\n\n/**\n * Returns the default value for a variable in the given environment,\n * or undefined if no default applies.\n *\n * Exact env match only — defaults are per-environment and MUST NOT bleed\n * across envs. (A local default stays local; it does not fall back into prod.)\n */\nfunction resolveDefault(\n spec: VariableSpec,\n env: string,\n): string | undefined {\n if (!spec.default) return undefined;\n const v = spec.default[env];\n if (v === undefined) return undefined;\n return String(v);\n}\n\n// ─── validateAgainstContract ─────────────────────────────────────────────────\n\n/**\n * Parse `runtimeYamlPath`, coerce every runtime-phase variable from\n * `process.env` (with per-env defaults applied), and fail fast on any\n * missing or invalid required variable (R3.2).\n *\n * Build-phase variables (phase: build) are skipped per R3.4.\n *\n * Returns a typed config object keyed by variable name.\n */\nexport function validateAgainstContract(\n runtimeYamlPath: string,\n opts: ValidateOptions = {},\n): TypedConfig {\n const contract = loadContract(runtimeYamlPath);\n const env =\n opts.env ??\n (process.env.NODE_ENV as string | undefined) ??\n \"local\";\n\n const errors: string[] = [];\n const result: TypedConfig = {};\n\n for (const [key, spec] of Object.entries(contract.variables)) {\n // R3.4: skip build-phase variables entirely at runtime.\n if (spec.phase === \"build\") continue;\n\n const rawFromEnv = process.env[key];\n const defaultValue = resolveDefault(spec, env);\n const effective = rawFromEnv ?? defaultValue;\n\n if (effective === undefined || effective === \"\") {\n if (spec.required) {\n errors.push(\n `${key}: required but not set (no value in process.env and no default for env \"${env}\")`,\n );\n }\n // Not required and not set — omit from result.\n continue;\n }\n\n const [ok, coerced] = coerce(key, effective, spec);\n if (!ok) {\n errors.push(coerced as string);\n continue;\n }\n result[key] = coerced;\n }\n\n if (errors.length > 0) {\n const message = [\n `[platform-common/config] validateAgainstContract failed for ${runtimeYamlPath}`,\n `${errors.length} variable(s) missing or invalid:`,\n ...errors.map((e) => ` - ${e}`),\n ].join(\"\\n\");\n\n if (opts.throwOnFailure) {\n throw new Error(message);\n }\n console.error(message);\n process.exit(1);\n }\n\n return result;\n}\n\n// ─── createConfigEndpoint ────────────────────────────────────────────────────\n\n/**\n * Build a static JSON payload containing only variables that are\n * client_visible: true AND secret: false (R7.2, R7.3). Reads process.env\n * once at factory call time.\n */\nfunction buildClientPayload(\n contract: ServiceContract,\n env: string,\n): Record<string, unknown> {\n const payload: Record<string, unknown> = {};\n\n for (const [key, spec] of Object.entries(contract.variables)) {\n // R7.3: never expose secrets.\n if (spec.secret) continue;\n // R7.2: only expose client_visible vars.\n if (!spec.client_visible) continue;\n // R3.4: build-phase vars are not available at runtime.\n if (spec.phase === \"build\") continue;\n\n const raw = process.env[key] ?? resolveDefault(spec, env);\n if (raw === undefined) continue;\n\n const [ok, coerced] = coerce(key, raw, spec);\n payload[key] = ok ? coerced : raw;\n }\n\n return payload;\n}\n\n/**\n * Route-handler factory for GET /api/config (R7.1).\n *\n * Reads the contract and process.env once at factory-call time and caches\n * the JSON payload. The returned handler is compatible with:\n *\n * Next.js App Router:\n * export const GET = createConfigEndpoint(path);\n *\n * Fastify:\n * instance.get('/api/config', createConfigEndpoint(path));\n *\n * Express:\n * app.get('/api/config', createConfigEndpoint(path));\n *\n * The handler detects the calling convention at runtime:\n * - Next.js / fetch-native: called with no arguments; returns a Response.\n * - Express: called with (req, res); calls res.json() and returns void.\n * - Fastify: called with (req, reply); calls reply.send() and returns void.\n */\nexport function createConfigEndpoint(\n runtimeYamlPath: string,\n opts: EndpointOptions = {},\n): RouteHandler {\n const contract = loadContract(runtimeYamlPath);\n const env =\n (process.env.NODE_ENV as string | undefined) ?? \"local\";\n const payload = buildClientPayload(contract, env);\n const cacheControl = opts.cacheControl ?? \"private, no-store\";\n const body = JSON.stringify(payload);\n\n return function configHandler(\n _req?: unknown,\n res?: unknown,\n ): Promise<Response | void> | Response | void {\n // Express-shaped: res has .json()\n if (res && typeof (res as Record<string, unknown>)[\"json\"] === \"function\") {\n const r = res as {\n setHeader: (k: string, v: string) => void;\n json: (data: unknown) => void;\n };\n r.setHeader(\"Cache-Control\", cacheControl);\n r.setHeader(\"Content-Type\", \"application/json\");\n r.json(payload);\n return;\n }\n\n // Fastify-shaped: res has .send()\n if (res && typeof (res as Record<string, unknown>)[\"send\"] === \"function\") {\n const r = res as {\n header: (k: string, v: string) => void;\n type: (ct: string) => void;\n send: (data: string) => void;\n };\n r.header(\"Cache-Control\", cacheControl);\n r.type(\"application/json\");\n r.send(body);\n return;\n }\n\n // Next.js / fetch-native (no res argument, or unrecognised res)\n return new Response(body, {\n status: 200,\n headers: {\n \"Content-Type\": \"application/json\",\n \"Cache-Control\": cacheControl,\n },\n });\n };\n}\n"],"mappings":";AAkBA,SAAS,oBAAoB;AAC7B,SAAS,aAAa;AA+DtB,SAAS,aAAa,iBAA0C;AAC9D,MAAI;AACJ,MAAI;AACF,UAAM,aAAa,iBAAiB,MAAM;AAAA,EAC5C,SAAS,KAAK;AACZ,UAAM,MACJ,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AACjD,UAAM,IAAI;AAAA,MACR,wCAAwC,eAAe,KAAK,GAA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IAAI;AAKV,QAAE,OAAO,iBAAiB,YAAY;AACtC,QAAE,KAAK,kBAAkB;AACzB,QAAE,KAAK,IAAI;AACX;AAAA,IACF;AAGA,WAAO,IAAI,SAAS,MAAM;AAAA,MACxB,QAAQ;AAAA,MACR,SAAS;AAAA,QACP,gBAAgB;AAAA,QAChB,iBAAiB;AAAA,MACnB;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
@@ -57,8 +57,6 @@ __export(constants_exports, {
57
57
  CVC_126_VALUES: () => CVC_126_VALUES,
58
58
  CVC_136_ALERT_INDICATOR: () => CVC_136_ALERT_INDICATOR,
59
59
  CVC_136_CATEGORY_LABELS: () => CVC_136_CATEGORY_LABELS,
60
- CVC_136_CORE_INDICATOR_LABELS: () => CVC_136_CORE_INDICATOR_LABELS,
61
- CVC_136_CORE_INDICATOR_VALUES: () => CVC_136_CORE_INDICATOR_VALUES,
62
60
  CVC_136_INDICATOR_CATEGORY: () => CVC_136_INDICATOR_CATEGORY,
63
61
  CVC_136_LABELS: () => CVC_136_LABELS,
64
62
  CVC_136_OPTIONS: () => CVC_136_OPTIONS,
@@ -232,7 +230,6 @@ __export(constants_exports, {
232
230
  IC_56_DESCRIPTIONS: () => IC_56_DESCRIPTIONS,
233
231
  IC_56_LABELS: () => IC_56_LABELS,
234
232
  IC_56_OPTIONS: () => IC_56_OPTIONS,
235
- IC_56_PROVISIONAL_CHANNELS: () => IC_56_PROVISIONAL_CHANNELS,
236
233
  IC_56_SERVICE_DELIVERY_CHANNEL: () => IC_56_SERVICE_DELIVERY_CHANNEL,
237
234
  IC_57_LABELS: () => IC_57_LABELS,
238
235
  IC_57_SERVICE_AUDIENCE: () => IC_57_SERVICE_AUDIENCE,
@@ -809,17 +806,8 @@ var IC_56_SERVICE_DELIVERY_CHANNEL = {
809
806
  ON_SCENE: 2,
810
807
  PHONE: 3,
811
808
  EMAIL_TEXT_CHAT: 4,
812
- VIRTUAL: 5,
813
- // PROVISIONAL — group delivery channels surfaced by the Thread canonical
814
- // "How was the service delivered?" picker. Authored ahead of codebook /
815
- // Notion ratification; flagged provisional pending SOT sign-off.
816
- GROUP_IN_PERSON: 6,
817
- GROUP_REMOTE: 7
818
- };
819
- var IC_56_PROVISIONAL_CHANNELS = /* @__PURE__ */ new Set([
820
- IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
821
- IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE
822
- ]);
809
+ VIRTUAL: 5
810
+ };
823
811
  var IC_56_LABELS = {
824
812
  [IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Data Not Collected",
825
813
  [IC_56_SERVICE_DELIVERY_CHANNEL.ANONYMOUS]: "Anonymous",
@@ -828,9 +816,7 @@ var IC_56_LABELS = {
828
816
  [IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "On-scene",
829
817
  [IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone",
830
818
  [IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email / Text / Chat",
831
- [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual",
832
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group (in-person)",
833
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group (remote)"
819
+ [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual"
834
820
  };
835
821
  var IC_56_DESCRIPTIONS = {
836
822
  [IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Contact method data was not collected",
@@ -840,15 +826,13 @@ var IC_56_DESCRIPTIONS = {
840
826
  [IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "Field response / crisis response / mobile advocacy",
841
827
  [IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone call",
842
828
  [IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email, text message, or chat",
843
- [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call",
844
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group session delivered in person (support group, class, workshop)",
845
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group session delivered remotely (virtual support group, webinar)"
829
+ [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call"
846
830
  };
847
831
  function isIC56Missingness(code) {
848
832
  return code <= 0;
849
833
  }
850
834
  function isIC56ValidChannel(code) {
851
- return code >= 1 && code <= 7;
835
+ return code >= 1 && code <= 5;
852
836
  }
853
837
  var IC_56_OPTIONS = [
854
838
  {
@@ -870,14 +854,6 @@ var IC_56_OPTIONS = [
870
854
  {
871
855
  value: IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL,
872
856
  label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]
873
- },
874
- {
875
- value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
876
- label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]
877
- },
878
- {
879
- value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE,
880
- label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]
881
857
  }
882
858
  ];
883
859
  var IC_57_SERVICE_AUDIENCE = {
@@ -4353,406 +4329,6 @@ var CVC_136_OPTIONS = Object.entries(
4353
4329
  category,
4354
4330
  categoryLabel: CVC_136_CATEGORY_LABELS[category]
4355
4331
  }));
4356
- var CVC_136_CORE_INDICATOR_VALUES = [
4357
- "abuser_evading_legal_consequences",
4358
- "abuser_has_weapon",
4359
- "abuser_substance_use",
4360
- "abuser_threatened_suicide",
4361
- "abuser_unemployed",
4362
- "acknowledgement_or_report_of_human_trafficking",
4363
- "adverse_childhood_household_challenges",
4364
- "appears_controlling_relationship",
4365
- "appears_turned_out_or_trained_ad_patterns",
4366
- "association_commercial_sex",
4367
- "auto_autonomy_protective_factors",
4368
- "autonomy_access_healthcare_without_fear",
4369
- "autonomy_choice_in_clients",
4370
- "autonomy_choice_in_services",
4371
- "autonomy_controls_own_docs",
4372
- "autonomy_controls_own_finances",
4373
- "autonomy_organizes_own_travel",
4374
- "autonomy_posts_own_ads",
4375
- "autonomy_sets_own_schedule",
4376
- "autonomy_sets_up_own_dates",
4377
- "battered_while_pregnant_history",
4378
- "branding_or_unusual_tattoos_tied_to_control",
4379
- "cannot_stop_working_or_freely_leave",
4380
- "child_not_abusers_in_household",
4381
- "coercive_debt_pressure_youth",
4382
- "coercive_migration_or_forced_travel",
4383
- "cognitive_or_functional_impairment_affecting_consent",
4384
- "commercial_sex_association_words_or_places",
4385
- "concerning_mannerisms_anxious_fearful_depressed",
4386
- "constraints_due_to_legal_status",
4387
- "control_quota_required",
4388
- "csctx_apparent_age_under_18",
4389
- "csctx_commercial_sex_advertisements",
4390
- "csctx_cs_associated_indicators",
4391
- "csctx_dangerous_services_offered",
4392
- "csctx_engagement_in_commercial_sex",
4393
- "csctx_minor_in_commercial_sex",
4394
- "csi_acknowledged_or_reported_trafficking",
4395
- "csi_branding_or_ownership_tattoos",
4396
- "csi_coerced_migration_or_travel",
4397
- "csi_debt_bondage_and_coerced_repayment",
4398
- "csi_denial_of_basic_needs",
4399
- "csi_document_control_and_false_documents",
4400
- "csi_employer_tied_immigration_dependence",
4401
- "csi_financial_control_and_wage_exploitation",
4402
- "csi_forced_to_commit_crimes",
4403
- "csi_lethal_threats_to_victim_or_children",
4404
- "csi_monitoring_and_isolation_by_controller",
4405
- "csi_physical_violence_and_abuse_observed",
4406
- "csi_pressured_or_forced_sex_act",
4407
- "csi_recruited_into_commercial_sex",
4408
- "csi_restricted_movement_and_confinement",
4409
- "csi_restrictive_or_deceptive_contract_terms",
4410
- "csi_third_party_facilitation_of_commercial_sex",
4411
- "csi_threats_and_coercion_for_control",
4412
- "csi_unsafe_or_exploitative_working_conditions",
4413
- "csi_weapon_threat_or_use",
4414
- "csi_work_differs_from_promise",
4415
- "csi_youth_sexually_exploited_imagery",
4416
- "current_injuries_from_abuser",
4417
- "currently_minor_in_commercial_sex",
4418
- "dangerous_services_no_protection",
4419
- "dangerous_services_requires_protection",
4420
- "dangerous_services_willing_anything",
4421
- "debt_terms_deceptive_youth",
4422
- "denied_basic_needs",
4423
- "depends_on_employer_for_immigration_status",
4424
- "does_not_control_finances_or_earnings",
4425
- "does_not_control_identity_documents",
4426
- "dv_abuser_risk_factors",
4427
- "dv_escalating_violence",
4428
- "dv_stalking",
4429
- "employer_keeps_pay_or_pays_less_than_expected",
4430
- "engages_in_commercial_sex_act",
4431
- "entered_commercial_sex_industry_as_minor",
4432
- "entered_cs_due_to_survival_needs",
4433
- "entered_into_network_of_sex_providers_early",
4434
- "exploitative_pricing_tier_low",
4435
- "forced_to_commit_crimes",
4436
- "forced_to_use_false_documents",
4437
- "foreign_born_or_recently_arrived",
4438
- "frequent_changes_in_residence",
4439
- "frequent_travel_or_location_changes",
4440
- "frequently_at_hotels_or_many_hotel_keys",
4441
- "has_ads_on_commercial_sex_site",
4442
- "has_facilitators_involved",
4443
- "has_management_or_representation",
4444
- "has_no_personal_items_or_possessions",
4445
- "head_injury_history",
4446
- "head_injury_loss_of_consciousness",
4447
- "high_risk_sexual_behavior",
4448
- "high_security_measures_at_work_or_living_location",
4449
- "highly_irregular_school_attendance",
4450
- "history_emotional_abuse",
4451
- "history_of_head_injury",
4452
- "history_of_mental_health_issues",
4453
- "history_of_running_away_or_missing_from_care",
4454
- "history_of_strangulation",
4455
- "history_physical_or_sexual_abuse_or_dv",
4456
- "homeless_or_unstably_housed",
4457
- "in_commercial_sex_industry_recorded",
4458
- "inability_to_account_for_self",
4459
- "intimate_partner_violence_reported_to_law_enforcement",
4460
- "juvenile_justice_or_child_welfare_involvement",
4461
- "limited_english_proficiency",
4462
- "lives_or_sleeps_at_place_of_work",
4463
- "living_with_abuser",
4464
- "macro_level_economic_duress_entry_exit",
4465
- "meets_or_has_sex_with_internet_contacts",
4466
- "monitored_or_isolated_by_controlling_party",
4467
- "much_older_intimate_partner",
4468
- "nervous_about_immigration_documentation",
4469
- "net_network_risk_signals",
4470
- "network_aggregate_risk_score_high",
4471
- "network_stable_size_large",
4472
- "network_trafficker_present",
4473
- "network_violent_person_present",
4474
- "new_to_commercial_sex_industry",
4475
- "not_in_control_of_immigration_documentation",
4476
- "owes_money_and_cannot_pay_off",
4477
- "paid_or_owes_fee_to_arrange_travel_to_us",
4478
- "past_phases_prior_trafficking_or_risk",
4479
- "pending_federal_protection",
4480
- "performing_different_work_than_promised",
4481
- "physical_violence_increasing",
4482
- "poverty_or_severe_financial_strain",
4483
- "precarious_immigration_status",
4484
- "pressured_or_forced_sex_act",
4485
- "prior_medical_attention_from_abuse",
4486
- "prior_tvap_disconnection",
4487
- "promise_of_work_different_than_current_work",
4488
- "recent_le_engagement",
4489
- "recruited_by_third_party_into_cs_industry",
4490
- "relies_on_temporary_resources_for_basic_needs",
4491
- "reports_physical_harm_by_employer_or_partner",
4492
- "reports_physical_harm_to_others_by_employer_or_partner",
4493
- "restrictive_or_not_understood_contract",
4494
- "risk_factors_commercial_sex",
4495
- "serious_substance_use_or_introduced_to_drugs",
4496
- "several_cell_phones_or_frequent_number_changes",
4497
- "signs_of_physical_abuse_confinement_or_neglect",
4498
- "social_isolation_or_no_supportive_relationships",
4499
- "stalking_property_intrusion",
4500
- "stalking_surveillance",
4501
- "stalking_unwanted_contact",
4502
- "strangulation_acute_symptoms",
4503
- "strangulation_choking_assault_detail",
4504
- "strangulation_loss_of_consciousness",
4505
- "strangulation_repeated",
4506
- "substance_use_while_working",
4507
- "suicidal_ideation_history",
4508
- "suicidal_ideation_recent",
4509
- "third_party_arranged_commercial_sex_acts",
4510
- "threats_of_harm",
4511
- "threats_of_legal_trouble_or_deportation",
4512
- "threats_related_to_migration_debt",
4513
- "threats_to_family_friends_or_close_associates",
4514
- "threats_to_kill_victim_or_children",
4515
- "trafficking_experience_current",
4516
- "trafficking_experience_past_10plusy",
4517
- "trafficking_experience_past_3to10y",
4518
- "trafficking_experience_past_lt3y",
4519
- "under_18_advertised_age",
4520
- "under_18_appears_underage",
4521
- "under_18_known_age",
4522
- "unexplained_frequent_travel_or_migration",
4523
- "unsafe_working_conditions_long_hours_inadequate_breaks",
4524
- "unusual_cash_or_unexplained_gifts",
4525
- "urgent_medical_referral_needed",
4526
- "vc_adverse_childhood_experiences",
4527
- "vc_age_disparate_partner",
4528
- "vc_cognitive_or_functional_impairment",
4529
- "vc_current_injuries_and_medical_need",
4530
- "vc_economic_hardship_and_survival_exchange",
4531
- "vc_federal_protection_and_le_engagement",
4532
- "vc_geographic_instability_and_travel",
4533
- "vc_head_injury_and_tbi",
4534
- "vc_high_risk_sexual_behavior_youth",
4535
- "vc_housing_instability_and_homelessness",
4536
- "vc_immigration_precarity",
4537
- "vc_mental_health_history",
4538
- "vc_prior_trafficking_high_phase_risk",
4539
- "vc_prior_victimization_and_abuse_history",
4540
- "vc_social_isolation",
4541
- "vc_strangulation_history_and_acute",
4542
- "vc_substance_use_vulnerability",
4543
- "vc_suicidal_ideation",
4544
- "vc_trafficking_experience_recency",
4545
- "vc_violence_during_pregnancy",
4546
- "vc_youth_system_involvement_and_instability",
4547
- "victim_believes_abuser_capable_of_killing",
4548
- "victimization_history_composite",
4549
- "violence_or_threats_at_work_site",
4550
- "weapon_used_or_threatened_against_victim",
4551
- "work_frequency_high_volume",
4552
- "working_while_pregnant",
4553
- "works_for_little_or_no_pay",
4554
- "youth_watched_filmed_or_photographed_sexually_explicit"
4555
- ];
4556
- var CVC_136_CORE_INDICATOR_LABELS = {
4557
- "abuser_evading_legal_consequences": "Abuser has avoided arrest for domestic violence",
4558
- "abuser_has_weapon": "Abuser with weapon",
4559
- "abuser_substance_use": "Abuser has serious substance use (alcohol or illegal drugs)",
4560
- "abuser_threatened_suicide": "Abuser threatened suicide",
4561
- "abuser_unemployed": "Abuser is unemployed",
4562
- "acknowledgement_or_report_of_human_trafficking": "Acknowledgement or report of human trafficking",
4563
- "adverse_childhood_household_challenges": "Adverse childhood household challenges (ACE-like)",
4564
- "appears_controlling_relationship": "Appears controlling relationship (employer/intimate partner/family)",
4565
- "appears_turned_out_or_trained_ad_patterns": "Appears 'turned out' / trained (ad patterns)",
4566
- "association_commercial_sex": "Association with commercial sex",
4567
- "auto_autonomy_protective_factors": "Autonomy / protective indicators",
4568
- "autonomy_access_healthcare_without_fear": "Autonomy: can access healthcare without fear of being hurt",
4569
- "autonomy_choice_in_clients": "Autonomy: choice in clients",
4570
- "autonomy_choice_in_services": "Autonomy: choice in services performed",
4571
- "autonomy_controls_own_docs": "Autonomy: controls own identity/immigration documents",
4572
- "autonomy_controls_own_finances": "Autonomy: controls own finances",
4573
- "autonomy_organizes_own_travel": "Autonomy: organizes own travel",
4574
- "autonomy_posts_own_ads": "Autonomy: posts own ads",
4575
- "autonomy_sets_own_schedule": "Autonomy: sets own schedule",
4576
- "autonomy_sets_up_own_dates": "Autonomy: sets up own dates/appointments",
4577
- "battered_while_pregnant_history": "Battered while pregnant (history)",
4578
- "branding_or_unusual_tattoos_tied_to_control": "Branding marks or unusual tattoos tied to exploitation/control",
4579
- "cannot_stop_working_or_freely_leave": "Cannot stop working or freely leave home/work",
4580
- "child_not_abusers_in_household": "Child in household who is not the abuser's biological child",
4581
- "coercive_debt_pressure_youth": "Pressured to do things to pay off debt (youth missing-from-care)",
4582
- "coercive_migration_or_forced_travel": "Migration or travel under coercion",
4583
- "cognitive_or_functional_impairment_affecting_consent": "Known cognitive or functional impairment / disability affecting consent",
4584
- "commercial_sex_association_words_or_places": "Uses commercial sex-associated words/phrases or spends time with CS-associated people/places",
4585
- "concerning_mannerisms_anxious_fearful_depressed": "Concerning mannerisms (anxious, fearful, depressed, secretive, resistant to help, aggressive)",
4586
- "constraints_due_to_legal_status": "Legal-status constraints prevent earning income / exit options",
4587
- "control_quota_required": "Control: quota required",
4588
- "csctx_apparent_age_under_18": "Apparent age under 18",
4589
- "csctx_commercial_sex_advertisements": "Commercial sex advertisements",
4590
- "csctx_cs_associated_indicators": "Commercial-sex-associated indicators",
4591
- "csctx_dangerous_services_offered": "Dangerous services offered",
4592
- "csctx_engagement_in_commercial_sex": "Engagement in commercial sex",
4593
- "csctx_minor_in_commercial_sex": "Minor in commercial sex",
4594
- "csi_acknowledged_or_reported_trafficking": "Acknowledged or reported trafficking",
4595
- "csi_branding_or_ownership_tattoos": "Branding or ownership tattoos",
4596
- "csi_coerced_migration_or_travel": "Coerced migration or travel",
4597
- "csi_debt_bondage_and_coerced_repayment": "Debt bondage and coerced repayment",
4598
- "csi_denial_of_basic_needs": "Denial of basic needs",
4599
- "csi_document_control_and_false_documents": "Identity-document control and false documents",
4600
- "csi_employer_tied_immigration_dependence": "Employer-tied immigration dependence",
4601
- "csi_financial_control_and_wage_exploitation": "Financial control and wage exploitation",
4602
- "csi_forced_to_commit_crimes": "Forced to commit crimes",
4603
- "csi_lethal_threats_to_victim_or_children": "Lethal threats to victim or children",
4604
- "csi_monitoring_and_isolation_by_controller": "Monitoring and isolation by a controlling party",
4605
- "csi_physical_violence_and_abuse_observed": "Physical violence and abuse (observed/reported)",
4606
- "csi_pressured_or_forced_sex_act": "Pressured or forced sex act",
4607
- "csi_recruited_into_commercial_sex": "Recruited or trained into commercial sex",
4608
- "csi_restricted_movement_and_confinement": "Restricted movement and confinement",
4609
- "csi_restrictive_or_deceptive_contract_terms": "Restrictive or deceptive contract terms",
4610
- "csi_third_party_facilitation_of_commercial_sex": "Third-party facilitation/management of commercial sex",
4611
- "csi_threats_and_coercion_for_control": "Threats and coercion for control",
4612
- "csi_unsafe_or_exploitative_working_conditions": "Unsafe or exploitative working conditions",
4613
- "csi_weapon_threat_or_use": "Weapon threat or use against victim",
4614
- "csi_work_differs_from_promise": "Work differs from what was promised",
4615
- "csi_youth_sexually_exploited_imagery": "Youth filmed/photographed in sexually explicit manner",
4616
- "current_injuries_from_abuser": "Client reports current injuries from abuser",
4617
- "currently_minor_in_commercial_sex": "Currently a minor in commercial sex (federal CSEC)",
4618
- "dangerous_services_no_protection": "Dangerous services: offers sex without protection (no condoms)",
4619
- "dangerous_services_requires_protection": "Dangerous services: requires protection (by provider)",
4620
- "dangerous_services_willing_anything": "Dangerous services: 'willing to do anything' / extreme services",
4621
- "debt_terms_deceptive_youth": "Debt repayment terms differed from what was expected (youth missing-from-care)",
4622
- "denied_basic_needs": "Denied basic needs (food, water, sleep, medical care)",
4623
- "depends_on_employer_for_immigration_status": "Depends on employer for immigration status (tied visa / living with employer)",
4624
- "does_not_control_finances_or_earnings": "Limited independence: does not control finances or earnings",
4625
- "does_not_control_identity_documents": "Limited independence: does not control identity documents",
4626
- "dv_abuser_risk_factors": "Abuser/DV risk factors",
4627
- "dv_escalating_violence": "Escalating physical violence",
4628
- "dv_stalking": "Stalking",
4629
- "employer_keeps_pay_or_pays_less_than_expected": "Employer keeps portion of pay or pays less than expected",
4630
- "engages_in_commercial_sex_act": "Engages in commercial sex act (sex for something of value)",
4631
- "entered_commercial_sex_industry_as_minor": "Entered commercial sex industry as a minor (real-life)",
4632
- "entered_cs_due_to_survival_needs": "Entered commercial sex due to survival needs (housing/food insecurity)",
4633
- "entered_into_network_of_sex_providers_early": "Entered into network of sex providers at start (early-network linkage)",
4634
- "exploitative_pricing_tier_low": "Exploitative pricing tier (very low relative price)",
4635
- "forced_to_commit_crimes": "Forced to commit crimes / illegal activity",
4636
- "forced_to_use_false_documents": "Forced to use false identity documents",
4637
- "foreign_born_or_recently_arrived": "Foreign-born or recently arrived (contextual vulnerability)",
4638
- "frequent_changes_in_residence": "Frequent changes in residence (housing instability)",
4639
- "frequent_travel_or_location_changes": "Frequent travel / location changes (instability signal)",
4640
- "frequently_at_hotels_or_many_hotel_keys": "Frequently found at hotels / many hotel keys",
4641
- "has_ads_on_commercial_sex_site": "Has advertisements on a commercial sex website",
4642
- "has_facilitators_involved": "Has facilitators involved (call service, coyote, intermediaries)",
4643
- "has_management_or_representation": "Has management / representation in commercial sex context",
4644
- "has_no_personal_items_or_possessions": "Has no personal items or possessions",
4645
- "head_injury_history": "Head injury history from abuser",
4646
- "head_injury_loss_of_consciousness": "Possible LOC / disorientation from head injury",
4647
- "high_risk_sexual_behavior": "High-risk sexual behavior",
4648
- "high_security_measures_at_work_or_living_location": "High security measures at work or living location",
4649
- "highly_irregular_school_attendance": "Highly irregular school attendance (youth instability)",
4650
- "history_emotional_abuse": "Victim of emotional abuse (history)",
4651
- "history_of_head_injury": "History of head injury (traumatic brain injury risk)",
4652
- "history_of_mental_health_issues": "History of mental health issues",
4653
- "history_of_running_away_or_missing_from_care": "History of running away or missing from care (youth)",
4654
- "history_of_strangulation": "History of strangulation",
4655
- "history_physical_or_sexual_abuse_or_dv": "Victim of physical abuse / domestic violence or sexual abuse (history)",
4656
- "homeless_or_unstably_housed": "Homelessness or unstable housing",
4657
- "in_commercial_sex_industry_recorded": "In commercial sex industry (self-report or record)",
4658
- "inability_to_account_for_self": "Inability to account for self (scripted, confused, unaware of location/date)",
4659
- "intimate_partner_violence_reported_to_law_enforcement": "IPV reported to law enforcement",
4660
- "juvenile_justice_or_child_welfare_involvement": "Juvenile justice or child welfare involvement (history)",
4661
- "limited_english_proficiency": "Does not speak English / limited English proficiency (contextual vulnerability)",
4662
- "lives_or_sleeps_at_place_of_work": "Lives or sleeps at place of work",
4663
- "living_with_abuser": "Living with abuser",
4664
- "macro_level_economic_duress_entry_exit": "Macro-level economic duress tied to entry/exit (manual)",
4665
- "meets_or_has_sex_with_internet_contacts": "Meets or has sex with contacts developed over the Internet (youth risk)",
4666
- "monitored_or_isolated_by_controlling_party": "Monitored or isolated by controlling party (employer / partner / family)",
4667
- "much_older_intimate_partner": "Much older intimate partner (age-disparate relationship)",
4668
- "nervous_about_immigration_documentation": "Nervous about immigration documentation / paperwork",
4669
- "net_network_risk_signals": "Network-level risk signals",
4670
- "network_aggregate_risk_score_high": "Network signal: aggregate network risk score (connected providers)",
4671
- "network_stable_size_large": "Network signal: larger/stable network size (potential vulnerability)",
4672
- "network_trafficker_present": "Network signal: trafficker present in connected network",
4673
- "network_violent_person_present": "Network signal: violent person present in connected network",
4674
- "new_to_commercial_sex_industry": "New to commercial sex industry (recent entry / early experience)",
4675
- "not_in_control_of_immigration_documentation": "Not in control of immigration documentation",
4676
- "owes_money_and_cannot_pay_off": "Unusual work circumstances: owes money and cannot pay it off (debt pressure)",
4677
- "paid_or_owes_fee_to_arrange_travel_to_us": "Paid or owes fee to arrange travel to U.S. (migration debt)",
4678
- "past_phases_prior_trafficking_or_risk": "Past phases: prior trafficking victimization / high prior-phase risk",
4679
- "pending_federal_protection": "Pending federal protection application",
4680
- "performing_different_work_than_promised": "Performing different work than promised or originally discussed",
4681
- "physical_violence_increasing": "Physical violence has increased in severity/frequency",
4682
- "poverty_or_severe_financial_strain": "Poverty or severe financial strain",
4683
- "precarious_immigration_status": "Undocumented or precarious legal status (immigration vulnerability)",
4684
- "pressured_or_forced_sex_act": "Pressured or forced to engage in sex act",
4685
- "prior_medical_attention_from_abuse": "Received prior medical care for injuries from abuser",
4686
- "prior_tvap_disconnection": "Prior TVAP disconnection (continuity-of-care gap)",
4687
- "promise_of_work_different_than_current_work": "Promise of work differed from current work (migration deception)",
4688
- "recent_le_engagement": "Recent law enforcement engagement",
4689
- "recruited_by_third_party_into_cs_industry": "Recruited by another person/entity into commercial sex industry",
4690
- "relies_on_temporary_resources_for_basic_needs": "Does not consistently meet basic needs / relies on temporary resources",
4691
- "reports_physical_harm_by_employer_or_partner": "Reports being physically harmed by employer/partner",
4692
- "reports_physical_harm_to_others_by_employer_or_partner": "Reports employer/partner physically harmed friend/coworker",
4693
- "restrictive_or_not_understood_contract": "Unusual work circumstances: restrictive contract or contract not understood",
4694
- "risk_factors_commercial_sex": "Risk factors related to commercial sex",
4695
- "serious_substance_use_or_introduced_to_drugs": "Serious substance use disorder or introduced to drugs/medications",
4696
- "several_cell_phones_or_frequent_number_changes": "Several cell phones or frequently changing phone number",
4697
- "signs_of_physical_abuse_confinement_or_neglect": "Signs of physical abuse, confinement, or neglect (observed)",
4698
- "social_isolation_or_no_supportive_relationships": "Absence of supportive relationships / social isolation",
4699
- "stalking_property_intrusion": "Stalking \u2014 property intrusion",
4700
- "stalking_surveillance": "Stalking \u2014 surveillance",
4701
- "stalking_unwanted_contact": "Stalking \u2014 unwanted contact",
4702
- "strangulation_acute_symptoms": "Acute post-strangulation symptoms present",
4703
- "strangulation_choking_assault_detail": "Strangulation / choking (assault detail)",
4704
- "strangulation_loss_of_consciousness": "LOC / couldn't breathe during strangulation",
4705
- "strangulation_repeated": "Strangulation occurred more than once",
4706
- "substance_use_while_working": "Substance use while working (commercial sex context)",
4707
- "suicidal_ideation_history": "Suicidal ideation (past)",
4708
- "suicidal_ideation_recent": "Suicidal ideation (recent)",
4709
- "third_party_arranged_commercial_sex_acts": "Someone else arranged commercial sex acts (posting, scheduling, managing)",
4710
- "threats_of_harm": "Threats of harm by employer/partner/others",
4711
- "threats_of_legal_trouble_or_deportation": "Threats involving law enforcement, deportation, or legal trouble",
4712
- "threats_related_to_migration_debt": "Threats related to migration debt",
4713
- "threats_to_family_friends_or_close_associates": "Threats to family, friends, or close associates",
4714
- "threats_to_kill_victim_or_children": "Threats to kill victim or victim's children",
4715
- "trafficking_experience_current": "Trafficking experience: currently experiencing (recency)",
4716
- "trafficking_experience_past_10plusy": "Trafficking experience recency: 10+ years since last experience",
4717
- "trafficking_experience_past_3to10y": "Trafficking experience recency: 3\u201310 years since last experience",
4718
- "trafficking_experience_past_lt3y": "Trafficking experience recency: less than 3 years since last experience",
4719
- "under_18_advertised_age": "Under 18 (ad-derived / advertised age)",
4720
- "under_18_appears_underage": "Under 18 (appears underage; investigator assessment)",
4721
- "under_18_known_age": "Under 18 (known age)",
4722
- "unexplained_frequent_travel_or_migration": "Unexplained frequent travel or migration (instability)",
4723
- "unsafe_working_conditions_long_hours_inadequate_breaks": "Unsafe working conditions / long hours / inadequate breaks",
4724
- "unusual_cash_or_unexplained_gifts": "Unusual amount of cash or unexplained gifts/resources",
4725
- "urgent_medical_referral_needed": "Urgent medical referral needed",
4726
- "vc_adverse_childhood_experiences": "Adverse childhood experiences",
4727
- "vc_age_disparate_partner": "Age-disparate intimate partner",
4728
- "vc_cognitive_or_functional_impairment": "Cognitive or functional impairment",
4729
- "vc_current_injuries_and_medical_need": "Current injuries and medical need",
4730
- "vc_economic_hardship_and_survival_exchange": "Economic hardship and survival exchange",
4731
- "vc_federal_protection_and_le_engagement": "Federal protection status and law-enforcement engagement",
4732
- "vc_geographic_instability_and_travel": "Geographic instability and unexplained travel",
4733
- "vc_head_injury_and_tbi": "Head injury and TBI risk",
4734
- "vc_high_risk_sexual_behavior_youth": "High-risk sexual behavior (youth)",
4735
- "vc_housing_instability_and_homelessness": "Housing instability and homelessness",
4736
- "vc_immigration_precarity": "Immigration precarity and language barrier",
4737
- "vc_mental_health_history": "Mental health history and concerning mannerisms",
4738
- "vc_prior_trafficking_high_phase_risk": "Prior trafficking / high prior-phase risk",
4739
- "vc_prior_victimization_and_abuse_history": "Prior victimization and abuse history",
4740
- "vc_social_isolation": "Social isolation / absence of supportive relationships",
4741
- "vc_strangulation_history_and_acute": "Strangulation history and acute symptoms",
4742
- "vc_substance_use_vulnerability": "Substance use vulnerability",
4743
- "vc_suicidal_ideation": "Suicidal ideation",
4744
- "vc_trafficking_experience_recency": "Trafficking experience recency",
4745
- "vc_violence_during_pregnancy": "Violence during pregnancy",
4746
- "vc_youth_system_involvement_and_instability": "Youth system involvement and instability",
4747
- "victim_believes_abuser_capable_of_killing": "Victim believes abuser is capable of killing them",
4748
- "victimization_history_composite": "Victimization history (composite)",
4749
- "violence_or_threats_at_work_site": "Violence or threats at work site",
4750
- "weapon_used_or_threatened_against_victim": "Weapon used or threatened against victim",
4751
- "work_frequency_high_volume": "Work frequency pattern suggests high volume / little rest",
4752
- "working_while_pregnant": "Working while pregnant (commercial sex context)",
4753
- "works_for_little_or_no_pay": "Works for little or no pay",
4754
- "youth_watched_filmed_or_photographed_sexually_explicit": "Watched, filmed, or photographed in sexually explicit manner (youth)"
4755
- };
4756
4332
  var CVC_67_HMIS_SEX = {
4757
4333
  MALE: "male",
4758
4334
  FEMALE: "female",
@@ -6397,8 +5973,6 @@ var FUNCTION_STATUS_LABELS = {
6397
5973
  CVC_126_VALUES,
6398
5974
  CVC_136_ALERT_INDICATOR,
6399
5975
  CVC_136_CATEGORY_LABELS,
6400
- CVC_136_CORE_INDICATOR_LABELS,
6401
- CVC_136_CORE_INDICATOR_VALUES,
6402
5976
  CVC_136_INDICATOR_CATEGORY,
6403
5977
  CVC_136_LABELS,
6404
5978
  CVC_136_OPTIONS,
@@ -6572,7 +6146,6 @@ var FUNCTION_STATUS_LABELS = {
6572
6146
  IC_56_DESCRIPTIONS,
6573
6147
  IC_56_LABELS,
6574
6148
  IC_56_OPTIONS,
6575
- IC_56_PROVISIONAL_CHANNELS,
6576
6149
  IC_56_SERVICE_DELIVERY_CHANNEL,
6577
6150
  IC_57_LABELS,
6578
6151
  IC_57_SERVICE_AUDIENCE,