Add preferences field for patient ID
Fix up error reporting and use default preferences store
Prefs activity to vary state based on checkout status