-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundle-level constraints are not being checked against the Bundle #2513
Comments
Leaning toward just writing java logic for the handful of bundle-level constraints...probably as additional checks in FHIRRestHelper.validateBundle |
I considered the following approaches for validating bundle-level constraints:
Given that we're already doing some of the checks in java code in FHIRRestHelper.validateBundle(), and that the logic to use the validator is much more complex, and that constraints on the Bundle resource aren't likely to change, I chose to implement the checking via java logic. One note: the checking will not include the check that every bundle entry has a |
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
Issue #2513 - check bundle-level constraints on creates/updates
Verified that the bundle constraints are now checked. Closing issue. |
There are a number of Bundle constraints that are not being checked against the Bundle. After discussion with Lee and John, it was discovered that the validator is not invoked against the outer bundle but just on the entries within the bundle.
The validator should check constraints against the outer Bundle (checks such as bdl-3, bdl-5, bdl-7, and bdl-8).
The following prose in the FHIR specification about Bundle would also be good to check:
Except for transactions and batches, each entry in a Bundle must have a fullUrl which is the identity of the resource in the entry. Note that this is not a versioned reference to the resource, but its identity. Where a resource is not assigned a persistent identity that can be used in the Bundle, a UUID should be used (urn:uuid:...).
Acceptance Criteria
THEN errors should be raised by the validator.
The text was updated successfully, but these errors were encountered: