Commit d7ca486
Added schema abc-clinical-demand-forecast-4.0.0.json
- Added abc-clinical-demand-forecast-4.0.0.json schema file
- Updated catalog.json to include version 4.0.0 and set as default
- Updated schema-validation.jsonc with validation configuration
- Added positive test case for version 4.0.0
- Copied negative test cases from version 3.0.0
Key changes in version 4.0.0:
- Added optional enrollmentStartOffset property in two object definitions
(one for child-region defaults, one for actual-value-with-inherit).
Type: integer or null. Minimum: 0. Default: 0. Represents months from
site activation until first enrollment (First Patient In lead time).
Null means inherit from parent; the default-for-child-regions variant
defaults to 0 if no ancestor sets a value.
- The property is NOT in any required array, so existing 3.0.0 data
validates against 4.0.0 unchanged. The major-version designation
reflects that the new property meaningfully changes lead-time behavior
for downstream consumers even though the schema permits omitting it.
Testing:
- Validated schema-specific: node ./cli.js check --schema-name=abc-clinical-demand-forecast-4.0.0.json (PASS)
- Validated full test suite: node ./cli.js check (PASS, all 804 tested schemas)
Stacked-branch note: this branch was created from feature/publish-abc-clinical-demand-forecast-3.0.0 (not master) because the 2.0.0 and 3.0.0 PRs have not yet been merged upstream. When the 3.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 6057bd9 commit d7ca486
5 files changed
Lines changed: 2408 additions & 2 deletions
File tree
- src
- api/json
- negative_test/abc-clinical-demand-forecast-4.0.0
- schemas/json
- test/abc-clinical-demand-forecast-4.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 | | |
231 | 232 | | |
| |||
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 | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
456 | 459 | | |
457 | 460 | | |
458 | 461 | | |
| |||
0 commit comments