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

Remove program.concept, workflow.concept, and state.concept; add name and description property to workflow and state

    XMLWordPrintable

    Details

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

      Description

      Background

      See Nabble thread here:
      http://openmrs-mailing-list-archives.1560443.n2.nabble.com/ProgramWorkflowService-getProgramByName-tp5529581p5529581.html

      Dev Notes

      The idea is to change the Program, Workflow, and State domain objects so that they work like all other metadata domain classes in OpenMRS.

      Specifically:

      • Remove program.concept, program_workflow.concept, and program_workflow_state.concept from the data model and hibernate mappings
        • leave the getters and setters, but @Deprecated
      • Add name and description fields to any of Program, Workflow, and State that don't have them
      • When doing the above, copy the name and description (in the system's primary language) from the concept whose link you're about to break

      This will break any existing localization of program/workflow/state that was done via concepts. Going forward, localization will have to be done via some other mechanism that works for OpenMRS Metadata in general. (i.e. there are currently a couple of halfway solutions)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dulvinw Dulvin Witharane
              Reporter:
              mseaton Mike Seaton
              Designated Committer:
              Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week
                  1w