|
25 | 25 | * the validator, and assert the |
26 | 26 | * violation counts against our own seeded outcomes in outcomes/questionnaire/. |
27 | 27 | * |
28 | | - * Why seeded (not Java-parity) outcomes: the validator implements a documented SUBSET of the |
29 | | - * spec rules (linkId, placement, required, repeats, answer-type WARNING, basic enableWhen — |
30 | | - * ADR-007). Many corpus cases test rules we deliberately do not cover (answerOption, min/max, |
31 | | - * regex, units, SDC expressions, R5 answerConstraint); for those the Java error count cannot |
32 | | - * match ours. Triage (M12.1) classified the 78 eligible R4 cases as: |
33 | | - * - 48 "meaningful": error-presence matches Java, or we flag the answer-type mismatch as a |
34 | | - * warning — these are SEEDED here and asserted. |
35 | | - * - 30 "out-of-scope": Java errors on a rule we do not implement — left markTestIncomplete |
36 | | - * (visible, not silently green) and recorded in the plan backlog. |
| 28 | + * Why seeded (not Java-parity) outcomes: the validator's error/warning verdict does not always |
| 29 | + * match the HL7 Java validator's — answer-type mismatches are reported at `warning` rather than |
| 30 | + * `error` by design, and a few SDC/R5 rules remain uncovered (SDC `answerExpression`, |
| 31 | + * `calculatedExpression`, R5 `answerConstraint`). Seeding pins each case to the validator's own |
| 32 | + * correct output instead. All 78 eligible R4 cases are now seeded and asserted (156 assertions); |
| 33 | + * none are left markTestIncomplete or skipped. |
37 | 34 | * |
38 | 35 | * Seeded outcomes capture the validator's CURRENT correct output, so this suite is a |
39 | | - * regression guard. For the 48 seeded cases triage confirmed zero gaps (our error count never |
40 | | - * exceeds Java's). Any future divergence that IS a known bug must be registered in KNOWN_GAPS. |
| 36 | + * regression guard. Triage confirmed zero gaps (our error count never exceeds Java's). Any |
| 37 | + * future divergence that IS a known bug must be registered in KNOWN_GAPS. |
41 | 38 | */ |
42 | 39 | #[CoversClass(FHIRQuestionnaireValidator::class)] |
43 | 40 | final class FHIRQuestionnaireConformanceTest extends TestCase |
|
0 commit comments