If the timezone returned by TimeZone.getDefault() is a GMT offest (e.g. GMT+10:00), calls to create hospitalizations in SFS fail with an http 500 status (Internal Server Error), with the error message 'An error has occurred'.
This is because SFS doesn't support GMT timezones.
The timezone submitted in the timezoneName header comes from TimeZone.getDefault().getID().
If this is a GMT offset, it probably indicates a misconfiguration of the server.
If it cannot be corrected, the workaround is to set the correct timezone by passing -Duser.timezone to the tomcat command line e.g.: