Hospitals, nursing homes can’t detain patients or refuse to handover bodies over pending bills, warns minister.