Stream: terminology
Topic: FHIR example validation using ATC coding system?
May Terry (May 18 2019 at 17:49):
Has anyone tried this? If so, can some attach an example or code snippet? I'm working on creating and validating examples for a drug formulary IG and am specifying the ATC coding system (http://www.whocc.no/atc) where the code is at the level of the therapeutic class and not the ingredient. e.g.: "valueCodeableConcept": { "coding": [ {"code": "N02AA", "display": "Barbituates and derivatives"}]}. When I try to validate this through the IG Publisher, I get a null pointer exception. Naturally, if I remove the coding system, the error disappears. I see this uri is supported in HL7 FHIR terminology systems list (https://www.hl7.org/fhir/terminologies-systems.html). Any thoughts or ideas on what to try? Thanks!
Lloyd McKenzie (May 18 2019 at 17:54):
Can you post the full null pointer message?
May Terry (May 18 2019 at 19:10):
"Error null validating Coding: java.lang.NullPointerException"
Lloyd McKenzie (May 18 2019 at 19:22):
And the stack trace associated with that?
Grahame Grieve (May 18 2019 at 21:50):
this is on my todo list, but a full sample would be useful
May Terry (May 19 2019 at 00:02):
@Grahame Grieve - see attached. FormularyDrugV1001.json This example has an extension with 2 drug classifications - the first one doesn't include system, the second one includes "system": "http://www.whocc.no/atc". @Lloyd McKenzie - sorry to ask a noob question but where would I find the stack trace output? I usually look at an error log in an output file called qa.html.
Lloyd McKenzie (May 19 2019 at 00:04):
If you were building your IG from the command line, what we want is all of the lines that describe the error.
May Terry (May 19 2019 at 00:13):
thanks. Attached is a capture of my command line and subsequent output. usdf_IG_output_20190518.txt also cc'ing @Chris Moesel in case there's any extra logging that I can run to help provide you with more info.
Lloyd McKenzie (May 19 2019 at 00:36):
Thanks. (For your knowledge, there wasn't actually a stack trace in the log
Grahame Grieve (May 20 2019 at 06:52):
so the validation works ok - can you clear the txcache for the IG and try again?
Grahame Grieve (May 20 2019 at 06:52):
if that's still a problem, can you share the source for the IG?
Last updated: Apr 12 2022 at 19:14 UTC