@@ -569,22 +569,22 @@ public void DownLoadDiagnosesServicesItems(@Nullable final String officerCode) {
569569 Thread thread = new Thread () {
570570 public void run () {
571571 try {
572- // DiagnosesServicesMedications diagnosesServicesMedications = new FetchDiagnosesServicesItems().execute();
573- // saveLastUpdateDate(diagnosesServicesMedications.getLastUpdated());
572+ DiagnosesServicesMedications diagnosesServicesMedications = new FetchDiagnosesServicesItems ().execute ();
573+ saveLastUpdateDate (diagnosesServicesMedications .getLastUpdated ());
574574 sqlHandler .ClearAll ("tblReferences" );
575575 sqlHandler .ClearAll ("tblHealthFacilities" );
576576 sqlHandler .ClearMapping ("S" );
577577 sqlHandler .ClearMapping ("I" );
578578 //Insert Diagnoses
579- // for (Diagnosis diagnosis : diagnosesServicesMedications.getDiagnoses()) {
580- // sqlHandler.InsertReferences(diagnosis.getCode(), diagnosis.getName(), "D", "");
581- // }
579+ for (Diagnosis diagnosis : diagnosesServicesMedications .getDiagnoses ()) {
580+ sqlHandler .InsertReferences (diagnosis .getCode (), diagnosis .getName (), "D" , "" );
581+ }
582582
583583 //Insert Services
584- // for (Service service : diagnosesServicesMedications.getServices()) {
585- // sqlHandler.InsertReferences(service.getCode(), service.getName(), "S", String.valueOf(service.getPrice()));
586- // sqlHandler.InsertMapping(service.getCode(), service.getName(), "S");
587- // }
584+ for (Service service : diagnosesServicesMedications .getServices ()) {
585+ sqlHandler .InsertReferences (service .getCode (), service .getName (), "S" , String .valueOf (service .getPrice ()));
586+ sqlHandler .InsertMapping (service .getCode (), service .getName (), "S" );
587+ }
588588
589589 //Insert Items
590590 List <Medication > medications = new FetchMedications ().execute ();
0 commit comments