FHIR Chat · Composition Validation · IPS

Stream: IPS

Topic: Composition Validation


view this post on Zulip Alexander Dimitrov (Jan 17 2022 at 19:44):

Hi, I'm using the Inferno Validator (https://inferno.healthit.gov/community) to validate a IPS Composition resource against the IPS Profile, but I'm receiving some errors and I don't understand what exactly causes them:
image.png

I used the following Condition resource for the validation: http://hapi.fhir.org/baseR4/Composition/2787729

Note:
For all referenced resources in the Composition, the meta.profile element was filled and points to the according StructureDefinition

view this post on Zulip Rob Hausam (Jan 17 2022 at 20:06):

@Alexander Dimitrov. At least some of this (like "illegal use of resolve() in discriminator" ) appears to be related to the Inferno community version having an outdated version of the IPS spec. We are migrating Inferno very soon to the new "framework" based version (currently at inferno-dev), and we plan to make all future updates in the new version. You may get better validation results if you try using that now, as the IPS tests there are using a more recent (but not yet the very latest) version of the spec - and either way we would appreciate further feedback on how that works for you. I am also getting close to finishing and pushing some significant updates to the IPS spec, mostly for cleaning up the validation of the IPS bundle and profiles. Once that is available I think that should resolve most of your issues, and I will be updating the Inferno IPS test kit with the new version of the IPS spec as soon as possible after it's in the CI build.

view this post on Zulip Alexander Dimitrov (Jan 18 2022 at 08:53):

@Rob Hausam thanks for the very helpful response! I see that the Bundle profile is also included in the dev version, which is very nice! I will try out validating my generated IPS with the dev version and afterwards I will give a brief update here in the chat how everything went. Thanks again!

view this post on Zulip Alexander Dimitrov (Jan 18 2022 at 17:08):

The Composition validation still leads to a few errors:
image.png

Can I assume that those will probably not appear with the next update, or are those errors on my end?

Nevertheless, with the Inferno Dev build I managed to successfully validate the IPS document as a whole (Bundle resource), which is very pleasing :)

view this post on Zulip John D'Amore (Jan 18 2022 at 18:15):

@Alexander Dimitrov Can you point to the Bundle which is being validated? If the errors are not present on the Bundle (which required Composition as first entry) then you are probably in the clear. I'm happy to look at with you.

view this post on Zulip Alexander Dimitrov (Jan 18 2022 at 18:38):

@John D'Amore this is the Bundle which I used for the validation: http://hapi.fhir.org/baseR4/Bundle/2788423

view this post on Zulip Rob Hausam (Jan 18 2022 at 21:25):

@Alexander Dimitrov Thanks. I'll plan to take a look at it after the Working Group meeting activities today. I expect my further coming updates should resolve any errors that still remain - and looking at your bundle should help make sure that's the case.

view this post on Zulip Alexander Dimitrov (Jan 18 2022 at 21:50):

Thank you, very appreciated. One question which also comes to my mind: Should the meta.profile field be filled (with a reference to the StructureDefinitions) in the entry resources of the Bundle? In the provided Bundle examples from the IPS IG the meta.profile is also not filled, but wanted to ask just to be sure.

view this post on Zulip Rob Hausam (Jan 19 2022 at 12:33):

@Alexander Dimitrov There is a lot going on this week and it may take me a little longer to look at this thoroughly. Generally the guidance has been to not rely on having meta.profile populated, so we have not been including it in our examples. By not including it, then at least we're not setting an example and implying (even erroneously) that it should be populated. We can discuss it further, though.

view this post on Zulip Peter Jordan (Jan 19 2022 at 19:16):

@Rob Hausam , I just ran the latest version of the Validator (5.6.25) against that new example, using the -ips parameter. No errors or warnings, just the usual bunch of Information Messages (i.e. one for each resource in the Bundle):

This element does not match any known slice defined in the profile http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips

view this post on Zulip Rob Hausam (Jan 19 2022 at 19:23):

Doesn't sound too bad, @Peter Jordan. :) I assume that's pulling the IG from the published version (presumably) - not the CI build? We'll need to validate again the package from the CI build - I think we should be able to do that. We talked further on the call today about where we want to go with the value set slicing (or replacing it) and will look at that further next week.

view this post on Zulip Alexander Dimitrov (Jan 20 2022 at 19:35):

@Rob Hausam no worries and thanks for the info about the meta.profile population!

view this post on Zulip John D'Amore (Jan 25 2022 at 16:37):

@Alexander Dimitrov I've gone ahead and checked out the Bundle you sent. It doesn't return any errors, so great work! It did return a series of warnings, which I fixed and posted out to this location: https://github.com/jddamore/IPSviewer/blob/main/samples/validated_samples/AT_ELGA_GmbH_01.json

In terms of the warning fixes, they fell into a few groups:
1) Changing Patient.identifier.type to SB from SS. That may or may not be appropriate for production, but this valueSet is the desired one: http://hl7.org/fhir/R4/valueset-identifier-type.html
2) Editing the display of the LOINC codes. Several were shorthand displays which clinicians would get and I just changed to match a near display from LOINC. There was one you might want to check out: LOINC 3209-4 (https://loinc.org/3209-4/). You had this listed as Factor VII which is different from the code, which is factor VIII
3) Editing to the LL and HH interpretation displays
4) Adding another category for the Condition resources
5) Removing the display from the Immunization resources SNOMED codes (since not matching English display from code)

Part of my work is with the Global Digital Health Partnership and we're having a mini-connectathon tomorrow (6:30-10:30 US ET). Since Austria is part of the GDHP, let me know if you'd have any interest to participate (Participation needs to be cleared, but I can ask). My email is johnd (at) moreinformatics.com

view this post on Zulip Alexander Dimitrov (Jan 27 2022 at 16:46):

Thanks a lot @John D'Amore , very appreciated! And yes, was also very happy about the successful validation (although there are some warnings and infos to fix :) ) I will try to adapt the mapping, so that I can hopefully resolve the warnings you mentioned.
Also thank you for the offer, I would indeed be interested, but at a bit later point. (there are still some adjustments I would like to do)

view this post on Zulip Elliot Silver (Jan 27 2022 at 18:32):

@John D'Amore , thanks. You hit on part of what was probing--whether DocRef is needed to support finding the documents. I'll also take a look at the video.


Last updated: Apr 12 2022 at 19:14 UTC