se.cambio.cds.util
Class DVUtil

Package class diagram package DVUtil
java.lang.Object
  extended by se.cambio.cds.util.DVUtil

public class DVUtil
extends Object


Constructor Summary
DVUtil()
           
 
Method Summary
static int compareDVs(org.openehr.rm.datatypes.basic.DataValue dv1, org.openehr.rm.datatypes.basic.DataValue dv2)
           
static boolean compatibleComparison(org.openehr.rm.datatypes.basic.DataValue dv1, org.openehr.rm.datatypes.basic.DataValue dv2)
           
static ConstantExpression convertToExpression(org.openehr.rm.datatypes.basic.DataValue dv)
           
static org.openehr.rm.datatypes.basic.DvBoolean create(org.openehr.rm.datatypes.basic.DvBoolean dvBoolean, String attributeName, Object value)
           
static org.openehr.rm.datatypes.text.DvCodedText create(org.openehr.rm.datatypes.text.DvCodedText dvCodedText, String expressi, String attributeName, Object value)
           
static org.openehr.rm.datatypes.quantity.DvCount create(org.openehr.rm.datatypes.quantity.DvCount dvCount, String attributeName, Object value)
           
static org.openehr.rm.datatypes.quantity.datetime.DvDate create(org.openehr.rm.datatypes.quantity.datetime.DvDate dvDate, String attributeName, Object value)
           
static org.openehr.rm.datatypes.quantity.datetime.DvDateTime create(org.openehr.rm.datatypes.quantity.datetime.DvDateTime dvDateTime, String attributeName, Object value)
           
static org.openehr.rm.datatypes.quantity.datetime.DvDuration create(org.openehr.rm.datatypes.quantity.datetime.DvDuration dvDuration, String attributeName, Object value)
           
static org.openehr.rm.datatypes.quantity.DvOrdinal create(org.openehr.rm.datatypes.quantity.DvOrdinal dvOrdinal, String attributeName, Object value)
           
static org.openehr.rm.datatypes.quantity.DvQuantity create(org.openehr.rm.datatypes.quantity.DvQuantity dvQuantity, String attributeName, Object value)
           
static org.openehr.rm.datatypes.text.DvText create(org.openehr.rm.datatypes.text.DvText dvText, String attributeName, Object value)
           
static org.openehr.rm.datatypes.quantity.datetime.DvTime create(org.openehr.rm.datatypes.quantity.datetime.DvTime dvTime, String attributeName, Object value)
           
static org.openehr.rm.datatypes.basic.DataValue createDV(org.openehr.rm.datatypes.basic.DataValue dataValue, String attributeName, Object value)
           
static org.openehr.rm.datatypes.basic.DataValue createDV(ElementInstance elementInstance, String rmName, String attributeName, Object value)
           
static boolean equalDVs(org.openehr.rm.datatypes.basic.DataValue dv1, org.openehr.rm.datatypes.basic.DataValue dv2)
           
static org.openehr.rm.datatypes.basic.DataValue getDummyDV(String rmName)
           
static double round(double unroundedDouble, int precision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DVUtil

public DVUtil()
Method Detail

createDV

public static org.openehr.rm.datatypes.basic.DataValue createDV(ElementInstance elementInstance,
                                                                String rmName,
                                                                String attributeName,
                                                                Object value)
                                                         throws InternalErrorException
Throws:
InternalErrorException

createDV

public static org.openehr.rm.datatypes.basic.DataValue createDV(org.openehr.rm.datatypes.basic.DataValue dataValue,
                                                                String attributeName,
                                                                Object value)
                                                         throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.quantity.DvQuantity create(org.openehr.rm.datatypes.quantity.DvQuantity dvQuantity,
                                                                  String attributeName,
                                                                  Object value)
                                                           throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.quantity.datetime.DvDuration create(org.openehr.rm.datatypes.quantity.datetime.DvDuration dvDuration,
                                                                           String attributeName,
                                                                           Object value)
                                                                    throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.quantity.datetime.DvDateTime create(org.openehr.rm.datatypes.quantity.datetime.DvDateTime dvDateTime,
                                                                           String attributeName,
                                                                           Object value)
                                                                    throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.quantity.datetime.DvDate create(org.openehr.rm.datatypes.quantity.datetime.DvDate dvDate,
                                                                       String attributeName,
                                                                       Object value)
                                                                throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.quantity.DvCount create(org.openehr.rm.datatypes.quantity.DvCount dvCount,
                                                               String attributeName,
                                                               Object value)
                                                        throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.text.DvCodedText create(org.openehr.rm.datatypes.text.DvCodedText dvCodedText,
                                                               String expressi,
                                                               String attributeName,
                                                               Object value)
                                                        throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.text.DvText create(org.openehr.rm.datatypes.text.DvText dvText,
                                                          String attributeName,
                                                          Object value)
                                                   throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.quantity.DvOrdinal create(org.openehr.rm.datatypes.quantity.DvOrdinal dvOrdinal,
                                                                 String attributeName,
                                                                 Object value)
                                                          throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.quantity.datetime.DvTime create(org.openehr.rm.datatypes.quantity.datetime.DvTime dvTime,
                                                                       String attributeName,
                                                                       Object value)
                                                                throws InternalErrorException
Throws:
InternalErrorException

create

public static org.openehr.rm.datatypes.basic.DvBoolean create(org.openehr.rm.datatypes.basic.DvBoolean dvBoolean,
                                                              String attributeName,
                                                              Object value)
                                                       throws InternalErrorException
Throws:
InternalErrorException

equalDVs

public static boolean equalDVs(org.openehr.rm.datatypes.basic.DataValue dv1,
                               org.openehr.rm.datatypes.basic.DataValue dv2)

compareDVs

public static int compareDVs(org.openehr.rm.datatypes.basic.DataValue dv1,
                             org.openehr.rm.datatypes.basic.DataValue dv2)

compatibleComparison

public static boolean compatibleComparison(org.openehr.rm.datatypes.basic.DataValue dv1,
                                           org.openehr.rm.datatypes.basic.DataValue dv2)

getDummyDV

public static org.openehr.rm.datatypes.basic.DataValue getDummyDV(String rmName)

round

public static double round(double unroundedDouble,
                           int precision)

convertToExpression

public static ConstantExpression convertToExpression(org.openehr.rm.datatypes.basic.DataValue dv)


Copyright © 2013 Cambio. All Rights Reserved.