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

Update Provider to include ProviderAttributes

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Non-Essential
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9 Provider Sprint
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium

      Description

      Add to the Provider class:

      • property, plus getter and setter: List<ProviderAttribute> attributes
      • method: addAttribute(ProviderAttribute) // exception if the attribute type specifies uniqueness and exists already
      • method: setAttribute(ProviderAttribute) // overwrites any existing value for that type
      • method: List<ProviderAttribute> getAttributes(ProviderAttributeType)

      Add a full-form getProviders(...) method in ProviderService:

      • List<Provider> getProviders(include all provider properties..., Map<ProviderAttributeType, Object> attributeValues, boolean)
        • this would limit the returned providers to only those with all of the attribute type -> values in the map

      Extend the ProviderValidator class to check for minOccurs, maxOccurs, and required on its provider attributes.

      TODO: is this full-form getProviders(...) method right?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kishoreyekkanti Kishore Yekkanti
                Reporter:
                darius Darius Jazayeri
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: