AI won't replace doctors, but it's not because of lack of API access to medical records. Medical records don't contain all of the data that an AI would need to make an accurate diagnosis and come up with an optimal treatment plan. In order for an AI to do that it would need to be able to see, touch, and converse with the patient. We're a long way from that capability.