Commit 6057bd9
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
- negative_test/abc-clinical-demand-forecast-3.0.0
- schemas/json
- test/abc-clinical-demand-forecast-3.0.0
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
453 | 456 | | |
454 | 457 | | |
455 | 458 | | |
| |||
0 commit comments