Package org.ehrbase.aql.sql
Class PathResolver
- java.lang.Object
-
- org.ehrbase.aql.sql.PathResolver
-
public class PathResolver extends Object
Resolve the path corresponding to a symbol in a given contextPath are resolved at runtime by performing a query on the CONTAINMENT table. For example to resolve the path of contained archetype 'openEHR_EHR_OBSERVATION_laboratory_test_v0' in composition 'openEHR_EHR_COMPOSITION_report_result_v1', the following query is executed
The found path is for example:select "ehr"."containment"."path" from "ehr"."containment" where ( "ehr"."containment"."comp_id" = 'b97e9fde-d994-4874-b671-8b1cd81b811c' and (label ~ 'openEHR_EHR_COMPOSITION_report_result_v1.*.openEHR_EHR_OBSERVATION_laboratory_test_v0') )/content[openEHR-EHR-OBSERVATION.laboratory_test.v0 and name/value='Laboratory test']it is used then to build the actual path to a datavalue Created by christian on 5/3/2016.
-
-
Constructor Summary
Constructors Constructor Description PathResolver(org.jooq.DSLContext context, IdentifierMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassNameOf(String identifier)IdentifierMappergetMapper()booleanhasPathExpression()StringpathOf(String identifier)voidresolvePaths(String templateId, UUID comp_id)resolve all the paths in the current containment mapper for a compositionStringrootOf(String identifier)
-
-
-
Constructor Detail
-
PathResolver
public PathResolver(org.jooq.DSLContext context, IdentifierMapper mapper)
-
-
Method Detail
-
resolvePaths
public void resolvePaths(String templateId, UUID comp_id)
resolve all the paths in the current containment mapper for a composition- Parameters:
comp_id-
-
hasPathExpression
public boolean hasPathExpression()
-
getMapper
public IdentifierMapper getMapper()
-
-