IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Class for holding and manipulating the data about observation order. 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...
Public Member Functions | |
DocFindings () | |
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 | EnsureCompatibilityBeforeXmlGeneration () |
Performs the necessary corrections such that other Labex tools will work with the generated XML. This is necessary e.g. to show findings, since methods for doing taht can not cope with absent XML fields. More... | |
override string | ToString () |
Returns a string describing contents of the current object. More... | |
override XmlDocument | ToXml () |
Converts a msg to Xml and returns it. More... | |
![]() | |
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... | |
![]() | |
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... | |
Static Public Member Functions | |
static bool | IsRtf (string str) |
Returns true if str is a valid rich text, or false otherwise. More... | |
static string | ToRtf (string str) |
Returns a rich text that corresponds to the string argument. If the argument is already a rich text then the unchanged argument is returned, otherwise it is wrapped in RTF markup. More... | |
static string | ToText (string str) |
Returns plain text that corresponds to the string argument. If the argument is a rich text then then text is extracted from it and returned, otherwise the unchanged argument is returned. More... | |
![]() | |
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... | |
Public Attributes | |
bool | CompatibilityMode = false |
When this flag is set, operations are performed in compatible mode, such that results and inputs are compatible with the current state (this mainly refers to what Mirjam produced) More... | |
bool | UsePlainText = false |
If true then plain text is used for fields that are otherwise in RTF. More... | |
ObservationType | ObservationTypeFlag = ObservationType.Unknown |
int | Id = null |
Id of the Findings database rsr; this is null when Finding data is not read from the database. More... | |
bool | XmlCreateInputFormat = false |
If true then XML is created for data in input format, which means that all fields can be read back when parding that XML. Default is false, in this case the generated XML is in output format more suitable for printing and jviewing (i.e. better for human reading), but in this form some fields (data and gender fields) can not be interpreted correctly when such a file is parsed. More... | |
bool | XmlAddStyleSheetInstruction = true |
If true then processing instruction is added to the XML documents created from data that enables viewing in browser in a human readable form. More... | |
![]() | |
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 |
![]() | |
string | XmlString = null |
Properties | |
new FindingsConst | Const [get] |
string | InnerDescription [get, set] |
Inner description. More... | |
string | OuterDescription [get, set] |
Outer description. More... | |
string | MacroDescription [get, set] |
Macro description. More... | |
string | MicroDescription [get, set] |
Micro description. More... | |
string | MacroDescription2 [get, set] |
Macro description. More... | |
string | MicroDescription2 [get, set] |
Micro description. More... | |
string | DiagnosisClinicalText [get, set] |
Free text of clinical diagnosis. More... | |
string | DiagnosisPatoHistologicalText [get, set] |
Free text of patohistological diagnosis. More... | |
string | TemporaryOpinion [get, set] |
Temporary opinion. More... | |
string | Appendix [get, set] |
Appendix. More... | |
string | Header [get, set] |
Header. More... | |
string | Footer [get, set] |
Footer. More... | |
bool | IsHistological [get] |
bool | IsCytological [get] |
bool | IsPatological [get] |
string | SignerPartString [get, private set] |
string | SignerFinishString [get, private set] |
string | SignerAdditionString [get, private set] |
string | SignTimePartString [get, private set] |
string | SignTimeFinishString [get, private set] |
string | SignTimeAdditionString [get, private set] |
string | SampleTimeOutputString [get] |
string | ReceptionTimeOutputString [get] |
string | CompletionTimeOutputString [get] |
![]() | |
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... | |
![]() | |
virtual IReporter | R [get] |
Reporter for this class. More... | |
XmlDocument | Doc [get] |
Returns the XML document representing the msg. More... | |
Private Member Functions | |
string | ConvertRtfField (string str) |
Aoutonomously converts text either to plain text or to RTF, dependent on the value of UsePlainText flag. More... | |
string | ConvertRtfFieldSet (string str) |
Aoutonomously converts text either to plain text or to RTF, dependent on the value of UsePlainText flag. More... | |
string | DateString (DateTime t) |
Converts date to a string for output. More... | |
string | DateString (DateTime?t) |
Converts date to a string for output. More... | |
Static Private Member Functions | |
static string | ToRtfSet (string str) |
Returns a rich text that corresponds to the string argument. If the argument is not a rich text then it is wrapped in RTF markup. If it is a rich text, the oridinal text is filtered through a rixh text box control in order to c correct eventual formatting errors. More... | |
Static Private Attributes | |
static object | LockRtb = new object() |
static RichTextBox | Rtb = null |
Additional Inherited Members | |
![]() | |
XmlBuilder | Data = new XmlBuilder() |
![]() | |
static string | LabexIdLowercase = null |
Class for holding and manipulating the data about observation order. Includes parsing an XML file, storing data internally, and transcription of read data to a PADO object that enables saving data to a database.
|
inline |
Default constructor, sets the type information.
|
inlinevirtual |
Reads msg data from the internal XML document containing the msg.
Implements IG.Lib.ParsableXmlObject.
Referenced by IGTest.FindingsRtfTest.btnImportInput_Click(), IGTest.FindingsRtfTest.btnImportInputRtf_Click(), IGTest.FindingsRtfTest.btnImportOutput_Click(), IGTest.FindingsRtfTest.btnImportOutputRtf_Click(), and IGTest.ProgramIGTest.TestFindings().
|
inlinevirtual |
Read msg data from an XML document containing the msg.
doc | Document containing the msg. |
Implements IG.Lib.ParsableXmlObject.
References IG.Lib.XmlParser.Back(), IG.Lib.XmlParser.BackToMark(), IG.Lib.MsgConst.Const, IG.Lib.MsgConst.ConvertTime(), IG.Lib.XmlParser.Current, IG.Lib.XmlParser.Doc, IG.Lib.MsgConstCommon.GenderMale, IG.Lib.XmlParser.GoToRoot(), IG.Lib.Patient.IsMale, IG.Lib.Patient.Name, IG.Lib.XmlParser.Name, IG.Lib.XmlParser.NextElement(), IG.Lib.XmlParser.NextOrCurrentElement(), IG.Lib.ParsableXmlObject.AccummulatedReport.Report(), IG.Lib.ReporterBase.ReviseException(), IG.Lib.XmlParser.SetMark(), IG.Lib.XmlParser.StepIn(), and IG.Lib.XmlParser.Value.
|
inlinevirtual |
Check correctness and consistency of data and creates a report on this.
rep | Object 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().
|
inline |
Performs the necessary corrections such that other Labex tools will work with the generated XML. This is necessary e.g. to show findings, since methods for doing taht can not cope with absent XML fields.
References IG.Lib.DiagnosisCodeClass.Code, IG.Lib.DiagnosisCodeClass.CodeSystem, IG.Lib.DiagnosisCodeClass.Description, IG.Lib.Patient.IsMale, IG.Lib.Patient.Name, IG.Lib.RalatedObservation.ObservationReference, and IG.Lib.RalatedObservation.Remark.
|
inlinestatic |
Returns true if str is a valid rich text, or false otherwise.
|
inlinestatic |
Returns a rich text that corresponds to the string argument. If the argument is already a rich text then the unchanged argument is returned, otherwise it is wrapped in RTF markup.
|
inlinestatic |
Returns plain text that corresponds to the string argument. If the argument is a rich text then then text is extracted from it and returned, otherwise the unchanged argument is returned.
|
inlineprivate |
Aoutonomously converts text either to plain text or to RTF, dependent on the value of UsePlainText flag.
|
inlinestaticprivate |
Returns a rich text that corresponds to the string argument. If the argument is not a rich text then it is wrapped in RTF markup. If it is a rich text, the oridinal text is filtered through a rixh text box control in order to c correct eventual formatting errors.
|
inlineprivate |
Aoutonomously converts text either to plain text or to RTF, dependent on the value of UsePlainText flag.
|
inlineprivate |
Converts date to a string for output.
|
inlineprivate |
Converts date to a string for output.
|
inline |
Returns a string describing contents of the current object.
References IG.Lib.FindingsPatient.ToString().
|
inlinevirtual |
Converts a msg to Xml and returns it.
Implements IG.Lib.ParsableXmlObject.
References IG.Lib.FindingsPatient.Address, IG.Lib.FindingsPatient.Age, IG.Lib.FindingsPatient.AgeMonths, IG.Lib.DiagnosisCodeClass.Code, IG.Lib.DiagnosisCodeClass.CodeSystem, IG.Lib.FindingsPatient.DateOfBirthOutputString, IG.Lib.FindingsPatient.DateOfBirthOutputStringInputFormat, IG.Lib.DiagnosisCodeClass.Description, IG.Lib.FindingsPatient.FamilyName, IG.Lib.FindingsPatient.GenderOutputString, IG.Lib.FindingsPatient.GenderOutputStringInputFormat, IG.Lib.FindingsPatient.MiddleNames, IG.Lib.FindingsPatient.Name, IG.Lib.RalatedObservation.ObservationReference, IG.Lib.FindingsPatient.PersonId, IG.Lib.RalatedObservation.Remark, and IG.Lib.ReporterBase.ReviseException().
Referenced by IGTest.FindingsRtfTest.btnSaveOutput_Click(), IGTest.FindingsRtfTest.btnSaveOutputRtf_Click(), and IGTest.ProgramIGTest.TestFindings().
|
staticprivate |
|
staticprivate |
bool IG.Lib.DocFindings.CompatibilityMode = false |
When this flag is set, operations are performed in compatible mode, such that results and inputs are compatible with the current state (this mainly refers to what Mirjam produced)
bool IG.Lib.DocFindings.UsePlainText = false |
If true then plain text is used for fields that are otherwise in RTF.
Referenced by IGTest.FindingsRtfTest.btnImportInput_Click(), IGTest.FindingsRtfTest.btnImportInputRtf_Click(), IGTest.FindingsRtfTest.btnImportOutput_Click(), IGTest.FindingsRtfTest.btnImportOutputRtf_Click(), IGTest.FindingsRtfTest.btnSaveOutput_Click(), and IGTest.FindingsRtfTest.btnSaveOutputRtf_Click().
ObservationType IG.Lib.DocFindings.ObservationTypeFlag = ObservationType.Unknown |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
int IG.Lib.DocFindings.Id = null |
Id of the Findings database rsr; this is null when Finding data is not read from the database.
|
private |
bool IG.Lib.DocFindings.XmlCreateInputFormat = false |
If true then XML is created for data in input format, which means that all fields can be read back when parding that XML. Default is false, in this case the generated XML is in output format more suitable for printing and jviewing (i.e. better for human reading), but in this form some fields (data and gender fields) can not be interpreted correctly when such a file is parsed.
Referenced by IGTest.ProgramIGTest.TestFindings().
bool IG.Lib.DocFindings.XmlAddStyleSheetInstruction = true |
If true then processing instruction is added to the XML documents created from data that enables viewing in browser in a human readable form.
|
getprotected |
|
getset |
Inner description.
|
getset |
Outer description.
|
getset |
Macro description.
Referenced by IGTest.FindingsRtfTest.btnImportInput_Click(), IGTest.FindingsRtfTest.btnImportInputRtf_Click(), IGTest.FindingsRtfTest.btnImportOutput_Click(), IGTest.FindingsRtfTest.btnImportOutputRtf_Click(), IGTest.FindingsRtfTest.btnSaveOutput_Click(), and IGTest.FindingsRtfTest.btnSaveOutputRtf_Click().
|
getset |
Micro description.
|
getset |
Macro description.
|
getset |
Micro description.
|
getset |
Free text of clinical diagnosis.
|
getset |
Free text of patohistological diagnosis.
|
getset |
Temporary opinion.
|
getset |
Appendix.
|
getset |
Header.
|
getset |
Footer.
|
get |
|
get |
|
get |
|
getprivate set |
|
getprivate set |
|
getprivate set |
|
getprivate set |
|
getprivate set |
|
getprivate set |
|
get |
|
get |
|
get |