-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
inferno appears to be stripping dataAbsentReason fields (FI-1520) #67
Comments
The error message we get in the test is
|
This is related to an issue with our FHIR models library not supporting primitive extensions. We have a workaround, but we're not using it in this location, so I'll be addressing this ASAP. |
@Jammjammjamm I actually came across a minor issue related to Implantable Devices as well. Much of our current Device data lacks some information, namely Passing in null makes it so manufactureDate and expirationDate are omitted from the FHIR response-- but this is bad because Inferno expects these fields. In the cases of not having these dates, we decided to pass in Do you have any suggestions for dealing with this? |
@dwebe003 This doesn't appear to be directly related to the problem this issue is discussing. I suggest you move this to chat.fhir.org or create another issue. Since you're using Java, I'm assuming you are using HAPI? I'm sure they have a way to set the data absent reasons in the data models, which is what we did in the data in the issue description.
Our server is written in Perl, so we're not using HAPI here, but I'm sure they have a way to set the data like this. This is what you should be doing instead of setting the strings to unknown or 1970 |
I was just playing around with hapi...
|
back on the original issue, @Jammjammjamm I have found that there was another error we are getting in our tests for DocumentReference that looks to me to be the same root cause The second one for us-core-6. When I ran our resource directly against the fhir validator, the second error message went away. We still had the error for the first error about the contentType. So I just want to make sure the proposed fix would address the issue for all resources and not just Device. I also want to note that we see the same errors reported when we run the single patient tests, so this is not only an issue when running the bulk tests. |
@nathanloyer Sorry about hijacking this issue! I mistakenly thought your issue was resolved, and thought mine was too similar to make a new thread. Apologies. But thank you for the idea! I coded some logic to use setManufactureDateElement/setExpirationDateElement, in the way you provided, when no dates are given. Had no idea what those methods were used for until now. |
The issue isn't specific to particular resources, but affects the validation of any resource with primitive extensions. |
@nathanloyer For the DocumentReference one, I believe the intention for the US Core author is that an attachment must have either embedded data or url. What is the use care for a DocumentReference with empty content? |
I'll try out the fix you merged today. For the content type thing, I'll have to investigate more with the devs that implemented that resource and get back to you. Will likely open a new thread for that in zulip if we can't figure that one out. |
That fix was in |
yeah, I was trying to pick up the changes to inferno_core the same way that I had been picking up changes to the other packages, which I think it was you @Jammjammjamm that originally suggested it to me. But it doesn't work when I try that.
|
Yes, loading up test kits from git will generally work fine, but loading inferno_core from git won't because it needs the built js files which are included in the published gem, but not in git. |
ok, thanks. When do you expect the prerelease to be available? |
Hopefully today or tomorrow. |
Perfect, thanks. Is there a way I can subscribe to automatic updates when that happens? |
I'm not sure what you mean by automatic updates. I'll make a post in this issue when it's out. |
I mean any way to get a notification or email or something when prereleases are created. I think I get github notifications when the actual release goes out because I'm watching the repos, but I'm not sure if there's a way to do the same for prereleases |
If you go to rubygems.org, make an account, and then go to a gem's page (like inferno_core or onc_g10_certification_test_kit), on the right under |
Thanks! As for the DocRef discussion, I made a thread here: |
Ok, we just released 0.3.0.rc1 of inferno_core. So you can update the gemspec to point to that version of inferno_core, and then run |
On the g10 update, there are also changes merged into main for the us-core-test-kit that we need, so just wanted to confirm if all the other dependencies of the g10 kit are also going to get released and have the new versions linked to in g10 before this next release. |
oh right, the fix was in the smart app kit, and looks like the new version has been released there today, so guess I'm answering my own questions :D https://github.com/inferno-framework/smart-app-launch-test-kit/releases/tag/v0.1.2 |
I'm struggling to keep track of everything... so there are fixes we need in inferno-core@0.3.0, smart-app-launch-test-kit@0.1.2 and us-core-test-kit@main looks like us-core-test-kit has a release in the works as well |
Inferno core has the fix for validating primitive extensions, smart has the fix for PKCE length. I don't know if the us core test kit has any changes that you specifically care about, but it has some breaking changes that will make using the new version more complicated than just bumping the version. |
us-core-test-kit does have changes we need. It was this PR inferno-framework/us-core-test-kit#24 I've actually patched a fix for the g10 repo to use the latest us-core-test-kit into our local fork of the g10 repo. Right now we're deploying using a forked g10 kit until we're done iterating on getting tests passing, then we plan to create our own kit and pulling in the g10 kit as a dependency. Everything got working with just renaming the us core modules to have the additional USCore311 namespaceing. I could turn that into a PR for this repo if that would help accelerate a new g10 release with the latest us core kit changes. |
We just released |
oh, great, will try that out now |
We also have it up on inferno-dev.healthit.gov now. |
confirmed this is working yesterday. thanks for the help |
Reopened. This issue will be group with other issues for release v2.1 |
There is more detail on this issue here, but I will summarize again below.
inferno-framework/inferno-core#154
Our server is failing tests for FHIR Resource Validation of certain Device resources. Here is one example
You will see that we have a lot of data absent reasons, because in this case we do not have the data in our database necessary to populate these fields.
We have just confirmed that the request that Inferno is sending to the FHIR Validator is removing the data absent reasons, which is causing us to fail validation. Here is an example for the above data:
The text was updated successfully, but these errors were encountered: