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

Improve functionality related to encounter types view/edit privileges handling

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Ready for Work
    • Priority: Could
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Complexity:
      Medium

      Description

      A few changes needed for encounter type restrictions:

      • Create a new exception type instead of reusing APIException in methods related to encounter type view/edit privileges inside org.openmrs.api.EncounterService (consider using of such names us CannotEditEncounterException and CannotViewEncounterException).
      • Provide mechanism that allows us to cache the results of canViewAllEncounterTypes() and canEditAllEncounterTypes() methods.
      • Add a way to "break the glass" security so that in an emergency, a user can get the encounter, but that a note is sent to a queue or an administrator saying what happening by whom. (this is probably a new ticket because this would require changing method signatures.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mvorobey Mykola Vorobey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified