throw new Error("Cannot determine type implicitly because there is no single input variable"); } else { tn = getParamStringNoNull(vars, tgt.getParameter().get(0), tgt.toString()); ExpressionNode expr = (ExpressionNode) tgt.getUserData(MAP_EXPRESSION); if (expr == null) { expr = fpe.parse(getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString())); tgt.setUserData(MAP_WHERE_EXPRESSION, expr); String len = getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString()); if (Utilities.isInteger(len)) { int l = Integer.parseInt(len); case CC: CodeableConcept cc = new CodeableConcept(); cc.addCoding(buildCoding(getParamStringNoNull(vars, tgt.getParameter().get(0), tgt.toString()), getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString()))); return cc; case C: Coding c = buildCoding(getParamStringNoNull(vars, tgt.getParameter().get(0), tgt.toString()), getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString())); return c; default: throw new FHIRException("Exception executing transform "+tgt.toString()+" on Rule \""+ruleId+"\": "+e.getMessage(), e);
throw new Error("Cannot determine type implicitly because there is no single input variable"); } else { tn = getParamStringNoNull(vars, tgt.getParameter().get(0), tgt.toString()); ExpressionNode expr = (ExpressionNode) tgt.getUserData(MAP_EXPRESSION); if (expr == null) { expr = fpe.parse(getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString())); tgt.setUserData(MAP_WHERE_EXPRESSION, expr); String len = getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString()); if (Utilities.isInteger(len)) { int l = Integer.parseInt(len); case CC: CodeableConcept cc = new CodeableConcept(); cc.addCoding(buildCoding(getParamStringNoNull(vars, tgt.getParameter().get(0), tgt.toString()), getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString()))); return cc; case C: Coding c = buildCoding(getParamStringNoNull(vars, tgt.getParameter().get(0), tgt.toString()), getParamStringNoNull(vars, tgt.getParameter().get(1), tgt.toString())); return c; default: throw new FHIRException("Exception executing transform "+tgt.toString()+" on Rule \""+ruleId+"\": "+e.getMessage(), e);