@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.js
CHANGED
|
@@ -2313,7 +2313,320 @@ var serviceMechanisms_v1_0_0_default = {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
]
|
|
2315
2315
|
};
|
|
2316
|
+
|
|
2317
|
+
// src/cvcs/incidentParticipationRoles.v1.0.0.json
|
|
2318
|
+
var incidentParticipationRoles_v1_0_0_default = {
|
|
2319
|
+
domain: "incident_participation_roles",
|
|
2320
|
+
name: "Core Incident Participation Roles",
|
|
2321
|
+
version: "1.0.0",
|
|
2322
|
+
levels: {
|
|
2323
|
+
"0": "Unknown or Missing",
|
|
2324
|
+
"1": "Group",
|
|
2325
|
+
"2": "Role"
|
|
2326
|
+
},
|
|
2327
|
+
entries: [
|
|
2328
|
+
{
|
|
2329
|
+
code: "069-001-000-000-000-000-000",
|
|
2330
|
+
key: "client_group",
|
|
2331
|
+
title: "Client",
|
|
2332
|
+
selectable: false,
|
|
2333
|
+
parentCode: null,
|
|
2334
|
+
childCodes: [
|
|
2335
|
+
"069-001-001-000-000-000-000"
|
|
2336
|
+
],
|
|
2337
|
+
definition: "Group of participation roles identifying the person the incident record is about."
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
code: "069-001-001-000-000-000-000",
|
|
2341
|
+
key: "client_subject",
|
|
2342
|
+
title: "Client (subject)",
|
|
2343
|
+
selectable: true,
|
|
2344
|
+
parentCode: "069-001-000-000-000-000-000",
|
|
2345
|
+
childCodes: [],
|
|
2346
|
+
definition: "The participant who is the subject of the incident record (the client for whom the episode is framed)."
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
code: "069-002-000-000-000-000-000",
|
|
2350
|
+
key: "caller_reporter_group",
|
|
2351
|
+
title: "Caller / Reporter",
|
|
2352
|
+
selectable: false,
|
|
2353
|
+
parentCode: null,
|
|
2354
|
+
childCodes: [
|
|
2355
|
+
"069-002-001-000-000-000-000",
|
|
2356
|
+
"069-002-002-000-000-000-000",
|
|
2357
|
+
"069-002-003-000-000-000-000"
|
|
2358
|
+
],
|
|
2359
|
+
definition: "Group of participation roles identifying who contacted or reported the incident to the program."
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
code: "069-002-001-000-000-000-000",
|
|
2363
|
+
key: "caller_self",
|
|
2364
|
+
title: "Caller (self)",
|
|
2365
|
+
selectable: true,
|
|
2366
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
2367
|
+
childCodes: [],
|
|
2368
|
+
definition: "Caller contacting the program on their own behalf."
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
code: "069-002-002-000-000-000-000",
|
|
2372
|
+
key: "caller_third_party",
|
|
2373
|
+
title: "Caller (third party)",
|
|
2374
|
+
selectable: true,
|
|
2375
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
2376
|
+
childCodes: [],
|
|
2377
|
+
definition: "Caller contacting the program on behalf of someone else."
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
code: "069-002-003-000-000-000-000",
|
|
2381
|
+
key: "reporter",
|
|
2382
|
+
title: "Reporter",
|
|
2383
|
+
selectable: true,
|
|
2384
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
2385
|
+
childCodes: [],
|
|
2386
|
+
definition: "Participant who filed a formal report about the incident."
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
code: "069-003-000-000-000-000-000",
|
|
2390
|
+
key: "support_network_group",
|
|
2391
|
+
title: "Support network",
|
|
2392
|
+
selectable: false,
|
|
2393
|
+
parentCode: null,
|
|
2394
|
+
childCodes: [
|
|
2395
|
+
"069-003-001-000-000-000-000",
|
|
2396
|
+
"069-003-002-000-000-000-000"
|
|
2397
|
+
],
|
|
2398
|
+
definition: "Group of participation roles identifying people from the client's personal support network."
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
code: "069-003-001-000-000-000-000",
|
|
2402
|
+
key: "family_member_or_guardian",
|
|
2403
|
+
title: "Family member or guardian",
|
|
2404
|
+
selectable: true,
|
|
2405
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
2406
|
+
childCodes: [],
|
|
2407
|
+
definition: "Family member or legal guardian of the client."
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
code: "069-003-002-000-000-000-000",
|
|
2411
|
+
key: "friend_or_peer",
|
|
2412
|
+
title: "Friend or peer",
|
|
2413
|
+
selectable: true,
|
|
2414
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
2415
|
+
childCodes: [],
|
|
2416
|
+
definition: "Friend or peer in the client's support network."
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
code: "069-004-000-000-000-000-000",
|
|
2420
|
+
key: "system_professional_group",
|
|
2421
|
+
title: "System / professional participants",
|
|
2422
|
+
selectable: false,
|
|
2423
|
+
parentCode: null,
|
|
2424
|
+
childCodes: [
|
|
2425
|
+
"069-004-001-000-000-000-000",
|
|
2426
|
+
"069-004-002-000-000-000-000",
|
|
2427
|
+
"069-004-003-000-000-000-000",
|
|
2428
|
+
"069-004-004-000-000-000-000",
|
|
2429
|
+
"069-004-005-000-000-000-000"
|
|
2430
|
+
],
|
|
2431
|
+
definition: "Group of participation roles identifying system-side professionals involved in the incident."
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
code: "069-004-001-000-000-000-000",
|
|
2435
|
+
key: "service_provider_staff",
|
|
2436
|
+
title: "Service provider staff",
|
|
2437
|
+
selectable: true,
|
|
2438
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2439
|
+
childCodes: [],
|
|
2440
|
+
definition: "Staff of a service provider program or agency involved in the incident."
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
code: "069-004-002-000-000-000-000",
|
|
2444
|
+
key: "medical_provider_staff",
|
|
2445
|
+
title: "Medical provider staff",
|
|
2446
|
+
selectable: true,
|
|
2447
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2448
|
+
childCodes: [],
|
|
2449
|
+
definition: "Staff of a medical provider (hospital, clinic) involved in the incident."
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
code: "069-004-003-000-000-000-000",
|
|
2453
|
+
key: "data_entry",
|
|
2454
|
+
title: "Data Entry / Editor",
|
|
2455
|
+
selectable: true,
|
|
2456
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2457
|
+
childCodes: [],
|
|
2458
|
+
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."
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
code: "069-004-004-000-000-000-000",
|
|
2462
|
+
key: "other_incident_responder",
|
|
2463
|
+
title: "VSP or Other Incident Responder",
|
|
2464
|
+
selectable: true,
|
|
2465
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2466
|
+
childCodes: [],
|
|
2467
|
+
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)."
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
code: "069-004-005-000-000-000-000",
|
|
2471
|
+
key: "responding_officer",
|
|
2472
|
+
title: "LE Responding Officer",
|
|
2473
|
+
selectable: true,
|
|
2474
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
2475
|
+
childCodes: [],
|
|
2476
|
+
definition: "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
code: "069-000-000-000-000-000-000",
|
|
2480
|
+
key: "missingness_root",
|
|
2481
|
+
title: "Unknown, Redacted, or Missing",
|
|
2482
|
+
selectable: false,
|
|
2483
|
+
parentCode: null,
|
|
2484
|
+
childCodes: [
|
|
2485
|
+
"069-000-000-000-000-000-001",
|
|
2486
|
+
"069-000-000-000-000-000-002",
|
|
2487
|
+
"069-000-000-000-000-000-003"
|
|
2488
|
+
],
|
|
2489
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
code: "069-000-000-000-000-000-001",
|
|
2493
|
+
key: "unknown",
|
|
2494
|
+
title: "Unknown",
|
|
2495
|
+
selectable: true,
|
|
2496
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
2497
|
+
childCodes: [],
|
|
2498
|
+
definition: "Value is unknown at time of entry."
|
|
2499
|
+
},
|
|
2500
|
+
{
|
|
2501
|
+
code: "069-000-000-000-000-000-002",
|
|
2502
|
+
key: "anonymous",
|
|
2503
|
+
title: "Anonymous",
|
|
2504
|
+
selectable: true,
|
|
2505
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
2506
|
+
childCodes: [],
|
|
2507
|
+
definition: "Value is intentionally withheld or redacted."
|
|
2508
|
+
},
|
|
2509
|
+
{
|
|
2510
|
+
code: "069-000-000-000-000-000-003",
|
|
2511
|
+
key: "data_not_collected",
|
|
2512
|
+
title: "Data not collected",
|
|
2513
|
+
selectable: true,
|
|
2514
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
2515
|
+
childCodes: [],
|
|
2516
|
+
definition: "No attempt was made to collect the value."
|
|
2517
|
+
}
|
|
2518
|
+
]
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
// src/cvcs/incidentInvolvementRoles.v1.0.0.json
|
|
2522
|
+
var incidentInvolvementRoles_v1_0_0_default = {
|
|
2523
|
+
domain: "incident_involvement_roles",
|
|
2524
|
+
name: "Core Incident Involvement Role",
|
|
2525
|
+
version: "1.0.0",
|
|
2526
|
+
levels: {
|
|
2527
|
+
"0": "Unknown or Missing",
|
|
2528
|
+
"1": "Involvement Role"
|
|
2529
|
+
},
|
|
2530
|
+
entries: [
|
|
2531
|
+
{
|
|
2532
|
+
code: "130-001-000-000-000-000-000",
|
|
2533
|
+
key: "victim_primary",
|
|
2534
|
+
title: "Victim (primary)",
|
|
2535
|
+
selectable: true,
|
|
2536
|
+
parentCode: null,
|
|
2537
|
+
childCodes: [],
|
|
2538
|
+
definition: "The primary victim/survivor for the incident framing."
|
|
2539
|
+
},
|
|
2540
|
+
{
|
|
2541
|
+
code: "130-002-000-000-000-000-000",
|
|
2542
|
+
key: "victim_secondary",
|
|
2543
|
+
title: "Victim (secondary)",
|
|
2544
|
+
selectable: true,
|
|
2545
|
+
parentCode: null,
|
|
2546
|
+
childCodes: [],
|
|
2547
|
+
definition: "A secondary victim harmed in the incident context."
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
code: "130-003-000-000-000-000-000",
|
|
2551
|
+
key: "victim_other",
|
|
2552
|
+
title: "Victim (other)",
|
|
2553
|
+
selectable: true,
|
|
2554
|
+
parentCode: null,
|
|
2555
|
+
childCodes: [],
|
|
2556
|
+
definition: "Another victim relevant to the case when primary vs secondary is not meaningful."
|
|
2557
|
+
},
|
|
2558
|
+
{
|
|
2559
|
+
code: "130-004-000-000-000-000-000",
|
|
2560
|
+
key: "offender",
|
|
2561
|
+
title: "Offender",
|
|
2562
|
+
selectable: true,
|
|
2563
|
+
parentCode: null,
|
|
2564
|
+
childCodes: [],
|
|
2565
|
+
definition: "The person who caused harm."
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
code: "130-005-000-000-000-000-000",
|
|
2569
|
+
key: "witness",
|
|
2570
|
+
title: "Witness",
|
|
2571
|
+
selectable: true,
|
|
2572
|
+
parentCode: null,
|
|
2573
|
+
childCodes: [],
|
|
2574
|
+
definition: "A person who witnessed relevant events."
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
code: "130-006-000-000-000-000-000",
|
|
2578
|
+
key: "dependent",
|
|
2579
|
+
title: "Dependent",
|
|
2580
|
+
selectable: true,
|
|
2581
|
+
parentCode: null,
|
|
2582
|
+
childCodes: [],
|
|
2583
|
+
definition: "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
|
|
2584
|
+
},
|
|
2585
|
+
{
|
|
2586
|
+
code: "130-000-000-000-000-000-000",
|
|
2587
|
+
key: "missingness_root",
|
|
2588
|
+
title: "Unknown, Redacted, or Missing",
|
|
2589
|
+
selectable: false,
|
|
2590
|
+
parentCode: null,
|
|
2591
|
+
childCodes: [
|
|
2592
|
+
"130-000-000-000-000-000-001",
|
|
2593
|
+
"130-000-000-000-000-000-002",
|
|
2594
|
+
"130-000-000-000-000-000-003"
|
|
2595
|
+
],
|
|
2596
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
code: "130-000-000-000-000-000-001",
|
|
2600
|
+
key: "unknown",
|
|
2601
|
+
title: "Unknown",
|
|
2602
|
+
selectable: true,
|
|
2603
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
2604
|
+
childCodes: [],
|
|
2605
|
+
definition: "Value is unknown at time of entry."
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
code: "130-000-000-000-000-000-002",
|
|
2609
|
+
key: "anonymous",
|
|
2610
|
+
title: "Anonymous",
|
|
2611
|
+
selectable: true,
|
|
2612
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
2613
|
+
childCodes: [],
|
|
2614
|
+
definition: "Value is intentionally withheld or redacted."
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
code: "130-000-000-000-000-000-003",
|
|
2618
|
+
key: "data_not_collected",
|
|
2619
|
+
title: "Data not collected",
|
|
2620
|
+
selectable: true,
|
|
2621
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
2622
|
+
childCodes: [],
|
|
2623
|
+
definition: "No attempt was made to collect the value."
|
|
2624
|
+
}
|
|
2625
|
+
]
|
|
2626
|
+
};
|
|
2316
2627
|
export {
|
|
2628
|
+
incidentInvolvementRoles_v1_0_0_default as incidentInvolvementRolesSot,
|
|
2629
|
+
incidentParticipationRoles_v1_0_0_default as incidentParticipationRolesSot,
|
|
2317
2630
|
serviceCategories_v1_0_0_default as serviceCategoriesSot,
|
|
2318
2631
|
serviceMechanisms_v1_0_0_default as serviceMechanismsSot,
|
|
2319
2632
|
serviceStates_v1_0_0_default as serviceStatesSot
|