Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5311

Take care of cascade=true in purgeObs in ObsServiceImpl.java

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • TBD
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Undetermined

    Description

       TODO item from line 313 in ObsServiceImpl.java of org.openmrs.api.impl:

      @Override
       public void purgeObs(Obs obs, boolean cascade) throws APIException {
        if (!purgeComplexData(obs)) {
         throw new APIException("Obs.error.unable.purge.complex.data", new Object[] { obs });
        }
        
        if (cascade) {
         throw new APIException("Obs.error.cascading.purge.not.implemented", (Object[]) null);
         // TODO delete any related objects here before deleting the obs
         // obsGroups objects?
         // orders?
        }
        
        dao.deleteObs(obs);
       }

       

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                sherlocktech Sean Stamm
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: