React Components provides a patient store which allows a set of patient records to be cached locally on the client-side.
Apps that use this store need a way to note if their actions have put this store in an error state, and need a way to determine if the store is in an error state.
To achieve this, we will add a new "isError" boolean to the patient store compoent of the store, and a new action for setting this flag to true.
When the flag is set, the patient store will also be emptied.
Once the flag is set, the only way to "clear" the flag is to issue a "set patient store" or "clear patient store" action... attempts to update or add to the store will not reset the error state.