SEGPRSE(SEGMENT,OUTARR,FS) |
Parse HL7 segment by field separator
Notes : OUTARR is initialized (KILLed) on entry
: Assumes SEGMENT and OUTARR are defined and valid
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
SEGMENT |
Input |
Array containing HL7 segment to parse (full global
ref)
SEGMENT = First 245 characters of segment
SEGMENT(1..n) = Continuation nodes
OR
SEGMENT(x) = First 245 characters of segment
SEGMENT(x,1..n) = Continuation nodes
|
OUTARR |
Both |
Array to put parsed segment into (full global ref)
OUTARR(0) = Segment name
OUTARR(seq#) = Data (first 245 characters)
OUTARR(seq#,1..n) Continuation nodes
|
FS |
Input |
HL7 field separator (defaults to ^) (1 character)
|
|
SEQPRSE(SEQDATA,OUTARR,ENCODE) |
Parse HL7 sequence by component
Notes : OUTARR is initialized (KILLed) on entry
: Assumes SEQDATA and OUTARR are defined and valid
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
SEQDATA |
Input |
Array containing seq to parse (full global ref)
SEQDATA = First 245 characters of sequence
SEQDATA(1..n) = Continuation nodes
OR
SEQDATA(x) = First 245 characters of sequence
SEQDATA(x,1..n) = Continuation nodes
|
OUTARR |
Both |
Array to put parsed sequence into (full global ref)
OUTARR(rep#,comp#) = Data (first 245 characters)
OUTARR(rep#,comp#,1..n) = Continuation nodes
|
ENCODE |
Input |
HL7 encoding characters (defaults to ~|\&) (4 chars)
|
|