Please enable JavaScript to view this site.

HL7 C# Script Reference

 

The CHS_Field class is the object representation of a HL7 Field within a CHS_Segment object.

 

This class implements the COREException class for your convenience.     

 

See Also: CHS_Message, CHS_Segment, COREHL7Script.

 

 


 

Public Properties:

 

Property Name

Data Type

Value

string - Get or Set the entire RAW value of the field object

 

Public Methods:

 

Method

Return Value

ComponentCount(int instance = 1)

int- Returns the number of components in Repeat Instance instance of the CHS_Field object. If instance is > RepeatCount() will return 0.

GetComponentValue

(

int componentnumber = 1,

int subcomponent = 1,

int repeatindex = 1

)

string - Returns the string value of the CHS_Field object at component componentnumber, subComponent number subcomponent, and the repeat instance repeatindex. If componentnumber is greater than the number of components in the CHS_Field object returns an empty string. If subcomponent is greater than the number of subComponents within HL7 field component componentnumber returns an empty string. If repeatindex is greater than RepeatCount() in the CHS_Field returns an empty string.

GetInstanceRawValue(int instance = 1)

string - Returns the full raw value of a field repeating instance. If instance is > RepeatCount() returns an empty string.

HasRepeats()

bool - Returns true if RepeatCount() > 0.

RepeatCount()

int - Returns the number of repeating instances within the CHS_Field object.

SetValue

(

string value,

int componentnumber = 1,

int subcomponent = 1,

int repeatindex = 1

)

void - Sets the string Value within the CHS_Field object to value in Component componentnumber, Sub Component subcomponent, and Repeat Instance repeatindex.

SetRawValue(string fieldvalue)

void - Sets the full RAW value of the field to fieldvalue. Equivalent to setting the Value property.

 

 

  

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