FHIR Chat · Unable to provide support for code system... · IG creation

Stream: IG creation

Topic: Unable to provide support for code system...


view this post on Zulip Chris Moesel (Aug 15 2018 at 16:56):

Some value sets in our IG aren't properly listing codes when the codes come from a CodeSystem also defined in the same IG. For example:

In the "Expansion" part of the VS page, it reports:

Error unmarshalling resource: Unable to provide support for code system http://hl7.org/fhir/us/breastcancer/CodeSystem/shr-oncology-BreastSpecimenTypeCS

Note that on the code system page, however, it properly identifies the value set as referencing it.

Here are the value set compose rules (also here):

  "compose": {
    "include": [
      {
        "system": "http://snomed.info/sct",
        "concept": [
          {
            "code": "119295008",
            "display": "Specimen obtained by aspiration (specimen)"
          },
          {
            "code": "16215491000119108",
            "display": "Specimen from breast duct obtained by excision (specimen)"
          },
          {
            "code": "122595009",
            "display": "Specimen from breast obtained by total mastectomy (specimen)"
          }
        ]
      },
      {
        "system": "http://hl7.org/fhir/us/breastcancer/CodeSystem/shr-oncology-BreastSpecimenTypeCS",
        "concept": [
          {
            "code": "core",
            "display": "Core biopsy specimen"
          },
          {
            "code": "excision",
            "display": "Excision specimen without wire loc"
          },
          {
            "code": "wire",
            "display": "Excision specimen with wire loc"
          }
        ]
      }
    ]
  }

view this post on Zulip Sarah Gaunt (Aug 15 2018 at 20:28):

I was getting that also last night - ended up also adding the expansion - that's the only way I could get rid of that error last night.... When I just had the compose it gave same error about unmarshalling... I figured it was a bit of a hack, but it got rid of my errors!

<compose>
    <include>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <concept>
        <code value="RRVS20" />
        <display value="eICR was processed - with a warning" />
      </concept>
    </include>
    <include>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <concept>
        <code value="RRVS19" />
        <display value="eICR processed" />
      </concept>
    </include>
    <include>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <concept>
        <code value="RRVS22" />
        <display value="eICR was not processed - error" />
      </concept>
    </include>
    <include>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <concept>
        <code value="RRVS21" />
        <display value="eICR was processed - with a severe warning" />
      </concept>
    </include>
  </compose>
  <expansion>
    <identifier value="http://hl7.org/fhir/us/ecr/ValueSet/eicr-processing-status-ecr" />
    <timestamp value="2017-12-27" />
    <contains>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <code value="RRVS20" />
      <display value="eICR was processed - with a warning" />
    </contains>
    <contains>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <code value="RRVS19" />
      <display value="eICR processed" />
    </contains>
    <contains>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <code value="RRVS22" />
      <display value="eICR was not processed - error" />
    </contains>
    <contains>
      <system value="urn:oid:2.16.840.1.114222.4.5.274" />
      <code value="RRVS21" />
      <display value="eICR was processed - with a severe warning" />
    </contains>
  </expansion>

view this post on Zulip Sarah Gaunt (Aug 15 2018 at 20:32):

I originally had defined the codesystem resource for that one I have referenced above, but it was causing problems in other places also (like I had given it a non-oid identifier and using that non-oid identifier in examples caused an error), so I ended up deleting it and going with the oid.... (Again, probably a hack, but no errors (and running out of time!)...)

view this post on Zulip Grahame Grieve (Aug 15 2018 at 23:10):

what was the error?

view this post on Zulip Sarah Gaunt (Aug 15 2018 at 23:25):

Error unmarshalling resource: Unable to provide support for code system xxxx

view this post on Zulip Sarah Gaunt (Aug 15 2018 at 23:25):

In the examples though - I can't remember. Something similar - will test again and let you know.

view this post on Zulip Sarah Gaunt (Aug 15 2018 at 23:41):

Pretty sure it was just: Invalid FHIR Code System http://hl7.org/fhir/us/ecr/CodeSystem/ph-phinvs-cdc - even though the codeSystem existed (as a resource in the IG and the publisher published it etc.). I'd have to resurrect the codeSystem from my archive to find out for sure though. If i get some spare time after lunch, I'll give it a go.

view this post on Zulip Grahame Grieve (Aug 16 2018 at 00:02):

so I've fixed this, but you don't have the cache files committed to git - why not? (it means I can't remove the entry from your cache)

view this post on Zulip Grahame Grieve (Aug 16 2018 at 00:03):

that least was for @Chris Moesel

view this post on Zulip Sarah Gaunt (Aug 16 2018 at 00:03):

Because I totally removed that codeSystem

view this post on Zulip Sarah Gaunt (Aug 16 2018 at 00:03):

Oh ok

view this post on Zulip Grahame Grieve (Aug 16 2018 at 00:04):

@Sarah Gaunt I fixed a problem with the expansion - if the expand referred to content that the ig publisher doesn't know, it would ask the terminology server to do the expand, and the server doesn't know the IG specific stuff. So that's sorted

view this post on Zulip Grahame Grieve (Aug 16 2018 at 00:04):

but changing to an oid is only related to this if you basically broke the value set inclusions while youwere at it

view this post on Zulip Sarah Gaunt (Aug 16 2018 at 00:05):

Ok, I'll have a play with it later...

view this post on Zulip Chris Moesel (Aug 16 2018 at 02:59):

@Grahame Grieve -- we can probably check in the cache if you'd like. Since we generate the whole IG from our tooling every time, the cache gets blown away when we regenerate. I've got it on my list to try to find a way to handle that better in the future, but I can do a bit more of a manual process for now so the cache gets checked in.

view this post on Zulip Grahame Grieve (Aug 16 2018 at 03:19):

well, keeping the cache will make a real difference to your performance and reduce the load on tx.fhir.org

view this post on Zulip Chris Moesel (Aug 16 2018 at 05:41):

Confirmed fixed on my end. Thank you!


Last updated: Apr 12 2022 at 19:14 UTC