UB-04 (1296)    IB FORM FIELD CONTENT (364.7)

Name Value
FORM FIELD REFERENCE UB-04
SECURITY LEVEL NATIONAL,NO EDIT
DATA ELEMENT N-GET FROM PREVIOUS EXTRACT
PAD CHARACTER NO PAD REQUIRED
FORMAT CODE N Z,Q,Z0 K IBXDATA S Z0=0 F Z=2:2 Q:$G(IBXSAVE("OCCS",Z))="" S Z0=Z0+1,Q=$$DATE^IBCF2($P(IBXSAVE("OCCS",Z),U,3),,1) S:Z'>4 IBXDATA(Z0)=Q D:Z>4 XOCCS^IBCEF3($P(IBXSAVE("OCCS",Z),U)_U_$$DATE^IBCF2($P(IBXSAVE("OCCS",Z),U,2),,1)_U_Q,Z0,36)
FORMAT CODE DESCRIPTION
This data element is a group data element where more than one occurrence
might be expected.  It relies on the presence of data in array
IBXSAVE("OCCS") extracted previously.  This field outputs the 2nd and 4th
occurrences of occurrence span code 'to date' formatted as MMDDYY found
in the third '^' piece of the IBXSAVE("OCCS",n) array data element.