FBFHLS ;OIFO/SAB-BUILD HL7 MESSAGE SEGMENTS ;11/21/2003
Source file <FBFHLS.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
EN | ;
; input ; HLFS - HL7 field separator ; HLECH - HL7 encoding characters ; FBAAIN - invoice number ; FBD( array containing the invoice data ; Applicablity of a FBD node for a given transaction type (C,L, or X) ; is indicated by the presence of the transaction type code at the ; beginning of the line in the following table. |
|
CL | ; Claim or Line Transaction
|
|
X | ; Cancel Transaction
|
|
EXPLIST(FBLIST) | ; expand ranges in a list
; input FBIST - list or range or "ALL" ; result expanded list (e.g. "1-3" returned as "1,2,3") |
|
FT1(FBTYAMT,FBX) | ; add amount to FT1 segment
; input ; FBTYAMT - type of amount (1,2,3,4,5) ; FBX - if type 1-4 then amount ; - if type 5 then adj reason^adjustment group^adj amount ; FBFT1 - FT1 segment without an amount ; result (string) ; FT1 segment with amount (and reason, group) inserted |
|
TMPHL | ; Place HL7 segment in ^TMP
; input ; FBL - last line written to ^TMP ; FBX - HL7 segment ; output ; FBL - will be incremented by 1 ; stores FBX in ^TMP("HLS",$J,FBL+1) ; if length of FBX exceeds 244 then continuation lines will be used ; example ^TMP($J,"HLS",$J,FBL+1,1) |