-
Notifications
You must be signed in to change notification settings - Fork 0
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
FI-2701: Migrate to HL7 validator wrapper #4
Conversation
0798a3b
to
f5833d2
Compare
f5833d2
to
24fbc3f
Compare
d73246d
to
a35fa86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failing on the old one and passing on the new one is unexpected. I can look more into that |
Ok I see the difference now. That error we're seeing on prod is for a CRD extension http://hl7.org/fhir/us/davinci-crd/STU2/StructureDefinition-ext-coverage-information.html and so the validator will only check that when the CRD IG is loaded, either explicitly or as a dependency of another IG. When you run this test kit by itself on main, you don't get those errors. But on prod the old validator instance is running for a few test kits and one of them may be bringing in a different version of CRD. If you load all the same IGs into the validator locally as are running on prod, the same error happens. (davinci-pdex-2.0.0.tgz, davinci_pas_2.0.1.tgz, uds-plus-external-package.tgz, davinci_dtr_2.0.1.tgz, udsplus-101.tgz) So, I think this should be good, in terms of matching the old behavior when running in isolation. Let me know if you disagree @tstrass or @karlnaden , otherwise I'll merge this in |
your analysis looks sound to me. I'll defer to Tom having not looked closely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, thanks for investigating
Just for posterity, turns out that constraint that was failing is bad anyway. https://jira.hl7.org/browse/FHIR-46087 (thanks fhir-at-mitre slack channel) |
Summary
This PR migrates the test kit from the Inferno validator-wrapper to the HL7 validator-wrapper. This is similar to most of the other test kits, with one significant difference that his test kit used the inferno validator's FHIRPath endpoint, so this now includes the fhirpath-service in the docker-compose files and nginx.background.conf.
Other changes:
validator
blocks tofhir_resource_validator
and specify the IGhttp://hl7.org/fhir/StructureDefinition/PractitionerRole|2.0.1
. The validator doesn't have this profile loaded which results in a 500 error and a purple test result<a href="#something">
. A new check in the validator has strict requirements for these and produces "Hyperlink does not resolve" errors. The replacement was<a href=\\\\\\"#.*?">See above \((.*?)\)</a>
-->\1
, eg,<a href=\\\"#Patient_SubscriberExample\\\">See above (Patient/SubscriberExample)</a>
became justPatient/SubscriberExample
Testing Guidance
From a user's perspective there should be no visible difference between this and using the old validator. Run through the tests and make sure everything works