Add footnotes support to event occurrence parsing

This commit introduces a new property for capturing footnotes in both the EventOccurrenceParseResult and EventOccurrenceParserResult classes. The EventOccurrenceParser has been updated to handle footnotes, which are identified by lines starting with "*" or as parenthetical notes. The logic for processing these footnotes has been integrated into the parsing flow, ensuring that they are correctly associated with their respective event definitions. Additionally, the EventOccurrenceParserService has been modified to copy footnotes from the parser result, enhancing the overall event parsing functionality.
This commit is contained in:
2026-01-09 10:30:53 -05:00
parent bcd0acb480
commit cf2c0d8068
3 changed files with 49 additions and 17 deletions
@@ -52,6 +52,12 @@ public class EventOccurrenceParseResult
/// </summary>
public int SkippedHSEventCount { get; set; }
/// <summary>
/// Footnotes captured for each event definition. Footnotes are lines that start with "*" or are parenthetical notes.
/// Multiple footnotes are concatenated into a single string. These provide additional context or information about the event occurrences.
/// </summary>
public IDictionary<EventDefinition, string> Footnotes { get; set; } = new Dictionary<EventDefinition, string>();
/// <summary>
/// Total number of event occurrences successfully parsed.
/// </summary>