private String conceptId() throws FHIRException { StringBuffer res = new StringBuffer(Utilities.padLeft("", ' ', 18)); int i = 0; while (peek() >= '0' && peek() <= '9') { res.setCharAt(i, next()); i++; } rule(i > 0, "Concept not found (next char = \""+peekDisp()+"\", in '"+source+"')"); return res.substring(0, i); }
private void fixed(char ch) throws FHIRException { boolean b = gchar(ch); rule(b, "Expected character \""+ch+"\" but found "+peek()); ws(); }
private Expression parse() throws FHIRException { Expression res = new Expression(); res.setStart(cursor); ws(); if (peek() == '=') { res.status = ExpressionStatus.Equivalent; prefix('='); } else if (peek() == '<') { res.status = ExpressionStatus.SubsumedBy; prefix('<'); } res.concepts.add(concept()); while (gchar('+')) res.concepts.add(concept()); if (gchar(':')) { ws(); refinements(res); } res.setStop(cursor); rule(cursor >= source.length(), "Found content (\""+peekDisp()+"\") after end of expression"); return res; }
private String conceptId() throws FHIRException { StringBuffer res = new StringBuffer(Utilities.padLeft("", ' ', 18)); int i = 0; while (peek() >= '0' && peek() <= '9') { res.setCharAt(i, next()); i++; } rule(i > 0, "Concept not found (next char = \""+peekDisp()+"\", in '"+source+"')"); return res.substring(0, i); }
private void fixed(char ch) throws FHIRException { boolean b = gchar(ch); rule(b, "Expected character \""+ch+"\" but found "+peek()); ws(); }
private Expression parse() throws FHIRException { Expression res = new Expression(); res.setStart(cursor); ws(); if (peek() == '=') { res.status = ExpressionStatus.Equivalent; prefix('='); } else if (peek() == '<') { res.status = ExpressionStatus.SubsumedBy; prefix('<'); } res.concepts.add(concept()); while (gchar('+')) res.concepts.add(concept()); if (gchar(':')) { ws(); refinements(res); } res.setStop(cursor); rule(cursor >= source.length(), "Found content (\""+peekDisp()+"\") after end of expression"); return res; }