Skip to content

Commit

Permalink
add some APIs for dental treatment to common session singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
slogan621 committed Nov 9, 2020
1 parent 4d1c023 commit b34528d
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public class CommonSessionSingleton {
private ENTSurgicalHistory m_patientENTSurgicalHistory = null;
private ENTTreatment m_patientENTTreatment = null;
private Audiogram m_patientAudiogram = null;
private DentalTreatment m_patientDentalTreatment = null;
private static HashMap<Integer, Boolean> m_isNewPatientMap = new HashMap<Integer, Boolean>();
private static HashMap<Integer, Boolean> m_hasCurrentXRayMap = new HashMap<Integer, Boolean>();
private static HashMap<Integer, JSONObject> m_clinicMap = new HashMap<Integer, JSONObject>();
Expand Down Expand Up @@ -508,6 +509,31 @@ public Audiogram getNewPatientAudiogram()
return m_patientAudiogram;
}

public void setPatientDentalTreatment(JSONObject o)
{
if (m_patientDentalTreatment == null) {
m_patientDentalTreatment = new DentalTreatment();
}
m_patientDentalTreatment.fromJSONObject(o);
}

public void updatePatientDentalTreatment(DentalTreatment dentalTreatment) {
m_patientDentalTreatment = dentalTreatment;
}

public DentalTreatment getPatientDentalTreatment()
{
return m_patientDentalTreatment;
}

public DentalTreatment getNewPatientDentalTreatment()
{
if (m_patientDentalTreatment == null) {
m_patientDentalTreatment = new DentalTreatment();
}
return m_patientDentalTreatment;
}

public void setClinicId(int id) {
m_clinicId = id;
}
Expand Down

0 comments on commit b34528d

Please sign in to comment.