docs(event-messages): document tightened EHealthApplicationEvent schema constraints (CCR0303 AC-7)#270
Merged
jhntrifork merged 3 commits intorelease_2026.3from Apr 29, 2026
Conversation
…ma constraints (CCR0303 AC-7) Mirrors the schema tightening from ehealth-commons (trifork/ehealth#3143) so the IG and the Java-runtime schema agree on the contract: - resourceReference requires minItems: 1. - allOf / if-then / contains rules assert the obligatory resourceReference.label per eventType (AppointmentReminder, VideoAppointmentReminder, ReminderSubmitMeasurement, MissingMeasurement, NewEHealthMessage). Changelog updated under Release 2026.2 > Event messages.
…ts (CCR0303 AC-7) - declare JSON Schema Draft-07 (clarifies that if/then/contains semantics apply) - mark eventType and resourceReference as top-level required - add required: [eventType] inside each if-clause to avoid the missing-discriminator gotcha - reword inline description; expand changelog with vendor-facing note about the item-level required: [label, reference]
ohetrifork
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #241 (merged). Adds the tightened JSON schema contract to the public IG so subscribers can validate received events against the same constraint we now enforce at the publisher.
Changes
input/pagecontent/event-messages.md—EHealthApplicationEventsection now:resourceReference.minItems: 1and markslabel/referenceas required on each item.allOfblock with fiveif/then/containsrules, one pereventType, each guaranteeing the obligatoryresourceReference.labelfor that event type.input/pagecontent/changelog.md— new### Event messagesbullet under Release 2026.2.Contract summary (same as ehealth-commons)
Cross-repo dependency
EHealthApplicationEventis a JMS message, and this repo's convention is to document JMS events as prose onevent-messages.md.Verification
sushi .passes (0 errors). Pre-existing warnings are unrelated.pagecontent/*.md; no FSH resources or StructureDefinitions altered.