@Test public void shouldCacheTerminologyResolution() { ElementInstance ei = new ElementInstance("testId1", new DvCodedText("test0", "ICD10", "I489"), null, null, null); Map<ElementInstance, Map<String, Boolean>> bindingsMap = new HashMap<>(); DataValue dv1 = new DvCodedText("test1", "ICD10", "I48"); DataValue dv2 = new DvCodedText("test2", "ICD10", "B1"); DataValue dv3 = new DvCodedText("test3", "ICD10", "C1"); boolean subClassOf = DVUtil.isSubClassOf(false, ei, bindingsMap, "gt0001", dv1, dv2, dv3); assertTrue(subClassOf); Map<String, Boolean> map = bindingsMap.get(ei); assertEquals(1, map.size()); DataValue dvAux1 = new DvCodedText("test1", "ICD10", "I48"); DataValue dvAux2 = new DvCodedText("test2", "ICD10", "B1"); DataValue dvAux3 = new DvCodedText("test3", "ICD10", "C1"); subClassOf = DVUtil.isSubClassOf(false, ei, bindingsMap, "gt0001", dvAux1, dvAux2, dvAux3); assertTrue(subClassOf); map = bindingsMap.get(ei); assertEquals(1, map.size()); }
@Deprecated public static boolean isSubClassOf( boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues) { return isSubClassOf(inPredicate, ei, bindingsMap, null, dataValues); }
DVUtil { @Deprecated public static boolean isSubClassOf( boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues) { return isSubClassOf(inPredicate, ei, bindingsMap, null, dataValues); } }
DVUtil { @Deprecated public static boolean isSubClassOf( boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues) { return isSubClassOf(inPredicate, ei, bindingsMap, null, dataValues); }  }
DVUtil { @Deprecated public static boolean isSubClassOf( boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues) { return isSubClassOf(inPredicate, ei, bindingsMap, null, dataValues); }  static DataValue createDV(
            ElementInstance elementInstance, String rmName, String attributeName, Object value); static boolean equalDVs(DataValue dv1, DataValue dv2); static boolean equalDV(boolean inPredicate, ElementInstance ei, DataValue dv2, boolean negated); static boolean nullValueEquals(DvCodedText nullFlavour, Object obj); @Deprecated static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            DataValue... dataValues); static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            String bindReference, DataValue... dataValues); static boolean isSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); static boolean isSubClassOfCached(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            boolean negation, String bindReference, DataValue... dataValues); @Deprecated static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues); static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, String bindReference, DataValue... dataValues); static boolean isNotSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); @SuppressWarnings({"rawtypes", "unchecked"}) static int compareDVs(DataValue dv1, DataValue dv2); static boolean compatibleComparison(DataValue dv1, DataValue dv2); static double round(double unroundedDouble, int precision); static ConstantExpression convertToExpression(DataValue dv); static boolean checkMaxMin(DataValue originalDv, DataValue checkDv, String opSymbol, ArchetypeReference originalAr, ArchetypeReference checkAr); static Double calculateDuration(String value, Object operationValue, String symbol); static Double calculateDuration(String value, String symbol); static Long ucumToMilliseconds(DvQuantity quantity); }
DVUtil { @Deprecated public static boolean isSubClassOf( boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues) { return isSubClassOf(inPredicate, ei, bindingsMap, null, dataValues); }  static DataValue createDV(
            ElementInstance elementInstance, String rmName, String attributeName, Object value); static boolean equalDVs(DataValue dv1, DataValue dv2); static boolean equalDV(boolean inPredicate, ElementInstance ei, DataValue dv2, boolean negated); static boolean nullValueEquals(DvCodedText nullFlavour, Object obj); @Deprecated static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            DataValue... dataValues); static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            String bindReference, DataValue... dataValues); static boolean isSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); static boolean isSubClassOfCached(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            boolean negation, String bindReference, DataValue... dataValues); @Deprecated static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues); static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, String bindReference, DataValue... dataValues); static boolean isNotSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); @SuppressWarnings({"rawtypes", "unchecked"}) static int compareDVs(DataValue dv1, DataValue dv2); static boolean compatibleComparison(DataValue dv1, DataValue dv2); static double round(double unroundedDouble, int precision); static ConstantExpression convertToExpression(DataValue dv); static boolean checkMaxMin(DataValue originalDv, DataValue checkDv, String opSymbol, ArchetypeReference originalAr, ArchetypeReference checkAr); static Double calculateDuration(String value, Object operationValue, String symbol); static Double calculateDuration(String value, String symbol); static Long ucumToMilliseconds(DvQuantity quantity);  }