Class ClinicalDocumentEditor
Comprehensive text editor for clinical documents providing split-pane interface with tree navigation and real-time editing capabilities.
public class ClinicalDocumentEditor : AbstractConsoleEngine, IConsoleEngine, IDisposable
- Inheritance
-
ClinicalDocumentEditor
- Implements
- Inherited Members
Constructors
ClinicalDocumentEditor(ConsoleSessionManager, CommandInvoker, CommandFactory, ClinicalDocumentService)
public ClinicalDocumentEditor(ConsoleSessionManager sessionManager, CommandInvoker commandInvoker, CommandFactory commandFactory, ClinicalDocumentService clinicalDocService)
Parameters
sessionManagerConsoleSessionManagercommandInvokerCommandInvokercommandFactoryCommandFactoryclinicalDocServiceClinicalDocumentService
Methods
Dispose()
public void Dispose()
EditDocument(ClinicalDocument)
Launches the editor for the specified clinical document
public void EditDocument(ClinicalDocument document)
Parameters
documentClinicalDocument
ExecuteCommand(string, CommandParameters)
Executes an add entry command and returns the result. Used by EditorKeyHandler to persist entries via the command pattern.
public CommandResult? ExecuteCommand(string commandKey, CommandParameters parameters)
Parameters
commandKeystringparametersCommandParameters
Returns
GetCurrentAuthorId()
Gets the current user's ID for use as entry author. Falls back to document's physician ID if no session.
public Guid GetCurrentAuthorId()
Returns
GetDocumentId()
Gets the current document ID for command parameters
public Guid? GetDocumentId()
Returns
- Guid?
GetSecureInput(string)
public override string? GetSecureInput(string prompt)
Parameters
promptstring
Returns
GetUserInput(string)
public override string? GetUserInput(string prompt)
Parameters
promptstring