Iraqi soldiers , prisoners and hospital patients have cast early ballots for parliamentary elections set to open to the general public on Thursday .