FHIR Chat · importing profiles from MII · german (d-a-ch)

Stream: german (d-a-ch)

Topic: importing profiles from MII


view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:22):

hello everybody,
I'm currently trying to import the IG from MII into hapi FHIR server.
And i'm having some issues with them. More in detail when i try to import the Labor module it fails
to validate. Tried also to validate it with the official FHIR validator, but it still fails with the following error :

*FAILURE* validating medizininformatikinitiative-modullabor/laborbefundindermedizininformatik-initiative.json:  error:2 warn:1 info:0
  Error @ ImplementationGuide (line 1, col2) : Profile http://hl7.org/fhir/StructureDefinition/ImplementationGuide, Element 'ImplementationGuide.packageId': minimum required = 1, but only found 0
  Error @ ImplementationGuide.definition (line 12, col14) : Profile http://hl7.org/fhir/StructureDefinition/ImplementationGuide, Element 'ImplementationGuide.definition.resource': minimum required = 1, but only found 0
  Warning @ ImplementationGuide (line 1, col1) : ig-0: Name should be usable as an identifier for the module by machine processing applications such as code generation [name.matches('[A-Z]([A-Za-z0-9_]){0,254}')]

Any suggestions on how to proceed would be very helpfull,
thank you in advance

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:37):

The implementationGuide resources included in the package is apparently not valid. It doesn't contain any meaningful information. Is it possible to configure to skip this particular resource?

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:42):

will ignore it.
regarding the Labor module there is also another issue with the ObservationLab :

*FAILURE* validating medizininformatikinitiative-modullabor/ObservationLab.json:  error:1 warn:2 info:0
  Error @ StructureDefinition.differential.element[25].constraint[0].source (line 260, col12) : Canonical URLs must be absolute URLs if they are not fragment references (Observation)
  Warning @ StructureDefinition.differential.element.where(path = 'Observation.identifier:analyseBefundCode.assigner') : The type of profile https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference cannot be checked as the profile is not known
  Warning @ StructureDefinition.differential.element.where(path = 'Observation.subject') : The type of profile https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference cannot be checked as the profile is not known

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:47):

It looks like you're not importing all dependencies. You also need https://simplifier.net/packages/de.medizininformatikinitiative.kerndatensatz.meta/1.0.0

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:49):

imported, but the issue with Error @ StructureDefinition.differential.element[25].constraint[0].source (line 260, col12) : Canonical URLs must be absolute URLs if they are not fragment references (Observation) still remains

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:50):

For which StructureDefinition?

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:50):

the ObservationLab

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:52):

Oh, yeah, that's an issue in the profile.

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:53):

should I skip importing it & open an issue on github/simplifier ?
really no idea what to do about it

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:53):

I created an issue here: https://simplifier.net/medizininformatikinitiative-modullabor/~issues/977

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:54):

thank you. added some more details

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:55):

If you need the profile now:

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:55):

Look for the constraint "mii-lab-1"

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:55):

the FHIR Path expression ?

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:56):

You would need to change the "source" element from "Observation" to "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab"

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:57):

works perfectly.
should I do the same in case I have more issues like that ?

view this post on Zulip Alexander Zautke (Aug 19 2020 at 08:57):

Please report them here so we can fix them, but yes. Thanks!

view this post on Zulip Gjergj Sheldija (Aug 19 2020 at 08:57):

will do, thank you very much


Last updated: Apr 12 2022 at 19:14 UTC