Class 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.
    • Constructor Detail

      • FHIRModelResolver

        public FHIRModelResolver()
    • Method Detail

      • getPackageName

        public String getPackageName()
        Specified by:
        getPackageName in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • setPackageName

        public void setPackageName​(String packageName)
        Specified by:
        setPackageName in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • resolvePath

        public Object resolvePath​(Object target,
                                  String path)
        Specified by:
        resolvePath in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • getContextPath

        public Object getContextPath​(String contextType,
                                     String targetType)
        Specified by:
        getContextPath in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • resolveType

        public Class<?> resolveType​(String typeName)
        Specified by:
        resolveType in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • resolveType

        public Class<?> resolveType​(Object value)
        Specified by:
        resolveType in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • is

        public Boolean is​(Object value,
                          Class<?> type)
        Specified by:
        is in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • as

        public Object as​(Object value,
                         Class<?> type,
                         boolean isStrict)
        Specified by:
        as in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • createInstance

        public Object createInstance​(String typeName)
        Specified by:
        createInstance in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • setValue

        public void setValue​(Object target,
                             String path,
                             Object value)
        Specified by:
        setValue in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • objectEqual

        public Boolean objectEqual​(Object left,
                                   Object right)
        Specified by:
        objectEqual in interface org.opencds.cqf.cql.engine.model.ModelResolver
      • objectEquivalent

        public Boolean objectEquivalent​(Object left,
                                        Object right)
        Specified by:
        objectEquivalent in interface org.opencds.cqf.cql.engine.model.ModelResolver