@htilabs/platform-common-models 0.6.0 → 0.7.0-beta.1
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/README.md +44 -0
- package/dist/config/index.cjs +191 -0
- package/dist/config/index.cjs.map +1 -0
- package/dist/config/index.d.cts +101 -0
- package/dist/config/index.d.ts +101 -0
- package/dist/config/index.js +165 -0
- package/dist/config/index.js.map +1 -0
- package/dist/constants/index.cjs +46 -5
- 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 +42 -5
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +321 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +789 -436
- package/dist/cvcs/index.d.ts +789 -436
- package/dist/cvcs/index.js +318 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +424 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -3
- package/dist/index.d.ts +94 -3
- package/dist/index.js +412 -6
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-CjC57132.d.cts → platform-auth-C97LpsRd.d.cts} +8 -4
- package/dist/{platform-auth-CjC57132.d.ts → platform-auth-C97LpsRd.d.ts} +8 -4
- package/dist/schemas/index.cjs +43 -6
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +4 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +43 -6
- 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 +9 -2
- package/src/__tests__/__snapshots__/cvc-sot.snap +12 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +24 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/__tests__/runtime-contract-validator.test.ts +556 -0
- package/src/config/fixtures/valid.yaml +90 -0
- package/src/config/index.ts +352 -0
- package/src/constants/ic.ts +49 -6
- package/src/cvcs/hmisSex.v1.0.0.json +89 -0
- package/src/cvcs/index.ts +6 -0
- package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +96 -0
- package/src/cvcs/recencyBand.v1.0.0.json +124 -0
- package/src/generated/cvc-enums.ts +59 -0
- package/src/index.ts +20 -0
- package/src/schemas/common.ts +4 -0
package/dist/cvcs/index.js
CHANGED
|
@@ -11363,6 +11363,321 @@ var frequencyCadence_v1_0_0_default = {
|
|
|
11363
11363
|
}
|
|
11364
11364
|
]
|
|
11365
11365
|
};
|
|
11366
|
+
|
|
11367
|
+
// src/cvcs/recencyBand.v1.0.0.json
|
|
11368
|
+
var recencyBand_v1_0_0_default = {
|
|
11369
|
+
domain: "recency_band",
|
|
11370
|
+
name: "Core Recency Band",
|
|
11371
|
+
version: "1.0.0",
|
|
11372
|
+
levels: {
|
|
11373
|
+
"0": "Unknown or Missing",
|
|
11374
|
+
"1": "Recency Band"
|
|
11375
|
+
},
|
|
11376
|
+
entries: [
|
|
11377
|
+
{
|
|
11378
|
+
code: "137-000-000-000-000-000-000",
|
|
11379
|
+
key: "missingness_root",
|
|
11380
|
+
title: "Unknown, Redacted, or Missing",
|
|
11381
|
+
selectable: false,
|
|
11382
|
+
parentCode: null,
|
|
11383
|
+
childCodes: [
|
|
11384
|
+
"137-000-000-000-000-000-001",
|
|
11385
|
+
"137-000-000-000-000-000-002",
|
|
11386
|
+
"137-000-000-000-000-000-003",
|
|
11387
|
+
"137-000-000-000-000-000-004"
|
|
11388
|
+
],
|
|
11389
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
11390
|
+
},
|
|
11391
|
+
{
|
|
11392
|
+
code: "137-000-000-000-000-000-001",
|
|
11393
|
+
key: "unknown",
|
|
11394
|
+
title: "Unknown",
|
|
11395
|
+
selectable: true,
|
|
11396
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
11397
|
+
childCodes: [],
|
|
11398
|
+
definition: "Value is unknown at time of entry."
|
|
11399
|
+
},
|
|
11400
|
+
{
|
|
11401
|
+
code: "137-000-000-000-000-000-002",
|
|
11402
|
+
key: "anonymous",
|
|
11403
|
+
title: "Anonymous",
|
|
11404
|
+
selectable: true,
|
|
11405
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
11406
|
+
childCodes: [],
|
|
11407
|
+
definition: "Value is intentionally withheld or redacted."
|
|
11408
|
+
},
|
|
11409
|
+
{
|
|
11410
|
+
code: "137-000-000-000-000-000-003",
|
|
11411
|
+
key: "data_not_collected",
|
|
11412
|
+
title: "Data not collected",
|
|
11413
|
+
selectable: true,
|
|
11414
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
11415
|
+
childCodes: [],
|
|
11416
|
+
definition: "No attempt was made to collect the value."
|
|
11417
|
+
},
|
|
11418
|
+
{
|
|
11419
|
+
code: "137-000-000-000-000-000-004",
|
|
11420
|
+
key: "prefer_not_to_answer",
|
|
11421
|
+
title: "Client prefers not to answer",
|
|
11422
|
+
selectable: true,
|
|
11423
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
11424
|
+
childCodes: [],
|
|
11425
|
+
definition: "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
|
|
11426
|
+
},
|
|
11427
|
+
{
|
|
11428
|
+
code: "137-001-000-000-000-000-000",
|
|
11429
|
+
key: "less_than_3_years",
|
|
11430
|
+
title: "Less than 3 years ago",
|
|
11431
|
+
selectable: true,
|
|
11432
|
+
parentCode: null,
|
|
11433
|
+
childCodes: [],
|
|
11434
|
+
definition: "The asserted event occurred less than 3 years ago."
|
|
11435
|
+
},
|
|
11436
|
+
{
|
|
11437
|
+
code: "137-002-000-000-000-000-000",
|
|
11438
|
+
key: "months_3_to_6",
|
|
11439
|
+
title: "3-6 months ago",
|
|
11440
|
+
selectable: true,
|
|
11441
|
+
parentCode: null,
|
|
11442
|
+
childCodes: [],
|
|
11443
|
+
definition: "The asserted event occurred between 3 and 6 months ago."
|
|
11444
|
+
},
|
|
11445
|
+
{
|
|
11446
|
+
code: "137-003-000-000-000-000-000",
|
|
11447
|
+
key: "months_6_to_12",
|
|
11448
|
+
title: "6-12 months ago",
|
|
11449
|
+
selectable: true,
|
|
11450
|
+
parentCode: null,
|
|
11451
|
+
childCodes: [],
|
|
11452
|
+
definition: "The asserted event occurred between 6 and 12 months ago."
|
|
11453
|
+
},
|
|
11454
|
+
{
|
|
11455
|
+
code: "137-004-000-000-000-000-000",
|
|
11456
|
+
key: "one_year_or_more",
|
|
11457
|
+
title: "One year or more",
|
|
11458
|
+
selectable: true,
|
|
11459
|
+
parentCode: null,
|
|
11460
|
+
childCodes: [],
|
|
11461
|
+
definition: "The asserted event occurred one year or more ago (without further granularity)."
|
|
11462
|
+
},
|
|
11463
|
+
{
|
|
11464
|
+
code: "137-005-000-000-000-000-000",
|
|
11465
|
+
key: "ten_plus_years",
|
|
11466
|
+
title: "10+ years ago",
|
|
11467
|
+
selectable: true,
|
|
11468
|
+
parentCode: null,
|
|
11469
|
+
childCodes: [],
|
|
11470
|
+
definition: "The asserted event occurred 10 or more years ago."
|
|
11471
|
+
},
|
|
11472
|
+
{
|
|
11473
|
+
code: "137-006-000-000-000-000-000",
|
|
11474
|
+
key: "within_3_months",
|
|
11475
|
+
title: "Within past 3 months",
|
|
11476
|
+
selectable: true,
|
|
11477
|
+
parentCode: null,
|
|
11478
|
+
childCodes: [],
|
|
11479
|
+
definition: "The asserted event occurred within the past 3 months."
|
|
11480
|
+
},
|
|
11481
|
+
{
|
|
11482
|
+
code: "137-007-000-000-000-000-000",
|
|
11483
|
+
key: "years_3_to_10",
|
|
11484
|
+
title: "3-10 years ago",
|
|
11485
|
+
selectable: true,
|
|
11486
|
+
parentCode: null,
|
|
11487
|
+
childCodes: [],
|
|
11488
|
+
definition: "The asserted event occurred between 3 and 10 years ago."
|
|
11489
|
+
}
|
|
11490
|
+
]
|
|
11491
|
+
};
|
|
11492
|
+
|
|
11493
|
+
// src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json
|
|
11494
|
+
var juvenileJusticeEpisodeType_v1_0_0_default = {
|
|
11495
|
+
domain: "juvenile_justice_episode_type",
|
|
11496
|
+
name: "Core Juvenile Justice Episode Type",
|
|
11497
|
+
version: "1.0.0",
|
|
11498
|
+
levels: {
|
|
11499
|
+
"0": "Unknown or Missing",
|
|
11500
|
+
"1": "Episode Type"
|
|
11501
|
+
},
|
|
11502
|
+
entries: [
|
|
11503
|
+
{
|
|
11504
|
+
code: "197-000-000-000-000-000-000",
|
|
11505
|
+
key: "missingness_root",
|
|
11506
|
+
title: "Unknown, Redacted, or Missing",
|
|
11507
|
+
selectable: false,
|
|
11508
|
+
parentCode: null,
|
|
11509
|
+
childCodes: [
|
|
11510
|
+
"197-000-000-000-000-000-001",
|
|
11511
|
+
"197-000-000-000-000-000-002",
|
|
11512
|
+
"197-000-000-000-000-000-003"
|
|
11513
|
+
],
|
|
11514
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
11515
|
+
},
|
|
11516
|
+
{
|
|
11517
|
+
code: "197-000-000-000-000-000-001",
|
|
11518
|
+
key: "unknown",
|
|
11519
|
+
title: "Unknown",
|
|
11520
|
+
selectable: true,
|
|
11521
|
+
parentCode: "197-000-000-000-000-000-000",
|
|
11522
|
+
childCodes: [],
|
|
11523
|
+
definition: "Value is unknown at time of entry."
|
|
11524
|
+
},
|
|
11525
|
+
{
|
|
11526
|
+
code: "197-000-000-000-000-000-002",
|
|
11527
|
+
key: "anonymous",
|
|
11528
|
+
title: "Anonymous",
|
|
11529
|
+
selectable: true,
|
|
11530
|
+
parentCode: "197-000-000-000-000-000-000",
|
|
11531
|
+
childCodes: [],
|
|
11532
|
+
definition: "Value is intentionally withheld or redacted."
|
|
11533
|
+
},
|
|
11534
|
+
{
|
|
11535
|
+
code: "197-000-000-000-000-000-003",
|
|
11536
|
+
key: "data_not_collected",
|
|
11537
|
+
title: "Data not collected",
|
|
11538
|
+
selectable: true,
|
|
11539
|
+
parentCode: "197-000-000-000-000-000-000",
|
|
11540
|
+
childCodes: [],
|
|
11541
|
+
definition: "No attempt was made to collect the value."
|
|
11542
|
+
},
|
|
11543
|
+
{
|
|
11544
|
+
code: "197-001-000-000-000-000-000",
|
|
11545
|
+
key: "detention_stay",
|
|
11546
|
+
title: "Detention stay",
|
|
11547
|
+
selectable: true,
|
|
11548
|
+
parentCode: null,
|
|
11549
|
+
childCodes: [],
|
|
11550
|
+
definition: "A period of confinement in a juvenile detention facility."
|
|
11551
|
+
},
|
|
11552
|
+
{
|
|
11553
|
+
code: "197-002-000-000-000-000-000",
|
|
11554
|
+
key: "diversion_program",
|
|
11555
|
+
title: "Diversion program",
|
|
11556
|
+
selectable: true,
|
|
11557
|
+
parentCode: null,
|
|
11558
|
+
childCodes: [],
|
|
11559
|
+
definition: "Participation in a program that diverts a youth away from formal juvenile court processing."
|
|
11560
|
+
},
|
|
11561
|
+
{
|
|
11562
|
+
code: "197-003-000-000-000-000-000",
|
|
11563
|
+
key: "pending_adjudication",
|
|
11564
|
+
title: "Pending charges / adjudication process",
|
|
11565
|
+
selectable: true,
|
|
11566
|
+
parentCode: null,
|
|
11567
|
+
childCodes: [],
|
|
11568
|
+
definition: "An open juvenile case awaiting adjudication."
|
|
11569
|
+
},
|
|
11570
|
+
{
|
|
11571
|
+
code: "197-004-000-000-000-000-000",
|
|
11572
|
+
key: "probation_supervision",
|
|
11573
|
+
title: "Probation / community supervision (juvenile)",
|
|
11574
|
+
selectable: true,
|
|
11575
|
+
parentCode: null,
|
|
11576
|
+
childCodes: [],
|
|
11577
|
+
definition: "Court-ordered supervision of a youth in the community rather than in confinement."
|
|
11578
|
+
},
|
|
11579
|
+
{
|
|
11580
|
+
code: "197-005-000-000-000-000-000",
|
|
11581
|
+
key: "residential_jj_placement",
|
|
11582
|
+
title: "Residential JJ placement",
|
|
11583
|
+
selectable: true,
|
|
11584
|
+
parentCode: null,
|
|
11585
|
+
childCodes: [],
|
|
11586
|
+
definition: "Placement in a residential juvenile justice facility (e.g. training school, residential treatment)."
|
|
11587
|
+
}
|
|
11588
|
+
]
|
|
11589
|
+
};
|
|
11590
|
+
|
|
11591
|
+
// src/cvcs/hmisSex.v1.0.0.json
|
|
11592
|
+
var hmisSex_v1_0_0_default = {
|
|
11593
|
+
domain: "hmis_sex",
|
|
11594
|
+
name: "Core HMIS Sex",
|
|
11595
|
+
version: "1.0.0",
|
|
11596
|
+
levels: {
|
|
11597
|
+
"0": "Unknown or Missing",
|
|
11598
|
+
"1": "Sex"
|
|
11599
|
+
},
|
|
11600
|
+
entries: [
|
|
11601
|
+
{
|
|
11602
|
+
code: "067-000-000-000-000-000-000",
|
|
11603
|
+
key: "missingness_root",
|
|
11604
|
+
title: "Unknown, Redacted, or Missing",
|
|
11605
|
+
selectable: false,
|
|
11606
|
+
parentCode: null,
|
|
11607
|
+
childCodes: [
|
|
11608
|
+
"067-000-000-000-000-000-001",
|
|
11609
|
+
"067-000-000-000-000-000-002",
|
|
11610
|
+
"067-000-000-000-000-000-003",
|
|
11611
|
+
"067-000-000-000-000-000-004",
|
|
11612
|
+
"067-000-000-000-000-000-005"
|
|
11613
|
+
],
|
|
11614
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
11615
|
+
},
|
|
11616
|
+
{
|
|
11617
|
+
code: "067-000-000-000-000-000-001",
|
|
11618
|
+
key: "unknown",
|
|
11619
|
+
title: "Unknown",
|
|
11620
|
+
selectable: true,
|
|
11621
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
11622
|
+
childCodes: [],
|
|
11623
|
+
definition: "Value is unknown at time of entry."
|
|
11624
|
+
},
|
|
11625
|
+
{
|
|
11626
|
+
code: "067-000-000-000-000-000-002",
|
|
11627
|
+
key: "anonymous",
|
|
11628
|
+
title: "Anonymous",
|
|
11629
|
+
selectable: true,
|
|
11630
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
11631
|
+
childCodes: [],
|
|
11632
|
+
definition: "Value is intentionally withheld or redacted."
|
|
11633
|
+
},
|
|
11634
|
+
{
|
|
11635
|
+
code: "067-000-000-000-000-000-003",
|
|
11636
|
+
key: "data_not_collected",
|
|
11637
|
+
title: "Data not collected",
|
|
11638
|
+
selectable: true,
|
|
11639
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
11640
|
+
childCodes: [],
|
|
11641
|
+
definition: "Use this response if the staff does not ask the person to provide their sex."
|
|
11642
|
+
},
|
|
11643
|
+
{
|
|
11644
|
+
code: "067-000-000-000-000-000-004",
|
|
11645
|
+
key: "client_doesn_t_know",
|
|
11646
|
+
title: "Client doesn't know",
|
|
11647
|
+
selectable: true,
|
|
11648
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
11649
|
+
childCodes: [],
|
|
11650
|
+
definition: `"Client doesn't know" should only be selected when a person does not know their sex from among the responses.`
|
|
11651
|
+
},
|
|
11652
|
+
{
|
|
11653
|
+
code: "067-000-000-000-000-000-005",
|
|
11654
|
+
key: "client_prefers_not_to_answer",
|
|
11655
|
+
title: "Client prefers not to answer",
|
|
11656
|
+
selectable: true,
|
|
11657
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
11658
|
+
childCodes: [],
|
|
11659
|
+
definition: '"Client prefers not to answer" should only be selected when a person chooses not to identify their sex from among the responses.'
|
|
11660
|
+
},
|
|
11661
|
+
{
|
|
11662
|
+
code: "067-001-000-000-000-000-000",
|
|
11663
|
+
key: "female",
|
|
11664
|
+
title: "Female",
|
|
11665
|
+
selectable: true,
|
|
11666
|
+
parentCode: null,
|
|
11667
|
+
childCodes: [],
|
|
11668
|
+
definition: "A person of the sex characterized by a reproductive system with the biological function of producing eggs (ova)."
|
|
11669
|
+
},
|
|
11670
|
+
{
|
|
11671
|
+
code: "067-002-000-000-000-000-000",
|
|
11672
|
+
key: "male",
|
|
11673
|
+
title: "Male",
|
|
11674
|
+
selectable: true,
|
|
11675
|
+
parentCode: null,
|
|
11676
|
+
childCodes: [],
|
|
11677
|
+
definition: "A person of the sex characterized by a reproductive system with the biological function of producing sperm."
|
|
11678
|
+
}
|
|
11679
|
+
]
|
|
11680
|
+
};
|
|
11366
11681
|
export {
|
|
11367
11682
|
administeringJurisdiction_v1_0_0_default as administeringJurisdictionSot,
|
|
11368
11683
|
ageBinReporting_v1_0_0_default as ageBinReportingSot,
|
|
@@ -11379,10 +11694,12 @@ export {
|
|
|
11379
11694
|
hairColor_v1_0_0_default as hairColorSot,
|
|
11380
11695
|
hasTattoos_v1_0_0_default as hasTattoosSot,
|
|
11381
11696
|
highestEducationLevelCompleted_v1_0_0_default as highestEducationLevelCompletedSot,
|
|
11697
|
+
hmisSex_v1_0_0_default as hmisSexSot,
|
|
11382
11698
|
homelessStatus_v1_0_0_default as homelessStatusSot,
|
|
11383
11699
|
incidentInvolvementRoles_v1_0_0_default as incidentInvolvementRolesSot,
|
|
11384
11700
|
incidentParticipationRoles_v1_0_0_default as incidentParticipationRolesSot,
|
|
11385
11701
|
incomeBenefitsSources_v1_0_0_default as incomeBenefitsSourcesSot,
|
|
11702
|
+
juvenileJusticeEpisodeType_v1_0_0_default as juvenileJusticeEpisodeTypeSot,
|
|
11386
11703
|
juvenileJusticeInvolvementStatus_v1_0_0_default as juvenileJusticeInvolvementStatusSot,
|
|
11387
11704
|
locationType_v1_0_0_default as locationTypeSot,
|
|
11388
11705
|
maritalStatusLegal_v1_0_0_default as maritalStatusLegalSot,
|
|
@@ -11397,6 +11714,7 @@ export {
|
|
|
11397
11714
|
primaryLanguage_v1_0_0_default as primaryLanguageSot,
|
|
11398
11715
|
pronouns_v1_0_0_default as pronounsSot,
|
|
11399
11716
|
raceEthnicity_v1_0_0_default as raceEthnicitySot,
|
|
11717
|
+
recencyBand_v1_0_0_default as recencyBandSot,
|
|
11400
11718
|
referralEntityCategory_v1_0_0_default as referralEntityCategorySot,
|
|
11401
11719
|
relationshipStatusCurrent_v1_0_0_default as relationshipStatusCurrentSot,
|
|
11402
11720
|
relationshipTies_v1_0_0_default as relationshipTiesSot,
|