As long as you choose to network (wired/wireless) the HP OfficeJet 3830, it is supported by the built-in Apple AirPrint driver support. That eliminates HP dependency and survives across operating system updates/upgrades.
Ensure that you have a networked printer configuration and that your HP device is powered. In System Preferences > Printers & Scanners panel, right-click on your OfficeJet entry in the Printers list, and select Reset printing system… This will start the re-add process and instead of any HP drivers, choose AirPrint instead, and then re-add the device. Time for a test print.
There may or may not be additional features now on the Printers & Scanners panel to configure scanning. This should also allow you to use Apple's Image Capture to drive the scanner.