Uploaded image for project: 'Reporting Module'
  1. Reporting Module
  2. REPORT-122

Allow CohortDefinitions to have a user property that is restricted to providers

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: Reporting 0.6.1
    • Fix Version/s: Reporting 0.6.2
    • Component/s: Cohort Definitions
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      Context:

      For something like ObsCohortDefinition, you might want a configuration property that restricts the Obs by Provider. However, there is no "Provider" class, it is a subset of user. So, the actual CohortDefintion will right now look like this:

      ObsCohortDefinition

      { @ConfigurationProperty private List<User> providers; }

      Issues:

      We need a way for this to tell the htmlwidget that it should restrict the possible users to Providers. Since "Provider" is an implementation-specific role, "Provider" itself cannot be hardcoded in an annotation on the ConfigurationProperty. Two solutions are:

      1. The ConfigurationProperty annotation is given extra information to determine that it needs to restrict to certain roles, and those roles come from a global property. i.e.

      @ConfigurationProperty(attributes=

      {roleProperty=reporting.providerRole}

      )

      2. The reporting (or htmlwidgets) module contains a new class called "Provider", which is interpreted in a certain way, and which uses a global property for linking to the provider role for it's evaluation.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              mseaton Mike Seaton
              Reporter:
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: