diff --git a/app/src/main/java/org/thousandsmiles/tscharts_lib/CommonSessionSingleton.java b/app/src/main/java/org/thousandsmiles/tscharts_lib/CommonSessionSingleton.java index 7c49f17..2c39e16 100755 --- a/app/src/main/java/org/thousandsmiles/tscharts_lib/CommonSessionSingleton.java +++ b/app/src/main/java/org/thousandsmiles/tscharts_lib/CommonSessionSingleton.java @@ -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 m_isNewPatientMap = new HashMap(); private static HashMap m_hasCurrentXRayMap = new HashMap(); private static HashMap m_clinicMap = new HashMap(); @@ -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; }