@Entity public class Condition extends BaseFormRecordableOpenmrsData
FORM_NAMESPACE_PATH_MAX_LENGTH, FORM_NAMESPACE_PATH_SEPARATOR, formNamespaceAndPath
creator
Constructor and Description |
---|
Condition() |
Condition(CodedOrFreeText condition,
ConditionClinicalStatus clinicalStatus,
ConditionVerificationStatus verificationStatus,
Condition previousVersion,
String additionalDetail,
Date onsetDate,
Date endDate,
Patient patient)
Convenience constructor to instantiate a condition class with all the necessary parameters
|
Modifier and Type | Method and Description |
---|---|
static Condition |
copy(Condition fromCondition,
Condition toCondition)
Copies property values from the fromCondition to the toCondition such that fromCondition
matches toCondition @see Condition#matches, but does not equal toCondition (uuid, id differ)
|
String |
getAdditionalDetail()
Gets the addition detail of the condition
|
ConditionClinicalStatus |
getClinicalStatus()
Gets the clinical status of the condition
|
CodedOrFreeText |
getCondition()
Gets the condition that has been set
|
Integer |
getConditionId()
Gets the condition id
|
Encounter |
getEncounter()
Basic property getter for encounter
|
Date |
getEndDate()
Gets the condition end date
|
String |
getEndReason()
Gets the condition end reason
|
Integer |
getId() |
Date |
getOnsetDate()
Gets the onset date of the condition
|
Patient |
getPatient()
Gets the patient associated with the condition
|
Condition |
getPreviousVersion()
Gets the previous version of the condition
|
ConditionVerificationStatus |
getVerificationStatus()
Gets the verification status of the condition
|
boolean |
matches(Condition c)
Compares properties with those in the given Condition to determine if they have the same meaning
This method will return true immediately following the creation of a Condition from another Condition
|
static Condition |
newInstance(Condition condition)
Creates a new Condition instance from the passed condition such that the newly created Condition
matches the passed Condition @see Condition#matches, but does not equal the passed Condition (uuid, id differ)
|
void |
setAdditionalDetail(String additionalDetail)
Sets the additional detail of the condition
|
void |
setClinicalStatus(ConditionClinicalStatus clinicalStatus)
Sets the clinical status of the condition
|
void |
setCondition(CodedOrFreeText condition)
Sets the condition
|
void |
setConditionId(Integer conditionId)
Sets the condition id
|
void |
setEncounter(Encounter encounter)
Basic property setter for encounter
|
void |
setEndDate(Date endDate)
Sets the end date
|
void |
setEndReason(String endReason)
Sets the end reason
|
void |
setId(Integer id) |
void |
setOnsetDate(Date onsetDate)
Sets the onset date
|
void |
setPatient(Patient patient)
Sets the patient associated with the condition
|
void |
setPreviousVersion(Condition previousVersion)
Sets the previous version of the condition
|
void |
setVerificationStatus(ConditionVerificationStatus verificationStatus)
Sets the verification status of the condition
|
getFormFieldNamespace, getFormFieldNamespace, getFormFieldPath, getFormFieldPath, getFormNamespaceAndPath, getFormNamespaceAndPath, setFormField, setFormNamespaceAndPath
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
equals, getUuid, hashCode, setUuid, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public Condition()
public Condition(CodedOrFreeText condition, ConditionClinicalStatus clinicalStatus, ConditionVerificationStatus verificationStatus, Condition previousVersion, String additionalDetail, Date onsetDate, Date endDate, Patient patient)
condition
- - the condition to be setclinicalStatus
- - the clinical status of the condition to be setverificationStatus
- - the verification status of the condition, describing if the condition
is confirmed or notpreviousVersion
- - the previous version of the condition to be setadditionalDetail
- - additional details of the condition to be setonsetDate
- - the date the condition is setpatient
- - the patient associated with the conditionpublic static Condition newInstance(Condition condition)
condition
- the Condition to copypublic static Condition copy(Condition fromCondition, Condition toCondition)
fromCondition
- the Condition to copy fromtoCondition
- the Condition to copy intopublic boolean matches(Condition c)
c
- the Condition to compare againstThis method will return false if any value is different, excepting identity data (id, uuid)
If the given instance is null, this will return false
public Integer getConditionId()
public void setConditionId(Integer conditionId)
conditionId
- the id of the condition to be setpublic CodedOrFreeText getCondition()
public void setCondition(CodedOrFreeText condition)
condition
- the condition to be setpublic ConditionClinicalStatus getClinicalStatus()
public void setClinicalStatus(ConditionClinicalStatus clinicalStatus)
clinicalStatus
- the clinical status of the condition to be setpublic ConditionVerificationStatus getVerificationStatus()
public void setVerificationStatus(ConditionVerificationStatus verificationStatus)
verificationStatus
- the verification status of the condition to be setpublic Condition getPreviousVersion()
public void setPreviousVersion(Condition previousVersion)
previousVersion
- the previous version of the condition to be setpublic String getAdditionalDetail()
public void setAdditionalDetail(String additionalDetail)
additionalDetail
- the additional detail of the condition to be setpublic Date getOnsetDate()
public void setOnsetDate(Date onsetDate)
onsetDate
- the onset date of the condition to be setpublic Date getEndDate()
public void setEndDate(Date endDate)
endDate
- the end date to be set for the conditionpublic String getEndReason()
public void setEndReason(String endReason)
endReason
- the end reason to be set for the conditionpublic Integer getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectpublic Patient getPatient()
public void setPatient(Patient patient)
patient
- - The patient object to be associated with conditionpublic Encounter getEncounter()
public void setEncounter(Encounter encounter)
encounter
- - the encounter to setCopyright © 2024 OpenMRS Inc.. All rights reserved.