FHIR Chat · Can't validate SNOMED CT codes · implementers

Stream: implementers

Topic: Can't validate SNOMED CT codes


view this post on Zulip Piotr Sokoliński (Oct 12 2021 at 15:33):

I have a problem with posting some resources to the FHIR Smile server. I am having trouble with validating SNOMED CT codes on the FHIR Smile server. For instance, let's use AllergyIntolerance. I couldn't validate my own resource, so I tried with an example AllergyIntolerance resource from FHIR documentation (https://www.hl7.org/fhir/allergyintolerance-example.json.html). When I try to post it on the FHIR Smile server I got such a response:

{
  "message": {
    "response": {
      "status": 422,
      "data": {
        "resourceType": "OperationOutcome",
        "issue": [
          {
            "severity": "error",
            "code": "processing",
            "diagnostics": "Unknown code {http://snomed.info/sct}227493005 for 'http://snomed.info/sct#227493005'",
            "location": [
              "AllergyIntolerance.code.coding[0]",
              "Line 1, Col 514"
            ]
          },
          {
            "severity": "error",
            "code": "processing",
            "diagnostics": "Unknown code {http://snomed.info/sct}39579001 for 'http://snomed.info/sct#39579001'",
            "location": [
              "AllergyIntolerance.reaction[0].manifestation[0].coding[0]",
              "Line 1, Col 1149"
            ]
          },
          {
            "severity": "error",
            "code": "processing",
            "diagnostics": "Unknown code {http://snomed.info/sct}34206005 for 'http://snomed.info/sct#34206005'",
            "location": [
              "AllergyIntolerance.reaction[0].exposureRoute.coding[0]",
              "Line 1, Col 1417"
            ]
          },
          {
            "severity": "error",
            "code": "processing",
            "diagnostics": "Unknown code {http://snomed.info/sct}64305001 for 'http://snomed.info/sct#64305001'",
            "location": [
              "AllergyIntolerance.reaction[1].manifestation[0].coding[0]",
              "Line 1, Col 1534"
            ]
          }
        ]
      }
    },
    "config": {
      "method": "post",
      "url": "https://api.dev.zusapi.com/fhir/AllergyIntolerance",
      "headers": {}
    }
  },
  "level": "error"
}

All errors concern SNOMED CT codes.
Second example:
Condition resource. severity in the Condition resource should be one of these codes (https://www.hl7.org/fhir/valueset-condition-severity.html), these are SNOMED CT codes, but when I try to post a Condition resource with

"severity": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "24484000",
        "display": "Severe"
      }
    ],
    "text": "Severe"
}

I got an error:

{
            "severity": "error",
            "code": "processing",
            "diagnostics": "Unknown code {http://snomed.info/sct}24484000 for 'http://snomed.info/sct#24484000'",
            "location": [
              "Condition.severity.coding[0]",
              "Line 1, Col 480"
            ]
}

even that code 24484000 is in the Condition/DiagnosisSeverity value set.
I am not sure why these codes fail. Moreover, I found an online validator of codes (https://ontoserver.csiro.au/docs/6/using-validation.html) and I still can't validate the codes from the AllergyIntolerance example or 24484000 code from Condition.severity. I do not have problems in validating, for example, LOINC codes. Why is that? Am I missing something? I would appreciate some help. Thank you in advance!

view this post on Zulip Lloyd McKenzie (Oct 12 2021 at 16:21):

@Rob Hausam

view this post on Zulip Rob Hausam (Oct 12 2021 at 19:11):

@Piotr Sokoliński Has SNOMED CT (some edition of it) been loaded on the Smile CDR server? If not, that's what I would do first. If enabled, there is built in terminology loading capability that you can use. If you prefer to keep the terminology on a separate server, you should be able to do that, too. Your validation seems to be expecting that the terminology is present on the server (that's how it looks to me, anyway).

view this post on Zulip Grahame Grieve (Oct 12 2021 at 19:29):

you might ask this on #hapi, and also, say whether your validation fails in validator.fhir.org

view this post on Zulip Brendan Keeler (Oct 13 2021 at 03:46):

What's weird is that LOINC doesn't fail in the same way despite also not being loaded

view this post on Zulip Piotr Sokoliński (Oct 13 2021 at 07:39):

@Rob Hausam I have a problem with this validator, I get 403 Forbidden when I try to validate a resource. Should I authenticate somehow in order to use it?

view this post on Zulip Grahame Grieve (Oct 13 2021 at 10:25):

@Mark Iantorno

view this post on Zulip Mark Iantorno (Oct 13 2021 at 12:20):

I am confused, you said you got a response above? Are you still getting a 403? Can you provide me with the exact steps to replicate? @Piotr Sokoliński

view this post on Zulip Piotr Sokoliński (Oct 13 2021 at 12:43):

@Mark Iantorno I am not able to get any kind of response from validator.fhir.org
validation-gif.gif
Nothing happens when I click validate, and as the response I get:
Screenshot-2021-10-13-at-14.43.27.png

view this post on Zulip Mark Iantorno (Oct 13 2021 at 12:54):

well, that's no good

view this post on Zulip Piotr Sokoliński (Oct 13 2021 at 14:42):

It should be working, I guess?


Last updated: Apr 12 2022 at 19:14 UTC