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

Add startDate and stopDate to Relationships

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • OpenMRS 1.9.0
    • None
    • Undetermined

    Description

      Relationships should support effective start and end dates.

      Changes to data model:

      • add relationship.start_date
      • add relationship.end_date

      Changes to domain objects:

      • add Relationship.startDate
      • add Relationship.endDate

      Changes to API (needs further thought):

      • add a variant of the getRelationshipsByPerson method with a Date effectiveDate parameter?
      • add a variant of the getRelationships method with two Date parameters (for a range)?

      Changes to UI (personRelationships portlet)

      • Currently-active relationships should be shown above closed relationships
      • If an existing relationship has date bounds, show them (in small text)
      • Change the add relationship popup to allow an optional start date
      • The [x] which currently pops up a delete function should give you the option of closing vs deleting

      Gliffy Diagrams

        Attachments

          1. trunk-286-1.patch
            11 kB
          2. trunk-286-2.patch
            15 kB
          3. trunk-286-3.patch
            22 kB
          4. trunk-286-4.patch
            24 kB
          5. trunk-286-5.patch
            31 kB
          6. trunk-286-6.patch
            44 kB
          7. trunk-286-7.patch
            50 kB

          Activity

            People

              mseaton Mike Seaton
              mseaton Mike Seaton
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 26 minutes
                  26m