@Test public void testQryFragmentRaw() throws Exception { String query = "select " + " a/uid/value as uid," + " a/composer/name as author," + " a/context/start_time/value as date_created," + " a_b/data[at0001]/origin/value as sample_time," + " a_b/data[at0001]/events[at0002]/data[at0003]," + " a_a/items[at0002]/name/value as Laboratory_result_header," + " a_a/items[at0002]/items[at0001]/name/value as result_name," + " a_a/items[at0002]/items[at0001]/name/defining_code/code_string as result_name_code," + " a_a/items[at0002]/items[at0001]/name/defining_code/terminology_id/value as result_name_terminology," + " a_a/items[at0002]/items[at0001]/value/magnitude as result_magnitude," + " a_a/items[at0002]/items[at0001]/value/units as result_units," + " a_a/items[at0002]/items[at0001]/value/normal_range/lower/magnitude as normal_range_lower," + " a_a/items[at0002]/items[at0001]/value/normal_range/lower/units as normal_range_lower_units," + " a_a/items[at0002]/items[at0001]/value/normal_range/upper/magnitude as normal_range_upper," + " a_a/items[at0002]/items[at0001]/value/normal_range/upper/units as normal_range_upper_units," + " a_a/items[at0002]/items[at0001]/value/normal_range/lower_included as lower_included," + " a_a/items[at0002]/items[at0001]/value/normal_range/upper_included as upper_included, " + " a_a/items[at0002]/items[at0001]/value/normal_range/lower_unbounded as lower_unbounded," + " a_a/items[at0002]/items[at0001]/value/normal_range/upper_unbounded as upper_unbounded " + " from EHR e contains COMPOSITION a contains" + " OBSERVATION a_b[openEHR-EHR-OBSERVATION.laboratory_test.v0] contains" + " CLUSTER a_a[openEHR-EHR-CLUSTER.laboratory_test_panel.v0]"; records = queryEngine.perform(query); assertNotNull(records); assertFalse(records.isEmpty()); System.out.print(records); }
public List<Record> perform(String query, boolean explain) throws SQLException { QueryProcessor queryProcessor = new QueryProcessor(context, knowledgeCache, introspectCache); QueryParser queryParser = new QueryParser(context, query); queryParser.pass1(); queryParser.pass2(); List<Record> records = (List<Record>)queryProcessor.execute(queryParser, serverNodeId, explain); return records; }
QueryEngine extends TemplateMetaData { public List<Record> perform(String query, boolean explain) throws SQLException { QueryProcessor queryProcessor = new QueryProcessor(context, knowledgeCache, introspectCache); QueryParser queryParser = new QueryParser(context, query); queryParser.pass1(); queryParser.pass2(); List<Record> records = (List<Record>)queryProcessor.execute(queryParser, serverNodeId, explain); return records; } }
QueryEngine extends TemplateMetaData { public List<Record> perform(String query, boolean explain) throws SQLException { QueryProcessor queryProcessor = new QueryProcessor(context, knowledgeCache, introspectCache); QueryParser queryParser = new QueryParser(context, query); queryParser.pass1(); queryParser.pass2(); List<Record> records = (List<Record>)queryProcessor.execute(queryParser, serverNodeId, explain); return records; } QueryEngine(DSLContext context, String serverNodeId);  QueryEngine(DSLContext context, String serverNodeId, I_KnowledgeCache knowledgeCache);  QueryEngine(DSLContext context, String serverNodeId, I_KnowledgeCache knowledgeCache, I_IntrospectCache introspectCache); }
QueryEngine extends TemplateMetaData { public List<Record> perform(String query, boolean explain) throws SQLException { QueryProcessor queryProcessor = new QueryProcessor(context, knowledgeCache, introspectCache); QueryParser queryParser = new QueryParser(context, query); queryParser.pass1(); queryParser.pass2(); List<Record> records = (List<Record>)queryProcessor.execute(queryParser, serverNodeId, explain); return records; } QueryEngine(DSLContext context, String serverNodeId);  QueryEngine(DSLContext context, String serverNodeId, I_KnowledgeCache knowledgeCache);  QueryEngine(DSLContext context, String serverNodeId, I_KnowledgeCache knowledgeCache, I_IntrospectCache introspectCache); List<Record> perform(String query, boolean explain); List<Record> perform(String query); }
QueryEngine extends TemplateMetaData { public List<Record> perform(String query, boolean explain) throws SQLException { QueryProcessor queryProcessor = new QueryProcessor(context, knowledgeCache, introspectCache); QueryParser queryParser = new QueryParser(context, query); queryParser.pass1(); queryParser.pass2(); List<Record> records = (List<Record>)queryProcessor.execute(queryParser, serverNodeId, explain); return records; } QueryEngine(DSLContext context, String serverNodeId);  QueryEngine(DSLContext context, String serverNodeId, I_KnowledgeCache knowledgeCache);  QueryEngine(DSLContext context, String serverNodeId, I_KnowledgeCache knowledgeCache, I_IntrospectCache introspectCache); List<Record> perform(String query, boolean explain); List<Record> perform(String query);  }