Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-530

Add current visit to FormEntryContext (if available)

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HTML Form Entry 2.4
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      We'd like to add the current visit (if available) to the FormEntryContext.

      However, as HFE supports versions of OpenMRS prior to the introduction of Visits, we cannot simply add a private Visit visit property to the context.

      Instead, we will add a non-mandatory Object visit to the context.

      The htmlformentryui module (which is Visit-aware) will then populate the context with this visit when it is available.

      Therefore tags within visit-aware modules can retrieve this visit from the context and cast it to Visit. (See the EncounterDiagnosesElement in core apps for an example of this usage).

      Eventually, when HFE no longer supports pre-Visit versions of OpenMRS core, we can change Object visit to Visit visit.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mogoodrich Mark Goodrich [X] (Inactive)
              Reporter:
              mogoodrich Mark Goodrich [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: