The osteopath does not have to have a medical career, he is a professional who has trained in the osteopathy discipline.
We must always take into account the opinion of the doctor, and if we do not like it, we must go to another doctor to have another opinion.
Currently, in Spanish territory, the doctor is the only legal authority in health matters.
In addition, in Spain, there is no formative regulation of this profession, physiotherapists are the only manual professionals authorized by medical authorities in Spain, but in France, for example, osteopathy is a public service that is within Social Security.
In any case, make sure that the professional you go to has a good academic training, who guarantees their experience and capacity.