California is advising health care providers not to write down patients’ immigration status on bills and medical records and telling them they don’t have to assist federal agents in arrests. Some Massachusetts hospitals and clinics are posting privacy rights in emergency and waiting rooms in Spanish and other languages.