Skip to content

Commit 4fa7fc3

Browse files
mosofskyMichael Osofskypre-commit-ci[bot]
authored
Introduce abc-clinical-demand-forecast-1.0.0.json schema (#5432)
* Introduce abc-clinical-demand-forecast-1.0.0.json schema - Add abc-clinical-demand-forecast-1.0.0.json schema file (first-time publish) - Add new ABCClinicalDemandForecast entry in catalog.json - Add schema-validation.jsonc entry for custom keyword abcHasValidKitItemReferences - Add positive test case for version 1.0.0 - Add negative test case (missing $schema property) abc-clinical-demand-forecast-1.0.0.json is a JSON Schema defining the structure of ABCClinicalDemandForecast used for clinical trial demand forecasting in ABC-Plan. This includes study overview, enrollment configuration, dosing regimens, arms, regions, kits, items, sites, and analytics. Testing: - Validated schema-specific: node ./cli.js check --schema-name=abc-clinical-demand-forecast-1.0.0.json - Validated full test suite: node ./cli.js check (all 776 tested schemas pass) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Michael Osofsky <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent cfd92dd commit 4fa7fc3

File tree

5 files changed

+2081
-0
lines changed

5 files changed

+2081
-0
lines changed

src/api/json/catalog.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@
189189
"5.1.0": "https://www.schemastore.org/abc-inventory-module-data-5.1.0.json"
190190
}
191191
},
192+
{
193+
"name": "ABCClinicalDemandForecast",
194+
"description": "ABCClinicalDemandForecast defining the structure of clinical trial demand forecasting data in ABC-Plan",
195+
"fileMatch": ["abc-clinical-demand-forecast-*.json"],
196+
"url": "https://www.schemastore.org/abc-clinical-demand-forecast-1.0.0.json",
197+
"versions": {
198+
"1.0.0": "https://www.schemastore.org/abc-clinical-demand-forecast-1.0.0.json"
199+
}
200+
},
192201
{
193202
"name": "ABCSupplyPlan",
194203
"description": "ABCSupplyPlan representing all the state for performing inventory optimization and expiry analysis in ABC-Plan MasterPlanner",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"analytics": {
3+
"items": [],
4+
"layouts": [],
5+
"tabs": []
6+
},
7+
"clinicalDemandCalculatedForecast": null,
8+
"clinicalDemandForecastConfiguration": {},
9+
"planNotes": ""
10+
}

src/schema-validation.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@
431431
"https://raw.githubusercontent.com/ShaitanLyss/these/main/hecate/hecate-json-schema.json"
432432
],
433433
"options": {
434+
"abc-clinical-demand-forecast-1.0.0.json": {
435+
"unknownKeywords": ["abcHasValidKitItemReferences"]
436+
},
434437
"abc-supply-plan-1.0.0.json": {
435438
"unknownFormat": ["abc-draft-js_RawDraftContentState"],
436439
"unknownKeywords": [

0 commit comments

Comments
 (0)