FI-2517: Migrate to HL7 validator wrapper #168
Merged
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
Migrates from the original Inferno validator wrapper to the new HL7 validator wrapper. There should be no visible difference in the results, and there should be no special customization or configuration needed to get anything working. However the validator UI is no longer available by default.
Unlike the g10 cutover which used an env var to toggle between the 2, this one is a complete transition, so for example things like the env vars are replaced instead of adding new ones.
Note that I did leave the old validator commented out in the docker-compose file and nginx config so that if someone wants to use the validator UI with US core preloaded, they can uncomment those. (Should I add a comment somewhere to explain that?)
There are a couple new error messages that don't show up on prod, but they do show up locally with the latest from
main
so I think the difference is just tx.fhir.org & caching related. The two messages I've seen are:Code changes
validator
block in test suite template tofhir_resource_validator
, addedigs
. Renamed env varsid
line to before thefhir_resource_validator
block because the validator implicitly references the suite id so it needs to be setURL value '.*' does not resolve
- this happens when the validator sees a URL and is configured not to fetch it, and was ignored natively in the Inferno validator but the HL7 validator doesn't expose the ability to ignore that so it has to be ignored in the test kitvalidator.validate
calling the HL7 wrapper doesn't return OperationOutcome, but there is a function to convert it to oneTesting Guidance
Since inferno-core was bumped, you may need to run db migrations.