Victorians won't be able to opt out from having their health records digitalised and shared in a central system after a contentious bill passed parliament.
The upper house passed the Health Legislation Amendment (Information Sharing) Bill on Thursday afternoon, with the final vote 21 to 16.
Greens, Animal Justice and Legalise Cannabis crossbenchers voted for the legislation after the government adopted amendments.