Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some valid expressions are not parsable #2

Open
ScreamingTree86 opened this issue Aug 17, 2020 · 0 comments
Open

Some valid expressions are not parsable #2

ScreamingTree86 opened this issue Aug 17, 2020 · 0 comments

Comments

@ScreamingTree86
Copy link

ScreamingTree86 commented Aug 17, 2020

Hi,
i have some Problems with this library, i tried some of the examples from your website like: https://confluence.ihtsdotools.org/display/DOCSCG/6.5+Expression+With+Nested+Refinements

For example the expression
373873005 |Pharmaceutical / biologic product| : 411116001 |Has dose form| = ( 421720008 |Spray dose form| + 7946007 |Drug suspension| )
Leads to a nullpointer

java.lang.NullPointerException
at org.snomed.authoringtemplate.service.LogicalTemplateParserService$ExpressionTemplateListener.enterAttribute(LogicalTemplateParserService.java:108)
at org.snomed.authoringtemplate.service.generatedlogicalparser.ExpressionTemplateParser$AttributeContext.enterRule(ExpressionTemplateParser.java:1056)
at org.antlr.v4.runtime.tree.ParseTreeWalker.enterRule(ParseTreeWalker.java:66)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:49)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.snomed.authoringtemplate.service.LogicalTemplateParserService.doParseTemplate(LogicalTemplateParserService.java:53)
at org.snomed.authoringtemplate.service.LogicalTemplateParserService.parseTemplate(LogicalTemplateParserService.java:31)

Something like this
322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = "PANADOL"

Also leads to a nullpointer

java.lang.NullPointerException
at org.snomed.authoringtemplate.service.LogicalTemplateParserService$ExpressionTemplateListener.enterAttribute(LogicalTemplateParserService.java:107)
at org.snomed.authoringtemplate.service.generatedlogicalparser.ExpressionTemplateParser$AttributeContext.enterRule(ExpressionTemplateParser.java:1056)
at org.antlr.v4.runtime.tree.ParseTreeWalker.enterRule(ParseTreeWalker.java:66)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:49)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
at org.snomed.authoringtemplate.service.LogicalTemplateParserService.doParseTemplate(LogicalTemplateParserService.java:53)
at org.snomed.authoringtemplate.service.LogicalTemplateParserService.parseTemplate(LogicalTemplateParserService.java:31)

I use the Version 1.2.1 from your maven repo, 1.2.2 isnt already there but i also dont see major changes there.... The examples above working with the js variant at https://www.ihtsdo.org/SCT-etl.html. Am i missing something?

@ScreamingTree86 ScreamingTree86 changed the title Some Expressions are not parsable Some valid expressions are not parsable Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant