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

Add voidNote() method to NoteDAO

    XMLWordPrintable

Details

    Description

      TODO: Couldn't find a voidNote() method.
      deleteNote() should not be called except for testing and administration purposes. Use the void method instead.
      File: /api/src/main/java/org/openmrs/api/db/NoteDAO.java
      Line: 61

      Add this new method to the NoteDAO such that we can use it for voiding notes:

      public Note voidNote(Note note, String reason) throws APIException;
      

      This will require adding these fields to the Note class:

      private Boolean voided = Boolean.FALSE;
      	
      private Date dateVoided;
      	
      private User voidedBy;
      	
      private String voidReason;
      

      In addition, these fields need to be added to the Note.hbm.xml file

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                k.joseph Kaweesi Joseph
                nullakilla Anton Alekseiev
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 2 hours
                    2h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified