Package com.ibm.fhir.cql.engine.model
Class FHIRModelResolver
- java.lang.Object
-
- com.ibm.fhir.cql.engine.model.FHIRModelResolver
-
- All Implemented Interfaces:
org.opencds.cqf.cql.engine.model.ModelResolver
public class FHIRModelResolver extends Object implements org.opencds.cqf.cql.engine.model.ModelResolver
This is an implementation of the CQL Engine Model Resolver that supports model resolution for IBM FHIR Server model objects.
-
-
Field Summary
Fields Modifier and Type Field Description static String[]ALL_PACKAGESstatic StringBASE_PACKAGE_NAMEstatic StringCODE_PACKAGE_NAMEstatic StringRESOURCE_PACKAGE_NAMEstatic StringTYPE_PACKAGE_NAMEstatic PatternurlPattern
-
Constructor Summary
Constructors Constructor Description FHIRModelResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectas(Object value, Class<?> type, boolean isStrict)ObjectcreateInstance(String typeName)ObjectgetContextPath(String contextType, String targetType)StringgetPackageName()Booleanis(Object value, Class<?> type)BooleanobjectEqual(Object left, Object right)BooleanobjectEquivalent(Object left, Object right)protected ObjectpatchResult(String path, Object result)ObjectresolvePath(Object target, String path)Class<?>resolveType(Object value)Class<?>resolveType(String typeName)voidsetPackageName(String packageName)voidsetValue(Object target, String path, Object value)protected Objectunpack(FHIRPathNode node, String path)
-
-
-
Field Detail
-
BASE_PACKAGE_NAME
public static final String BASE_PACKAGE_NAME
- See Also:
- Constant Field Values
-
RESOURCE_PACKAGE_NAME
public static final String RESOURCE_PACKAGE_NAME
- See Also:
- Constant Field Values
-
TYPE_PACKAGE_NAME
public static final String TYPE_PACKAGE_NAME
- See Also:
- Constant Field Values
-
CODE_PACKAGE_NAME
public static final String CODE_PACKAGE_NAME
- See Also:
- Constant Field Values
-
ALL_PACKAGES
public static final String[] ALL_PACKAGES
-
urlPattern
public static final Pattern urlPattern
-
-
Method Detail
-
getPackageName
public String getPackageName()
- Specified by:
getPackageNamein interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
setPackageName
public void setPackageName(String packageName)
- Specified by:
setPackageNamein interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
resolvePath
public Object resolvePath(Object target, String path)
- Specified by:
resolvePathin interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
unpack
protected Object unpack(FHIRPathNode node, String path)
-
getContextPath
public Object getContextPath(String contextType, String targetType)
- Specified by:
getContextPathin interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
resolveType
public Class<?> resolveType(String typeName)
- Specified by:
resolveTypein interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
resolveType
public Class<?> resolveType(Object value)
- Specified by:
resolveTypein interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
is
public Boolean is(Object value, Class<?> type)
- Specified by:
isin interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
as
public Object as(Object value, Class<?> type, boolean isStrict)
- Specified by:
asin interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
createInstance
public Object createInstance(String typeName)
- Specified by:
createInstancein interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
setValue
public void setValue(Object target, String path, Object value)
- Specified by:
setValuein interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
objectEqual
public Boolean objectEqual(Object left, Object right)
- Specified by:
objectEqualin interfaceorg.opencds.cqf.cql.engine.model.ModelResolver
-
-