This is my model specially combine CRF and BERT for NER. I think you can modify the definition of named entities and train it for your medical entities.
https://github.com/Louis-udm/NER-BERT-CRF