Skip to main content

EnsLib.InteropTools.HL7.MessageAnalyzer.Workspace.Input

class EnsLib.InteropTools.HL7.MessageAnalyzer.Workspace.Input extends %Library.RegisteredObject

Method Inventory

Methods

classmethod Date(pPrefix As %String) as %String
Input and validate a date

Return either the date in $H days form - or "" if cancelled

classmethod ExportFile() as %String
classmethod GroupBy() as %String
Input and validate groupby

Return either groupby or "" if cancelled

classmethod Input(pPrompt As %String, pDefault As %String = "") as %String
Given a prompt and an optional default

Read a line of input from the user - defaulting to the default value if any - and return it

classmethod InputYN(pPrompt As %String) as %String
Returns one of "Y", "N" or "^"
classmethod MakeLogger() as Logger
Input a logger destination from the user and return either a logger or "" - "" means caller should exit
classmethod SchemaName(pGlobalInfo As GlobalInfo, Output pAcceptableVersions) as %String
Input and validate the name of a non-library schema, with an optional version prefix

Return either schema name or "" if cancelled

If a schema with a version is entered then pAcceptableVersions is not changed, otherwise pAcceptableVersions(VERSION) exists for each version which has a schema of the entered name

classmethod SchemaName2(pVersion As %String) as %String
Input and validate the name of a non-library schema which must be present in pVersion

Return either schema name or "" if cancelled

classmethod SchemaNewNames(ByRef pByFacility, pVersion As %String, Output pNewNames) as %Boolean
Returns 0 if cancelled
classmethod SourcePath() as %String
Input and validate source path

Return either source path or "" if cancelled

classmethod Version(pGlobalInfo As GlobalInfo, pSchemaName As %String = "", ByRef pAcceptableVersions) as %String
Input and validate version

Return either version or "" if cancelled

If pSchemaName is passed and non-empty it is used to limit the list of existing HL7 versions to those in pAcceptableVersions

classmethod Version2(pGlobalInfo As GlobalInfo, pMustHaveSchemas As %Boolean) as %String
Input and validate version

Return either version or "" if cancelled

classmethod WorkspaceFolder(pHistoryKey As %String) as %String
Input and validate workspace folder

Return either $LB(WORKSPACEFOLDER,EXISTS) or "" if cancelled

Inherited Members

Inherited Methods

FeedbackOpens in a new tab