Uploaded image for project: 'OpenLMIS General'
  1. OLMIS-5415

Implement HAPI FHIR resource updates syncing with OpenLMIS reference data

    Details

      Description

      As part of this ticket, we would like to implement the solution proposed in OLMIS‌-5323 .

      Acceptance criteria

      • Add server interceptor to the OpenLMIS HAPI FHIR service
      • A new extra data property - isManagedExternally - should be added to Facility and Geographic Zone resources
        • the property will be set by server interceptor
        • user should not be able to set this field - the error message should be shown for request with the user token
      • some facility/geo zone properties should still be editable by OpenLMIS; things that FHIR doesn’t care about (like operational date, facility type, supported programs, etc.)
        • so if isManagedExternally is true, then only some fields are editable, and a smart update should be done
        • otherwise (false, or is not set), then all fields are editable
        • non-editable fields can be hardcoded in the backend logic, and we probably need an API to retrieve them for the UI
        • UI will need to be smarter and allow changes to some fields, but potentially not others

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                llewczynski Łukasz Lewczyński
                Reporter:
                llewczynski Łukasz Lewczyński
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 week, 2 days, 4 hours Original Estimate - 1 week, 2 days, 4 hours
                  1w 2d 4h
                  Remaining:
                  Time Spent - 2 weeks, 5 hours Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - 2 weeks, 5 hours Remaining Estimate - 30 minutes
                  2w 5h