org.openmrs.reporting.export
Class DataExportFunctions

java.lang.Object
  extended by org.openmrs.reporting.export.DataExportFunctions

Deprecated. see reportingcompatibility module

@Deprecated
public class DataExportFunctions
extends java.lang.Object


Field Summary
protected  java.util.Calendar calendar
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>> cohortMap
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>>> conceptAttrObsMap
          Deprecated.  
protected  java.util.Map<java.lang.String,Concept> conceptNameMap
          Deprecated.  
protected  ConceptService conceptService
          Deprecated.  
 java.util.Date currentDate
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<DrugOrder>>> currentDrugOrderMap
          Deprecated.  
protected  java.text.DateFormat dateFormatLong
          Deprecated.  
protected  java.text.DateFormat dateFormatShort
          Deprecated.  
protected  java.text.DateFormat dateFormatYmd
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<DrugOrder>>> drugOrderMap
          Deprecated.  
protected  EncounterService encounterService
          Deprecated.  
protected  java.util.Map<java.lang.String,java.text.DateFormat> formats
          Deprecated.  
protected  boolean isAllPatients
          Deprecated.  
protected  java.util.Locale locale
          Deprecated.  
 org.apache.commons.logging.Log log
          Deprecated.  
protected  Patient patient
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.Object>> patientAttributeMap
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,?>> patientEncounterMap
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,?>> patientFirstEncounterMap
          Deprecated.  
protected  java.lang.Integer patientId
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,PatientIdentifier>> patientIdentifierMap
          Deprecated.  
protected  PatientService patientService
          Deprecated.  
protected  Cohort patientSet
          Deprecated.  
protected  PatientSetService patientSetService
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.Object>> personAttributeMap
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,PatientProgram>> programMap
          Deprecated.  
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<Relationship>>> relationshipMap
          Deprecated.  
protected  java.lang.String separator
          Deprecated.  
 
Constructor Summary
DataExportFunctions()
          Deprecated.  
DataExportFunctions(java.lang.Integer patientId)
          Deprecated.  
DataExportFunctions(Patient p)
          Deprecated.  
 
Method Summary
 int calculateAge(java.util.Date birthdate)
          Deprecated. Get the person's birthdate as of today
 int calculateYearsBetween(java.util.Date fromDate, java.util.Date toDate)
          Deprecated. Calculate the years between two dates (age).
 void clear()
          Deprecated.  
protected  void finalize()
          Deprecated. Called when garbage collecting this class
 java.lang.String formatDate(java.lang.String type, java.util.Date d)
          Deprecated. Format the given date according to the type ('short', 'long', 'ymd')
protected  void garbageCollect()
          Deprecated. Call the system garbage collecter.
 java.util.Calendar getCalendarInstance()
          Deprecated. Get a calendar instance for use in velocity scripts.
 java.lang.String getCohortDefinitionMembership(java.lang.Integer filterId, java.lang.String valueIfTrue, java.lang.String valueIfFalse)
          Deprecated.  
protected  java.lang.Boolean getCohortHelper(java.lang.String key)
          Deprecated.  
 java.lang.String getCohortMembership(java.lang.Integer cohortId, java.lang.String valueIfTrue, java.lang.String valueIfFalse)
          Deprecated.  
 Concept getConcept(java.lang.String conceptName)
          Deprecated.  
 java.lang.String getCurrentDrugNames(java.lang.String drugSetName)
          Deprecated.  
 java.util.List<DrugOrder> getCurrentDrugOrders(java.lang.String drugSetName)
          Deprecated.  
 java.util.List<DrugOrder> getDrugOrders(java.lang.String drugSetName)
          Deprecated.  
 java.util.Date getEarliestDrugStart(java.lang.String drugSetName)
          Deprecated.  
 Encounter getFirstEncounter(java.lang.String encounterType)
          Deprecated.  
 java.lang.Object getFirstEncounterAttr(java.lang.Object typeArray, java.lang.String attr)
          Deprecated. Get an attribute (encounterDatetime, provider, etc) from the oldest encounter.
 java.util.List<java.util.List<java.lang.Object>> getFirstNObsWithValues(java.lang.Integer n, Concept concept, java.util.List<java.lang.String> attrs)
          Deprecated. Get the first occurrences of matching obs.concept out of the patient's encounters
 java.util.List<java.util.List<java.lang.Object>> getFirstNObsWithValues(java.lang.Integer n, java.lang.String conceptId, java.lang.Object attrs)
          Deprecated. Convenience method for other getFirstNObsWithValues method
 java.lang.Object getFirstObs(Concept concept)
          Deprecated. Get the first occurrence of matching obs.concept out of the patient's encounters
 java.lang.Object getFirstObs(java.lang.String conceptName)
          Deprecated. Get the first occurrence of matching obs.concept out of the patient's encounters
 java.util.List<java.lang.Object> getFirstObsWithValues(Concept concept, java.util.List<java.lang.String> attrs)
          Deprecated. Get the first occurence of matching obs.concept out of the patient's encounters
 java.util.List<java.lang.Object> getFirstObsWithValues(java.lang.String conceptName, java.lang.Object attrs)
          Deprecated. Get the first occurrence of matching obs.concept out of the patient's encounters
 Encounter getLastEncounter(java.lang.String encounterType)
          Deprecated.  
 java.lang.Object getLastEncounterAttr(java.lang.Object typeArray, java.lang.String attr)
          Deprecated. Get the attribute (encounterDatetime, provider, encounterType, etc) from the most recent encounter.
 java.util.List<java.lang.Object> getLastNObs(java.lang.Integer n, Concept concept)
          Deprecated. Gets Observations from the last encounter
 java.util.List<java.lang.Object> getLastNObs(java.lang.Integer n, java.lang.String conceptName)
          Deprecated. Gets the last n obs for conceptName
 java.util.List<java.util.List<java.lang.Object>> getLastNObsWithValues(java.lang.Integer n, Concept concept, java.util.List<java.lang.String> attrs)
          Deprecated. Gets the most recent observation value
 java.util.List<java.util.List<java.lang.Object>> getLastNObsWithValues(java.lang.Integer n, java.lang.String conceptId, java.lang.Object attrs)
          Deprecated.  
 java.lang.Object getLastObs(Concept concept)
          Deprecated. Get the most recent obs matching concept out of the patient's encounters
 java.lang.Object getLastObs(java.lang.String conceptName)
          Deprecated. Gets the most recent Observation matching this concept
 java.util.List<java.lang.Object> getLastObsWithValues(Concept concept, java.util.List<java.lang.String> attrs)
          Deprecated. Get the most recent obs matching concept out of the patient's encounters
 java.util.List<java.lang.Object> getLastObsWithValues(java.lang.String conceptName, java.lang.Object attrs)
          Deprecated. Gets the most recent Observation value matching this concept
 java.util.List<java.util.List<java.lang.Object>> getObsWithValues(Concept c, java.util.List<java.lang.String> attrs)
          Deprecated.  
 Patient getPatient()
          Deprecated.  
 java.lang.Object getPatientAttr(java.lang.String className, java.lang.String property)
          Deprecated. Retrieves properties on the patient like patient.patientName.familyName
 java.lang.Object getPatientAttr(java.lang.String className, java.lang.String property, boolean returnAll)
          Deprecated. Retrieves properties on the patient like patient.patientName.familyName
 java.lang.Integer getPatientId()
          Deprecated.  
 java.lang.Object getPatientIdentifier(java.lang.String typeName)
          Deprecated. Retrieves a patient identifier based on the given identifier type.
 java.lang.String getPatientSearchMembership(java.lang.Integer searchId, java.lang.String valueIfTrue, java.lang.String valueIfFalse)
          Deprecated.  
 Cohort getPatientSet()
          Deprecated.  
 Cohort getPatientSetIfNotAllPatients()
          Deprecated. Returns the patient set only if it is a subset of all patients.
 java.lang.Object getPersonAttribute(java.lang.String attributeName)
          Deprecated.  
 java.lang.Object getPersonAttribute(java.lang.String attributeName, java.lang.String joinClass, java.lang.String joinProperty, java.lang.String outputColumn, boolean returnAll)
          Deprecated.  
 PatientProgram getProgram(java.lang.String programIdOrName)
          Deprecated. Gets a patient program given a program ID or program name.
 java.lang.String getRelationshipIdentifiers(java.lang.String relationshipTypeName)
          Deprecated.  
 java.lang.String getRelationshipIds(java.lang.String relationshipTypeName)
          Deprecated.  
 java.lang.String getRelationshipNames(java.lang.String relationshipTypeName)
          Deprecated.  
 java.util.List<Relationship> getRelationships(java.lang.String relationshipTypeName)
          Deprecated.  
 java.lang.String getSeparator()
          Deprecated.  
 java.lang.String getValueAsString(java.lang.Object o)
          Deprecated.  
 java.lang.Integer hashCode(java.lang.Object o)
          Deprecated.  
 boolean isAllPatients()
          Deprecated.  
 boolean isValidCheckDigit(java.lang.String id)
          Deprecated. Check the given string against the check digit algorithm
 void setAllPatients(boolean isAllPatients)
          Deprecated.  
 void setPatient(Patient patient)
          Deprecated.  
 void setPatientId(java.lang.Integer patientId)
          Deprecated.  
 void setPatientSet(Cohort patientSet)
          Deprecated.  
 void setSeparator(java.lang.String separator)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public final org.apache.commons.logging.Log log
Deprecated. 

patientId

protected java.lang.Integer patientId
Deprecated. 

patient

protected Patient patient
Deprecated. 

patientSet

protected Cohort patientSet
Deprecated. 

isAllPatients

protected boolean isAllPatients
Deprecated. 

separator

protected java.lang.String separator
Deprecated. 

dateFormatLong

protected java.text.DateFormat dateFormatLong
Deprecated. 

dateFormatShort

protected java.text.DateFormat dateFormatShort
Deprecated. 

dateFormatYmd

protected java.text.DateFormat dateFormatYmd
Deprecated. 

formats

protected java.util.Map<java.lang.String,java.text.DateFormat> formats
Deprecated. 

currentDate

public java.util.Date currentDate
Deprecated. 

calendar

protected java.util.Calendar calendar
Deprecated. 

patientEncounterMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,?>> patientEncounterMap
Deprecated. 

patientIdentifierMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,PatientIdentifier>> patientIdentifierMap
Deprecated. 

patientFirstEncounterMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,?>> patientFirstEncounterMap
Deprecated. 

conceptNameMap

protected java.util.Map<java.lang.String,Concept> conceptNameMap
Deprecated. 

conceptAttrObsMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>>> conceptAttrObsMap
Deprecated. 

relationshipMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<Relationship>>> relationshipMap
Deprecated. 

programMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,PatientProgram>> programMap
Deprecated. 

drugOrderMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<DrugOrder>>> drugOrderMap
Deprecated. 

currentDrugOrderMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<DrugOrder>>> currentDrugOrderMap
Deprecated. 

patientAttributeMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.Object>> patientAttributeMap
Deprecated. 

personAttributeMap

protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.Object>> personAttributeMap
Deprecated. 

cohortMap

protected java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>> cohortMap
Deprecated. 

patientSetService

protected PatientSetService patientSetService
Deprecated. 

patientService

protected PatientService patientService
Deprecated. 

conceptService

protected ConceptService conceptService
Deprecated. 

encounterService

protected EncounterService encounterService
Deprecated. 

locale

protected java.util.Locale locale
Deprecated. 
Constructor Detail

DataExportFunctions

public DataExportFunctions(Patient p)
Deprecated. 

DataExportFunctions

public DataExportFunctions(java.lang.Integer patientId)
Deprecated. 

DataExportFunctions

public DataExportFunctions()
Deprecated. 
Method Detail

clear

public void clear()
Deprecated. 

finalize

protected void finalize()
                 throws java.lang.Throwable
Deprecated. 
Called when garbage collecting this class

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable
See Also:
Object.finalize()

getPatient

public Patient getPatient()
Deprecated. 
Returns:
Returns the patient.

setPatient

public void setPatient(Patient patient)
Deprecated. 
Parameters:
patient - The patient to set.

getPatientId

public java.lang.Integer getPatientId()
Deprecated. 

setPatientId

public void setPatientId(java.lang.Integer patientId)
Deprecated. 

garbageCollect

protected void garbageCollect()
Deprecated. 
Call the system garbage collecter. This method only calls every 500 patients


getPatientSet

public Cohort getPatientSet()
Deprecated. 
Returns:
Returns the patientSet.

setPatientSet

public void setPatientSet(Cohort patientSet)
Deprecated. 
Parameters:
patientSet - The patientSet to set.

isAllPatients

public boolean isAllPatients()
Deprecated. 
Returns:
the isAllPatients

setAllPatients

public void setAllPatients(boolean isAllPatients)
Deprecated. 
Parameters:
isAllPatients - the isAllPatients to set

getSeparator

public java.lang.String getSeparator()
Deprecated. 
Returns:
Returns the separator.

setSeparator

public void setSeparator(java.lang.String separator)
Deprecated. 
Parameters:
separator - The separator to set.

getCohortMembership

public java.lang.String getCohortMembership(java.lang.Integer cohortId,
                                            java.lang.String valueIfTrue,
                                            java.lang.String valueIfFalse)
Deprecated. 

getCohortDefinitionMembership

public java.lang.String getCohortDefinitionMembership(java.lang.Integer filterId,
                                                      java.lang.String valueIfTrue,
                                                      java.lang.String valueIfFalse)
Deprecated. 

getPatientSearchMembership

public java.lang.String getPatientSearchMembership(java.lang.Integer searchId,
                                                   java.lang.String valueIfTrue,
                                                   java.lang.String valueIfFalse)
Deprecated. 

getCohortHelper

protected java.lang.Boolean getCohortHelper(java.lang.String key)
Deprecated. 

getLastEncounter

public Encounter getLastEncounter(java.lang.String encounterType)
Deprecated. 
Parameters:
encounterType -
Returns:
Encounter last encounter of type encounterType

getLastEncounterAttr

public java.lang.Object getLastEncounterAttr(java.lang.Object typeArray,
                                             java.lang.String attr)
Deprecated. 
Get the attribute (encounterDatetime, provider, encounterType, etc) from the most recent encounter.

Parameters:
typeArray -
attr -
Returns:
the encounter attribute

getFirstEncounter

public Encounter getFirstEncounter(java.lang.String encounterType)
Deprecated. 
Parameters:
encounterType -
Returns:
Encounter first encounter of type encounterType

getFirstEncounterAttr

public java.lang.Object getFirstEncounterAttr(java.lang.Object typeArray,
                                              java.lang.String attr)
Deprecated. 
Get an attribute (encounterDatetime, provider, etc) from the oldest encounter.

Parameters:
typeArray -
attr -
Returns:
Object from the oldest encounter

getConcept

public Concept getConcept(java.lang.String conceptName)
                   throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

getObsWithValues

public java.util.List<java.util.List<java.lang.Object>> getObsWithValues(Concept c,
                                                                         java.util.List<java.lang.String> attrs)
Deprecated. 

getProgram

public PatientProgram getProgram(java.lang.String programIdOrName)
Deprecated. 
Gets a patient program given a program ID or program name.

Parameters:
programIdOrName - the identifier or name of the program
Returns:
PatientProgram by the program ID or name

getCurrentDrugOrders

public java.util.List<DrugOrder> getCurrentDrugOrders(java.lang.String drugSetName)
Deprecated. 

getCurrentDrugNames

public java.lang.String getCurrentDrugNames(java.lang.String drugSetName)
Deprecated. 

getDrugOrders

public java.util.List<DrugOrder> getDrugOrders(java.lang.String drugSetName)
Deprecated. 

getEarliestDrugStart

public java.util.Date getEarliestDrugStart(java.lang.String drugSetName)
Deprecated. 

getRelationships

public java.util.List<Relationship> getRelationships(java.lang.String relationshipTypeName)
Deprecated. 

getRelationshipNames

public java.lang.String getRelationshipNames(java.lang.String relationshipTypeName)
Deprecated. 

getRelationshipIds

public java.lang.String getRelationshipIds(java.lang.String relationshipTypeName)
Deprecated. 

getRelationshipIdentifiers

public java.lang.String getRelationshipIdentifiers(java.lang.String relationshipTypeName)
Deprecated. 

getPatientAttr

public java.lang.Object getPatientAttr(java.lang.String className,
                                       java.lang.String property)
Deprecated. 
Retrieves properties on the patient like patient.patientName.familyName

Parameters:
className -
property -
Returns:
Object the specified property of the patient

getPatientAttr

public java.lang.Object getPatientAttr(java.lang.String className,
                                       java.lang.String property,
                                       boolean returnAll)
Deprecated. 
Retrieves properties on the patient like patient.patientName.familyName

If returnAll is set, returns an array of every matching property for the patient instead of just the preferred one

Parameters:
className -
property -
returnAll -
Returns:
Object the specified property of the patient, or an array of all properties if returnAll is set to true

getPersonAttribute

public java.lang.Object getPersonAttribute(java.lang.String attributeName,
                                           java.lang.String joinClass,
                                           java.lang.String joinProperty,
                                           java.lang.String outputColumn,
                                           boolean returnAll)
Deprecated. 

getPersonAttribute

public java.lang.Object getPersonAttribute(java.lang.String attributeName)
Deprecated. 

getLastNObs

public java.util.List<java.lang.Object> getLastNObs(java.lang.Integer n,
                                                    java.lang.String conceptName)
                                             throws java.lang.Exception
Deprecated. 
Gets the last n obs for conceptName

Parameters:
n - max number of obs to return
conceptName -
Returns:
List of observations
Throws:
java.lang.Exception

getLastNObs

public java.util.List<java.lang.Object> getLastNObs(java.lang.Integer n,
                                                    Concept concept)
                                             throws java.lang.Exception
Deprecated. 
Gets Observations from the last encounter

Parameters:
n - max number of obs to return
concept -
Returns:
List of observations
Throws:
java.lang.Exception

getLastNObsWithValues

public java.util.List<java.util.List<java.lang.Object>> getLastNObsWithValues(java.lang.Integer n,
                                                                              java.lang.String conceptId,
                                                                              java.lang.Object attrs)
                                                                       throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

getLastNObsWithValues

public java.util.List<java.util.List<java.lang.Object>> getLastNObsWithValues(java.lang.Integer n,
                                                                              Concept concept,
                                                                              java.util.List<java.lang.String> attrs)
                                                                       throws java.lang.Exception
Deprecated. 
Gets the most recent observation value

Parameters:
n - max number of obs to return
concept -
attrs -
Returns:
List> of the n most recent observations (with their values)
Throws:
java.lang.Exception

getLastObs

public java.lang.Object getLastObs(java.lang.String conceptName)
                            throws java.lang.Exception
Deprecated. 
Gets the most recent Observation matching this concept

Parameters:
conceptName -
Returns:
Object the most recent observation that matches the concept name specified
Throws:
java.lang.Exception

getLastObsWithValues

public java.util.List<java.lang.Object> getLastObsWithValues(java.lang.String conceptName,
                                                             java.lang.Object attrs)
                                                      throws java.lang.Exception
Deprecated. 
Gets the most recent Observation value matching this concept

Parameters:
conceptName -
attrs - string array
Returns:
List of the most recent observation values
Throws:
java.lang.Exception

getLastObs

public java.lang.Object getLastObs(Concept concept)
                            throws java.lang.Exception
Deprecated. 
Get the most recent obs matching concept out of the patient's encounters

Parameters:
concept -
Returns:
the most recent Obs matching concept from the last encounter
Throws:
java.lang.Exception

getLastObsWithValues

public java.util.List<java.lang.Object> getLastObsWithValues(Concept concept,
                                                             java.util.List<java.lang.String> attrs)
                                                      throws java.lang.Exception
Deprecated. 
Get the most recent obs matching concept out of the patient's encounters

Parameters:
concept -
attrs - list of Strings like provider, encounterDatetime, etc
Returns:
List of the most recent observation values that matches the concept of the patient encounters
Throws:
java.lang.Exception

getFirstObs

public java.lang.Object getFirstObs(java.lang.String conceptName)
                             throws java.lang.Exception
Deprecated. 
Get the first occurrence of matching obs.concept out of the patient's encounters

Parameters:
conceptName -
Returns:
Object the first occurrence of the observation concept name of the patient's encounters
Throws:
java.lang.Exception

getFirstObs

public java.lang.Object getFirstObs(Concept concept)
                             throws java.lang.Exception
Deprecated. 
Get the first occurrence of matching obs.concept out of the patient's encounters

Parameters:
concept -
Returns:
Object
Throws:
java.lang.Exception

getFirstObsWithValues

public java.util.List<java.lang.Object> getFirstObsWithValues(java.lang.String conceptName,
                                                              java.lang.Object attrs)
                                                       throws java.lang.Exception
Deprecated. 
Get the first occurrence of matching obs.concept out of the patient's encounters

Parameters:
conceptName -
Returns:
List
Throws:
java.lang.Exception

getFirstObsWithValues

public java.util.List<java.lang.Object> getFirstObsWithValues(Concept concept,
                                                              java.util.List<java.lang.String> attrs)
                                                       throws java.lang.Exception
Deprecated. 
Get the first occurence of matching obs.concept out of the patient's encounters

Parameters:
concept -
attrs - the List of attributes to fetch
Returns:
List
Throws:
java.lang.Exception

getFirstNObsWithValues

public java.util.List<java.util.List<java.lang.Object>> getFirstNObsWithValues(java.lang.Integer n,
                                                                               Concept concept,
                                                                               java.util.List<java.lang.String> attrs)
                                                                        throws java.lang.Exception
Deprecated. 
Get the first occurrences of matching obs.concept out of the patient's encounters

Parameters:
concept - the Concept of the obs to fetch
n - number of obs to get
attrs - the Extra obs attributes to get along with this obs value
Returns:
List>
Throws:
java.lang.Exception

getFirstNObsWithValues

public java.util.List<java.util.List<java.lang.Object>> getFirstNObsWithValues(java.lang.Integer n,
                                                                               java.lang.String conceptId,
                                                                               java.lang.Object attrs)
                                                                        throws java.lang.Exception
Deprecated. 
Convenience method for other getFirstNObsWithValues method

Throws:
java.lang.Exception
See Also:
getFirstNObsWithValues(Integer, Concept, List)

getPatientIdentifier

public java.lang.Object getPatientIdentifier(java.lang.String typeName)
Deprecated. 
Retrieves a patient identifier based on the given identifier type.

Parameters:
typeName -
Returns:
the PatientIdentifier for the given typename

calculateYearsBetween

public int calculateYearsBetween(java.util.Date fromDate,
                                 java.util.Date toDate)
Deprecated. 
Calculate the years between two dates (age).

Parameters:
fromDate -
toDate -

calculateAge

public int calculateAge(java.util.Date birthdate)
Deprecated. 
Get the person's birthdate as of today

Parameters:
birthdate - the person's date of birth
Returns:
The calculated age

formatDate

public java.lang.String formatDate(java.lang.String type,
                                   java.util.Date d)
Deprecated. 
Format the given date according to the type ('short', 'long', 'ymd')

Parameters:
type - format to use
d - Date to format
Returns:
a String with the formatted date

getCalendarInstance

public java.util.Calendar getCalendarInstance()
Deprecated. 
Get a calendar instance for use in velocity scripts.

Returns:
calendar

isValidCheckDigit

public boolean isValidCheckDigit(java.lang.String id)
Deprecated. 
Check the given string against the check digit algorithm

Parameters:
id -
Returns:
true/false whether the string has a valid check digit

hashCode

public java.lang.Integer hashCode(java.lang.Object o)
Deprecated. 
Returns:
results of o.hashCode()

getValueAsString

public java.lang.String getValueAsString(java.lang.Object o)
Deprecated. 

getPatientSetIfNotAllPatients

public Cohort getPatientSetIfNotAllPatients()
Deprecated. 
Returns the patient set only if it is a subset of all patients. Returns null other wise

Returns:
PatientSet object with patients or null if it isn't needed

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change