Skip to content

Commit 6057bd9

Browse files
Michael Osofskyclaude
andcommitted
Added schema abc-clinical-demand-forecast-3.0.0.json
- Added abc-clinical-demand-forecast-3.0.0.json schema file - Updated catalog.json to include version 3.0.0 and set as default - Updated schema-validation.jsonc with validation configuration - Added positive test case for version 3.0.0 - Copied negative test cases from version 2.0.0 Key changes in version 3.0.0 (breaking): - Replaced dosingFrequency string enum (once_daily_qd, twice_daily_bid, every_other_day, etc.) with a structured DosingFrequency object that supports multi-phase regimens. Each DosingFrequency has a description (also used as the AI generation prompt) and an ordered phases array (1-10 phases). Each DosingPhase defines a repeating cycle via cycleDoses and cycleUnit (days or months), and a repeat duration via repeatFor and repeatForUnit (days, weeks, months, or years). repeatFor: 0 marks a terminal phase that runs for the remainder of the treatment. This enables regimens such as capecitabine 14-on/7-off and "weekly for 6 weeks then monthly" that the old flat enum could not express. - Positive test data updated: replaced the old once_daily_qd string with an equivalent single terminal-phase DosingFrequency object (cycleDoses: [1], cycleUnit: days, repeatFor: 0). Testing: - Validated schema-specific: node ./cli.js check --schema-name=abc-clinical-demand-forecast-3.0.0.json (PASS) - Validated full test suite: node ./cli.js check (PASS, all 803 tested schemas) Stacked-branch note: this branch was created from feature/publish-abc-clinical-demand-forecast-2.0.0 (not master) because the 2.0.0 PR has not yet been merged upstream. When the 2.0.0 PR merges, rebase this branch onto master before merging. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 52f4b1a commit 6057bd9

5 files changed

Lines changed: 2388 additions & 2 deletions

File tree

src/api/json/catalog.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,11 @@
221221
"name": "ABCClinicalDemandForecast",
222222
"description": "ABCClinicalDemandForecast defining the structure of clinical trial demand forecasting data in ABC-Plan",
223223
"fileMatch": ["abc-clinical-demand-forecast-*.json"],
224-
"url": "https://www.schemastore.org/abc-clinical-demand-forecast-2.0.0.json",
224+
"url": "https://www.schemastore.org/abc-clinical-demand-forecast-3.0.0.json",
225225
"versions": {
226226
"1.0.0": "https://www.schemastore.org/abc-clinical-demand-forecast-1.0.0.json",
227-
"2.0.0": "https://www.schemastore.org/abc-clinical-demand-forecast-2.0.0.json"
227+
"2.0.0": "https://www.schemastore.org/abc-clinical-demand-forecast-2.0.0.json",
228+
"3.0.0": "https://www.schemastore.org/abc-clinical-demand-forecast-3.0.0.json"
228229
}
229230
},
230231
{
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
@@ -450,6 +450,9 @@
450450
"abc-clinical-demand-forecast-2.0.0.json": {
451451
"unknownKeywords": ["abcHasValidKitItemReferences"]
452452
},
453+
"abc-clinical-demand-forecast-3.0.0.json": {
454+
"unknownKeywords": ["abcHasValidKitItemReferences"]
455+
},
453456
"abc-supply-plan-1.0.0.json": {
454457
"unknownFormat": ["abc-draft-js_RawDraftContentState"],
455458
"unknownKeywords": [

0 commit comments

Comments
 (0)