Details

    • Complexity:
      High

      Description

      See also: http://wiki.openmrs.org/display/projects/Multiple+providers+per+encounter

      We need to be able to store multiple providers for an encounter instead of just one provider for an encounter.

      1. The encounter.provider_id column should be deleted.
      2. And a new table created:
        encounter_provider
         * encounter_id      fk to encounter.encounter_id
         * provider_id       fk to provider.provider_id - See TRUNK-2044
         * organization_role varchar(255) (not fk to role.role, but should be fk to org_role, if exists (TODO: find ticket for the org role work))
        
      3. Add:
          
          * private Set<Provider> Encounter.providers
          * public Set<Provider> getProviders();
          * public void setProviders(Set<Provider>);
          * public void addProvider(Provider);
        
      4. Deprecate these methods:
          
          * Encounter.getProvider() should return the first in the set of providers
          * Encounter.setProvider(Person) should forward to addProvider(Provider) (if possible)
        
      5. The liquibase changeset should move data from encounter.provider column to a row in encounter_provider with an org_role of "Unknown".
      6. All relevant jsp pages need updated.
      7. The ORUR01Handler should be modified to handle multiple providers coming in through hl7 (upgrading HAPI to version that accepts hl7 v2.6 is probably required)
      8. Bonus points for modifying the formentry module so that an infopath form could specify multiple providers.
      9. Double bonus points for modifying htmlformentry to allow for multiple providers on an encounter.

        Gliffy Diagrams

          Attachments

            Issue Links

              Attachments-Category-Modification

                Activity

                  People

                  • Assignee:
                    darius Darius Jazayeri
                    Reporter:
                    bwolfe Ben Wolfe
                  • Votes:
                    1 Vote for this issue
                    Watchers:
                    12 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: