|In this paper, we introduce a method for extracting detailed information from raw medical notes that could help medical providers more easily understand a patient's medication history and make more informed medical decisions. Our system uses NLP techniques for finding the names of medications and details about the changes to their disposition in unstructured clinical notes. The system was created to extract data from the Contextualized Medication Event Dataset in three subtasks. Our system utilizes a solution based on a large language model enriched with adversarial examples for the medication extraction and event classification tasks. To extract more detailed contextual information about the medication changes, we were motivated by aspect-based sentiment analysis and used the local context focus mechanism to highlight the relevant parts of the context and extended it with information from dependency syntax. Both adversarial learning and the syntax-enhanced local focus mechanism improved the results of our system.
*** Title, author list and abstract as seen in the Camera-Ready version of the paper that was provided to Conference Committee. Small changes that may have occurred during processing by Springer may not appear in this window.