A new approach called HERMES enhances patient outcome prediction by processing clinical notes in a contrast-aware manner within knowledge graphs, offering a more structured representation than previous methods that treated notes as flat sequences. This matters because it could improve the accuracy of predictive models used in healthcare by better capturing the nuances and relationships in unstructured medical text.