C# Class HL7Snoop.MainForm

The MainForm designer partial - describes all of the visual components on the form.
Exibir arquivo Open project: dgrinberg/HL7-Snoop

Public Methods

Method Description
MainForm ( ) : System

Initializes a new instance of the MainForm class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddChildGroup ( FieldGroup parentNode, FieldGroup childGroup ) : void

Adds the child group, to the parent node, only if the child group acutally contains fields.

CorrectLineFeeds ( string message ) : string
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InitializeTreeList ( ) : void

Initializes the tree list.

ProcessCompositeField ( IComposite composite, string fieldDescription, string fieldCount, FieldGroup parentNode ) : void

Processes the composite field. A composite field is a group of fields, such as "Coded Entry". This function breaks up the composite field and passes each field back to "ProcessField"

ProcessField ( IType item, string fieldDescription, string fieldCount, FieldGroup parentNode ) : void

Processes the field. Determines the type of field, before passing it onto the more specific parsing functions.

ProcessPrimitiveField ( AbstractPrimitive dataItem, string fieldDescription, string fieldCount, FieldGroup parentNode ) : void

Processes the primitive field. A primitive field is the most basic type (i.e. no composite fields). This function retrieves the data and builds the node in the TreeListView.

ProcessSegment ( AbstractSegment segment, FieldGroup parentNode ) : void

Processes the segment. Loops through all of the fields within the segment, and parsing them individually.

ProcessStructure ( IStructure structure, FieldGroup parentNode ) : void

Processes the structure. A base structure can be either a segment, or segment group. This function determines which it is before passing it on.

ProcessStructureGroup ( AbstractGroup structureGroup, FieldGroup parentNode ) : void

Processes a structure group. A structure group is, primarily, a group of segments. This could either be the entire message or special segments that need to be grouped together. An example of this is the result segments (OBR, OBX and NTE), these are grouped together in the model definition (e.g. REF_I12_RESULTS_NOTES).

ProcessVaries ( Varies varies, string fieldDescription, string fieldCount, FieldGroup parentNode ) : void

Processes the varies. "Varies" are the data in the OBX segment, the sending application can set the type hence generically the OBX value field is a variant type. The "Varies" data parameter contains the data in type IType (hence being passed back to process field).

btnParse_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnParse control. Retreives the HL7 from the text box and attempts to parse it using NHapi. If successfull, it retreives all of the fields and displays them in the TreeListView

tbMessage_TextChanged ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

MainForm() public method

Initializes a new instance of the MainForm class.
public MainForm ( ) : System
return System