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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Complexity:
      Undetermined
    • Development:

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: