FHIR Chat · IGPub Error: Can't resolve logical model types · IG creation

Stream: IG creation

Topic: IGPub Error: Can't resolve logical model types


view this post on Zulip Chris Moesel (Mar 25 2018 at 21:43):

We are including logical models in our IG. When we run the IG publisher, we get a bunch of similar errors that I think happen when an element declare's a logical model's URL as its type.code. For example, if we have a logical model that declares an element's type like this:

"type": [
  {
    "code": "http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-StageSuffix-model"
  }
 ],

Then we get an error like this in the IG Publisher qa.html:

Path: http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-StageSuffix-model
Severity: Error
Message: The reference http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-StageSuffix-model could not be resolved

If we instead declare the type as a reference, e.g.:

"type": [
  {
    "code": "Reference",
    "targetProfile": "http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-StageSuffix-model"
  }
 ],

... then the publisher does not produce an error.

But... we don't want a reference, so we really need to declare the logical model URL as the type.code.

view this post on Zulip Chris Moesel (Mar 25 2018 at 22:09):

BTW -- please let me know if I should be putting these in GForge instead (or in addition).

view this post on Zulip Grahame Grieve (Mar 26 2018 at 06:23):

hmm how can I reproduce this?

view this post on Zulip Grahame Grieve (Mar 26 2018 at 06:23):

I think it's better to describe things here. We can discuss them and turn them into tasks when it's clear exactly what the task shoud be

view this post on Zulip Chris Moesel (Mar 27 2018 at 01:22):

As for reproducing... my IG reproduces it lots of times: http://build.fhir.org/ig/HL7/us-breastcancer/qa.html

One example is http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-StageSuffix-model. It is used in two models, each of which specifies it as the code.type of a stageSuffix element:

  • http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-BreastCancerNCategory-model (here)
  • http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-BreastCancerTCategory-model(here)

As noted above, the result is:

Path: http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-StageSuffix-model
Severity: Error
Message: The reference http://hl7.org/fhir/us/breastcancer/StructureDefinition/oncology-StageSuffix-model could not be resolved

view this post on Zulip Chris Moesel (Mar 27 2018 at 01:23):

My IG source is here: https://github.com/HL7/us-breastcancer

Or if you have your own favorite IG that has logical models, add an element to one of them that specifies another logic model as the code.type (not a reference). That should do it.

view this post on Zulip Grahame Grieve (Mar 27 2018 at 01:38):

ok, well, make a task for this one. I'll try to get to it in the nexts 48 hours

view this post on Zulip Chris Moesel (Mar 27 2018 at 01:46):

Is there anything I can do to make it easier on you? I know you have a lot on your plate.

view this post on Zulip Chris Moesel (Mar 27 2018 at 02:14):

Task URL: https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=15830

view this post on Zulip Grahame Grieve (Mar 27 2018 at 12:22):

setting up the case. But I've set it up now

view this post on Zulip Chris Moesel (Mar 27 2018 at 12:59):

Awesome. Thank you!

view this post on Zulip Grahame Grieve (Mar 27 2018 at 13:15):

so I think I found and fixed it but I don't have time to check - got to sleep. Committed so you can look at it. I'll be back in 6 hours

view this post on Zulip Chris Moesel (Mar 27 2018 at 13:18):

I'll check it out. Rest well!

view this post on Zulip Chris Moesel (Mar 27 2018 at 15:12):

FYI -- the last two FHIR builds have failed due to an issue with bintray.com, so I'm not currently able to test this (and suspect I'd run into the same issue if trying to build locally).

view this post on Zulip Chris Moesel (Mar 27 2018 at 19:13):

We've just got a successful run of the FHIR build and I followed that up with a run of our IG. I'm glad to report that your fix worked! I no longer see the errors about resolving the logical model URLs! Thank you!

view this post on Zulip Grahame Grieve (Mar 27 2018 at 19:16):

great


Last updated: Apr 12 2022 at 19:14 UTC