Please enable JavaScript to view this site.

HL7 C# Script Reference

 

This class is implemented to trap or create errors across the CORE HL7 Scripting subsystems. Each class object will have

 

 

Public Properties:

 

Property Name

Data Type

ExceptionMessage

string

ExceptionMethod

string

ExceptionNumber

integer

SimpleErrorMessage

string (read only)

ExtendedErrorMessage

string (read only)

 

Public Methods:

 

Method

Return Value

Clear()

void

Copy()

COREException - Returns a copy of the COREException object

HasException()

bool NOTE: Can also be implemented with a HasException Property

SetException()

void

XMLValue()

string

 

Implementation:

 

Each class object will have an implementation like the example code below taken from COREHL7Script object.

 

 

This means that you can perform an action on the globals (COREHL7Script) object and then check to see if any error occurred in the process like so:

 

MyMessage = globals.CreateInitialMessage();

//MyMessage will either be a CHS_Message object or null. I can check for null OR check the 

//globals.LastException

if (globals.HasException)

{

    //Whenever the exception is set in globals it will automatically be Traced and Logged so 

    //I can just return;

    globals.MoveInitialMessageToError();

    globals.Completed = true;

    return;

}

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC