org.openmrs
Class PatientIdentifierType

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.BaseOpenmrsMetadata
          extended by org.openmrs.PatientIdentifierType
All Implemented Interfaces:
java.io.Serializable, Auditable, OpenmrsMetadata, OpenmrsObject, Retireable

public class PatientIdentifierType
extends BaseOpenmrsMetadata
implements java.io.Serializable

PatientIdentifierType

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
PatientIdentifierType()
          default constructor
PatientIdentifierType(java.lang.Integer patientIdentifierTypeId)
          constructor with id
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares two objects for similarity
 java.lang.Boolean getCheckDigit()
          Deprecated. No need to know if it has a check digit now that any validator algorithm can be chosen.
 java.lang.String getFormat()
           
 java.lang.String getFormatDescription()
           
 java.lang.Integer getId()
           
 java.lang.Integer getPatientIdentifierTypeId()
           
 java.lang.Boolean getRequired()
           
 java.lang.String getValidator()
           
 java.lang.Boolean hasCheckDigit()
          Deprecated. No need to know if it has a check digit now that any validator algorithm can be chosen.
 int hashCode()
           
 boolean hasValidator()
           
 void setCheckDigit(java.lang.Boolean checkDigit)
          Deprecated. No need for this field now that any validator algorithm can be chosen.
 void setFormat(java.lang.String format)
           
 void setFormatDescription(java.lang.String formatDescription)
           
 void setId(java.lang.Integer id)
           
 void setPatientIdentifierTypeId(java.lang.Integer patientIdentifierTypeId)
           
 void setRequired(java.lang.Boolean required)
           
 void setValidator(java.lang.String validator)
           
 java.lang.String toString()
          TODO: make this return a more debug-worth string instead of just the name.
 
Methods inherited from class org.openmrs.BaseOpenmrsMetadata
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

PatientIdentifierType

public PatientIdentifierType()
default constructor


PatientIdentifierType

public PatientIdentifierType(java.lang.Integer patientIdentifierTypeId)
constructor with id

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Compares two objects for similarity

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
boolean true/false whether or not they are the same objects

getFormatDescription

public java.lang.String getFormatDescription()
Returns:
Returns the formatDescription.

setFormatDescription

public void setFormatDescription(java.lang.String formatDescription)
Parameters:
formatDescription - The formatDescription to set.

getRequired

public java.lang.Boolean getRequired()
Returns:
Returns the required.

setRequired

public void setRequired(java.lang.Boolean required)
Parameters:
required - The required to set.

getFormat

public java.lang.String getFormat()
Returns:
Returns the format.

setFormat

public void setFormat(java.lang.String format)
Parameters:
format - The format to set.

getPatientIdentifierTypeId

public java.lang.Integer getPatientIdentifierTypeId()
Returns:
Returns the patientIdentifierTypeId.

setPatientIdentifierTypeId

public void setPatientIdentifierTypeId(java.lang.Integer patientIdentifierTypeId)
Parameters:
patientIdentifierTypeId - The patientIdentifierTypeId to set.

getCheckDigit

public java.lang.Boolean getCheckDigit()
Deprecated. No need to know if it has a check digit now that any validator algorithm can be chosen.

Returns:
Returns the checkdigit.

hasCheckDigit

public java.lang.Boolean hasCheckDigit()
Deprecated. No need to know if it has a check digit now that any validator algorithm can be chosen.

Returns:
Returns the checkdigit.

setCheckDigit

public void setCheckDigit(java.lang.Boolean checkDigit)
Deprecated. No need for this field now that any validator algorithm can be chosen.

Parameters:
checkDigit - The checkdigit to set.

getValidator

public java.lang.String getValidator()

setValidator

public void setValidator(java.lang.String validator)

hasValidator

public boolean hasValidator()
Returns:
Whether this identifier type has a validator.

toString

public java.lang.String toString()
TODO: make this return a more debug-worth string instead of just the name. Check the webapp to make sure it is not depending on this

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getId

public java.lang.Integer getId()
Specified by:
getId in interface OpenmrsObject
Returns:
id - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.getId()

setId

public void setId(java.lang.Integer id)
Specified by:
setId in interface OpenmrsObject
Parameters:
id - - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.setId(java.lang.Integer)

OpenMRS-1.7.x

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