@htilabs/platform-common-models 0.4.0-beta.2 → 0.5.1-beta.2
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/constants/index.cjs +18 -9
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +18 -9
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +315 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +368 -26
- package/dist/cvcs/index.d.ts +368 -26
- package/dist/cvcs/index.js +313 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +370 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.js +366 -9
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-C-G2qeGM.d.cts → platform-auth-CjC57132.d.cts} +10 -7
- package/dist/{platform-auth-C-G2qeGM.d.ts → platform-auth-CjC57132.d.ts} +10 -7
- package/dist/schemas/index.cjs +16 -7
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +16 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +8 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +12 -0
- package/src/constants/ic.ts +24 -14
- package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +105 -0
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +202 -0
- package/src/cvcs/index.ts +4 -0
- package/src/generated/cvc-enums.ts +49 -0
package/dist/cvcs/index.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/cvcs/index.ts
|
|
21
21
|
var cvcs_exports = {};
|
|
22
22
|
__export(cvcs_exports, {
|
|
23
|
+
incidentInvolvementRolesSot: () => incidentInvolvementRoles_v1_0_0_default,
|
|
24
|
+
incidentParticipationRolesSot: () => incidentParticipationRoles_v1_0_0_default,
|
|
23
25
|
serviceCategoriesSot: () => serviceCategories_v1_0_0_default,
|
|
24
26
|
serviceMechanismsSot: () => serviceMechanisms_v1_0_0_default,
|
|
25
27
|
serviceStatesSot: () => serviceStates_v1_0_0_default
|
|
@@ -2341,8 +2343,321 @@ var serviceMechanisms_v1_0_0_default = {
|
|
|
2341
2343
|
}
|
|
2342
2344
|
]
|
|
2343
2345
|
};
|
|
2346
|
+
|
|
2347
|
+
// src/cvcs/incidentParticipationRoles.v1.0.0.json
|
|
2348
|
+
var incidentParticipationRoles_v1_0_0_default = {
|
|
2349
|
+
domain: "incident_participation_roles",
|
|
2350
|
+
name: "Core Incident Participation Roles",
|
|
2351
|
+
version: "1.0.0",
|
|
2352
|
+
levels: {
|
|
2353
|
+
"0": "Unknown or Missing",
|
|
2354
|
+
"1": "Group",
|
|
2355
|
+
"2": "Role"
|
|
2356
|
+
},
|
|
2357
|
+
entries: [
|
|
2358
|
+
{
|
|
2359
|
+
code: "069-001-000-000-000-000-000",
|
|
2360
|
+
key: "client_group",
|
|
2361
|
+
title: "Client",
|
|
2362
|
+
selectable: false,
|
|
2363
|
+
parentCode: null,
|
|
2364
|
+
childCodes: [
|
|
2365
|
+
"069-001-001-000-000-000-000"
|
|
2366
|
+
],
|
|
2367
|
+
definition: "Group of participation roles identifying the person the incident record is about."
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
code: "069-001-001-000-000-000-000",
|
|
2371
|
+
key: "client_subject",
|
|
2372
|
+
title: "Client (subject)",
|
|
2373
|
+
selectable: true,
|
|
2374
|
+
parentCode: "069-001-000-000-000-000-000",
|
|
2375
|
+
childCodes: [],
|
|
2376
|
+
definition: "The participant who is the subject of the incident record (the client for whom the episode is framed)."
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
code: "069-002-000-000-000-000-000",
|
|
2380
|
+
key: "caller_reporter_group",
|
|
2381
|
+
title: "Caller / Reporter",
|
|
2382
|
+
selectable: false,
|
|
2383
|
+
parentCode: null,
|
|
2384
|
+
childCodes: [
|
|
2385
|
+
"069-002-001-000-000-000-000",
|
|
2386
|
+
"069-002-002-000-000-000-000",
|
|
2387
|
+
"069-002-003-000-000-000-000"
|
|
2388
|
+
],
|
|
2389
|
+
definition: "Group of participation roles identifying who contacted or reported the incident to the program."
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
code: "069-002-001-000-000-000-000",
|
|
2393
|
+
key: "caller_self",
|
|
2394
|
+
title: "Caller (self)",
|
|
2395
|
+
selectable: true,
|
|
2396
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
2397
|
+
childCodes: [],
|
|
2398
|
+
definition: "Caller contacting the program on their own behalf."
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
code: "069-002-002-000-000-000-000",
|
|
2402
|
+
key: "caller_third_party",
|
|
2403
|
+
title: "Caller (third party)",
|
|
2404
|
+
selectable: true,
|
|
2405
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
2406
|
+
childCodes: [],
|
|
2407
|
+
definition: "Caller contacting the program on behalf of someone else."
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
code: "069-002-003-000-000-000-000",
|
|
2411
|
+
key: "reporter",
|
|
2412
|
+
title: "Reporter",
|
|
2413
|
+
selectable: true,
|
|
2414
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
2415
|
+
childCodes: [],
|
|
2416
|
+
definition: "Participant who filed a formal report about the incident."
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
code: "069-003-000-000-000-000-000",
|
|
2420
|
+
key: "support_network_group",
|
|
2421
|
+
title: "Support network",
|
|
2422
|
+
selectable: false,
|
|
2423
|
+
parentCode: null,
|
|
2424
|
+
childCodes: [
|
|
2425
|
+
"069-003-001-000-000-000-000",
|
|
2426
|
+
"069-003-002-000-000-000-000"
|
|
2427
|
+
],
|
|
2428
|
+
definition: "Group of participation roles identifying people from the client's personal support network."
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
code: "069-003-001-000-000-000-000",
|
|
2432
|
+
key: "family_member_or_guardian",
|
|
2433
|
+
title: "Family member or guardian",
|
|
2434
|
+
selectable: true,
|
|
2435
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
2436
|
+
childCodes: [],
|
|
2437
|
+
definition: "Family member or legal guardian of the client."
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
code: "069-003-002-000-000-000-000",
|
|
2441
|
+
key: "friend_or_peer",
|
|
2442
|
+
title: "Friend or peer",
|
|
2443
|
+
selectable: true,
|
|
2444
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
2445
|
+
childCodes: [],
|
|
2446
|
+
definition: "Friend or peer in the client's support network."
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
code: "069-004-000-000-000-000-000",
|
|
2450
|
+
key: "system_professional_group",
|
|
2451
|
+
title: "System / professional participants",
|
|
2452
|
+
selectable: false,
|
|
2453
|
+
parentCode: null,
|
|
2454
|
+
childCodes: [
|
|
2455
|
+
"069-004-001-000-000-000-000",
|
|
2456
|
+
"069-004-002-000-000-000-000",
|
|
2457
|
+
"069-004-003-000-000-000-000",
|
|
2458
|
+
"069-004-004-000-000-000-000",
|
|
2459
|
+
"069-004-005-000-000-000-000"
|
|
2460
|
+
],
|
|
2461
|
+
definition: "Group of participation roles identifying system-side professionals involved in the incident."
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
code: "069-004-001-000-000-000-000",
|
|
2465
|
+
key: "service_provider_staff",
|
|
2466
|
+
title: "Service provider staff",
|
|
2467
|
+
selectable: true,
|
|
2468
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2469
|
+
childCodes: [],
|
|
2470
|
+
definition: "Staff of a service provider program or agency involved in the incident."
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
code: "069-004-002-000-000-000-000",
|
|
2474
|
+
key: "medical_provider_staff",
|
|
2475
|
+
title: "Medical provider staff",
|
|
2476
|
+
selectable: true,
|
|
2477
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2478
|
+
childCodes: [],
|
|
2479
|
+
definition: "Staff of a medical provider (hospital, clinic) involved in the incident."
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
code: "069-004-003-000-000-000-000",
|
|
2483
|
+
key: "data_entry",
|
|
2484
|
+
title: "Data Entry / Editor",
|
|
2485
|
+
selectable: true,
|
|
2486
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2487
|
+
childCodes: [],
|
|
2488
|
+
definition: "A participant performing data entry or record editing for the incident \u2014 typically program staff entering or updating the record rather than participating substantively in the incident response."
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
code: "069-004-004-000-000-000-000",
|
|
2492
|
+
key: "other_incident_responder",
|
|
2493
|
+
title: "VSP or Other Incident Responder",
|
|
2494
|
+
selectable: true,
|
|
2495
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2496
|
+
childCodes: [],
|
|
2497
|
+
definition: "A participant acting as a Victim Service Provider (VSP) or other non-law-enforcement responder present at the incident (e.g., crisis advocate on scene)."
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
code: "069-004-005-000-000-000-000",
|
|
2501
|
+
key: "responding_officer",
|
|
2502
|
+
title: "LE Responding Officer",
|
|
2503
|
+
selectable: true,
|
|
2504
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2505
|
+
childCodes: [],
|
|
2506
|
+
definition: "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
code: "069-000-000-000-000-000-000",
|
|
2510
|
+
key: "missingness_root",
|
|
2511
|
+
title: "Unknown, Redacted, or Missing",
|
|
2512
|
+
selectable: false,
|
|
2513
|
+
parentCode: null,
|
|
2514
|
+
childCodes: [
|
|
2515
|
+
"069-000-000-000-000-000-001",
|
|
2516
|
+
"069-000-000-000-000-000-002",
|
|
2517
|
+
"069-000-000-000-000-000-003"
|
|
2518
|
+
],
|
|
2519
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
code: "069-000-000-000-000-000-001",
|
|
2523
|
+
key: "unknown",
|
|
2524
|
+
title: "Unknown",
|
|
2525
|
+
selectable: true,
|
|
2526
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
2527
|
+
childCodes: [],
|
|
2528
|
+
definition: "Value is unknown at time of entry."
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
code: "069-000-000-000-000-000-002",
|
|
2532
|
+
key: "anonymous",
|
|
2533
|
+
title: "Anonymous",
|
|
2534
|
+
selectable: true,
|
|
2535
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
2536
|
+
childCodes: [],
|
|
2537
|
+
definition: "Value is intentionally withheld or redacted."
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
code: "069-000-000-000-000-000-003",
|
|
2541
|
+
key: "data_not_collected",
|
|
2542
|
+
title: "Data not collected",
|
|
2543
|
+
selectable: true,
|
|
2544
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
2545
|
+
childCodes: [],
|
|
2546
|
+
definition: "No attempt was made to collect the value."
|
|
2547
|
+
}
|
|
2548
|
+
]
|
|
2549
|
+
};
|
|
2550
|
+
|
|
2551
|
+
// src/cvcs/incidentInvolvementRoles.v1.0.0.json
|
|
2552
|
+
var incidentInvolvementRoles_v1_0_0_default = {
|
|
2553
|
+
domain: "incident_involvement_roles",
|
|
2554
|
+
name: "Core Incident Involvement Role",
|
|
2555
|
+
version: "1.0.0",
|
|
2556
|
+
levels: {
|
|
2557
|
+
"0": "Unknown or Missing",
|
|
2558
|
+
"1": "Involvement Role"
|
|
2559
|
+
},
|
|
2560
|
+
entries: [
|
|
2561
|
+
{
|
|
2562
|
+
code: "130-001-000-000-000-000-000",
|
|
2563
|
+
key: "victim_primary",
|
|
2564
|
+
title: "Victim (primary)",
|
|
2565
|
+
selectable: true,
|
|
2566
|
+
parentCode: null,
|
|
2567
|
+
childCodes: [],
|
|
2568
|
+
definition: "The primary victim/survivor for the incident framing."
|
|
2569
|
+
},
|
|
2570
|
+
{
|
|
2571
|
+
code: "130-002-000-000-000-000-000",
|
|
2572
|
+
key: "victim_secondary",
|
|
2573
|
+
title: "Victim (secondary)",
|
|
2574
|
+
selectable: true,
|
|
2575
|
+
parentCode: null,
|
|
2576
|
+
childCodes: [],
|
|
2577
|
+
definition: "A secondary victim harmed in the incident context."
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
code: "130-003-000-000-000-000-000",
|
|
2581
|
+
key: "victim_other",
|
|
2582
|
+
title: "Victim (other)",
|
|
2583
|
+
selectable: true,
|
|
2584
|
+
parentCode: null,
|
|
2585
|
+
childCodes: [],
|
|
2586
|
+
definition: "Another victim relevant to the case when primary vs secondary is not meaningful."
|
|
2587
|
+
},
|
|
2588
|
+
{
|
|
2589
|
+
code: "130-004-000-000-000-000-000",
|
|
2590
|
+
key: "offender",
|
|
2591
|
+
title: "Offender",
|
|
2592
|
+
selectable: true,
|
|
2593
|
+
parentCode: null,
|
|
2594
|
+
childCodes: [],
|
|
2595
|
+
definition: "The person who caused harm."
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
code: "130-005-000-000-000-000-000",
|
|
2599
|
+
key: "witness",
|
|
2600
|
+
title: "Witness",
|
|
2601
|
+
selectable: true,
|
|
2602
|
+
parentCode: null,
|
|
2603
|
+
childCodes: [],
|
|
2604
|
+
definition: "A person who witnessed relevant events."
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
code: "130-006-000-000-000-000-000",
|
|
2608
|
+
key: "dependent",
|
|
2609
|
+
title: "Dependent",
|
|
2610
|
+
selectable: true,
|
|
2611
|
+
parentCode: null,
|
|
2612
|
+
childCodes: [],
|
|
2613
|
+
definition: "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
code: "130-000-000-000-000-000-000",
|
|
2617
|
+
key: "missingness_root",
|
|
2618
|
+
title: "Unknown, Redacted, or Missing",
|
|
2619
|
+
selectable: false,
|
|
2620
|
+
parentCode: null,
|
|
2621
|
+
childCodes: [
|
|
2622
|
+
"130-000-000-000-000-000-001",
|
|
2623
|
+
"130-000-000-000-000-000-002",
|
|
2624
|
+
"130-000-000-000-000-000-003"
|
|
2625
|
+
],
|
|
2626
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
code: "130-000-000-000-000-000-001",
|
|
2630
|
+
key: "unknown",
|
|
2631
|
+
title: "Unknown",
|
|
2632
|
+
selectable: true,
|
|
2633
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
2634
|
+
childCodes: [],
|
|
2635
|
+
definition: "Value is unknown at time of entry."
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
code: "130-000-000-000-000-000-002",
|
|
2639
|
+
key: "anonymous",
|
|
2640
|
+
title: "Anonymous",
|
|
2641
|
+
selectable: true,
|
|
2642
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
2643
|
+
childCodes: [],
|
|
2644
|
+
definition: "Value is intentionally withheld or redacted."
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
code: "130-000-000-000-000-000-003",
|
|
2648
|
+
key: "data_not_collected",
|
|
2649
|
+
title: "Data not collected",
|
|
2650
|
+
selectable: true,
|
|
2651
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
2652
|
+
childCodes: [],
|
|
2653
|
+
definition: "No attempt was made to collect the value."
|
|
2654
|
+
}
|
|
2655
|
+
]
|
|
2656
|
+
};
|
|
2344
2657
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2345
2658
|
0 && (module.exports = {
|
|
2659
|
+
incidentInvolvementRolesSot,
|
|
2660
|
+
incidentParticipationRolesSot,
|
|
2346
2661
|
serviceCategoriesSot,
|
|
2347
2662
|
serviceMechanismsSot,
|
|
2348
2663
|
serviceStatesSot
|