FHIR Chat · DSTU2 IG: Trouble Expanding Inline Value Sets · IG creation

Stream: IG creation

Topic: DSTU2 IG: Trouble Expanding Inline Value Sets


view this post on Zulip Chris Moesel (Nov 02 2018 at 23:56):

I get the errors like the following when defining DSTU2 ValueSets w/ inline code systems:

Path: shr-simple-InlineValueSetVS
Severity: error
Message: Error from server: Unable to provide support for code system http://simple.org/shr/simple/cs/InlineValueSetCS

This is an inline value set -- so it should be expanded using the inline definition (not the tx server). Here is an example of the valueset definition that causes this error. It's certainly possible that I am doing something wrong:

{
  "resourceType": "ValueSet",
  "id": "shr-simple-InlineValueSetVS",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<p><b>SIMPLE InlineValueSetVS ValueSet</b></p>\n<p></p>\n</div>"
  },
  "url": "http://simple.org/shr/simple/vs/InlineValueSetVS",
  "identifier": {
    "system": "http://simple.org",
    "value": "shr.simple.InlineValueSetVS"
  },
  "name": "SIMPLE InlineValueSetVS ValueSet",
  "status": "draft",
  "publisher": "Simple Publisher",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://example.com"
        }
      ]
    }
  ],
  "date": "2018-11-02",
  "codeSystem": {
    "system": "http://simple.org/shr/simple/cs/InlineValueSetCS",
    "caseSensitive": true,
    "concept": [
      {
        "code": "foo",
        "definition": "Foo Something",
        "display": "Foo Something"
      },
      {
        "code": "bar",
        "definition": "Bar Something Else",
        "display": "Bar Something Else"
      }
    ]
  }
}

Any suggestions are appreciated...DSTU2 IG: Trouble Expanding Inline Value Sets

view this post on Zulip Grahame Grieve (Nov 09 2018 at 06:43):

maybe I'm having problem with the version conversion? standard question... how to reproduce?

view this post on Zulip Chris Moesel (Nov 13 2018 at 18:24):

I'll try to get you something that reproduces it.

view this post on Zulip Chris Moesel (Nov 16 2018 at 22:03):

It turns out that this is (somewhat) reproducible in the tests/ig10 (DSTU2) IG in the main FHIR code base. More specifically, this is the value set with the inline codesystem: https://github.com/HL7/fhir/blob/master/tests/ig10/resources/test-ig-vs.xml

When you run the publisher on this IG, the QA reports the following error:
pasted image

And if you look at the resulting documentation, you can see that it failed to render the codes:
pasted image

view this post on Zulip Chris Moesel (Dec 14 2018 at 20:00):

Hi @Grahame Grieve -- I assume you haven't had time to look at this. Should I file an official issue for it in GForge?

view this post on Zulip Grahame Grieve (Dec 14 2018 at 20:16):

yes you should. I'll be working on IG tooling once R4 is done (a few hours now!)

view this post on Zulip Chris Moesel (Dec 14 2018 at 21:45):

Woah! Down to the final hours. Nice!

view this post on Zulip Lloyd McKenzie (Dec 15 2018 at 00:41):

Sort of. Final hours to the content being 'done'. Internal approval processes and publication will take another couple of weeks.

view this post on Zulip Chris Moesel (Dec 21 2018 at 16:23):

GForge: https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=19812

view this post on Zulip Chris Moesel (Apr 02 2019 at 21:05):

I've just noticed that a fix was applied for this issue (thanks!) -- but unfortunately, it does not fully address the problem. While we no longer get the access violation, there is still an error reported in the qa.html:
pasted image

In addition, the generated page for the value set has an error in the expansion section:
pasted image

Since this is an inline-defined code system within the value set, it seems it should not be going to the terminology server to resolve it. The definition of the code system (and full listing of the codes) is within the value set itself.

I've also updated the GForge issue with these comments (but no screenshots since it doesn't support it).

view this post on Zulip Grahame Grieve (Apr 02 2019 at 21:10):

I'll have a look


Last updated: Apr 12 2022 at 19:14 UTC