@htilabs/platform-common-models 0.4.0-beta.2 → 0.5.2-beta.3

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 (36) hide show
  1. package/dist/constants/index.cjs +18 -9
  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 +18 -9
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/cvcs/index.cjs +461 -0
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +529 -26
  10. package/dist/cvcs/index.d.ts +529 -26
  11. package/dist/cvcs/index.js +458 -0
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/index.cjs +534 -9
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +70 -3
  16. package/dist/index.d.ts +70 -3
  17. package/dist/index.js +528 -9
  18. package/dist/index.js.map +1 -1
  19. package/dist/{platform-auth-C-G2qeGM.d.cts → platform-auth-CjC57132.d.cts} +10 -7
  20. package/dist/{platform-auth-C-G2qeGM.d.ts → platform-auth-CjC57132.d.ts} +10 -7
  21. package/dist/schemas/index.cjs +16 -7
  22. package/dist/schemas/index.cjs.map +1 -1
  23. package/dist/schemas/index.js +16 -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 +1 -1
  28. package/src/__tests__/__snapshots__/cvc-sot.snap +12 -0
  29. package/src/__tests__/cvc-sot-snapshot.test.ts +20 -0
  30. package/src/__tests__/cvc-structural.test.ts +3 -0
  31. package/src/constants/ic.ts +24 -14
  32. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +105 -0
  33. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +202 -0
  34. package/src/cvcs/index.ts +6 -0
  35. package/src/cvcs/raceEthnicity.v1.0.0.json +142 -0
  36. package/src/generated/cvc-enums.ts +73 -0
@@ -20,6 +20,9 @@ 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,
25
+ raceEthnicitySot: () => raceEthnicity_v1_0_0_default,
23
26
  serviceCategoriesSot: () => serviceCategories_v1_0_0_default,
24
27
  serviceMechanismsSot: () => serviceMechanisms_v1_0_0_default,
25
28
  serviceStatesSot: () => serviceStates_v1_0_0_default
@@ -2341,8 +2344,466 @@ var serviceMechanisms_v1_0_0_default = {
2341
2344
  }
2342
2345
  ]
2343
2346
  };
2347
+
2348
+ // src/cvcs/incidentParticipationRoles.v1.0.0.json
2349
+ var incidentParticipationRoles_v1_0_0_default = {
2350
+ domain: "incident_participation_roles",
2351
+ name: "Core Incident Participation Roles",
2352
+ version: "1.0.0",
2353
+ levels: {
2354
+ "0": "Unknown or Missing",
2355
+ "1": "Group",
2356
+ "2": "Role"
2357
+ },
2358
+ entries: [
2359
+ {
2360
+ code: "069-001-000-000-000-000-000",
2361
+ key: "client_group",
2362
+ title: "Client",
2363
+ selectable: false,
2364
+ parentCode: null,
2365
+ childCodes: [
2366
+ "069-001-001-000-000-000-000"
2367
+ ],
2368
+ definition: "Group of participation roles identifying the person the incident record is about."
2369
+ },
2370
+ {
2371
+ code: "069-001-001-000-000-000-000",
2372
+ key: "client_subject",
2373
+ title: "Client (subject)",
2374
+ selectable: true,
2375
+ parentCode: "069-001-000-000-000-000-000",
2376
+ childCodes: [],
2377
+ definition: "The participant who is the subject of the incident record (the client for whom the episode is framed)."
2378
+ },
2379
+ {
2380
+ code: "069-002-000-000-000-000-000",
2381
+ key: "caller_reporter_group",
2382
+ title: "Caller / Reporter",
2383
+ selectable: false,
2384
+ parentCode: null,
2385
+ childCodes: [
2386
+ "069-002-001-000-000-000-000",
2387
+ "069-002-002-000-000-000-000",
2388
+ "069-002-003-000-000-000-000"
2389
+ ],
2390
+ definition: "Group of participation roles identifying who contacted or reported the incident to the program."
2391
+ },
2392
+ {
2393
+ code: "069-002-001-000-000-000-000",
2394
+ key: "caller_self",
2395
+ title: "Caller (self)",
2396
+ selectable: true,
2397
+ parentCode: "069-002-000-000-000-000-000",
2398
+ childCodes: [],
2399
+ definition: "Caller contacting the program on their own behalf."
2400
+ },
2401
+ {
2402
+ code: "069-002-002-000-000-000-000",
2403
+ key: "caller_third_party",
2404
+ title: "Caller (third party)",
2405
+ selectable: true,
2406
+ parentCode: "069-002-000-000-000-000-000",
2407
+ childCodes: [],
2408
+ definition: "Caller contacting the program on behalf of someone else."
2409
+ },
2410
+ {
2411
+ code: "069-002-003-000-000-000-000",
2412
+ key: "reporter",
2413
+ title: "Reporter",
2414
+ selectable: true,
2415
+ parentCode: "069-002-000-000-000-000-000",
2416
+ childCodes: [],
2417
+ definition: "Participant who filed a formal report about the incident."
2418
+ },
2419
+ {
2420
+ code: "069-003-000-000-000-000-000",
2421
+ key: "support_network_group",
2422
+ title: "Support network",
2423
+ selectable: false,
2424
+ parentCode: null,
2425
+ childCodes: [
2426
+ "069-003-001-000-000-000-000",
2427
+ "069-003-002-000-000-000-000"
2428
+ ],
2429
+ definition: "Group of participation roles identifying people from the client's personal support network."
2430
+ },
2431
+ {
2432
+ code: "069-003-001-000-000-000-000",
2433
+ key: "family_member_or_guardian",
2434
+ title: "Family member or guardian",
2435
+ selectable: true,
2436
+ parentCode: "069-003-000-000-000-000-000",
2437
+ childCodes: [],
2438
+ definition: "Family member or legal guardian of the client."
2439
+ },
2440
+ {
2441
+ code: "069-003-002-000-000-000-000",
2442
+ key: "friend_or_peer",
2443
+ title: "Friend or peer",
2444
+ selectable: true,
2445
+ parentCode: "069-003-000-000-000-000-000",
2446
+ childCodes: [],
2447
+ definition: "Friend or peer in the client's support network."
2448
+ },
2449
+ {
2450
+ code: "069-004-000-000-000-000-000",
2451
+ key: "system_professional_group",
2452
+ title: "System / professional participants",
2453
+ selectable: false,
2454
+ parentCode: null,
2455
+ childCodes: [
2456
+ "069-004-001-000-000-000-000",
2457
+ "069-004-002-000-000-000-000",
2458
+ "069-004-003-000-000-000-000",
2459
+ "069-004-004-000-000-000-000",
2460
+ "069-004-005-000-000-000-000"
2461
+ ],
2462
+ definition: "Group of participation roles identifying system-side professionals involved in the incident."
2463
+ },
2464
+ {
2465
+ code: "069-004-001-000-000-000-000",
2466
+ key: "service_provider_staff",
2467
+ title: "Service provider staff",
2468
+ selectable: true,
2469
+ parentCode: "069-004-000-000-000-000-000",
2470
+ childCodes: [],
2471
+ definition: "Staff of a service provider program or agency involved in the incident."
2472
+ },
2473
+ {
2474
+ code: "069-004-002-000-000-000-000",
2475
+ key: "medical_provider_staff",
2476
+ title: "Medical provider staff",
2477
+ selectable: true,
2478
+ parentCode: "069-004-000-000-000-000-000",
2479
+ childCodes: [],
2480
+ definition: "Staff of a medical provider (hospital, clinic) involved in the incident."
2481
+ },
2482
+ {
2483
+ code: "069-004-003-000-000-000-000",
2484
+ key: "data_entry",
2485
+ title: "Data Entry / Editor",
2486
+ selectable: true,
2487
+ parentCode: "069-004-000-000-000-000-000",
2488
+ childCodes: [],
2489
+ 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."
2490
+ },
2491
+ {
2492
+ code: "069-004-004-000-000-000-000",
2493
+ key: "other_incident_responder",
2494
+ title: "VSP or Other Incident Responder",
2495
+ selectable: true,
2496
+ parentCode: "069-004-000-000-000-000-000",
2497
+ childCodes: [],
2498
+ 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)."
2499
+ },
2500
+ {
2501
+ code: "069-004-005-000-000-000-000",
2502
+ key: "responding_officer",
2503
+ title: "LE Responding Officer",
2504
+ selectable: true,
2505
+ parentCode: "069-004-000-000-000-000-000",
2506
+ childCodes: [],
2507
+ definition: "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
2508
+ },
2509
+ {
2510
+ code: "069-000-000-000-000-000-000",
2511
+ key: "missingness_root",
2512
+ title: "Unknown, Redacted, or Missing",
2513
+ selectable: false,
2514
+ parentCode: null,
2515
+ childCodes: [
2516
+ "069-000-000-000-000-000-001",
2517
+ "069-000-000-000-000-000-002",
2518
+ "069-000-000-000-000-000-003"
2519
+ ],
2520
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
2521
+ },
2522
+ {
2523
+ code: "069-000-000-000-000-000-001",
2524
+ key: "unknown",
2525
+ title: "Unknown",
2526
+ selectable: true,
2527
+ parentCode: "069-000-000-000-000-000-000",
2528
+ childCodes: [],
2529
+ definition: "Value is unknown at time of entry."
2530
+ },
2531
+ {
2532
+ code: "069-000-000-000-000-000-002",
2533
+ key: "anonymous",
2534
+ title: "Anonymous",
2535
+ selectable: true,
2536
+ parentCode: "069-000-000-000-000-000-000",
2537
+ childCodes: [],
2538
+ definition: "Value is intentionally withheld or redacted."
2539
+ },
2540
+ {
2541
+ code: "069-000-000-000-000-000-003",
2542
+ key: "data_not_collected",
2543
+ title: "Data not collected",
2544
+ selectable: true,
2545
+ parentCode: "069-000-000-000-000-000-000",
2546
+ childCodes: [],
2547
+ definition: "No attempt was made to collect the value."
2548
+ }
2549
+ ]
2550
+ };
2551
+
2552
+ // src/cvcs/incidentInvolvementRoles.v1.0.0.json
2553
+ var incidentInvolvementRoles_v1_0_0_default = {
2554
+ domain: "incident_involvement_roles",
2555
+ name: "Core Incident Involvement Role",
2556
+ version: "1.0.0",
2557
+ levels: {
2558
+ "0": "Unknown or Missing",
2559
+ "1": "Involvement Role"
2560
+ },
2561
+ entries: [
2562
+ {
2563
+ code: "130-001-000-000-000-000-000",
2564
+ key: "victim_primary",
2565
+ title: "Victim (primary)",
2566
+ selectable: true,
2567
+ parentCode: null,
2568
+ childCodes: [],
2569
+ definition: "The primary victim/survivor for the incident framing."
2570
+ },
2571
+ {
2572
+ code: "130-002-000-000-000-000-000",
2573
+ key: "victim_secondary",
2574
+ title: "Victim (secondary)",
2575
+ selectable: true,
2576
+ parentCode: null,
2577
+ childCodes: [],
2578
+ definition: "A secondary victim harmed in the incident context."
2579
+ },
2580
+ {
2581
+ code: "130-003-000-000-000-000-000",
2582
+ key: "victim_other",
2583
+ title: "Victim (other)",
2584
+ selectable: true,
2585
+ parentCode: null,
2586
+ childCodes: [],
2587
+ definition: "Another victim relevant to the case when primary vs secondary is not meaningful."
2588
+ },
2589
+ {
2590
+ code: "130-004-000-000-000-000-000",
2591
+ key: "offender",
2592
+ title: "Offender",
2593
+ selectable: true,
2594
+ parentCode: null,
2595
+ childCodes: [],
2596
+ definition: "The person who caused harm."
2597
+ },
2598
+ {
2599
+ code: "130-005-000-000-000-000-000",
2600
+ key: "witness",
2601
+ title: "Witness",
2602
+ selectable: true,
2603
+ parentCode: null,
2604
+ childCodes: [],
2605
+ definition: "A person who witnessed relevant events."
2606
+ },
2607
+ {
2608
+ code: "130-006-000-000-000-000-000",
2609
+ key: "dependent",
2610
+ title: "Dependent",
2611
+ selectable: true,
2612
+ parentCode: null,
2613
+ childCodes: [],
2614
+ definition: "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
2615
+ },
2616
+ {
2617
+ code: "130-000-000-000-000-000-000",
2618
+ key: "missingness_root",
2619
+ title: "Unknown, Redacted, or Missing",
2620
+ selectable: false,
2621
+ parentCode: null,
2622
+ childCodes: [
2623
+ "130-000-000-000-000-000-001",
2624
+ "130-000-000-000-000-000-002",
2625
+ "130-000-000-000-000-000-003"
2626
+ ],
2627
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
2628
+ },
2629
+ {
2630
+ code: "130-000-000-000-000-000-001",
2631
+ key: "unknown",
2632
+ title: "Unknown",
2633
+ selectable: true,
2634
+ parentCode: "130-000-000-000-000-000-000",
2635
+ childCodes: [],
2636
+ definition: "Value is unknown at time of entry."
2637
+ },
2638
+ {
2639
+ code: "130-000-000-000-000-000-002",
2640
+ key: "anonymous",
2641
+ title: "Anonymous",
2642
+ selectable: true,
2643
+ parentCode: "130-000-000-000-000-000-000",
2644
+ childCodes: [],
2645
+ definition: "Value is intentionally withheld or redacted."
2646
+ },
2647
+ {
2648
+ code: "130-000-000-000-000-000-003",
2649
+ key: "data_not_collected",
2650
+ title: "Data not collected",
2651
+ selectable: true,
2652
+ parentCode: "130-000-000-000-000-000-000",
2653
+ childCodes: [],
2654
+ definition: "No attempt was made to collect the value."
2655
+ }
2656
+ ]
2657
+ };
2658
+
2659
+ // src/cvcs/raceEthnicity.v1.0.0.json
2660
+ var raceEthnicity_v1_0_0_default = {
2661
+ domain: "race_ethnicity",
2662
+ name: "Core Race/Ethnicity",
2663
+ version: "1.0.0",
2664
+ levels: {
2665
+ "0": "Unknown or Missing",
2666
+ "1": "Category"
2667
+ },
2668
+ entries: [
2669
+ {
2670
+ code: "076-000-000-000-000-000-000",
2671
+ key: "missingness_root",
2672
+ title: "Unknown, Redacted, or Missing",
2673
+ selectable: false,
2674
+ parentCode: null,
2675
+ childCodes: [
2676
+ "076-000-000-000-000-000-001",
2677
+ "076-000-000-000-000-000-002",
2678
+ "076-000-000-000-000-000-003",
2679
+ "076-000-000-000-000-000-004"
2680
+ ],
2681
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
2682
+ },
2683
+ {
2684
+ code: "076-000-000-000-000-000-001",
2685
+ key: "unknown",
2686
+ title: "Unknown",
2687
+ selectable: true,
2688
+ parentCode: "076-000-000-000-000-000-000",
2689
+ childCodes: [],
2690
+ definition: "Value is unknown at time of entry."
2691
+ },
2692
+ {
2693
+ code: "076-000-000-000-000-000-002",
2694
+ key: "anonymous",
2695
+ title: "Anonymous",
2696
+ selectable: true,
2697
+ parentCode: "076-000-000-000-000-000-000",
2698
+ childCodes: [],
2699
+ definition: "Value is intentionally withheld or redacted."
2700
+ },
2701
+ {
2702
+ code: "076-000-000-000-000-000-003",
2703
+ key: "data_not_collected",
2704
+ title: "Data not collected",
2705
+ selectable: true,
2706
+ parentCode: "076-000-000-000-000-000-000",
2707
+ childCodes: [],
2708
+ definition: "No attempt was made to collect the value."
2709
+ },
2710
+ {
2711
+ code: "076-000-000-000-000-000-004",
2712
+ key: "prefer_not_to_answer",
2713
+ title: "Client prefers not to answer",
2714
+ selectable: true,
2715
+ parentCode: "076-000-000-000-000-000-000",
2716
+ childCodes: [],
2717
+ definition: "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
2718
+ },
2719
+ {
2720
+ code: "076-001-000-000-000-000-000",
2721
+ key: "american_indian_or_alaska_native",
2722
+ title: "American Indian or Alaska Native",
2723
+ selectable: true,
2724
+ parentCode: null,
2725
+ childCodes: [],
2726
+ definition: "Individuals with origins in any of the original peoples of North, Central, and South America, including, for example, Navajo Nation, Blackfeet Tribe of the Blackfeet Indian Reservation of Montana, Native Village of Barrow Inupiat Traditional Government, Nome Eskimo Community, Aztec, and Maya."
2727
+ },
2728
+ {
2729
+ code: "076-002-000-000-000-000-000",
2730
+ key: "asian",
2731
+ title: "Asian",
2732
+ selectable: true,
2733
+ parentCode: null,
2734
+ childCodes: [],
2735
+ definition: "Individuals with origins in any of the original peoples of Central or East Asia, Southeast Asia, or South Asia, including, for example, Chinese, Asian Indian, Filipino, Vietnamese, Korean, and Japanese."
2736
+ },
2737
+ {
2738
+ code: "076-003-000-000-000-000-000",
2739
+ key: "black_or_african_american",
2740
+ title: "Black or African American",
2741
+ selectable: true,
2742
+ parentCode: null,
2743
+ childCodes: [],
2744
+ definition: "Individuals with origins in any of the Black racial groups of Africa, including, for example, African American, Jamaican, Haitian, Nigerian, Ethiopian, and Somali."
2745
+ },
2746
+ {
2747
+ code: "076-004-000-000-000-000-000",
2748
+ key: "hispanic_or_latino",
2749
+ title: "Hispanic or Latino",
2750
+ selectable: true,
2751
+ parentCode: null,
2752
+ childCodes: [],
2753
+ definition: "Includes individuals of Mexican, Puerto Rican, Salvadoran, Cuban, Dominican, Guatemalan, and other Central or South American or Spanish culture or origin."
2754
+ },
2755
+ {
2756
+ code: "076-005-000-000-000-000-000",
2757
+ key: "middle_eastern_or_north_african",
2758
+ title: "Middle Eastern or North African",
2759
+ selectable: true,
2760
+ parentCode: null,
2761
+ childCodes: [],
2762
+ definition: "Individuals with origins in any of the original peoples of the Middle East or North Africa, including, for example, Lebanese, Iranian, Egyptian, Syrian, Iraqi, and Israeli."
2763
+ },
2764
+ {
2765
+ code: "076-006-000-000-000-000-000",
2766
+ key: "multiple_races",
2767
+ title: "Multiple Races [multiple were selected]",
2768
+ selectable: true,
2769
+ parentCode: null,
2770
+ childCodes: [],
2771
+ definition: "Indicates that an individual identifies with more than one racial and/or ethnic category."
2772
+ },
2773
+ {
2774
+ code: "076-007-000-000-000-000-000",
2775
+ key: "native_hawaiian_or_pacific_islander",
2776
+ title: "Native Hawaiian or Pacific Islander",
2777
+ selectable: true,
2778
+ parentCode: null,
2779
+ childCodes: [],
2780
+ definition: "Individuals with origins in any of the original peoples of Hawaii, Guam, Samoa, or other Pacific Islands, including, for example, Native Hawaiian, Samoan, Chamorro, Tongan, Fijian, and Marshallese."
2781
+ },
2782
+ {
2783
+ code: "076-008-000-000-000-000-000",
2784
+ key: "other_self_described",
2785
+ title: "Other - [trigger an optional write in]",
2786
+ selectable: true,
2787
+ parentCode: null,
2788
+ childCodes: [],
2789
+ definition: "Allows for additional self-described race or ethnicity information not adequately represented by the listed categories."
2790
+ },
2791
+ {
2792
+ code: "076-009-000-000-000-000-000",
2793
+ key: "white",
2794
+ title: "White",
2795
+ selectable: true,
2796
+ parentCode: null,
2797
+ childCodes: [],
2798
+ definition: "Individuals with origins in any of the original peoples of Europe, including, for example, English, German, Irish, Italian, Polish, and Scottish."
2799
+ }
2800
+ ]
2801
+ };
2344
2802
  // Annotate the CommonJS export names for ESM import in node:
2345
2803
  0 && (module.exports = {
2804
+ incidentInvolvementRolesSot,
2805
+ incidentParticipationRolesSot,
2806
+ raceEthnicitySot,
2346
2807
  serviceCategoriesSot,
2347
2808
  serviceMechanismsSot,
2348
2809
  serviceStatesSot