Table of Contents

Class ClinicalDocumentEditor

Namespace
CLI.CliniCore.Service.Editor
Assembly
CLI.CliniCore.dll

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

sessionManager ConsoleSessionManager
commandInvoker CommandInvoker
commandFactory CommandFactory
clinicalDocService ClinicalDocumentService

Methods

Dispose()

public void Dispose()

EditDocument(ClinicalDocument)

Launches the editor for the specified clinical document

public void EditDocument(ClinicalDocument document)

Parameters

document ClinicalDocument

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

commandKey string
parameters CommandParameters

Returns

CommandResult

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

Guid

GetDocumentId()

Gets the current document ID for command parameters

public Guid? GetDocumentId()

Returns

Guid?

GetSecureInput(string)

public override string? GetSecureInput(string prompt)

Parameters

prompt string

Returns

string

GetUserInput(string)

public override string? GetUserInput(string prompt)

Parameters

prompt string

Returns

string