@Entity public class Diagnosis extends BaseCustomizableData<DiagnosisAttribute> implements FormRecordable
creator
Constructor and Description |
---|
Diagnosis()
Default no-arg Constructor; instantiates a new Diagnosis without passing any initial values.
|
Diagnosis(Encounter encounter,
CodedOrFreeText diagnosis,
ConditionVerificationStatus certainty,
Integer rank,
Patient patient) |
Diagnosis(Encounter encounter,
CodedOrFreeText diagnosis,
ConditionVerificationStatus certainty,
Integer rank,
Patient patient,
String formNamespaceAndPath) |
Modifier and Type | Method and Description |
---|---|
ConditionVerificationStatus |
getCertainty()
Gets the diagnosis certainty.
|
Condition |
getCondition()
Gets the diagnosis condition.
|
CodedOrFreeText |
getDiagnosis()
Gets the diagnosis.
|
Integer |
getDiagnosisId()
Gets the diagnosis id.
|
Encounter |
getEncounter()
Gets the encounter associated with this diagnosis.
|
String |
getFormFieldNamespace()
Gets the namespace for the form field that was used to capture the details in the form
|
String |
getFormFieldPath()
Gets the path for the form field that was used to capture the details in the form
|
String |
getFormNamespaceAndPath()
Gets the form namespace and path
|
Integer |
getId()
Gets the diagnosis identifier.
|
Patient |
getPatient()
Gets the patient associated with the diagnosis
|
Integer |
getRank()
Gets the diagnosis rank.
|
void |
setCertainty(ConditionVerificationStatus certainty)
Sets the diagnosis certainty
|
void |
setCondition(Condition condition)
Sets diagnosis condition
|
void |
setDiagnosis(CodedOrFreeText diagnosis)
Sets the diagnosis.
|
void |
setDiagnosisId(Integer diagnosisId)
Sets diagnosis id
|
void |
setEncounter(Encounter encounter)
Sets the encounter associated with this diagnosis.
|
void |
setFormField(String namespace,
String formFieldPath)
Sets the namespace and path of the form field that was used to capture the details in the form.
|
void |
setFormNamespaceAndPath(String formNamespaceAndPath)
Sets the form namespace and path
|
void |
setId(Integer diagnosisId)
Sets diagnosis identifier
|
void |
setPatient(Patient patient)
Sets patient with this diagnosis
|
void |
setRank(Integer rank)
Sets diagnosis rank
|
addAttribute, getActiveAttributes, getActiveAttributes, getAttributes, setAttribute, setAttributes
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 Diagnosis()
public Diagnosis(Encounter encounter, CodedOrFreeText diagnosis, ConditionVerificationStatus certainty, Integer rank, Patient patient)
encounter
- the encounter for this diagnosisdiagnosis
- the diagnosis to setcertainty
- the certainty for the diagnosisrank
- the rank of the diagnosispublic Diagnosis(Encounter encounter, CodedOrFreeText diagnosis, ConditionVerificationStatus certainty, Integer rank, Patient patient, String formNamespaceAndPath)
encounter
- the encounter for this diagnosisdiagnosis
- the diagnosis to setcertainty
- the certainty for the diagnosisrank
- the rank of the diagnosispatient
- the patient diagnosedformNamespaceAndPath
- the form namespace and pathpublic Integer getId()
getId
in interface OpenmrsObject
public void setId(Integer diagnosisId)
setId
in interface OpenmrsObject
diagnosisId
- the diagnosis identifier to set for this diagnosispublic Integer getDiagnosisId()
public void setDiagnosisId(Integer diagnosisId)
diagnosisId
- the diagnosis id to set for this diagnosispublic Encounter getEncounter()
public void setEncounter(Encounter encounter)
encounter
- the encounter to set for this diagnosispublic CodedOrFreeText getDiagnosis()
public void setDiagnosis(CodedOrFreeText diagnosis)
diagnosis
- the diagnosis to setpublic ConditionVerificationStatus getCertainty()
public void setCertainty(ConditionVerificationStatus certainty)
certainty
- the condition verification status to set for this diagnosispublic Integer getRank()
public void setRank(Integer rank)
rank
- the rank to set for this diagnosis.public Condition getCondition()
public void setCondition(Condition condition)
condition
- the condition to set for this diagnosis.public Patient getPatient()
public void setPatient(Patient patient)
patient
- the patient with this diagnosis.public String getFormNamespaceAndPath()
public void setFormNamespaceAndPath(String formNamespaceAndPath)
formNamespaceAndPath
- the form namespace and path to setpublic String getFormFieldNamespace()
getFormFieldNamespace
in interface FormRecordable
public String getFormFieldPath()
getFormFieldPath
in interface FormRecordable
public void setFormField(String namespace, String formFieldPath)
setFormField
in interface FormRecordable
namespace
- the namespace of the form fieldformFieldPath
- the path of the form fieldCopyright © 2024 OpenMRS Inc.. All rights reserved.