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.MsgObservationEvent Class Reference

Class for holding and manipulating the data about observation event. Includes parsing an XML file, storing data internally, and transcription of read data to a PADO object that enables saving data to a database. More...

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

Public Member Functions

 MsgObservationEvent ()
 Default constructor, sets the type information. More...
 
override void Read ()
 Reads msg data from the internal XML document containing the msg. More...
 
override void Read (XmlParser data)
 Read msg data from an XML document containing the msg. More...
 
override void CheckConsistency (AccummulatedReport rep)
 Check correctness and consistency of data and creates a report on this. More...
 
void SetVerifierId (string ID)
 Postavi ID avtorizatorja, ta funkcija je narejena samo za testiranje in se v delovnem okolju ne sme uporabljati! More...
 
void LoadFindings (string FileName)
 Loads findings from a file. More...
 
override string ToString ()
 
override XmlDocument ToXml ()
 Converts a msg to Xml and returns it. More...
 
- Public Member Functions inherited from IG.Lib.MsgBaseWithModel
void SetModelFile (string FilePath)
 Sets the model document for creation of the msg to the contents of the specified file. More...
 
void SetModelString (string XmlString)
 Sets the model document for creation of the msg to the contents of the specified string. More...
 
void SetModelDocument (XmlDocument doc)
 Sets the model document for creation of the msg to the contents of the specified string. More...
 
- Public Member Functions inherited from IG.Lib.MsgBase
void SetSenderLabex ()
 Sets msg data such that sender is Labex and receiver is Bis. More...
 
void SetSenderBis ()
 Sets msg data such that sender is Bis and receiver is Labex. More...
 
- Public Member Functions inherited from IG.Lib.ParsableXmlObject
virtual void Save (string filename)
 Saves contents of the msg to an xml file. More...
 
virtual void CreateXml ()
 Creates msg Xml from the current msg data and stores it in this object. More...
 
virtual void Load (string filename)
 Loads msg data from a file containing the XML msg. More...
 
virtual void LoadXml (string doc)
 Loads msg data from a string containing the XML msg. More...
 
virtual void LoadXml (XmlDocument doc)
 Loads msg data from an XmlDocument containing XML msg. More...
 
virtual void WriteToConsole ()
 Writes cntents of the msg in a human readable form to the system console. More...
 
virtual void Write (string filename, bool append)
 Writes cntents of the msg in a human readable form to a file. More...
 

Public Attributes

int Id
 
string FindingsIdOid = ""
 
DocFindings Findings = null
 
string aaa = null
 
- Public Attributes inherited from IG.Lib.MsgBase
MessageType Type = MessageType.Unknown
 Message type. Helps with general methods that operate on any datatype of msg. More...
 
string MessageId = null
 Message ID, obtained form the web service. More...
 
string MessageFile = null
 Specifies the file where message has been backed up. Warning: this file may be deleted at any time! More...
 
string MessageNumber = null
 
- Public Attributes inherited from IG.Lib.ParsableXmlObject
string XmlString = null
 

Properties

OeAction Action [get, set]
 Action is bound to order status, therefore this propety is implemented in this way! More...
 
string ActionCode [get, set]
 Actioncode is bound to action, which is ensured by this property. More...
 
string MessageCode [get, set]
 MessageCode is bound to action, which is ensured by this property. More...
 
string FindingsId [get, private set]
 
string FindingsString [get, set]
 Gets or sets findings (attachment) as XML string. This is coupled with FindingsXml. More...
 
string FindingsStringPartial [get]
 Gets or sets findings (attachment) as XML string. This is coupled with FindingsXml. More...
 
XmlDocument FindingsXml [get, set]
 Gets or sets findings (attachment) as XmlDocument. This is coupled with FindingsStringPartial. More...
 
- Properties inherited from IG.Lib.MsgBaseWithModel
virtual XmlDocument ModelDocument [get, set]
 Gets or seta the XML document that is used as model for creation of XML. Warning: Each call to execution of get() makes a clone of an XmlDocument. More...
 
- Properties inherited from IG.Lib.MsgBase
static MsgConst Const [get]
 Gets objects that contains all constants related to communication messages. More...
 
string MessageXml [get, set]
 Complete msg as obtained from the web service. More...
 
- Properties inherited from IG.Lib.ParsableXmlObject
virtual IReporter R [get]
 Reporter for this class. More...
 
XmlDocument Doc [get]
 Returns the XML document representing the msg. More...
 

Private Member Functions

string GenerateMessageId ()
 Returns a generated msg Id. More...
 

Private Attributes

string ActionRoot = null
 
string MessageCodeSystem = null
 
string ProtocolNumber = null
 
string ProtocolNumberOid = null
 
string RsrType = null
 
string RsrTypeCodeSystem = null
 
string Comment = null
 
string PatientId = null
 
string PatientIdOid = null
 
string AuthorId = null
 
string AuthorIdOid = null
 
string VerifierId = null
 
string VerifierIdOid = null
 
string BisorderId = null
 
string BisorderIdOid = null
 
OeAction _action = OeAction.Unknown
 
OoStatus OrderStatus = OoStatus.Unknown
 
DateTime CreationTime = DateTime.Now
 
DateTime OrderCreationTime = null
 
DateTime OrderCompletionTime = null
 
string _FindingsId = null
 
string _findingsStr = null
 
XmlDocument _findingsXml = null
 

Static Private Attributes

static int IdWithinSession = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from IG.Lib.MsgBase
static void SetMessageReceiverOld (ref XmlDocument msg, string receiver, out bool changed)
 Sets the receiver of the communication msg stored in msg to the specified receiver, and indicates through an output argument whether the receiver has been changed in msg. If the receiver stated in the msg already equals to the specified one then nothing changes in the msg and the output indicator becomes false. WARNING: searching for receiver element is done through an XPath expression, which may fail due to default namespaces that were not detected. More...
 
static void SetMessageReceiver (ref string message, string receiver, out bool changed)
 Sets the receiver of the communication msg stored in msg to the specified receiver, and indicates through an output argument whether the receiver has been changed in msg. If the receiver stated in the msg already equals to the specified one then nothing changes in the msg and the output indicator becomes false. More...
 
static void SetMessageReceiver (ref XmlDocument msg, string receiver, out bool changed)
 Sets the receiver of the communication msg stored in msg to the specified receiver, and indicates through an output argument whether the receiver has been changed in msg. If the receiver stated in the msg already equals to the specified one then nothing changes in the msg and the output indicator becomes false. More...
 
static void SetMessageReceiver (ref XmlBuilder data, string receiver, out bool changed)
 Sets the receiver of the communication msg stored in an Xml builder to the specified receiver, and indicates through an output argument whether the receiver has been changed in msg. If the receiver stated in the msg already equals to the specified one then nothing changes in the msg and the output indicator becomes false. More...
 
static void SetMessageSender (ref XmlBuilder data, string sender, out bool changed)
 Sets the sender of the communication msg stored in an Xml builder to the specified sender, and indicates through an output argument whether the sender has been changed in msg. If the Sender stated in the msg already equals to the specified one then nothing changes in the msg and the output indicator becomes false. More...
 
static void SetMessageResponder (ref XmlBuilder data, string responder, out bool changed)
 Sets the responder of the communication msg stored in an Xml builder to the specified responder, and indicates through an output argument whether the responder has been changed in msg. If the responder stated in the msg already equals to the specified one then nothing changes in the msg and the output indicator becomes false. More...
 
static MessageType GetMessageType (string msgstring)
 Infers the msg type from the XML string containing the msg, and returns it. More...
 
static MessageType GetMessageType (XmlDocument msg)
 Infers the msg type from the XML document containing the msg, and returns it. More...
 
static MessageType GetMessageType (XmlParser data)
 Infers the msg type from the XML parser containing the msg, and returns it. More...
 
- Protected Attributes inherited from IG.Lib.ParsableXmlObject
XmlBuilder Data = new XmlBuilder()
 
- Static Protected Attributes inherited from IG.Lib.MsgBase
static string LabexIdLowercase = null
 

Detailed Description

Class for holding and manipulating the data about observation event. Includes parsing an XML file, storing data internally, and transcription of read data to a PADO object that enables saving data to a database.

Constructor & Destructor Documentation

IG.Lib.MsgObservationEvent.MsgObservationEvent ( )
inline

Default constructor, sets the type information.

Member Function Documentation

override void IG.Lib.MsgObservationEvent.Read ( )
inlinevirtual

Reads msg data from the internal XML document containing the msg.

Implements IG.Lib.ParsableXmlObject.

Referenced by IGTest.ProgramIGTest.TestMsgObservationEvent().

override void IG.Lib.MsgObservationEvent.CheckConsistency ( AccummulatedReport  rep)
inlinevirtual

Check correctness and consistency of data and creates a report on this.

Parameters
repObject where error, warning and info reports are accumulated.

Reimplemented from IG.Lib.ParsableXmlObject.

References IG.Lib.ParsableXmlObject.AccummulatedReport.AddError(), and IG.Lib.ParsableXmlObject.AccummulatedReport.AddInfo().

void IG.Lib.MsgObservationEvent.SetVerifierId ( string  ID)
inline

Postavi ID avtorizatorja, ta funkcija je narejena samo za testiranje in se v delovnem okolju ne sme uporabljati!

void IG.Lib.MsgObservationEvent.LoadFindings ( string  FileName)
inline

Loads findings from a file.

Referenced by IGTest.ProgramIGTest.TestMsgObservationEvent().

override string IG.Lib.MsgObservationEvent.ToString ( )
inline
string IG.Lib.MsgObservationEvent.GenerateMessageId ( )
inlineprivate

Returns a generated msg Id.

override XmlDocument IG.Lib.MsgObservationEvent.ToXml ( )
inlinevirtual

Converts a msg to Xml and returns it.

Implements IG.Lib.ParsableXmlObject.

References IG.Lib.ReporterBase.ReviseException().

Referenced by IGTest.ProgramIGTest.TestMsgObservationEvent().

Member Data Documentation

string IG.Lib.MsgObservationEvent.ActionRoot = null
private
string IG.Lib.MsgObservationEvent.MessageCodeSystem = null
private
string IG.Lib.MsgObservationEvent.ProtocolNumber = null
private
string IG.Lib.MsgObservationEvent.ProtocolNumberOid = null
private
string IG.Lib.MsgObservationEvent.RsrType = null
private
string IG.Lib.MsgObservationEvent.RsrTypeCodeSystem = null
private
string IG.Lib.MsgObservationEvent.Comment = null
private
string IG.Lib.MsgObservationEvent.PatientId = null
private
string IG.Lib.MsgObservationEvent.PatientIdOid = null
private
string IG.Lib.MsgObservationEvent.AuthorId = null
private
string IG.Lib.MsgObservationEvent.AuthorIdOid = null
private
string IG.Lib.MsgObservationEvent.VerifierId = null
private
string IG.Lib.MsgObservationEvent.VerifierIdOid = null
private
string IG.Lib.MsgObservationEvent.BisorderId = null
private
string IG.Lib.MsgObservationEvent.BisorderIdOid = null
private
OeAction IG.Lib.MsgObservationEvent._action = OeAction.Unknown
private
OoStatus IG.Lib.MsgObservationEvent.OrderStatus = OoStatus.Unknown
private
DateTime IG.Lib.MsgObservationEvent.CreationTime = DateTime.Now
private
DateTime IG.Lib.MsgObservationEvent.OrderCreationTime = null
private
DateTime IG.Lib.MsgObservationEvent.OrderCompletionTime = null
private
int IG.Lib.MsgObservationEvent.Id
string IG.Lib.MsgObservationEvent.FindingsIdOid = ""
string IG.Lib.MsgObservationEvent._FindingsId = null
private
DocFindings IG.Lib.MsgObservationEvent.Findings = null
string IG.Lib.MsgObservationEvent._findingsStr = null
private
XmlDocument IG.Lib.MsgObservationEvent._findingsXml = null
private
string IG.Lib.MsgObservationEvent.aaa = null
int IG.Lib.MsgObservationEvent.IdWithinSession = 0
staticprivate

Property Documentation

OeAction IG.Lib.MsgObservationEvent.Action
getsetprivate

Action is bound to order status, therefore this propety is implemented in this way!

string IG.Lib.MsgObservationEvent.ActionCode
getsetprivate

Actioncode is bound to action, which is ensured by this property.

string IG.Lib.MsgObservationEvent.MessageCode
getsetprivate

MessageCode is bound to action, which is ensured by this property.

string IG.Lib.MsgObservationEvent.FindingsId
getprivate set
string IG.Lib.MsgObservationEvent.FindingsString
getset

Gets or sets findings (attachment) as XML string. This is coupled with FindingsXml.

string IG.Lib.MsgObservationEvent.FindingsStringPartial
get

Gets or sets findings (attachment) as XML string. This is coupled with FindingsXml.

XmlDocument IG.Lib.MsgObservationEvent.FindingsXml
getset

Gets or sets findings (attachment) as XmlDocument. This is coupled with FindingsStringPartial.


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