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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user