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

Add outcome as a property of Patient Program

    Details

    • Complexity:
      Medium

      Description

      [ Note: This is a good introductory ticket for someone new to OpenMRS, but already familiar with the underlying technologies. ]

      This description reflects design agreement as of June 29, 2011. Comments on this ticket prior to this date were made leading up to this:

      • Add a new nullable property to Program named "outcomesConcept"
        • Modify the object, including appropriate getters and setters
        • Ensure the javadoc indicates that this should be either a Concept that is a set or one that has answers
        • Modify the hibernate mappings, where this property is nullable and lazy
        • Add a liquibase changeset, including adding the column and foreign key constraint
      • Add a new nullable property to PatientProgram named "outcome"
        • Modify the object, including appropriate getters and setters
        • Modify the hibernate mappings, where this property is nullable and lazy
        • Add a liquibase changeset, including adding the column and foreign key constraint
      • Add a new method to the ProgramWorkflowService: public List<Concept> getPossibleOutcomes(Program);
        • If the concept is a question, return it's answers
        • else if the concept is a set, display the set members
        • else return an empty set
      • Change the Manage Program administrative interface to allow for setting the outcomesConcept for a Program. Ideally, this widget would limit the possible Concepts to only those that are sets and those that have answers.
      • Change the patientPrograms portlet to allow for setting the outcome on the PatientProgram at the time of setting the completionDate on the Program. It should not be possible to set an outcome if completionDate is not specified. If the Program associated with the PatientProgram has no possible outcome concepts available, hide the outcome selector altogether for this Patient Program.

        Attachments

          Activity

            People

            • Assignee:
              grwarren Greg Warren
              Reporter:
              mseaton Mike Seaton
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: