IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Lib.MsgConst Class Reference

Constants related to msg for communication with BIS, conversion utilities from and to formats used in messageds, etc. Constants are not defined static in order to enable corrections for different variants of the program. More...

+ Inheritance diagram for IG.Lib.MsgConst:
+ Collaboration diagram for IG.Lib.MsgConst:

Public Member Functions

DateTime ConvertTime (string timestr)
 Converts a atring that represents date and time in the messages to a DateTime object. More...
 
string ConvertTime (DateTime t)
 Converts a DateTime object to a string that represents date and time in the messages. More...
 
string ConvertTime (DateTime t, bool includetime)
 Converts a DateTime object to a string that represents date and time in the messages. Seconds are not included even if time is included. More...
 
string ConvertTime (DateTime t, bool includetime, bool underscores)
 Converts a DateTime object to a string that represents date and time in the messages. Seconds are not included even if time is included. More...
 
string ConvertTime (DateTime t, bool includetime, bool includeseconds, bool underscores)
 Converts a DateTime object to a string that represents date and time in the messages. More...
 
string TimeStamp (bool includetime, bool underscores)
 Returns a timestamp for the Current time. The string is produced by ConvertTime() called with the Current time. More...
 
string TimeStamp (bool includetime)
 Returns a timestamp for the Current time. The string is produced by ConvertTime() called with the Current time. More...
 
string TimeStamp ()
 Returns a timestamp for the Current time. The string is produced by ConvertTime() called with the Current time. More...
 
OeAction ConvertOeAction (string actioncode)
 Returns action corresponding to the specified action code for SpecimenObesrvationEvent. More...
 
string ConvertOeAction (OeAction action)
 Converts OeAction enumerator to string value for Action element. More...
 
string ConvertOeActionCode (OeAction action)
 Converts OeAction enumerator to string value for Action CODE element. More...
 
OoAction ConvertOoAction (string actioncode)
 Returns action corresponding to the specified action code for SpecimenObservationOrder. More...
 
string ConvertOoAction (OoAction actioncode)
 Returns a string corresponding to the specified observation order action code, as stated in the SpecimenObservationOrder specification. More...
 
string ConvertOoCode (OoAction actioncode)
 Returns a string corresponding to the specified observation order action code, as stated in the SpecimenObservationOrder specification for the message code (not action code). This is used for generation of the appropriate XML message code attribute when this needs to be modified. More...
 
OoStatus ConvertOoStatus (string statuscode)
 Returns observation order status corresponding to the status code. More...
 
string ConvertOoStatus (OoStatus statuscode)
 Returns a string corresponding to the specified observation order status code. More...
 
ActionPriority ConvertActionPriority (string code)
 Returns action priority corresponding to the string code. More...
 
string ConvertQuantity (decimal q)
 Converts a quantity to string format that is used in messages (9 numerical digits, with eventual leading zeros, last two are after the comma). More...
 
decimal ConvertQuantity (string qstr)
 Converts a string representation of quantity to number type. String form containts 9 numerical digits, with eventual leading zeros, last two are after the comma. More...
 

Properties

static MsgConst Const [get]
 Returns the process-wide class containing constants used in BIS messages. Class is initialized with respect to the application variant that is currently running. More...
 
- Properties inherited from IG.Lib.MsgConstObservationOrder
virtual IReporter R [get]
 Reporter for this class. More...
 
bool OoCheckAll [set]
 

Static Private Attributes

static MsgConst _msgConst = null
 

Additional Inherited Members

- Public Attributes inherited from IG.Lib.MsgConstFinancialTransaction
string FtCode = "FIAB_TE000001"
 
- Public Attributes inherited from IG.Lib.MsgConstObservationEvent
string OeActionActivate = "POXX_HN111003"
 
- Public Attributes inherited from IG.Lib.MsgConstObservationOrder
bool OoCheckAliveConsistency = false
 
string CreationTimeElement = "creationTime"
 Name of the Root XML node for all messages. More...
 
string OoActionCreate = "POXX_HN121002"
 
string OoOrderStatusCompleted = "completed"
 
string OoMessageType = "Observation"
 
- Public Attributes inherited from IG.Lib.MsgConstCommon
string ActionPriorityRoutine = "R"
 
string DiagnosisCodeSystem = "MKB10"
 
int DiagnosisTypeClinical = 1
 
int GenderMale = 1
 
readonly DateTime NullDateTime = new DateTime(1990, 1, 1)
 
int NullInt = -1
 
bool NullBool = false
 
string LabexId = "Labex"
 
string OoRootName = "MCCI_MT000100HT03.Message"
 
int OoGenderMale = 1
 

Detailed Description

Constants related to msg for communication with BIS, conversion utilities from and to formats used in messageds, etc. Constants are not defined static in order to enable corrections for different variants of the program.

Member Function Documentation

DateTime IG.Lib.MsgConst.ConvertTime ( string  timestr)
inline

Converts a atring that represents date and time in the messages to a DateTime object.

Parameters
timestrString that represents the time, format is "YYYYMMDDhhmmss".
Returns
Converted date and time object.

References IG.Lib.ReporterBase.ReviseException().

Referenced by IG.Lib.DocFindings.Read().

string IG.Lib.MsgConst.ConvertTime ( DateTime  t)
inline

Converts a DateTime object to a string that represents date and time in the messages.

Parameters
tTime to be converted to a string.
Returns
Converted date and time object string whose format is "YYYYMMDDhhmmss".
string IG.Lib.MsgConst.ConvertTime ( DateTime  t,
bool  includetime 
)
inline

Converts a DateTime object to a string that represents date and time in the messages. Seconds are not included even if time is included.

Parameters
tTime to be converted to a string. Seconds are not included even if time is included.
includetimeIf true then time is also included, otherwise only date is included.
Returns
Converted date and time object string whose format is: "YYYYMMDDhhmmss" if includetime = true. "YYYYMMDD" if includetime = false.
string IG.Lib.MsgConst.ConvertTime ( DateTime  t,
bool  includetime,
bool  underscores 
)
inline

Converts a DateTime object to a string that represents date and time in the messages. Seconds are not included even if time is included.

Parameters
tTime to be converted to a string.
includetimeIf true then time is also included, otherwise only date is included.
underscores
Returns
Converted date and time object string whose format can be: "YYYYMMDDhhmmss" (includetime = true, underscores = false) "YYYYMMDD" (includetime = false, underscores = false) "YYYY_MM_DD_hh_mm_ss" (includetime = true, underscores = true) "YYYY_MM_DD" (includetime = false, underscores = true)
string IG.Lib.MsgConst.ConvertTime ( DateTime  t,
bool  includetime,
bool  includeseconds,
bool  underscores 
)
inline

Converts a DateTime object to a string that represents date and time in the messages.

Parameters
tTime to be converted to a string.
includetimeIf true then time is also included, otherwise only date is included.
includesecondsIf true then seconds time are also included in time.
underscores
Returns
Converted date and time object string whose format can be: "YYYYMMDDhhmmss" (includetime = true, underscores = false) "YYYYMMDD" (includetime = false, underscores = false) "YYYY_MM_DD_hh_mm_ss" (includetime = true, underscores = true) "YYYY_MM_DD" (includetime = false, underscores = true)

References IG.Lib.ReporterBase.ReviseException().

string IG.Lib.MsgConst.TimeStamp ( bool  includetime,
bool  underscores 
)
inline

Returns a timestamp for the Current time. The string is produced by ConvertTime() called with the Current time.

Referenced by LabexBis.BisCommunicationSettings.MessageFileName().

string IG.Lib.MsgConst.TimeStamp ( bool  includetime)
inline

Returns a timestamp for the Current time. The string is produced by ConvertTime() called with the Current time.

string IG.Lib.MsgConst.TimeStamp ( )
inline

Returns a timestamp for the Current time. The string is produced by ConvertTime() called with the Current time.

OeAction IG.Lib.MsgConst.ConvertOeAction ( string  actioncode)
inline

Returns action corresponding to the specified action code for SpecimenObesrvationEvent.

Parameters
actioncodeAction code.
Returns
string IG.Lib.MsgConst.ConvertOeAction ( OeAction  action)
inline

Converts OeAction enumerator to string value for Action element.

string IG.Lib.MsgConst.ConvertOeActionCode ( OeAction  action)
inline

Converts OeAction enumerator to string value for Action CODE element.

OoAction IG.Lib.MsgConst.ConvertOoAction ( string  actioncode)
inline

Returns action corresponding to the specified action code for SpecimenObservationOrder.

Parameters
actioncodeAction code.
Returns
string IG.Lib.MsgConst.ConvertOoAction ( OoAction  actioncode)
inline

Returns a string corresponding to the specified observation order action code, as stated in the SpecimenObservationOrder specification.

string IG.Lib.MsgConst.ConvertOoCode ( OoAction  actioncode)
inline

Returns a string corresponding to the specified observation order action code, as stated in the SpecimenObservationOrder specification for the message code (not action code). This is used for generation of the appropriate XML message code attribute when this needs to be modified.

OoStatus IG.Lib.MsgConst.ConvertOoStatus ( string  statuscode)
inline

Returns observation order status corresponding to the status code.

string IG.Lib.MsgConst.ConvertOoStatus ( OoStatus  statuscode)
inline

Returns a string corresponding to the specified observation order status code.

ActionPriority IG.Lib.MsgConst.ConvertActionPriority ( string  code)
inline

Returns action priority corresponding to the string code.

string IG.Lib.MsgConst.ConvertQuantity ( decimal  q)
inline

Converts a quantity to string format that is used in messages (9 numerical digits, with eventual leading zeros, last two are after the comma).

Parameters
qQuantity to be converted.
Returns
String representing the quantity in format suitable for messages.
decimal IG.Lib.MsgConst.ConvertQuantity ( string  qstr)
inline

Converts a string representation of quantity to number type. String form containts 9 numerical digits, with eventual leading zeros, last two are after the comma.

Parameters
qQuantity to be converted.
Returns
String representing the quantity in format suitable for messages.

Member Data Documentation

MsgConst IG.Lib.MsgConst._msgConst = null
staticprivate

Property Documentation

MsgConst IG.Lib.MsgConst.Const
staticget

The documentation for this class was generated from the following file: