Since the development of information technologies, there is a huge amount of electronic documents that was written by medical specialists and are rich of useful information needed to make critical decisions in several medical tasks. Thus, a doctor must have a big knowledge and he is responsible for every decision he takes for patients. In fact, the doctor should read, with full concentration, many electronic narrative documents to collect the necessary information. Unfortunately, it's too tiring to read all necessary information about drugs, diseases and patient due to the large amount of documents that are increasing every day. Consequently, so many medical errors can happen and even can cause fatalities. On the other hand, information extraction is such a good field that can handle this problem. One of the most important main task in this field is the Named Entity Recognition (NER) and its role was to identify the medical named entities, such as drug, disease or treatment, from an unstructured text written in natural language. However, in order to treat the narrative text, natural language tasks should be performed before NER. In our paper, we introduce a named entity recognition method, called NESSMa (Named Entity tagging by Surrounding Sequence Matching), and based on sequence tagging, it is able to annotate the words of a sentence using Bidirectional Long Short-Term Memory neural network with Conditional Random Field (BiLSTM-CRF) model. We pass the Bidirectional Encoder Representations from Transformers (BERT) word embedding as feature together with the Part of Speech (PoS) of the word and the cue sequence information. The cue sequence information indicates if a word belongs to a named entity surrounding sequence based on word edit distance. For that, we have automatically constructed a dictionary of named entities’ surrounding sequences for each entity type using a train set. As expected, experiments shows that adding the cue sequence information is able to improve the results according to F1-measure and outperform state-of-the-art methods.