There are other programs that in combination do cover basic needs for those that qualify by need. You're not going to be able to replacement CHIP and Medicaid with UBI. At least not without extensive bureaucracy on the tax side.
If your country has a national health service, paid for by taxes, medical treatment isn't paid for when you need it and so wouldn't affect the rate of UBI.