The texts are available following this link.
The Medical Devices Regulation is identified as Regulation (EU) 2017/745.
The In Vitro Diagnostic Medical Devices Regulation is identified as Regulation (EU) 2017/746.