FHIR Chat · NPE with patternCodeableConcept · IG creation

Stream: IG creation

Topic: NPE with patternCodeableConcept


view this post on Zulip Rick Geimer (Apr 19 2019 at 16:23):

@Grahame Grieve I'm getting an NPE when I use patternCodeableConcept in an extension.

Publishing Content Failed: null (34.0333sec)
(34.0333sec)
Use -? to get command line help (34.0333sec)
(34.0334sec)
Stack Dump (for debugging): (34.0334sec)
java.lang.NullPointerException
at org.hl7.fhir.r5.elementmodel.TurtleParser.urlescape(TurtleParser.java:363)
at org.hl7.fhir.r5.elementmodel.TurtleParser.decorateCoding(TurtleParser.java:514)
at org.hl7.fhir.r5.elementmodel.TurtleParser.composeElement(TurtleParser.java:393)
at org.hl7.fhir.r5.elementmodel.TurtleParser.composeElement(TurtleParser.java:422)

The relevant snippet is here:

<element id="Extension.value[x]">
<path value="Extension.value[x]"/>
<min value="1"/>
<type>
<code value="CodeableConcept"/>
</type>
<patternCodeableConcept>
<coding>
<system value="http://loinc.org"/>
</coding>
</patternCodeableConcept>
</element>

If I comment out patternCodeableConcept in the above XML it builds fine.

The IG in question is here, and the relevant extension is in source\resources\structuredefinition\cdex-payload-clinical-note-type.xml

https://github.com/HL7/davinci-ecdx

Currently patternCodeableConcept is commented out in github so that the IG builds.

view this post on Zulip Grahame Grieve (May 04 2019 at 09:33):

@Rick Geimer can I reproduce this?

view this post on Zulip Rick Geimer (May 04 2019 at 21:01):

@Grahame Grieve Find me sometime that you have 5 mins. I'll uncomment that part of the IG and commit so you can see the error, but will then need to revert it so the CDex track can keep moving.

view this post on Zulip Rick Geimer (May 04 2019 at 21:02):

I'll either be with the Public health track or the CDex/Attachments track, both of which are in the hall outside the main meeting room.

view this post on Zulip Grahame Grieve (May 04 2019 at 21:15):

well, maybe sometime this evening

view this post on Zulip Patrick Werner (May 04 2019 at 22:14):

also getting NPEs: GF#21279
These appear to come if:
- a given code isn't part of the CodeSystem
- for some SCT codes, e.g.: 733104004

view this post on Zulip Grahame Grieve (May 04 2019 at 23:10):

ok thx. Those are on my list to get to eventually


Last updated: Apr 12 2022 at 19:14 UTC