Skip to content

Retaining Local Data when Updating or Uninstalling then Reinstalling

TriagePic edited this page Oct 9, 2015 · 7 revisions

Caution. If TriagePic is uninstalled, all local app data is deleted. If TriagePic is subsequently reinstalled, the first-run wizard will appear again. Be aware that:

  • Updating the app from the Store will do an uninstall+reinstall, and thus delete local app data;
  • Of particular note, local app data at this time includes the Outbox list of patient reports sent from your device. So this list will begin as empty after update or reinstall. The first-run startup process will attempt to repopulate this list, based on reports fetched from TriageTrak. The result will often be a shorter list of Outbox reports than were present earlier, for reasons discussed further below.

If you need to retain local app data - Workaround for now:

Leave the Modern UI (Win 8.1) or Tablet Mode (Win 10), to the regular desktop.

Local app data is a set of XML files, which you must manually copy it BEFORE the update (or uninstall), and then copy it back (sometimes to a slightly different location) AFTER the update (or reinstall). The data is in:

C:\Users\ [myLogin]\AppData\Local\Packages\ [GUID for TP8]\LocalState

where the GUID is a long set of mostly-random letters that typically contains the string "TriagePic". After an update, the random letters may differ from before. If you don't see "AppData" when browsing in File Explorer, find and checkmark the File Explorer top-ribbon setting View/Hidden Items. Sorting items by "Date modified" can help quickly find the correct folder.

You can selectively restore only certain XML files if you wish. A list of the XML files and their purposes is found in "[Data Structures Persisted as XML Files](Overview of Code Structure#data-structures-persisted-as-xml-files)"

If the Outbox list is repopulated from TriageTrak: If PatientReportsSent.xml is not present, TriagePic will rebuild it. Keep in mind that the Outbox list (as well as other cached XML data) is not intended to roam across devices. It is specific to a given device and a given Win8 login account.

When rebuilding the list, TP8 will first ask TriageTrak for all reports, with these restrictions:

  • Only disaster events seen in the Checklist pick list will be included. These are either hospital or public events, that are currently open for reporting by you. Thus, earlier events now closed will be excluded.
  • Patient reports that have been deleted aka expired will not be recovered.

Then TriagePic skips additional reports, if:

  • the reporter's TT login doesn't match your current TT login.
  • certain report data (needed for the next checks) is missing, indicating that it was created through the TT website, not a mobile device.
  • the reporter's Win8 login doesn't match your current Win8 login. This test is possible only if your system is configured to make the login available to apps both now and when the report was filed.
  • the reporter's Win8 device/machine name doesn't match your current device name.
  • the report's mass casualty id starts with "Practice-". TP8 does not yet support TP7-style practice mode.

Perhaps surprisingly, no filtering on organization is done during this process. This is to support users who report as more than one organization, often because the organization attribute is interpreted as "facility", e.g., for a multi-location hospital. (Recall that on the Outbox page, the user can limit the view to just the "current organization".)

Clone this wiki locally