private List<Base> funcConformsTo(ExecutionContext context, List<Base> focus, ExpressionNode exp) throws FHIRException { if (hostServices == null) throw new FHIRException("Unable to check conformsTo - no hostservices provided"); List<Base> result = new ArrayList<Base>(); if (focus.size() != 1) result.add(new BooleanType(false).noExtensions()); else { String url = convertToString(execute(context, focus, exp.getParameters().get(0), true)); result.add(new BooleanType(hostServices.conformsToProfile(context.appInfo, focus.get(0), url)).noExtensions()); } return result; }
private List<Base> funcConformsTo(ExecutionContext context, List<Base> focus, ExpressionNode exp) throws FHIRException { if (hostServices == null) throw new FHIRException("Unable to check conformsTo - no hostservices provided"); List<Base> result = new ArrayList<Base>(); if (focus.size() != 1) result.add(new BooleanType(false).noExtensions()); else { String url = convertToString(execute(context, focus, exp.getParameters().get(0), true)); result.add(new BooleanType(hostServices.conformsToProfile(context.appInfo, focus.get(0), url)).noExtensions()); } return result; }