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

Encounter.setProvider(EncounterRole role, Provider provider) needs to add provider if existing encounter provider record for same provider is voided

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.0, Platform 1.10.0
    • Fix Version/s: OpenMRS 1.9.1, Platform 1.10.0
    • Component/s: Data Model
    • Labels:
      None
    • Complexity:
      Low

      Description

      When setting a provider, the Encounter.setProvider(EncounterRole role, Provider provider) first checks to make sure that the provider to set does not already have an encounter provider associated with the encounter. However, this should check to make sure the provider has non-voided encounter provider record.

      The problem here is if you have an encounter and set the provider from provider A to provider B and then back to provider A, provider A will not get set properly.

        Gliffy Diagrams

          Attachments

            Issue Links

              Attachments-Category-Modification

                Activity

                  People

                  • Assignee:
                    mogoodrich Mark Goodrich
                    Reporter:
                    mogoodrich Mark Goodrich
                  • Votes:
                    1 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: