{"aaData": [["IB 837 TRANSMISSION", "
\nThis is CI2-2.\nFileMan Extract - CURRENT BILL PAYER SEQUENCE (Field .21, File 399)\n\n
\nRetrieves insured demographics from IBXSAVE array previously extracted. If\ndata element's value is null, do not output.\n\n
\nSave off data element's value in IBXSAVE array. No output. IB*547 \nrequirement to use only Inpatient Discharge Date/Time\n\n
\nFormat data in 10 characters with 2 decimals.\n\n
\nClaim must be a CMS-1500 claim for this to be transmitted.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\n 4:MEDICAID (MC)\n 5:GROUP POLICY (GP)\n 9:OTHER (OT)\npossible for the data element in the IBXDATA array. If any 'other'\ninsurance company data is found, the data is formatted as the insurance type\nof the insurance company in X12 format (see codes below or refer to the\n837 V4010 field 2320/SBR/05 - professional guide)\n \n Type codes: = 1:HMO (HM)\n 2:COMMERCIAL (C1)\n 3:MEDICARE (MB)\n\n
\nThis is a group data element so more than 1 occurrence of a value is\nLength was also reduced from 80 chars to 61 chars in the field since that \nis all the Box 24 shaded area allows for the comment per line item.\npossible for the data element in the previously extracted IBXSAVE array.\nOnly output the data for service lines that have data.\n \nesg - 8/18/06 - IB patch 348 - new CMS 1500 claim form\nIf the service line comment qualifier doesn't exist, then add 2 blank \nspaces in front of the service line comment. If it does exist, then add \nit to the front of the comment.\n \n\n
\nCredentials should be in the 4th piece of the "NAME" node of the \nRendering Provider IBXSAVE array.\n\n
\nHCFA-1500 form, Box 32, Line 4.\nDisplay mammography certification number if it exists.\nOtherwise, display the facility tax ID for remote VA site or non-VA site.\n\n
\nExtract time from date/time retrieved from IBXSAVE array previously\nextracted. Format time in HHMM format. If data element's value is null,\ndo not output.\n\n
\nTranslate to X12 code, default to Group Policy (GP) if data is missing.\nRefer to Professional 837 V4010 2000B/SBR/05 for codes. REMOVED DEFAULT "GP"\n\n
\nThis element is blank.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array.\nChanges the internal code into a valid X12 837 code (N1,N2,N3,N4).\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the procedure type code for each COB sequence\nfound for the line.\n\n
\nThis field contains the VistA IB patch# that pertains to the\napplicable changes in the claim map. Austin uses this field to determine\nwhich set of EDI claim maps to use when processing the EDI claims.\n\nIf the EDI claims are being transmitted from a non-production account,\nthen the "D" in the 11th position indicates to Austin that it is test\ndata.\n\n
\nOutput if an ID exists for the 'other insurance'. If more than 1 ins,\nmust output the record id. Must kill the IBXSAVE("OSQ") array as this is\nused to determine the current bill's sequence of other providers and which\nIBXDATA array entry needs to be set for each. IBXSAVE("OSQ") must be killed\nat the last field for this record.\nIBXSAVE("OSQ",n)=m where n = the sequence for the other insurance (if bill\nis primary, 1=secondary, 2=tertiary; if bill is secondary, 1=primary,\n2=tertiary; if bill is tertiary, 1=primary, 2=secondary). And where\nm = the IBXDATA(m) entry to set for the 'n' COB sequence.\n\n\nOutput if an ID exists for the 'other insurance'. If more than 1\ninsurance, must output the record id. The IBXSAVE("OSQ") array is \nused to determine the current bill's sequence of other providers and\nwhich IBXDATA array entry needs to be set for each. This variable must\nbe killed at the last field for this record. IBXSAVE("OSQ",n)=m where\nn = the sequence for the other insurance (if bill is primary, 1=secondary,\n2=tertiary; if bill is secondary, 1=primary, 2=tertiary; if bill is\ntertiary, 1=primary, 2=secondary. And where m=the IBXDATA(m) entry to\nset for the 'n' COB sequence.\n\n\nIf data element's value is null, do not output.\n\n
\nOP3-2\nCall the provider ID function only if the claim is a UB claim.\nOutput the other payer sequence.\n\n
\nOutput if an ID exists for the 'other insurance'. If more than 1 insurance\nmust output the record id. Must kill the IBXSAVE("OSQ") array as this\nis used to determine the current bill's sequence of other providers and\nwhich IBXDATA array entry needs to be set for each. This variable must\nbe killed at the last field for this record. IBXSAVE("OSQ",n)=m where\nn = the sequence for the other insurance (if bill is primary, 1=secondary,\n2=tertiary; if bill is secondary, 1=primary, 2=tertiary; if bill is\ntertiary, 1=primary, 2=secondary. And where m=the IBXDATA(m) entry to\nset for the 'n' COB sequence.\n\n\nOP7-2\nother payer sequence. Call provider ID function only when claim is a \n1500 claim.\n\n
\nOutput if an ID exists for the 'other insurance'. If more than 1 insurance\nmust output the record id. Must kill the IBXSAVE("OSQ") array as this\nis used to determine the current bill's sequence of other providers and\nwhich IBXDATA array entry needs to be set for each. This variable must\nbe killed at the last field for this record. IBXSAVE("OSQ",n)=m where\nn = the sequence for the other insurance (if bill is primary, 1=secondary,\n2=tertiary; if bill is secondary, 1=primary, 2=tertiary; if bill is\ntertiary, 1=primary, 2=secondary. And where m=the IBXDATA(m) entry to\nset for the 'n' COB sequence.\n\n\nOutput if an ID exists for the 'other insurance'. If more than 1 insurance\nmust output the record id. Must kill the IBXSAVE("OSQ") array as this\nis used to determine the current bill's sequence of other providers and\nwhich IBXDATA array entry needs to be set for each. This variable must\nbe killed at the last field for this record. IBXSAVE("OSQ",n)=m where\nn = the sequence for the other insurance (if bill is primary, 1=secondary,\n2=tertiary; if bill is secondary, 1=primary, 2=tertiary; if bill is\ntertiary, 1=primary, 2=secondary. And where m=the IBXDATA(m) entry to\nset for the 'n' COB sequence.\n\n\nOI3-5\n2330C/NM108\nOther payer patient primary ID qualifier\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. The IBXSAVE(1) variable\nholds the indicator of which insurance [(P)rimary/(S)econdary/(T)ertiary] is\ncurrently responsible for the bill. Using this data as a guide, the next\ninsurance for the primary is secondary, then tertiary. For secondary, it's\nprimary then tertiary, and for tertiary, it's primary, then secondary. For\nother than the first occurrence, the RECORD ID 'OI3 ' must be output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. The IBXSAVE(1) variable\nholds the indicator of which insurance [(P)rimary/(S)econdary/(T)ertiary] is\ncurrently responsible for the bill. Using this data as a guide, the next\ninsurance for the primary is secondary, then tertiary. For secondary, it's\nprimary then tertiary, and for tertiary, it's primary, then secondary. For\nother than the first occurrence, the RECORD ID 'OI4 ' must be output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. The IBXSAVE(1) variable\nholds the indicator of which insurance [(P)rimary/(S)econdary/(T)ertiary] is\ncurrently responsible for the bill. Using this data as a guide, the next\ninsurance for the primary is secondary, then tertiary. For secondary, it's\nprimary then tertiary, and for tertiary, it's primary, then secondary. For\nother than the first occurrence, the RECORD ID 'OI5 ' must be output.\n\n
\nIf data element's value is null, transmit 9.\n\n
\nIf the previous extract returned a value for ibxdata then the\nQC modifier is needed here.\n\n
\nThis data is being moved to CI5[8] with eClaims Iteration III.\n\n
\nThis data is being moved to CI5[9] with eClaims Iteration III.\n\n
\nPrior to IB patch 320, this was the current insurance billing provider ID \nqualifier (one of them). All billing provider ID's and qualifiers are \nnow in the CI1A segment so this field has been removed.\n\n
\nGet the attending provider id info. If facility provider,\noutput 2 for non-person or 1 for person.\n\n
\nGet the referring provider id info. If facility provider, output 2 for\nnon-person or 1 for person.\n\n
\nGet the operating provider id info. If facility provider, output 2 for\nnon-person or 1 for person.\n\n
\nGet the other provider id info. If facility provider, output 2 for\nnon-person or 1 for person.\n\n
\nCheck all the data elements on the record. If all but the 1st and second\nare null, force a null into the second element so no output occurs.\n\n
\nGet the current payer sequence from the claim. \nOutput "P" if primary, "S" if secondary or tertiary. \n \nThis field is a duplicate of CI2.2. It was decided to blank this field \nout so as not to confuse the user. 8/24/10\n\n
\nData element's array reference is IBFL(24), not default of IBXDATA. This is\na group data element so more than 1 occurrence of a value is possible for\nthe data element in the IBFL(24) array. Each entry found is output on its\nown CCn entry where n is a record count that will allow it to be mapped into\none of the 12 available pieces of the 837 condition code record correctly.\nThis is done to accommodate Austin's translator and one of its shortcomings.\n\n
\nIf the bill payer is secondary to MEDICARE WNR with an MRA on file\noutput 'M'. For non-secondaries, output nothing. \nFor non-MRA secondaries, output 'N'. \n\n
\nEach value code found in the IBXSAVE array previously extracted is\noutput on its own VCn entry where n is a record count that will allow it\nto be mapped into one of the 12 available pieces of the 837 value code\nrecord correctly. This is done to accommodate Austin's translator and one\nof its shortcomings.\n\n
\nData element's array reference is IBFL(39), not default of IBXDATA. This is\na group data element so more than 1 occurrence of a value is possible for\nthe data element in the IBFL(39) array. Save off values in IBXSAVE array\nfor later use. No output.\n\n
\nEach value code amount found in the IBXSAVE array previously extracted is\nformatted according to its datatype.\n \nDollar amounts are denoted by the setting of field #.19 in file #399.1 as \n"YES"\n \nOther data types are defined by code in CHK^IBCVC and VALCODEFMT^IBCVC.\n\n
\nSaves off data element in IBXSAVE array. Do not output.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nMove the text over to the column specified in the 1500 ADDRESS COLUMN\nparameter (file 350.9, field 1.27). Also initialize utility globals\nand variables used in this form.\n \n3/30/09 - IB patch 400 - Set the claim into the scratch global which \nindicates this claim is currently being printed as a CMS-1500 claim form.\n\n
\nIf the 1500 ADDRESS COLUMN parameter exists, move the text over to\nthis column by adding spaces at the start of it. Save the indent parameter\nin IBXSAVE("INDENT") for future use. If the current insurance is MEDICARE\nWNR, output 'MEDICARE'.\n\n\nIf the 1500 ADDRESS COLUMN parameter exists, move the text over to this\ncolumn by adding spaces at the start of it. Format the address so each\nstreet address occupies one line, then a line containing city followed by\na comma and space, the state abbreviation, a space and the zip code,\nformatted for zip plus 4 if appropriate.\n\n
\nCheck appropriate box for type of insurance. \nCMS-1500, Box 1. Possibility of checking one box. FECA BLK LUNG is not \nan available selection. Choices are mainly extracted from the ELECTRONIC \nPLAN TYPE field (#.15) in FILE# 355.3. Also used for the Group Health \nPlan box is the 3.09 field in file 36 (if the value is 5).\n \nCode is basically setting IBXDATA=$J("",[some offset amount])_"X".\n\n\n1500 form, Box 1a. Current insurance insured's ID number.\n\n
\n1500 form, Box 2. Patient Name\n\n
\nFormat the date as MM DD YYYY.\n\n
\nSave the value of patient sex in IBXSAVE variable for later use. If the\nvalue is 'M', this field's value is 'X'.\n\n
\nThis field relies on the existence of variable IBXSAVE("SEX") previously\nextracted. If its value is not 'M', assume the sex is female and this\nfield's value will be 'X'.\n\n\nSave the insured's demographic data in IBXSAVE("IDEM").\n\n\nIf data element is null, output 'N'.\n\n
\nIf the current insured is the patient, the word 'SAME' is printed instead\nof repeating the name.\n \nesg - 8/23/06 - IB*2*348 - Requirement 3.2.1.12 - No longer print the \nword "SAME" in Box 4 ever. We have to print the name of the insured in \nall cases.\n\n
\nConcatenate all 3 lines of the address together, separated by a space.\n\n
\nSave the value of patient sex in IBXSAVE variable for later use. If\nthe value is '1' (patient), this field's value is 'X'.\n\n
\nThis field relies on the existence of variable IBXSAVE("PREL")\npreviously extracted. If its value is '2' (spouse), this field's value\nwill be 'X'.\n\n\nThis field relies on the existence of variable IBXSAVE("PREL") previously\nextracted. If its value is '3' (child), this field's value will be 'X'.\n\n\nThis field relies on the existence of variable IBXSAVE("PREL") previously\nextracted. If its value is not a '1', '2', or '3', assume it is other and\nthis field's value will be 'X'.\n\n\nIf patient is different than the insured, then save the address \ninformation.\n \nesg - 8/23/06 - IB*2*348 - Requirement 3.2.1.8 - Save the address \ninformation in all cases. Remove printing of the word "SAME" in Box 7.\n\n
\n1500 form, Box 7 - Insured's address\n\n
\nOutput the state abbreviation.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. The IBXSAVE(1) variable\nholds the indicator of which insurance [(P)rimary/(S)econdary/(T)ertiary] is\ncurrently responsible for the bill. Using this data as a guide, the next\ninsurance for the primary is secondary, then tertiary. For secondary, it's\nprimary then tertiary, and for tertiary, it's primary, then secondary. For\nother than the first occurrence, the RECORD ID 'OI1 ' must be output.\n\n
\nThis is no longer used.\n \nSave the value of marital status in IBXSAVE variable for later use. If\nthe value is 'I' (NEVER MARRIED), this field's value is 'X'.\n\n
\nThis field is no longer used.\n \nThis field relies on the existence of variable IBXSAVE("MSTAT")\npreviously extracted. If its value is 'M' (MARRIED), this field's value\nwill be 'X'.\n\n\nThis field is no longer used.\n \nThis field relies on the existence of variable IBXSAVE("MSTAT") previously\nextracted. If its value is not a 'M', or 'I', assume it must be other and\nthis field's value will be 'X'.\n\n\nThis field relies on the existence of variable IBXSAVE("IADR") previously\nextracted.\n\n\nThis field relies on the existence of variable IBXSAVE("IADR") previously\nextracted. Output the state abbreviation.\n\n\nFormat zip code as zip plus 4 if needed.\n\n
\nCMS-1500, Box 5 patient telephone with area code.\nStrip out all punctuation. If you have exactly 10 numbers left, then \nformat as nnn nnn-nnnn because the form already has the area code \nparenthesis pre-printed.\nIf you have something other than 10 numbers, then just display the raw \ndata right justified so as to not overwrite those pre-printed parenthesis.\n\n
\nThis field is no longer used.\n \nIf the value of this field is '1' (EMPLOYED FULL TIME), '2' (EMPLOYED\nPART TIME), '4' (SELF EMPLOYED), or '6' (FULL TIME MILITARY), assume\nemployed and output this field as 'X'.\n\n
\nThis field relies on the existence of variable IBXSAVE("IADR") previously\nextracted. Output the insured's zip code.\n\n\nThis field relies on the existence of the variable IBXSAVE("IDEM")\npreviously extracted.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance\ninsurance company data is found, the data is formatted as the name of the\ninsurance company from the insurance company file.\nSaves the claim office id and payer id in IBXSAVE array.\nIf other insurance is MEDICARE WNR, output is MEDICARE.\n\n
\nOnly output the group number if the SUBSCRIBER ID field is non-null.\n\n
\nSave the value of other insured group number in IBXSAVE variable for later\nuse. Use the first occurrence of other insured group number for this\nfield's value. If the other insurance is a medigap (MEDICARE WNR is\nbefore this insurance on the bill), the group # is preceeded by 'MG'\non output. If no other insured group number is found, use the other\ninsured's policy id number instead.\n\n
\nSave the value of condition related to employment in IBXSAVE variable for\nlater use. If this value is 1 (yes), this field's value is 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("CONDE") variable\npreviously extracted. If this variable's value is 0 or null, this assumes\ncondition is not related and this field's value is 'X'.\n\n\nThis field relies on the existence of the variable IBXSAVE("IDEM")\npreviously extracted. Format the birthdate as MM DD YYYY.\n\n\nThis field relies on the existence of the IBXSAVE("IDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis an 'M', this field's value is 'X'.\n\n\nThis field relies on the existence of the IBXSAVE("IDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis not an 'M', this field's value is 'X'.\n\n\nThis is no longer used.\n \nSave the other insured's demographic data in IBXSAVE for later use. Format\nthe birthdate as MM DD YYYY.\n\n
\nThis is no longer used.\n \n \nThis field relies on the existence of the IBXSAVE("OIDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis an 'M', this field's value is 'X'.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance\nis found, the output is formatted as the X12 code for the DHCP value for\nrelationship.\n\n
\nThis field is no longer used.\n \nThis field relies on the existence of the IBXSAVE("OIDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis not a null and is not an 'M', this field's value is 'X'.\n\n\nSave the value of condition related to auto accident in IBXSAVE variable\nfor later use. If this value is 1 (yes), this field's value is 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("CONDA") variable\npreviously extracted. If this variable's value is 0 or null, this assumes\ncondition is not related and this field's value is 'X'.\n\n\nOutput state abbreviation.\n\n
\nThis is the Property/Casualty number.\n\n
\n9C is now a reserved empty box. \n\n
\nSave the value of condition related to other accident in IBXSAVE variable\nfor later use. If this value is 1 (yes), this field's value is 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("CONDOA") variable\npreviously extracted. If this variable's value is 0 or null, this assumes\ncondition is not related and this field's value is 'X'.\n\n\nUse the first occurrence of other insured group name. The first '^' piece\nof this value has either the group name or the insurance company pointer.\nIf the second '^' piece is a 1, the insurance company name is extracted\nusing the insurance company pointer in the first '^' piece, otherwise, the\nname in the first '^' piece is output.\nMEDICARE WNR always outputs MEDICARE.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance\nis found, the other insured data is output.\n\n
\nSave the other insurance exists data in the IBXSAVE variable for later\nuse. If the value is 1, output an 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("OI") variable\npreviously extracted. If the value of this data element is null or 0,\noutput an 'X' in this field\n\n\nOutput the patient's name as the signature first middle last name.\n\n
\nFormat data element in MM/DD/CCYY date format.\n\n
\nOutput the current insured's name as the signature first name, middle name\nlast name\n\n
\nFormat date as MM DD YYYY.\n\n
\nFormat date as MM DD YYYY.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If the insurance for\nany COB sequence is MEDICARE WNR, output nothing for that insurance.\n\n
\nFormat date as MM DD YYYY.\n\n
\nFormat date as MM DD YYYY.\n\n
\ncms-1500, box 17a/1, 2 character qualifier for the Referring provider \nother ID (non-NPI ID).\n\n
\nCMS-1500, Box 17a/2, Referring Provider other ID number (non NPI ID \nnumber).\n\n
\nNPI# of Referring Physician\n\n
\n'From' date is the first '^' piece of this data. Format date as MM DD YYYY.\n\n
\nIf there is no date in IBXDATA, set it to Statement Covers To Date then \nformat the resulted date.\n\n
\nThis field holds the 1st through 48th characters of the box's data.\n\n
\nIf the array that holds the entire box 19 data is not defined, extract it.\nThis field will hold the 49th through 96th characters of the box's data.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible other payers on the bill (F Z=1,2). If that other insurance \nexists on the claim and the subscriber ID is not nil after stripping out \nthe punctuation marks, then build IBXDATA(Z) array and also save the \nIBXSAVE("OIID",Z) array entry to indicate that a valid ID is being output \nfor this other payer Z. This is so the qualifier in OI2-11 can be output \nbecause we have the ID#.\npossible for the data element in the IBXDATA array. If any other insured\nID data is found, the data is output.\n \nOI2-3\n2330A/NM109\n \nMerge IBZ=IBXDATA which is the list of other payer subscriber ID's \nreturned from data element N-OTH INSURED ID. Loop thru each of the \n\n\ncms-1500, box 20 Outside Lab=YES\nChanged with IB patch 371\nIf there is an outside facility on the claim, then an "X" should display \nin the YES box.\n\n
\nFormat the amount in 9 characters with 2 decimals.\n \nIf there is not an Outside facility on the claim, then NO gets the "X" \nand the charges field will be blank.\n\n
\nThe 1500 instruction manual says that this area should always be left \nblank.\n\n
\nSave the diagnoses in the IBXSAVE array for later use. Output the\ndiagnosis code for the first diagnosis. Check for any diagnosis codes\nthat should display in the first position on pages subsequent to page 1\nand output them.\n\n
\nOutput the third diagnosis code. Check for any diagnosis codes that should\ndisplay in the third position on pages subsequent to page 1 and output\nthem.\n\n
\nOutput the second diagnosis code. Check for any diagnosis codes that should\ndisplay in the second position on pages subsequent to page 1 and output\nthem.\n\n
\nOutput the forth diagnosis code. Check for any diagnosis codes that should\ndisplay in the forth position on pages subsequent to page 1 and output\nthem.\n\n
\nIf the bill is for services rendered at an outside lab, get the CLIA number.\nIf this # is not available, use the prior authorization #.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance,\nthe name data is saved in the IBXSAVE array for later use, formatted in\nLAST^FIRST^MIDDLE format. No output.\n\n
\nIf array doesn't already exist, extract it\n\n
\nIf more than 6 service dates (12 lines) exist\nfor the bill, this outputs the rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exist for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exist for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exist for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany other insurance name data is found, the last name is output.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nClean up IBXSAVE array.\n\n
\nPrint indicator of ASSIGNMENT OF BENEFITS. Check Yes if data element value\nreturned is null or is not 0,'n', or 'N', otherwise check No.\n\n
\nSave the total charges in IBXSAVE array for later use. If\ntotal is not null, output as numeric with 2 decimal places.\nOnly output totals on last page of form.\n\n
\nThe payment received from the patient or other payers.\n\n
\nthis field is no longer used.\n \nIf not 0, output as numeric with 2 decimals.\nOnly output total on last page of form.\n\n
\nEI=Employer ID;SY=Social Security Number;0B=State License Number;\n1A = Blue Cross Number;1B=Blue Shield Number;1C=Medicare Number;\n1D = Medicaid Number;1G=UPIN Number;1H=TRICARE ID Number;\nB3 = PPO Number;BQ=HMO Code Number;U3=USIN Number;G2=Commercial Number;\nFH = Clinic Number;X5=State Industrial Accident Provider Number;\nLU=Location Number\nThis is the X12 interpretation of the type of billing provider id for this insurance co. It is calculated from the electronic type of plan. Refer to the 837 V4010 (professional) fields 2010BB/REF(2)/01 and 2000B/SBR/09 for details.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany other insurance name data is found, the first name is output.\n\n
\nBilling provider phone number, CMS-1500, Box 33, upper right hand corner.\n \nThis is actually the Pay-To Provider phone number.\n \nIB*2*400 changes.\n\n
\nesg - 10/1/08 - IB*2*400 - Print the service facility name only if there \nis a service facility for the claim\n\n
\nBilling provider name - Box 33 on the CMS-1500.\n\n
\nFormats the name in 21 spaces for block 31 of the 1500.\nIBXSAVE("BOX31") is the name in format Last,first mi^ien in file 200\n\n\nCalculate only field to populate boxes 32 and 33 on the CMS-1500 claim \n \nThe IBXSAVE("BOX33") array elements will be built with information about \nthe billing provider name, address, and phone# to go into Box 33.\nform. The data element call to N-BILLING PROVIDER will save information \nabout the service facility and the billing provider for this claim.\n \nIBXSAVE("SERVFACFLAG") is a 0/1 flag indicating if there is a service \nfacility for this claim.\n \nIBXSAVE("BPSFDATA") is the string of information returned by the \n$$B^IBCEF79 function call.\n\n\nRemove IBXSAVE array entries used in the construction of Boxes 32 and 33.\n\n
\nBox 32 - service facility address lines 1&2\nOnly print data if there is a service facility for this claim.\n\n
\ncms-1500, Box 33 Billing provider address lines 1&2.\n\n
\nPrint credentials left justified and date right justified. Format date as\nMM/DD/YYYY.\n\n
\nCMS-1500, Box 32, service facility city,st,zip\nOnly print this information if there is a service facility for this claim.\n \nThe 4th parameter to the $$GETFAC function is 26 since there is only room \nfor 26 characters for city, st zip. This function will try to truncate \nthe city, st zip in the best possible way if necessary.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany other insurance name data is found, the middle name is output.\n\n
\ncms-1500, Box 33, Billing Provider city,st,zip\n \nThere is only room for 29 characters for city, st zip. This $$CSZ\nfunction will try to truncate the city, st zip in the best possible way if\nnecessary.\n\n
\nThis line is no longer printed on the standard 1500.\n\n
\nCMS-1500 form, Box 32a.\nService Facility NPI#\n \nSave the service facility NPI# in IBXSAVE("NPISVC") for use in Box 32b.\n\n\n1500, Box 32b. Accommodate the reporting of other ID numbers.\nEnter the 2 digit qualifier followed by the secondary ID number.\n\n
\ncms-1500 form, Box 33a. Billing provider NPI.\n \nSave the billing provider NPI in IBXSAVE("NPIBILL") for use in Box 33b.\n\n\n1500 form. Box 33b. Billing provider Other ID number.\nEnter the 2 digit qualifier followed by the secondary ID#.\n\n
\nIf there is more than 1 page of bill extracted, the variable\nFLDS(line,column) holds the lines and columns that should be duplicated on\npages after the first. This takes care of the population of these static\nfields on these subsequent pages.\n\n
\nCMS-1500, box 20 Outside Lab=NO.\nChanged with IB patch 371\nIf there is not an outside facility on the claim, then the NO box gets \nthe "X".\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance,\nthe data is saved in the IBXSAVE array for later use. No output.\n\n
\nKills off globals,other variables to be used, sets right margin variable.\n\n
\nBilling Provider name. Use the data element to extract the billing \nprovider IEN for this claim. Save this string into scratch variable \nIBXSAVE("BPDATA") for use in other fields in FL-1. Extract the facility \nname from file 4.\n\n\nRetrieve the billing provider address from the Institution file \n(file#4). Grab both address line 1 and address line 2.\n\n
\nGet the billing provider city from file 4.\n\n
\nGet the billing provider state from file 4.\n\n
\nGet the billing provider zip code from file 4. Form Locator 1\naccommodates a 9-digit zip code so strip out the hyphen.\n\n
\nThis is the Pay-To provider phone number being used in FL-1, line 4.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance,\nthe employer data is saved in the IBXSAVE array for later use.\n\n
\nPay-to provider name\n\n
\nUB-04, FL-2\nPay-to provider street address\nConcatenate address line 1 and line 2 together and try to fit as much as \npossible within the given 25 characters.\n\n
\nUB-04, FL-2\npay-to provider city name\n\n
\nUB-04, FL-2\npay-to provider state code\n\n
\nUB-04, FL-2\npay-to provider zip code\n\n
\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the first occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nNOT USED. Reserved for Assignment by the NUBC.\n \nKill some scratch arrays here used for FL-1 and FL-2.\n\n
\nType of bill is 4 characters long with the first digit being a leading \nzero.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany other insurance employer data is found, the data is output.\n\n
\nAlways 0-fill data to the left. If primary site, don't output. If not\nprimary site, this is the site suffix (up to 4 digits)\n\n
\nFormat date in MMDDYY format.\n\n
\nFormat date in MMDDYY format.\n\n
\nReserved for Assignment by the NUBC.\n\n
\nReserved for Assignment by the NUBC.\n\n
\nThis is the patient identification number as assigned by the current \npayer for this patient.\n \nThe patient ID in box 8a is situational. It should be used only when the \npatient is not the subscriber. Report if number is different from the \nsubscriber ID in FL-60. FL-60 holds the subscriber ID#.\n\n
\nPatient address - street address\n\n
\nPatient address - city\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany other insurance employer data is found, the data is output.\n\n
\nPatient address - state/province (2-char code)\n\n
\nPatient address - zip code/postal code\n\n
\nThe data element extracts multiply-occurring data for the occurrence codes\nand occurrence span codes and outputs the first occurrence code here.\nOverflow codes are printed on a separate page.\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 1st and 5th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nOverflow codes (9,13,...) are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 2nd and 6th\noccurrences of occurrence codes found in the IBXSAVE("OCC",n) array data\nelement. Overflow codes are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 2nd and 6th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nOverflow codes (10,14,...) are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 3rd and 7th\noccurrences of occurrence codes found in the IBXSAVE("OCC",n) array data\nelement. Overflow codes are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 3rd and 7th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nAny overflow codes (11,15,...) are output on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 4th and 8th\noccurrences of occurrence codes found in the IBXSAVE("OCC",n) array data\nelement. Overflow codes are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 4th and 8th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nAny overflow codes (12,16,...) are output on a separate page.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany other insurance employer data is found, the data is formatted as the 2\ncharacter state abbreviation.\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 1st and 3rd\noccurrences of occurrence span codes found in the IBXSAVE("OCCS",n) array\ndata element. Overflow codes are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 1st and 3rd\noccurrences of occurrence span code 'from date' formatted as MMDDYY found\nin the second '^' piece of the IBXSAVE("OCCS",n) array data element.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 1st and 3rd\noccurrences of occurrence span code 'to date' formatted as MMDDYY found\nin the third '^' piece of the IBXSAVE("OCCS",n) array data element.\n\n\nPatient address - country code.\nPrinted if country is not USA, blank otherwise.\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 2nd and 4th\noccurrences of occurrence span codes found in the IBXSAVE("OCCS",n) array\ndata element. Overflow codes are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 2nd and 4th\noccurrences of occurrence span code 'from date' formatted as MMDDYY found\nin the second '^' piece of the IBXSAVE("OCCS",n) array data element.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 2nd and 4th\noccurrences of occurrence span code 'to date' formatted as MMDDYY found\nin the third '^' piece of the IBXSAVE("OCCS",n) array data element.\n\n\nA 9 indicates ICD 9 codes. A 0 indicates ICD 10 Codes.\n\n
\nThe principal dx is found in the first occurrence of the data element's\nvalues. The diagnoses are saved off in the IBXSAVE("DX") array for later\nuse. Only allow 3 E-codes in ICD-9.\n\n\nChecks for multi-page output, adds the static fields to subsequent pages.\n\n
\nINSURED NAME SUFFIX also known as SUBSCRIBER NAME SUFFIX. It is extracted \nusing a function call, $$SETSTR^VALM1 to get the full name then an IB\nfunction to format it, $$NAME^IBCEFG1.\n\n
\nReserved for Assignment by the NUBC. Not used.\n\n
\nReserved for Assignment by the NUBC. Box 37 line 2. Not used.\n\n
\nIf there is a eleventh diagnosis, print its name.\n\n
\nIf BIRTHDATE exists, format it MMDDYYYY. If it doesn't exist, output\n00000000.\n\n
\nIf the data element's value is null, set it equal to 'U'.\n\n
\nSave the admission time in IBXSAVE array for later use. Format date\nwithout the time as MMDDYY. IB*2.0*547 removed the STATEMENT FROM date on \ninpatient professional claims.\nIB*2.0*574 added STATEMENT FROM date for Outpatient Home Health and Hospice\nclaims.\n\n
\nAdmission time\n\n
\nAdmission type:\nesg - 8/15/07 - FL-14 is always required - even for outpatients - so if \nIBXDATA does not have a value, set it equal to "9" for local printing.\n1 - Emergency\n2 - Urgent\n3 - Elective\n4 - Newborn\n5 - Trauma\n6-8 - Reserved\n9 - Information not available\n \n\n
\nSource of admission:\n9 - Information not available\nA - Transfer from a critical access hospital\nB - Transfer from another home health agency\nC - Readmission to same home health agency\nD - Transfer from hospital inpatient in the same facility,\n resulting in a separate claim to the payer\nCodes for Newborn admission type:\n1 - Normal delivery\n2 - Premature delivery\n3 - Sick baby\n1 - Physician referral\n4 - Extramural birth\n5-9 - Reserved\n2 - Clinic referral\n3 - HMO referral\n4 - Transfer from a hospital\n5 - Transfer from a skilled nursing facility\n6 - Transfer from another health care facility\n7 - Emergency room\n8 - Court / Law enforcement\n\n
\nIf this is an outpatient bill, no output. For inpatient bills, output the\ntime portion of the discharge date/time or 99 if no time found.\n\n
\nOnly report if Data is 1 set IBXDATA to Y\n\n
\nExtract the current payer name and save it in IBXSAVE.\n\n
\nExtract the current payer address and store the address components in the \n[7] claim office ID (not used)\nIBXSAVE("CADR") pieced string variable with the following pieces:\n \n[1] address line 1\n[2] address line 2\n[3] address line 3\n[4] city\n[5] pointer to the state file\n[6] external zip code with dashes\n\n\nCalls CIADDR^IBCEF1 where the IBXDATA formatted array is returned. The \nIBXSAVE array elements for the current payer name and address are killed.\n\n
\nIf there is a twelth diagnosis, print its name.\n\n
\nIf there is a thirteenth diagnosis, print its name.\n\n
\nSave all value codes extracted into IBXSAVE("VC") array for later use. \nNon-dollar amounts are formatted right-justified to the left of the \ndollars/cents delimiter on the pre-printed UB form (thus 8 characters).\nFormat the value as we loop through them.\n \nIBXSAVE("VC",z) = [1] VALUE CODE\n [2] FORMATTED VALUE AMOUNT\n \nDollar amounts are formatted using all 10 characters with the decimal \npoint implied by the dollars/cents delimiter on the pre-printed UB form.\n \n\n\nIf the "VC" value code array exists, then sort it by value code in the \nIBXSAVE("VCS") array.\n\n\nIf the value codes exist and have been sorted into the IBXSAVE("VCS") \narray, then loop thru that array and re-build the IBXSAVE("VC") array.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe first piece of each occurrence found.\n\n\nFor professional claims only, this is the claim level place of service \n \nPrevious to IB patch 400, this field was the admitting DX. The admitting\nDX and qualifier is now sent in CL1A-15 (Qualifier) and CL1A-16 (Admitting\nDX code).\ncode. IB patch 400 changes.\n \nBuild the array with all professional line items (IBZ array).\nLoop through the line items looking for POS code of 11 or 12 (home or \noffice). If either 11 or 12 is found, then use that POS code as the \nclaim level POS code. If neither 11 nor 12 is found in the line level \nPOS codes, then use the first POS code found in the line items as the \nclaim level POS code.\n\n
\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe second piece of each occurrence found.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe first piece of each occurrence found.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe second piece of each occurrence found.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe first piece of each occurrence found. If there are more than 12\nvalue codes, they are stored in the overflow array.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe second piece of each occurrence found.\n\n\nData element's array reference is IBFL(24), not default of IBXDATA. This is\na group data element so more than 1 occurrence of a value is possible for\nthe data element in the IBFL(24) array. All occurrences of the data element\nare saved in the IBXSAVE("CC",n) array and only IBXSAVE("CC",1) is output\nin this field. Note: hard code is used to output the\ncodes that exceed the # that will fit on one page if multiple pages of bill\nare printed.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the second occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the third occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the fourth occurrence of the array.\n\n\nThis data element relies on the existence of the variable IBXSAVE("PMOD") \npreviously extracted.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the fifth occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the sixth occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the seventh occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the eighth occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the ninth occurance of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the tenth occurance of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the eleventh occurrence of the array.\nIf there are more than 11 condition codes present, save them in the global\noverflow array.\n\n\n2 char state abbreviation where the accident occured.\n\n
\nFL-30\nReserved for assignment by the NUBC. Not used. 11 positions upper \nline. 13 positions lower line.\n\n
\nNPI - Billing Provider.\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. If MEDICARE WNR is current insurance,\nmailing name is MEDICARE.\n\n\nThe first 15 characters of the name of the primary, secondary, and tertiary\ninsurance companies along with the claim office number and payer id, if\nknown. If the primary or secondary insurance is MEDICARE WNR, output\n'MEDICARE'.\n\n
\nField reserved to contain National Plan ID. Currently blank.\n\n
\nFor each insurance on file in the bill, print the ROI indicator = 'I' if\nthe record is sensitive and there's no ROI on file, or 'Y' otherwise.\n\n
\nFor each insurance on file in the bill, print the ASSIGNMENT OF BENEFITS\nindicator = 'Y' if the data element value returned is null or is not 0,'n'\nor 'N', otherwise print 'N'.\n\n
\nIf the insurance company for the prior payment does not exist for the bill,\ndon't output the prior payment information.\n\n
\nSet the estimated amt for the current insurance equal to the balance on the\nbill.\n\n
\nIf there is a second diagnosis, print its name.\n\n
\nIf there is a third diagnosis, print its name.\n\n
\nIf there is a fourth diagnosis, print its name.\n\n
\nIf there is a fifth diagnosis, print its name.\n\n
\nRetrieves insured address line 2 data from IBXSAVE array previously\nextracted. If data element's value is null, do not output.\n\n
\nIf there is a sixth diagnosis, print its name.\n\n
\nIf there is a seventh diagnosis, print its name.\n\n
\nIf there is an eighth diagnosis, print its name.\n\n
\nIf there is a ninth diagnosis, print its name.\n\n
\nIf there is a tenth diagnosis, print its name.\n\n
\nIf there is a fourteenth diagnosis, print its name.\n\n
\nIf there is a fifteenth diagnosis, print its name.\n\n
\nIf there is a sixteenth diagnosis, print its name.\n\n
\nIf there is a seventeenth diagnosis, print its name.\n\n
\nIf there is a eighteenth diagnosis, print its name. Check for more than \n17 other diagnoses on file. If there is, output on new pg.\n\n
\nThe GROUP NAME is not sent if the GROUP NUMBER is present. \nIf this is an MRA Request, then nothing is sent. \n\n
\nIB patch 377\nConvert the VistA codes into HIPAA or NCPDP codes.\nHIPAA codes are the same as EDI codes.\nFLG variable controls conversion:\n 1 - convert to HIPAA, 2 - convert to NCPDP.\n\n
\nIf the insurance is MEDICARE WNR, do not output the group name.\nAdd a space to the end of the Group Name to separate it from\nthe next field , Group Number.\n\n
\nIf the insurance is MEDICARE WNR, do not output the group number.\n\n
\nDocument control numbers from file 399/fields 453-455.\n\n
\nIf the array IBXSAVE("OIEMP") doesn't already exist, extract it. For each\ninsured on the bill, extract the first piece of the data element for output\nin this field.\n\n\nFL-30\nReserved for assignment by the NUBC. Not used. 11 positions upper \nline. 13 positions lower line.\n\n
\nIf the insurance is MEDICARE WNR, do not output the group number.\n\n
\nRemove decimal from Admitting diagnosis.\n\n
\nThis data element creates an array containing E-code diagnoses for\nthe bill and corresponding POA indicators. IBXDATA is set to the\nfirst 'E-code' dx found. ICD-9 only.\n\n
\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the first occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the second occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the second occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the third occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the third occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fourth occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fourth occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fifth occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\n^TMP($J,"IBLCT") keeps track of the last service line # output. Data \nelement is a group data element so multiple ocurrences of the data element\nare possible in the IBXDATA array. Save the data in the IBXSAVE array for\nlater use. For every service line > 1, output the RX1 record id.\nIf the prescription references a service line already output, use that\nservice line # to reference this prescription.\n\n
\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fifth occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the sixth occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the sixth occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nRetrieves insured address data from IBXSAVE array previously extracted. If\ndata element's value is null, do not output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nThis is the present on admissions indicator. The value "U" (No\nInformation in the Record) is sent for INPATIENT claims if no\nPOA indicator is available.\n\n
\nThis is a group data element so more than one occurrence of IBXDATA(n) is\npossible. Save off the procedures in the IBXSAVE array. Six procedures\nwill fit on a single page of a bill. If more than 6 procedure codes are\non the bill, multiple pages are used. The format of the IBXSAVE array is:\n the actual code for the ICD9 or ICD0 code^proc date formatted as MMDDYY\n\n
\nThis data element is a group data element where more than one occurrence\nlines of service line can appear on one form, if there are more than 22\nlines, subsequent pages are forced for the remaining data lines after 22.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the second '^'\npiece of the array. For text line where the first piece = 2, the text is\nassumed to start in column 1, so the data is extracted from positions 1-5.\nFor text line where the first piece = 3, the text is assumed to start in\ncolumn 6, so there is no data extracted for this field. Since only 22\n\n\nThis data element is a group data element where more than one occurrence\n1-25. Since only 22 lines of service line can appear on one form, if there\nare more than 22 lines, subsequent pages are forced for the remaining data\nlines after 22.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the third '^'\npiece of the array. For text line where the first piece = 2, the text is\nassumed TO start in column 1, so the data is extracted from positions \n6-30. For text line where the first piece = 3, the text is assumed to\nstart in column 6, so the data for this field is extracted from positions\n\n\nThis is Patient Reason for Visit diagnosis code\n\n
\nThis is Patient Reason for Visit diagnosis code\n\n
\nThis is Patient Reason for Visit diagnosis code\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array.\nIf we don't know the NDC#, output all 9's.\n\n
\nIB*2*400 - for Inpatient claims only.\nRetrieve the PPS code from field# 170 in the claim. If it exists, then \nformat it as a 4 character numeric field, right justified, zero filled.\n\n
\nThis is the Present on Admission indicator for the first 'E-code' \ndiagnosis. The value "U" (No Information in the Record) is sent \nfor INPATIENT claims if no POA indicator is available.\n\n
\nThis is the second 'E-code' diagnosis found.\n\n
\nThis is the Present on Admission indicator for the second 'E-code'\ndiagnosis. The value "U" (No Information in the Record) is sent \nfor INPATIENT claims if no POA indicator is available.\n\n
\nThis is the third 'E-code' diagnosis found.\n\n
\nThis is the Present on Admission indicator for the third 'E-code'\ndiagnosis. The value "U" (No Information in the Record) is sent \nfor INPATIENT claims if no POA indicator is available.\n\n
\nThis data element is a group data element where more than one occurrence\nformatted with 2 decimal places. Since only 22 lines of service can appear\non one form, if there are more than 22 lines, subsequent pages are forced\nfor the remaining data lines after 22.\nmight be expected. It relies on the presence of data in global\n^TMP($J,"IBC-RC",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the fourth\n(procedure code and modifiers) or fifth (unit charge) '^' pieces of the\narray. If there is a procedure and a unit charge, only the procedure code\nand its modifiers will print. If there is a unit charge and this is an\ninpatient bill and the revenue code is 100-219, it is printed and\n\n
\nThis data element is a group data element where more than one occurrence\nextracted from positions 41-47. Since only 22 lines of service line can\nappear on one form, if there are more than 22 lines, subsequent pages are\nforced for the remaining data lines after 22.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, output the OUTPATIENT from date \nthat was previously extracted into IBXSAVE("DATE"). For text line where\nthe first piece = 2, the text is assumed to start in column 1, so the data\nis extracted from positions 46-52. For text line where the first piece =\n3, the text is assumed to start in column 6, so the data for this field is\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nRemarks in FL-80 on the UB-04. All data is retrieved and formatted by \nREMARK^IBCEF77. Line 1 of this box has a mandatory 5 leading spaces and \ntherefore only 19 printed characters can be in line 1. Lines 2-4 have a \nmax length of 24 characters.\n\n
\nUB-04 FL-2 pay-to provider data gathering\n \nRetrieve the pay-to provider string and save it into IBXSAVE. If there \nare NO differences between the pay-to provider and the billing provider, \nthen suppress the pay-to provider data here in FL-2 and don't output \nanything.\n\n
\nOutput RECORD ID for DN1 record.\n\n
\nOrthodontic Banding Qualifier always will be 452.\n\n
\nNot currently used. This field is for overflow codes or externally \nmaintained codes.\n\n
\nNot currently used. This field is for overflow codes or externally\nmaintained codes.\n\n
\nNot currently used. This field is for overflow codes or externally\nmaintained codes.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is formatted as date in CCYYMMDD\nformat.\n\n
\nAttending Providers last name\n\n
\nAttending Providers first name\n\n
\nOperating Provider last name\n\n
\nOperating Provider first name\n\n
\nThis data element is a group data element where more than one occurrence\nfield is extracted from positions 48-54.\nSince only 22 lines of service line can appear on one form, if there\nare more than 22 lines, subsequent pages are forced for the remaining data\nlines after 22.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the sixth '^'\npiece of the array. For text line\nwhere the first piece = 2, the text is assumed to start in column 1, so the\ndata is extracted from positions 53-59. For text line where the first\npiece = 3, the text is assumed to start in column 6, so the data for this\n\n\nThis data element is a group data element where more than one occurrence\n55-64. Since only 22 lines of service line can appear on one form, if\nthere are more than 22 lines, subsequent pages are forced for the\nremaining data lines after 22.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the seventh \n'^' piece of the array. For text line where the first piece = 2, the text\nis assumed to start in column 1, so the data is extracted from positions\n60-69. For text line where the first piece = 3, the text is assumed to\nstart in column 6, so the data for this field is extracted from positions\n\n\nOther Provider last name\n\n
\nOther Provider first name\n\n
\nOTHER PROVIDER LAST NAME\n\n
\nOTHER PROVIDER FIRST NAME\n\n
\nINITIAL TREATMENT DATE ON CLAIMS INVOLVING\n SPINAL MANIPULATION FOR MEDICARE PART B\n\n
\nAttending Provider NPI if available\n\n
\nLegacy ID quailifer\n\n
\nAttending legacy ID\n\n
\nOperating Provider NPI if available\n\n
\nOperating provider legacy ID if needed\n\n
\nOperating legacy ID if needed\n\n
\nOther provider NPI if available\n\n
\nOther provider legacy ID qualifier if needed\n\n
\nOther provider legacy ID if needed\n\n
\nThis data element is a group data element where more than one occurrence\n65-74. Since only 22 lines of service line can appear on one form, if\nthere are more than 22 lines, subsequent pages are forced for the\nremaining data lines after 22.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the eighth \n'^' piece of the array. For text line where the first piece = 2, the text\nis assumed to start in column 1, so the data is extracted from positions\n70-79. For text line where the first piece = 3, the text is assumed to\nstart in column 6, so the data for this field is extracted from positions\n\n\nPRV-4\nBilling provider address line 1\n\n
\nReserved by the NUBC. This field is always blank.\n\n
\nOTHER PROVIDER NPI\n\n
\nOTHER PROVIDER ID QUALIFIER.\n\n
\nOTHER PROVIDER OTHER ID\n\n
\nNot currently used\n\n
\nNot currently used\n\n
\nThis field is always blank.\n\n
\nBill creation date in MMDDYY format.\nesg - 10/9/07 - change this from today's date to be the date first \nprinted. However, if the claim has never been printed, then the FileMan \nfield 12 - DATE FIRST PRINTED won't be populated yet so in this case, \ndefault in today's date.\n\n
\nFormat code for FL-35/3 and FL-36/3 grew too big. So cleanup of the \narray used is being done here.\n\n
\nPRV-5\nBilling provider city name\nGet the city name from the IBXSAVE array, then strip out the\nstandard city punctuation marks - converting "-" and "/" to spaces.\n\n
\nFormat date is CCYYMMDD\n\n
\nOrtho Treatment Months count for Dental Claim\n\n
\nOrtho Treatment months remaining for a transfer patient.\n\n
\nOutput the record id for 'DN2' record.\n\n
\nTooth number of treatment\n\n
\nTooth Status code, either E (to be extracted) or M (Missing)\n\n
\nCode List Qualifier Code - will always be JP for Dental claim.\n\n
\nCode identifing the type of provider. For Dental, always RF for \nReferring.\n\n
\nCode qualifing the Reference Identification. For Dental, it will always \nbe PXC for Taxonomy Code.\n\n
\nPRV-6\nGet 2 character state code.\n\n
\nReference information as specified by the Reference Identification \nQualifier. For Dental, this will be the Taxonomy Code.\n\n
\nSetup IBXSAVE array for OPRB record.\n\n
\nPRV-7\nBilling provider zip code\n\n
\nSet up IBXSAVE array for OPRC record.\n\n
\nPRV-8\nBilling provider phone#\nUse the pay-to provider phone# and strip all punctuation.\n\n
\nSetup IBXSAVE array for the OP10 record.\n\n
\nRetrieves insured demographics data from IBXSAVE array previously extracted.\n \n\n
\nThis data element relies on the existence of the variable IBXSAVE("PMOD") \npreviously extracted.\n\n\nPiece 1 of the CI6 segment. Hard code the segment name of "CI6 " taking \nup 4 characters as is the custom.\n\n
\nOnly one value for the subscriber primary ID qualifier. "MI" - member \nidentification number. Not stored in the VistA database....hardcoded.\nQualifier for subscriber primary ID\n2010BA/NM108\n\n
\nSubscriber Primary ID#\n2010BA/NM109\nCarry over the old format code from the old CI2-6 field: If this is the \nHIC # for MEDICARE, strip the dashes, if any.\n\n
\nSubscriber secondary ID qualifier#1\n2010BA/REF(1)/01\n\n
\nSubscriber secondary ID #1\n2010BA/REF(1)/02\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. Also don't output data element if its\nvalue is null.\nThis data relies on the presence of the IBXSAVE("CADR") array that should\nhave been set in a previous data field.\n\n\nClean up IBXSAVE arry after OP10 record.\n\n
\nOutput the record id for 'DEN' record.\n\n
\nRECORD ID 'CI5 '\n\n
\nHard-coded Primary Payer ID Qualifier\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. Also don't output data element if its\nvalue is null.\nThis data relies on the presence of the IBXSAVE("CADR") array that should\nhave been set in a previous data field.\n\n\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. Positions 1-5 are the id number as\nassigned by ENVOY, positions 6-9 are the claim office id (default if there\nis none is '0000'). Also don't output data element if its value is null.\n\n\nOI2-11\n2330A/NM108\nQualifier for other payer subscriber primary ID number. This is \nhardcoded to be "MI" for all other payers on the claim that have a valid \nID# extracted in OI2-3. When IBXSAVE("OIID",Z) is true, this means that \nother payer has a valid subscriber ID.\n\n\nExtract the current insurance subscriber primary and secondary ID's and \nqualifiers into the IBXSAVE string. See the routine for comments.\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. If header not yet extracted, format data\nas state's 2-character abbreviation.\nThis data relies on the presence of the IBXSAVE("CADR") array that should\nhave been set in a previous data field.\n\n\nExtract the string(s) of other payer patient ID information into the \nfunction.\nIBXSAVE(Z0) array. This will be used to populate the rest of this OI3 \nsegment.\nZ is the current payer sequence number (1,2, or 3)\nZ0 is a counter and subscript of IBXSAVE(1) thru IBXSAVE(2)\nZ1 is the loop variable through all possible insurances on the claim\n \nIf Z1'=Z and insurance is defined for insurance# Z1, then increment the \nZ0 counter variable and store the string returned from the $$INSSECID \n\n
\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. Also don't output data element if its\nvalue is null.\nThis data relies on the presence of the IBXSAVE("CADR") array that should\nhave been set in a previous data field.\n\n\nQualifier for date of initial treatment.\ncounter variable and store the string returned from the $$INSSECID\nfunction.\nIBXSAVE(Z0) array. This will be used to populate pieces 9 thru 14 of this\nOI5 segment.\n \nZ is the current payer sequence number (1,2, or 3)\nZ0 is a counter and subscript of IBXSAVE(1) thru IBXSAVE(2)\nZ1 is the loop variable through all possible insurances on the claim\n \nIf Z1'=Z and insurance is defined for insurance# Z1, then increment the Z0\n\n
\nQualifier for date of initial treatment.\n\n
\nQualifier for date of acute manifestation.\n\n
\nQualifier for date of the last Xray.\n\n
\nPatient name suffix.\n\n
\nGet bill remarks from field 399/402, if non-empty save value in \nIBXSAVE("REM"), and set IBXDATA to "ADD" (qualifier).\n\n\nBill remarks.\n\n
\nSet ^TMP("IBHDR",$J) global node so the header data is not extracted again.\nNo output needed.\n\n\nSUB-2 lab/facility name\n\n
\nSUB-3 lab/facility address line 1\n\n
\nThe IBXSAVE input array should still exist from the piece 2 call to\n \nOutput:\nIBXSAVE("OTH_PAY_ADDR",1)=address string for other payer#1\nIBXSAVE("OTH_PAY_ADDR",2)=address string for other payer#2\n \nAddress string format:\n [1] address line 1\n [2] address line 2\n [3] address line 3\n [4] city\ndata element N-OTH INSURANCE SEQUENCE.\n [5] state ien ptr to file 5\n [6] zipcode\n \nUtility call $$ADD^IBCNADD(IBXIEN,SEQ) to pull the payer address for the\npayer at the specified payer sequence.\n \nInput:\nIBXSAVE(1)=current payer sequence letter\nIBXSAVE(1,Z)=other payer sequence letters where Z is the payer sequence\nnumber of the other payers\n \nLoop through this to produce the output IBXSAVE array.\n\n\nPOA indicator for this diagnosis. Defaults to "".\n\n
\nID of Referring Physician\n\n
\nOutput the record id for 'DEN1' record.\n\n
\nSUB-5 lab/facility state code\n\n
\nRetrieves insured employment info from IBXSAVE array previously extracted.\nIf data element's value is null, do not output.\n\n
\nSUB-6 lab/facility zip code\n\n
\nSet an error condition if no batch # and the header fields have not\nalready been extracted. No output if error condition or header fields\nhave already been extracted.\n\n
\nPRV-2.5\n--------\ncalculate only field to build the IBXSAVE("PRV-BP") array which will hold \nthe billing provider name, address, and phone#.\n\n\nClean up the IBXSAVE usage at the end of the PRV segment.\n\n
\nCL1A-13 - Inpatient, UB claims only.\nIf field# 170 exists and is a valid pointer to file 80.2, then the value \nof this field is the qualifier "DR".\n\n
\nCL1A-14 - Inpatient, UB claims only.\nIf the PPS field exists, then output the ien right justified with leading \n0's.\n\n
\nSUB, piece 1.5\na 1 if the service facility is a non-VA facility in file 355.93.\nPiece [4] is the IEN to either file 4 or 355.93.\n \nVariable Z1 is the value of the $$SENDSF function call. This function \nwill only return 0 (don't send) if the pre-patch 400 switchback flag is \nset to ON, and care was provided at the main division in the database, \nand the insurance company parameter that says to send the service \nfacility data is set to NO (don't send).\nMRD;IB*2.0*516 - The function $$SENDSF^IBCEF79 now will always return\n'1'.\nUse the data element to extract the billing provider/service facility \ninformation.\nIBXSAVE("SERVFACFLAG")=0 to indicate there is no service facility info\nIBXSAVE("SERVFACFLAG")=1 to indicate there is service facility info\n \nIBXSAVE("SERVFACDATA") is the string of data from the $$B^IBCEF79 \nfunction. Therefore [3] is "" if there is no service facility data, or \n[3] is 0 if the service facility is a VA institution in file 4, or [3] is \n\n\nClean up IBXSAVE array used in the building of the SUB segment.\n\n
\nThis is a qualifier for PRV diagnosis (1)\n\n
\nThis is PRV diagnosis (1)\n\n
\nThis is a qualifier for PRV diagnosis (2)\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. If header data not already extracted,\nformat date as CCYYMMDD.\n\n\nThis is PRV diagnosis (2)\n\n
\nThis is a qualifier for PRV diagnosis (3)\n\n
\nThis is PRV diagnosis (3)\n\n
\nPRV1 segment, piece 1. Literal value is "PRV1".\n\n
\nPRV1-1.5 calculate only piece\nPRV1-3 Entity type qualifier is "2"\nPRV1-5 ID Code qualifier is "24"\n \nVery special variable IBPTPNPI is also set here in this format code. \nThis is the pay-to provider NPI#. It is also blanked out if no \ndifferences exist. This is used in NPI-18.\n--------------------------------\nSave the pay-to provider data string in IBXSAVE. But if no differences \nexist between the pay-to provider data and the billing provider data, \nthen blank out the pay-to provider data.\nIf differences do exist, then manually hard-code the literal values for 3 \nfields into the pay-to provider string:\n \nPRV1-2 Entity ID code is "87"\n\n
\nPRV1-2 Entity ID code\nThis value is set by PRV1-1.5.\n\n
\nPRV1-3 Entity type qualifer\nSet by PRV1-1.5\n\n
\nPRV1-5 ID code qualifier\nThis is set by PRV1-1.5\n\n
\nPRV1-6\npay-to provider primary ID (tax ID here). Strip out the punctuation.\n \n \nplease note: The pay-to provider NPI# which is really the primary ID is\nbeing sent with NPI-18.\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. If header data not already extracted,\nretrieve data element from IBXSAVE array previously extracted.\n\n\nPRV1-7\npay-to provider address line 1\n\n
\nPRV1-8\npay-to provider address line 2\n\n
\nPRV1-9\npay-to provider city name\nPerform the standard punctuation edits on the city name to convert "-" \nand "/" into spaces.\n\n
\nPRV1-10\npay-to provider state abbreviation\n\n
\nPRV1-11 - pay-to provider zip code\nRemove any punctuation including dashes or spaces.\n\n
\nCL1A-15\nThis is the admitting diagnosis qualifier. This is for inpatient,\nUB's only. If the claim has an admitting diagnosis, then save it\nin temporary variable IBXSAVE("CL1A-16") and output "BJ" here in\nthis piece.\n\n\nCL1A-16\nThis is the admitting diagnosis. It is calculated from CL1A-15 - \nadmitting dx qualifier field.\n\n
\nOutput RECORD ID for AMB PICK UP record.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance\nprior payment data is found, the data is formatted as a numeric including\ncents, without the decimals.\n\n
\nGets the Ambulance Address 1 from the 2nd piece of the data string.\n\n
\nGets the Ambulance Address 2 from the 3rd piece of the data string.\n\n
\nGets the Ambulance City from the 4th piece of the data string\n\n
\nGets the Ambulance State from the 5th piece of the data string.\n\n
\nGets the Ambulance Zip code from the 6th piece of the data string.\n\n
\nAmbulance Transport Reason Code\n\n
\nAmbulance Distance Units. Only if Ambulance distance is not null.\n\n
\nAmbulance Transport Distance\n\n
\n^TMP($J,"IBLCT") keeps track of the last service line # output. Data\nelement is a group data element so multiple ocuurences of the data element\nare possible in the IBXDATA array. Save the data in the IBXSAVE array for\nlater use. For every service line > 1, output the PRF record id.\n\n
\nAmbulance Round Trip Purpose\n\n
\nGet the Ambulance Drop Off Location from the 1st piece of the data string.\nThis is from the Drop Off record ("U6") only. Will always be blank on the\npick up record.\n\n\nExtract NPI Code for Billing Provider\n\n
\nIf the NPI number exists this field will be set to XX; otherwise to null.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. The\ndata is calculated by unit charge * # of units. If any service line data is\nfound, the data is formatted as a numeric including cents, without the\ndecimal.\n\n
\nSUbsequeNt fields Prop/Cas COntact Name, Prop/Cas Contact Phone and\nProp/Cas COntact Extension should ONLY be sent if this field has a value,\nindicating that this IS a Property & Casualty claim.\nSetting IBXSAVE("PCCLAIM") here to 0 (Not a P&C Claim) or 1 (IS a P&C \nClaim) for reference in these later fields.\n\n\nDon't populate this field if this is not a Property and Casualty Claim. \nSee Format Description for Prop/Cas Claim NUmber for more info.\n\n
\nDon't populate this field if this is not a Property and Casualty Claim. \nSee Format Description for Prop/Cas Claim NUmber for more info.\n\n
\nDon't populate this field if this is not a Property and Casualty Claim. \nSee Format Description for Prop/Cas Claim NUmber for more info.\n\n
\nDon't populate this field if this is not a Property and Casualty Claim. \nSee Format Description for Prop/Cas Claim NUmber for more info.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extracted IBXSAVE array. If\nany service line data is found, the data is output.\nIf the type of service is not 7 (anesthesia), the units are output. If the\ntype of service is anesthesia, the anesthesia minutes are output. If the #\nof units is less than 1, 1 is the default.\n\n
\nDon't populate this field if this is not a Property and Casualty Claim. \nSee Format Description for Prop/Cas Claim NUmber for more info.\n\n
\nDon't populate this field if this is not a Property and Casualty Claim. \nSee Format Description for Prop/Cas Claim Number for more info.\nSaved value IBXSAVE("PCCLAIM") is not needed after this, so it's killed.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nExtract the Rendering Physician Name. Controls processing of the record.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output. Data is taken from the\nfirst ',' delimited piece of the extracted data.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output. Data is taken from the\nsecond ',' delimited piece of the extracted data. \n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output. Data is taken from the\nthird ',' delimited piece of the extracted data. \n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output. Data is taken from the\nfourth ',' delimited piece of the extracted data. \n\n
\nService line counter for LDAT record.\n\n
\nExtract data for LDAT record and save it in IBXSAVE("LDAT").\n\n\nAttachment report type from field 399.0304/71.\n\n
\nAttachment report transmission code from 399.0304/72.\n\n
\nAlways set to "AC".\n\n
\nAttachment control number from 399.0304/70.\n\n
\nAlways set to "FL".\n\n
\nOB Anesthesia Additional Units from field 399.0304/74.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\n^TMP($J,"IBLCT") keeps track of the last service line # output. Data \nelement is a group data element so multiple occurences of the data element\nare possible in the IBXDATA array. Save the data in the IBXSAVE array for\nlater use. For every service line > 1, output the INS record id.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nAlways set to "6R".\n\n
\nThis piece contains [service line number]_[claim number], i.e. \n"5_K30002Z".\n\n
\nContains the value of SUB2-8 if available, otherwise contains the value \nof SUB2-6. If both values are not available, this piece is blank.\n\n
\nContains total charges returned by either OUTPT^IBCEF11for CMS-1500 or \nHOS^IBCEF2 for UB-04.\n\n
\nClear IBXSAVE array for this record.\n\n
\nGet data for LOPE record.\n\n
\nAlways set to 72.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nAlways set to XX.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nAlways set to ZZ.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nAlways set to XX.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is formatted as a numeric including\ncents, without the decimal.\n\n
\nSave the data element in the IBXSAVE("PMOD") array for later use.\n\n\nAlways set to XX.\n\n
\nThis data element relies on the existence of the variable IBXSAVE("PMOD")\npreviously extracted.\n\n\nAlways set to XX.\n\n
\nIf data element's value is null, do not output.\nIf this is an inpatient bill do not send this data element. If outpatient,\noutput IBXSAVE("DATE") - STATEMENT FROM DATE or the date from the\nassociated procedure, if it can be determined.\n\n\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nAlways set to XX.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nFIND THE LAST XRAY DATE WHEN CLAIM INVOLVES A SPINAL MANIPULATION\n\n
\nAlways set to XX.\n\n
\nSet up the IBXSAVE array to build the OPR1 record.\n\n
\nClean up the IBXSAVE array.\n\n
\nSetup record for OPR2. Sets up IBXSAVE\n\n
\nClean up record for OPR2\n\n
\nSet up IBXSAVE array for OPR3\n\n
\nClean up IBXSAVE array\n\n
\nSet up IBXSAVE array for OPR4 record.\n\n
\nClean up for OPR4 record.\n\n
\nSetup for OPR5 record\n\n
\nClean up after OPR5 record.\n\n
\nSet up the IBXSAVE array for the OPR8 record.\n\n
\nSet up IBXSAVE array for OPRA record.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nSet up IBXSAVE for OP1 record.\n\n
\nSet up IBX Array for OP1A if form type is 3.\n\n
\nClean up after OP1A record.\n\n
\nSet up IBXSAVE array for OP2 record.\n\n
\nSet up IBXSAVE for OP4 record.\n\n
\nSet up IBXSAVE array for the OP8 record.\n\n
\nPull off first name of insured from IBXSAVE array previously extracted.\nDon't output data element if its value is null.\n\n
\nClean up IBXSAVE array. No output.\n\n
\nSet up IBXSAVE array for the OP9 record.\n\n
\nClean up IBXSAVE array after OP9 record.\n\n
\nIf pieces 4, 6, 8 and 10 are null remove the line from the output \nformatter.\n\n
\nPayer Sequence # code\n\n
\nPayer Responsibility Sequence # Code\n\n
\nSet up Data fields for AMB record(s)\n\n
\nClean up the IBXSAVE array. No output.\n\n
\nClean up the IBXSAVE array\n\n
\nSet up IBXSAVE Array for AMB1 record\n\n
\nAmbulance Stretcher Purpose\n\n
\nClean up after Ambulance record creation\n\n
\nAMB2 Record ID field\n\n
\nSet up IBXSAVE array with Ambulance data\n\n
\nSet up Amb Code Categorywith "07" if data exists for this record.\n\n
\nSet Y into field Amb Certification Condition Indicator if data exists for \nthe record.\n\n
\nAmb Condition code 1 data\n\n
\nAmb Condition code 2\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nAmb Condition Code 3\n\n
\nAmb Condition Code 4\n\n
\nAmb Condition Code 5\n\n
\nClean up after AMB2 record.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\nalso be made to OI6-6.9 as a calculate only field.\npossible for the data element in the IBXDATA array. If any other insurance\nform locator 64 data is found, the data is output.\n \n This is OI1A-03 also known as the ICN/DCN for the MRA secondary claims. \nIf there is data here in OI1A-03, then we cannot transmit the Other Payer\nsecondary ID and qualifier #2. This is in the OI6 segment, pieces 7 and \n8. For this calculation, OI6-6.9 is set-up very similar to this OI1A-03\npiece to see if there is an ICN/DCN present. So any changes here should\n\n
\nThis data element is the qualifier for the amount piece 17 of this record.\n\n
\nThis data element is the remaining liability amount per line.\n\n
\nALWAYS SET TO "A".\nMEDICARE ASSIGNMENT CODE: A = ASSIGNED and C = Not Assigned.\n\n
\nQualifier for the date\n\n
\nOther Date Qualifier\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. Also don't output data element if its\nvalue is null.\n\n\nThis indicates if diagnosis codes are ICD9 or ICD10. A "9" indicates ICD9 \nand a "0" indicates ICD10.\n\n
\nIf there is an HPID (Sequence 37, Piece 9), then this field will be 'XV'. \nMRD;IB*2.0*516\n\n
\nThis will be the HPID from the bill/claim. MRD;IB*2.0*516\n\n
\nThis field may contain an additional description of this procedure, which \nthe user is able to enter only for NOC procedures (those procedures which \nend in '99' or whose descriptions contain verbiage such as 'NOT OTHERWISE\nCLASSIFIED', 'NOC', 'NOS', etc.). MRD;IB*2.0*516\n\n
\nThis field may contain an NDC enterd by the user for this line of the \nclaim. MRD;IB*2.0*516\n\n
\nIf the user added an NDC to this line of the claim, they are then allowed \nto enter a unit. MRD;IB*2.0*516\n\n
\nThis data is being moved to CI5[3] with eClaims Iteration III.\n\n
\nIf the user added an NDC to this line of the claim, there should also be \na value in the unit field ($P(IBXSAVE("INPT",Z),U,12), and if there is, \nthen this field should be 'UN'. MRD;IB*2.0*516\n\n\nOutput RECORD ID for CI2A record.\n\n
\nOutput RECORD ID for CI3A record.\n\n
\nOutput RECORD ID for OI1A record.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. The IBXSAVE(1) \nvariable holds the indicator of which insurance\n[(P)rimary/(S)econdary/(T)ertiary] is currently responsible for the\nbill. Using this data as a guide, the next insurance for the primary is\nsecondary, then tertiary. For secondary, it's primary then tertiary, and\nfor tertiary, it's primary, then secondary. For other than the first\noccurrence, the RECORD ID 'OI1A' must be output.\n\n
\nJRA IB*2.0*577 Created to replace SUB (Seq 55), field 8 (CLIA #) which was\nmoved to SUB2 (Seq 57), field 13.\n\n
\nExtract and format the mammo# cert number from the claim. If a mammo# is \npresent for the claim then save that fact in IBXSAVE for later usage for \nthe mammo# qualifier field.\n\n
\nSPINAL MANIP. CONDITION CODE; A = Acute Condition, C = Chronic Condition, D = Non-Acute\nE = Non-Life Threatening, F = Routine, G = Symptomatic, M = Acute Manifestation of a Chronic Condition\n\n
\nThe CMN FORM TYPE QUALIFIER is always 'UT'.\n\n
\nThis is the PATIENT WEIGHT MODIFIER which is always '01'.\n\n
\nRequired when sequence 51 piece 7 (Spinal Manipulation Nature of Condifion Code) = A or M on spinal\nmanipulation claims and the payer is Medicare\n\n
\nThe value of CMN DATE THERAPY STARTED QUALIFIER is always '463'.\n\n
\nPRV-1. Literal "PRV ".\n\n
\nChanges data element (name) into LAST^FIRST^MIDDLE^CRED^SUFFIX format.\nSaves data in IBXSAVE array for use by later fields. No output.\n\n
\nPull off last name of insured from IBXSAVE array previously extracted.\nDon't output data element if its value is null.\n\n
\nOutput RECORD ID for PT2 record.\n\n
\nOutput RECORD ID for CL1 record.\n\n
\nOutput RECORD ID for UB1 record.\n\n
\nSUB-12 lab/facility address line 2\n\n
\nIf the service is performed at an outside facility, output the\nservice facility type of facility if defined for the outside facility.\nIf none defined, output the default of 'FA' for non-lab and 'LI' for lab.\nWith Patch IB*2.0*432 always send '77' if the record is created.\nWith Patch IB*2.0*447 always send if Facility Name is defined in SUB \nrecord. Check by using $$SENDSF^IBCEF79(IBXIEN).\nMRD;IB*2.0*516 - The function $$SENDSF^IBCEF79 now will always return\n'1'.\n\n
\nOutput the service facility entity as a non-person (2) if service was\nperformed at an outside facility.\nWith Patch IB*2.0*432 always send 2 if the record is created.\nWith Patch IB*2.0*447 always send 2 if the Facility Name is defined in \nthe SUB record. Determine by using $$SENDSF^IBCEF79(IBXIEN).\nMRD;IB*2.0*516 - The function $$SENDSF^IBCEF79 now will always return\n'1'.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nThe ids returned are screened for valid id qualifiers for the SUB2 record.\nOutput the first 'other' id qualifier.\n\n
\nBuild the IBXSAVE array with the data needed to complete the SUB2 record.\nOnly build if $$SENDSF^IBCEF79(IBXIEN) is true. We only send \nSUB2 if there is a SUB record.\n\n
\nPull off middle name of insured from IBXSAVE array previously extracted.\nDon't output data element if its value is null.\n\n
\nIf the tax id for the outside facility exists, output it here and kill\nIBXSAVE("EIN") to clean up.\n\n\nIf header data has already been extracted, array ^TMP("IBHDR",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. If no header already extracted, output\nrecord id for 'GEN' record.\n\n\nOutput the record id for the 'SUB' record.\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. If no header already extracted, output\nthe record id for the 'CI1' record.\n\n\nOutput RECORD ID for CI2 record.\n\n
\nOutput RECORD ID for CI3 record.\n\n
\nOutput RECORD ID for PT1 record.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. The IBXSAVE(1) variable\nholds the indicator of which insurance [(P)rimary/(S)econdary/(T)ertiary] is\ncurrently responsible for the bill. Using this data as a guide, the next\ninsurance for the primary is secondary, then tertiary. For secondary, it's\nprimary then tertiary, and for tertiary, it's primary, then secondary. For\nother than the first occurrence, the RECORD ID 'OI2 ' must be output.\n\n
\nThis is the mammography certification number qualifier in CL1A-9. If \nthere is a mammo cert number on the claim and transmitted in CL1A-6 then \nthis field will be sent as "EW".\n\n
\nCI1A-2 site suffix or facility ID qualifier. This is hard-coded to be G5.\n\n
\nAlways output 4 characters containing the site suffix padded on the left \nby 0's if necessary. \nExamples: For station# 528, this field is sent as "0000"\n For station# 605GC, this field is sent as "00GC"\n\n
\nRecord ID for Supervising Provider Name, suffix, qualifier, and ID number.\n\n
\nBuilds IBXSAVE array for OPR7 record. No output.\n\n
\nThe FULL NAME data extracted,by SPRVSING PROV FULL NAME,\ninto the array IBXSAVE is parsed and the appropiate piece (1)\nLAST NAME, is stored into IBXDATA for transmission.\n\n
\nOutput RECORD ID for OC1 record.\n\n
\nThe FULL NAME data extracted,by SPRVSING PROV FULL NAME,\ninto the array IBXSAVE is parsed and the appropiate piece (2)\nFIRST NAME, is stored into IBXDATA for transmission.\n\n
\nOutput RECORD ID for OS1 record.\n\n
\nOutput RECORD ID for PC1 record\n\n
\nOutput RECORD ID for VC1 record.\n\n
\nOutput RECORD ID for CC1 record.\n\n
\nOutput RECORD ID for DC1 record.\n\n
\nOutput the RECORD ID for 'OI1' record.\n\n
\nCalculates the X12 code for relationship from the DHCP code extracted.\nIf data element's value is null, do not output.\n\n
\nOutput RECORD ID for 'OI2' record.\n\n
\nOutput the record id for 'PRF' record.\n\n
\nOutput record id for 'INS' record.\n\n
\nOutput record id for 'RX1' record.\n\n
\nThe FULL NAME data extracted,by SPRVSING PROV FULL NAME,\ninto the array IBXSAVE is parsed and the appropiate piece (3)\nMIDDLE NAME, is stored into IBXDATA for transmission.\n\n
\nThe FULL NAME data extracted,by SPRVSING PROV FULL NAME,\ninto the array IBXSAVE is parsed and the appropiate piece (5)\nNAME SUFFIX, is stored into IBXDATA for transmission.\n\n
\nFormat data element in CCYYMMDD date format. If data element's value is\nnull, do not output.\n\n
\nIf the HCFA ADDRESS COLUMN parameter exists, move the text over to this\ncolumn by adding spaces at the start of it. Initializes utility globals\nand variables used in this form.\n\n
\nIf the HCFA ADDRESS COLUMN parameter exists, move the text over to\nthis column by adding spaces at the start of it. Save the indent parameter\nin IBXSAVE("INDENT") for future use. If the current insurance is MEDICARE\nWNR, output 'MEDICARE'.\n\n\nIf the HCFA ADDRESS COLUMN parameter exists, move the text over to this\ncolumn by adding spaces at the start of it. Format the address so each\nstreet address occupies one line, then a line containing city followed by a\nby a comma and space, the state abbreviation, a space and the zip code,\nformatted for zip plus 4 if appropriate.\n\n
\nFormat the date as MM DD YYYY.\n\n
\nOther insurance patient signature source code. 2320/OI/04.\nThis is group data element for the other insurances. Currently, hard \ncode a "B" for all other insurances.\n\n
\nSave the value of patient sex in IBXSAVE variable for later use. If the\nvalue is 'M', this field's value is 'X'.\n\n
\nThis field relies on the existence of variable IBXSAVE("SEX") previously\nextracted. If its value is not 'M', assume the sex is female and this\nfield's value will be 'X'.\n\n\nIf the current insured is the patient, the word 'SAME' is printed instead\nof repeating the name.\n\n
\nFormat data element in CCYYMMDD date format. If data element's value is\nnull, do not output.\n\n
\nConcatenate all 3 lines of the address together, separated by a space.\n\n
\nSave the value of patient sex in IBXSAVE variable for later use. If\nthe value is '1' (patient), this field's value is 'X'.\n\n
\nThis field relies on the existence of variable IBXSAVE("PREL")\npreviously extracted. If its value is '2' (spouse), this field's value\nwill be 'X'.\n\n\nThis field relies on the existence of variable IBXSAVE("PREL") previously\nextracted. If its value is '3' (child), this field's value will be 'X'.\n\n\nThis field relies on the existence of variable IBXSAVE("PREL") previously\nextracted. If its value is not a '1', '2', or '3', assume it is other and\nthis field's value will be 'X'.\n\n\n\n\n
\nOutput the state abbreviation.\n\n
\nSave the value of marital status in IBXSAVE variable for later use. If\nthe value is 'I' (NEVER MARRIED), this field's value is 'X'.\n\n
\nThis field relies on the existence of variable IBXSAVE("MSTAT")\npreviously extracted. If its value is 'M' (MARRIED), this field's value\nwill be 'X'.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. Each diagnosis code\nname is stripped of its decimal point and is output on its own DCn entry\nwhere n is a record count that will allow it to be mapped into one of the\n12 available pieces of the 837 diagnosis code record correctly. This is\ndone to accommodate Austin's translator and one of its shortcomings. Save\noff the extract sequence # of each diagnosis output in the global array\n^TMP("IBXSAVE",$J,"DX") for later use.\n\n\nThis field relies on the existence of variable IBXSAVE("MSTAT") previously\nextracted. If its value is not a 'M', or 'I', assume it must be other and\nthis field's value will be 'X'.\n\n\nFormat zip code as zip plus 4 if needed.\n\n
\nIf the value of this field is '1' (EMPLOYED FULL TIME), '2' (EMPLOYED\nPART TIME), '4' (SELF EMPLOYED), or '6' (FULL TIME MILITARY), assume\nemployed and output this field as 'X'.\n\n
\nOnly output the group number if the SUBSCRIBER ID field is non-null.\n\n
\nSave the value of other insured group number in IBXSAVE variable for later\nuse. Use the first occurrence of other insured group number for this\nfield's value. If the other insurance is a medigap (MEDICARE WNR is\nbefore this insurance on the bill), the group # is preceeded by 'MG'\non output. If no other insured group number is found, use the other\ninsured's policy id number instead.\n\n
\nSave the value of condition related to employment in IBXSAVE variable for\nlater use. If this value is 1 (yes), this field's value is 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("CONDE") variable\npreviously extracted. If this variable's value is 0 or null, this assumes\ncondition is not related and this field's value is 'X'.\n\n\nThis field relies on the existence of the variable IBXSAVE("IDEM")\npreviously extracted. Format the birthdate as MM DD YYYY.\n\n\nExtract only date from date/time retrieved from IBXSAVE array previously\nextracted. For an outpatient claim not related to an inpatient episode,\nIf data element's value is null, do not output. IB*547 Removed the data \nfor outpatient statement discharge date.\n\n
\nThis field relies on the existence of the IBXSAVE("IDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis an 'M', this field's value is 'X'.\n\n\nThis field relies on the existence of the IBXSAVE("IDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis not an 'M', this field's value is 'X'.\n\n\nSave the other insured's demographic data in IBXSAVE for later use. Format\nthe birthdate as MM DD YYYY.\n\n
\nThis field relies on the existence of the IBXSAVE("OIDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis an 'M', this field's value is 'X'.\n\n\nThis field relies on the existence of the IBXSAVE("OIDEM") variable\npreviously extracted. The second '^' piece contains the sex and if this\nis not a null and is not an 'M', this field's value is 'X'.\n\n\nSave the value of condition related to auto accident in IBXSAVE variable\nfor later use. If this value is 1 (yes), this field's value is 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("CONDA") variable\npreviously extracted. If this variable's value is 0 or null, this assumes\ncondition is not related and this field's value is 'X'.\n\n\nOutput state abbreviation.\n\n
\nEmployer name is the first '^' piece of field's value.\n\n
\nUse the first occurrence of other insured employer information. The first\n'^' piece is the employer's name.\n\n
\nFormat data element in CCYYMMDD date format. If data element's value is\nnull, do not output.\n\n
\nSave the value of condition related to other accident in IBXSAVE variable\nfor later use. If this value is 1 (yes), this field's value is 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("CONDOA") variable\npreviously extracted. If this variable's value is 0 or null, this assumes\ncondition is not related and this field's value is 'X'.\n\n\nUse the first occurrence of other insured group name. The first '^' piece\nof this value has either the group name or the insurance company pointer.\nIf the second '^' piece is a 1, the insurance company name is extracted\nusing the insurance company pointer in the first '^' piece, otherwise, the\nname in the first '^' piece is output.\nMEDICARE WNR always outputs MEDICARE.\n\n
\nSave the other insurance exists data in the IBXSAVE variable for later\nuse. If the value is 1, output an 'X'.\n\n
\nThis field relies on the existence of the IBXSAVE("OI") variable\npreviously extracted. If the value of this data element is null or 0,\noutput an 'X' in this field\n\n\nOutput the patient's name as the signature first middle last name.\n\n
\nOutput the current insured's name as the signature first name, middle name\nlast name\n\n
\nFormat date as MM DD YYYY.\n\n
\nFormat date as MM DD YYYY.\n\n
\nFormat the date in X12 8-digit format if data not null.\n\n
\nFormat date as MM DD YYYY.\n\n
\nFormat date as MM DD YYYY.\n\n
\nIf the array that holds the entire box 19 data is not defined, extract it.\nThis field will hold the 49th through 96th characters of the box's data.\n\n
\n'From' date is the first '^' piece of this data. Format date as MM DD YYYY.\n\n
\nIf there is no date in IBXDATA, set it to Statement Covers To Date then \nformat the resulted date.\n\n
\nSave the diagnoses in the IBXSAVE array for later use. Output the\ndiagnosis code for the first diagnosis. Check for any diagnosis codes\nthat should display in the first position on pages subsequent to page 1\nand output them.\n\n
\nOutput the third diagnosis code. Check for any diagnosis codes that should\ndisplay in the third position on pages subsequent to page 1 and output\nthem.\n\n
\nOutput the second diagnosis code. Check for any diagnosis codes that should\ndisplay in the second position on pages subsequent to page 1 and output\nthem.\n\n
\nOutput the forth diagnosis code. Check for any diagnosis codes that should\ndisplay in the forth position on pages subsequent to page 1 and output\nthem.\n\n
\nIf the bill is for services rendered at an outside lab, get the CLIA number.\nIf this # is not available, use the prior authorization #.\n\n
\nSave the total charges in IBXSAVE array for later use. If\ntotal is not null, output as numeric with 2 decimal places in 10 spaces.\nOnly output totals on last page of form.\n\n
\nThis is the constant we will use as the name of the billing entity.\n\n
\nFormats the name in 21 spaces for block 31 of the HCFA 1500.\nIBXSAVE("BOX31") is the name in format Last,first mi^ien in file 200\n\n\nExtract the street address for the rendering facility. Relies on the\nexistence of the array IBXSAVE("IBFAC") extracted previously by the\nrendering facility name field.\n\n\nSave the data in the IBXSAVE array for later use.\n\n
\nSave the data in the IBXSAVE array for later use.\n\n
\nConcatenate Agent Cashier Mail Symbol to the end of Agent Cashier Street\nAddress.\n\n
\nPrint credentials left justified and date right justified. Format date as\nMM/DD/YYYY.\n\n
\nIf the other payer address is missing any component among address line 1, \ncity, state, or zip, then blank out the entire address. We can't send \npartial addresses.\n\n
\nExtract the city, state abbreviation and zip code for the rendering\nfacility. Relies on the existence of the array IBXSAVE("IBFAC") extracted\npreviously by the rendering facility name field.\n\n\nSave the data in the IBXSAVE array for later use.\n\n
\nSave the data in the IBXSAVE array for later use.\n\n
\nSave the data in the IBXSAVE array for later use.\n\n
\nThis data relies on the existence of the IBXSAVE("ACCITY"),\nIBXSAVE("ACSTATE") and IBXSAVE("ACZIP") variables previously extracted.\nThe data consists of the city concatenated with a , and space, the state\nabbreviation, a space and the zip code. The city name is shortened to fit\nin the whole state and zip in the space allowed.\n\n\nThis line is no longer printed on the standard HCFA 1500.\n\n
\naddress line 1, multi-valued array\n\n
\nAddress line 2 in a multi-valued array\n\n
\nIf array doesn't already exist, extract it\n\n
\nIf more than 6 service dates (12 lines) exist\nfor the bill, this outputs the rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exist for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nPrint total charge (units * rate) only if not 0. Format numeric values\nwith 2 decimal points. If more than 6 service dates (12 lines) exist for\nthe bill, this outputs the rest on additional bill pages.\n\n
\nRight justify numeric values in 3 spaces. If more than 6 service dates\n(12 lines) exist for the bill, this outputs the rest on additional\nbill pages. If the units are being output and they are less than 1, 1 is\nthe default.\n\n
\nIf there is more than 1 page of bill extracted, the variable\nFLDS(line,column) holds the lines and columns that should be duplicated on\npages after the first. This takes care of the population of these static\nfields on these subsequent pages.\n\n
\nThis field holds the 1st through 48th characters of the box's data.\n\n
\nThis field is the prior amounts the patient has paid. This will always\nbe 0 unless VA changes policy.\n\n
\nIf not 0, output as numeric with 2 decimals in 7 characters.\nOnly output total on last page of form.\n\n
\nThis returns the name of the INSTITUTION file entry for the non-VA or\nremote site where care was rendered. Save the ien in IBXSAVE("IBFAC") for\nlater use. If the rendering facility is the same as the main facility,\n'SAME' prints as the facility name.\n\n\nClean up IBXSAVE array.\n\n
\nCheck appropriate box for type of insurance\n\n
\nPrint indicator of ASSIGNMENT OF BENEFITS. Check Yes if data element value\nreturned is null or is not 0,'n', or 'N', otherwise check No.\n\n
\nOther payer city in a multi-valued array. Do the standard punctuation \nedits for cities.\n\n
\nOther payer state code in a multi-valued array. Use of the state code \nconversion utility.\n\n
\nIf data element's value is null, do not output. Remove any punctuation.\n\n
\nOther payer zip code in a multi-valued array.\n\n
\nOther Insurance Subscriber name Suffix.\n\n
\nRecord ID for LOOP 2330, Other Payer Patient Information. One record per 2320 record\n\n
\nOI3-6\n2330C/NM109\nOther payer patient primary ID\n\n
\nOI3-7\n2330C/REF(1)/01\nOther payer patient secondary ID qualifier #1\n\n
\nOI3-8\n2330C/REF(1)/02\nOther payer patient secondary ID #1\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If an institutional\nbill or if the bill is professional and the procedure being extracted was\nnot added as a result of being a modifier with a 5-digit code starting with\n0 ("M" node does not exist), save in an IBXSAVE array for later use. No\noutput.\n\n\nOI3-9\n2330C/REF(2)/01\nOther payer patient secondary ID qualifier #2\n\n
\nOI3-10\n2330C/REF(2)/02\nOther payer patient secondary ID #2\n\n
\nOI3-11\n2330C/REF(3)/01\nOther payer patient secondary ID qualifier #3\n\n
\nOI3-12\n2330C/REF(3)/02\nOther payer patient secondary ID #3\n\n
\nExtract the 364.5 definition into an array. Then use piece 1, Blue Cross \nNumber for 8,16 piece 3.. The array will be used for the remaining pieces.\n\n
\nEach procedure code found in the IBXSAVE array previously extracted is\nformatted into the name of the CPT or ICD procedure or the code from the\nprocedure modifier.\n\n
\nOutput RECORD ID for CL1A record.\n\n
\nRecord ID CI1A (Sequence# 28) piece 1. Hard code "CI1A" as the \nfirst piece.\nIB patch 320 - the CI1A segment is a new segment basically replacing the \nPRV1 segment. Billing provider secondary ID's.\n\n
\nProvider number for the current insurance company for bill entry \nIBXIEN.\n\n
\nKept N-CURRENT INS POLICY TYPE because didn't want to touch previous logic \nthat may set array or TMP.\nthe format code sets array to string with QUALIF and ID for the first \nseven insurances in file #355.97 except some.\n\n
\nEach procedure date found in the IBXSAVE array previously extracted is\nformatted into CCYYMMDD date format and is output on its own PCn entry where\nn is a record count that will allow it to be mapped into one of the 12\navailable pieces of the 837 procedure code record correctly. This is done\nto accommodate Austin's translator and one of its shortcomings.\n\n
\nSUB-4 lab/facility city name\n\n
\nSUB-11\n(P) 2300/AMT(2)/01\nQualifier for the total purchased services charge amount field. Output \nthe qualifier if IBXSAVE("PS$") is true because this indicates a dollar \namount exists in SUB-7.\n\n\nSaves off data element in IBXSAVE array. No output.\n\n
\nIf there are any procedures (not relating to charges) on the bill, output\nthe type of procedure here:\n \nBR = principal procedure and is an ICD code\nBQ = not principal procedure, but is an ICD code\n\n
\nOutput the first 'other' id.\n\n
\nOutput the second 'other' id qualifier.\n\n
\nOutput the second 'other' id.\n\n
\nOutput the third 'other' id qualifier.\n\n
\nOutput the third 'other' id.\n\n
\nThis is diagnosis qualifier.\n\n
\nRecord ID for SUPERVISING PROVIDER SECONDARY ID'S AND QUALIFIERS\n\n
\nRecord ID ofr Operating Physician Secondary ID and Qualifier.\n\n
\nRecord ID for Attending Provider Secondary ID and Qualifier\n\n
\nRecord ID for Insurance Specific Provider Information LOPP 2310 , one claim per Claim Data record set.\n\n
\nRecord ID for Attending/Other Provider Information, LOOP 2310, one claim per Claim Data record set.\n\n
\nCalculates the X12 code for employment status from the DHCP code extracted.\nIf data element's value is null, do not output.\n\n
\nAttending Provider Secondary ID Qualifier.\nEI=EMPLOYER, SY=SSN, 0B=STATE LICENSE NUMBER, 1A=BLUE CROSS, 1B=BLUE SHIELD,\n1C=MEDICARE PARTA and PARTB, 1D=MEDICAID, 1G=UPIN Number, 1H=TRICARE\nG2=COMMERCAIL NUMBER, X5=STATE INDUSTRIAL ACCIDENT PROVIDER NUMBER\nN5=PROVIDER PLAN NETWORK ID\n\n
\nRetrieves patient's first name from IBXSAVE array previously extracted.\nIf data element's value is null, do not output.\n\n
\nOperating Physician Secondary ID and Qualifier.\n\n
\nRetrieves patient's last name from IBXSAVE array previously extracted.\nIf data element's value is null, do not output.\n\n
\nOther Provider Secondary Qualifier 1.\nEI=EMPLOYER ID, SY=SSN, 0B=STATE LICENSE #, 1A=BLUE CROSS, 1B=BLUE SHIELD,\n1C=MEDICARE PARTA or PARTB, 1D=MEDICAID, 1G=UPIN #, 1H=TRICARE, G2=COMMERCIAL #\nX5=STATE INDUSTRIAL ACCIDENT PROVIDER #, LU=LOCATION #, N5=PROVIDER PLAN NETWORK ID\n\n
\nReferring Provider Secondary ID and Qualifier.\n0B=STATE LICENSE #, 1B=BLUE SHILED #, 1C=MEDICARE #, 1D=MEDICAID #\n1G=UPIN #, 1H=TRICARE ID #, G2=COMMERCIAL #, X5=STATE INDUSTRIAL ACCIDENT PROVIDER #\nLU=LOCATION #\n\n
\nSupervising Provider Secondary ID Qualifier\nEI=EMPLOYER, SY=SSN, 0B=STATE LICENSE NUMBER, 1A=BLUE CROSS, 1B=BLUE SHIELD,\n1C=MEDICARE PARTA aqnd PARTB, 1D=MEDICAID, 1G=UPIN Number, 1H=TRICARE\nG2=COMMERCAIL NUMBER, X5=STATE INDUSTRIAL ACCIDENT PROVIDER NUMBER\nN5=PROVIDER PLAN NETWORK ID\n\n
\nSupervising Provider Secondary ID\n\n
\nRetrieves patient's middle name from IBXSAVE array previously extracted.\nIf data element's value is null, do not output.\n\n
\nOther Insured Information, LOOP 2330, one record per 2320 record.\n\n
\nOther Insurance Subscriber Information, LOOP 2330\n\n
\nChanges data element (name) into LAST^FIRST^MIDDLE format. Saves data in\nIBXSAVE array. No output.\n\n
\nOI5-9\n2330A/REF(1)/01\nOther payer subscriber secondary ID qualifier #1\n\n
\nOI5-10\n2330A/REF(1)/02\nOther payer subscriber secondary ID #1\n\n
\nIf data element's value is null, do not output.\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output.\n\n\nFormat date in CCYYMMDD format. If data element's value is null, do not\noutput.\n\n
\nEach occurrence span code to date found in the IBXSAVE array previously\nextracted is formatted into CCYYMMDD date format and is output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is \npossible for the data element in the previously extract IBXSAVE array. \nIf any service line data is found, the data is output. Data is taken \nfrom the 'from' date if there is no 'to' date.\n\n
\nIf header data has already been extracted, then kill data element so\nthere is no output. If no header already extracted, output record\nid for 'BGN' record.\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output.\n\n\nIf an institutional bill or data element's value is null, no output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the quantity '1' is output.\n\n
\nThis is being blanked out with IB patch 377.\n\n
\nINS-12 for UB service line detail data.\n \nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is formatted as a numeric \nincluding cents, without the decimal.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nPrint a space before the 'Y' if an emergency procedure is indicated.\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nIf more than 6 service dates (12 lines) exists for the bill, this outputs\nthe rest on additional bill pages.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nNot currently used. No output\n\n
\nNo output.\n\n
\nIf this data element returns a value other than null, it can be output on\n2 lines where characters 1-29 print on line 1 and 30-59 print on line 2.\nSave off characters 30-59 in IBXSAVE("FL2") array and set value of this\ndata element to the first 29 characters. If the right margin is 81 instead\nof 80, move the field over 1 space. IBXSAVE("FL2") will be printed at a\nlater time.\n\n\nConcatenate Agent Cashier Mail Symbol to the end of Agent Cashier Street \nAddress.\n\n
\nThis data element's value relies on the existence of the IBXSAVE("FL2")\nvariable previously extracted. Form Locator 2 on the UB92 is split into\n2 lines and this is the 30th-59th character entered for this field.\nIf the right margin is 81 instead of 80, move the field over 1 space.\n\n\nThis field consists of a concatenation of 3 fields previously extracted\nand saved in the IBXSAVE array. This is the city, state and zip for the\nagent cashier address line.\n\n
\nIf this data element returns a value other than null, it can be output on\n2 lines where characters 1-12 print on line 1 and 13-25 print on line 2.\nSave off characters 13-25 in IBXSAVE("FL11") array and set value of this\ndata element to the first 12 characters. If the right margin is 81 instead\nof 80, move the field over 1 space. IBXSAVE("FL11") will be printed at a\nlater time.\n\n\nPrint the site contact phone or if no site contact phone #, use agent\ncashier's phone #.\n\n
\nRetrieves insured city data from IBXSAVE array previously extracted. If\ndata element's value is null, do not output.\n\n
\nEach occurrence code date found in the IBXSAVE array previously extracted\nis formatted into CCYYMMDD date format and is output on its own OCn entry\nwhere n is a record count that will allow it to be mapped into one of the\n12 available pieces of the 837 occurrence code record correctly. This is\ndone to accommodate Austin's translator and one of its shortcomings.\n\n
\nFormat date in MMDDYY format.\n\n
\nFormat date in MMDDYY format.\n\n
\nFormat Covered Days to have leading zeroes.\n\n
\nDisplay a blank if non-covered days field is zero.\n\n
\nNot currently used\n\n
\nNot currently used.\n\n
\nThis data element's value relies on the existence of the IBXSAVE("FL11")\nvariable previously extracted. Form Locator 11 on the UB92 is split into\n2 lines and this is the 13th-25th character entered for this field.\nIf the right margin is 81 instead of 80, move the field over 1 space.\n\n\nEach occurrence code found in the IBXSAVE array previously extracted is\noutput.\n\n
\nIf this data element returns a value other than null, it can be output on\n2 lines where characters 1-5 print on line 1 and 6-11 print on line 2.\nSave off characters 6-11 in IBXSAVE("FL31") array and set value of this\ndata element to the first 5 characters. If the right margin is 81 instead\nof 80, move the field over 1 space. IBXSAVE("FL31") will be printed at a\nlater time.\n\n\nIf BIRTHDATE exists, format it MMDDYYYY. If it doesn't exist, output\n00000000.\n\n
\nIf the data element's value is null, set it equal to 'U'.\n\n
\nTranslate the marital status X12 code to external UB92 format.\nD=='D' M=='M' W=='W' X=='X' I=='S' anything else is 'U'.\n\n
\nSave the admission time in IBXSAVE array for later use. Format date\nwithout the time as MMDDYY.\n\n
\nIf this is an outpatient bill, no output. For inpatient bills, output the\ntime portion of the discharge date/time or 99 if no time found.\n\n
\nFormat data element in CCYYMMDD date format. If data element's value is\nnull, do not output.\n\n
\nData element's array reference is IBFL(24), not default of IBXDATA. This is\na group data element so more than 1 occurrence of a value is possible for\nthe data element in the IBFL(24) array. All occurrences of the data element\nare saved in the IBXSAVE("CC",n) array and only IBXSAVE("CC",1) is output\nin this field. Note: hard code is used to output the\ncodes that exceed the # that will fit on one page if multiple pages of bill\nare printed.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the second occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the third occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the fourth occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the fifth occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the sixth occurrence of the array.\n\n\nData element relies on the data in array IBXSAVE("CC") extracted previously.\nThis field reports the data in the seventh occurrence of the array.\nIf there are more than 7 condition codes present, save them in the global\noverflow array.\n\n\nThis data element's value relies on the existence of the IBXSAVE("FL31")\nvariable previously extracted. Form Locator 31 on the UB92 is split into\n2 lines and this is the 6th-11th character entered for this field.\nIf the right margin is 81 instead of 80, move the field over 1 space.\n\n\n \nOperating provider last name\n\n
\nIf the right margin is 81 instead of 80, move the output over 1 space.\n\n
\nRECORD ID FOR OTHER PROVIDER SECONDARY ID\n\n
\nThe data element extracts multiply-occurring data for the occurrence codes\nand occurrence span codes and outputs the first occurrence code here.\nOverflow codes are printed on a separate page.\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 1st and 5th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nOverflow codes (9,13,...) are printed on a separate page.\n\n\nHARD CODE PERSON QUALIFIER\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 2nd and 6th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nOverflow codes (10,14,...) are printed on a separate page.\n\n\nQUAL IS 71 FOR INST AND 82 FOR PROF\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 3rd and 7th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nAny overflow codes (11,15,...) are output on a separate page.\n\n\nFormat date returned as CCYYMMDD. If data element's value is null, do not\noutput.\n\n
\nHARD CODE PERSON CODE "1"\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nHARD CODE ENTITY TYPE QUALIFIER 1=PERSON\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nIf data element's value is null, do not output.\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nHARD CODE "72" OTHER PAYER OPERATING PROVIDER NAME QUALIFIER\n\n
\nOP3-4\nHard code "2".\n\n
\nOP3-7\nLab/Facility, Other Payer, Qualifier #2\n\n
\nOP3-5\nLab/Facility, Other Payer, Qualifier #1\n\n
\nOP3-9\nLab/Facility, Other Payer, Qualifier #3\n\n
\nOP3-6\nLab/Facility, Other Payer, ID #1\n\n
\nOP3-8\nLab/Facility, Other Payer, ID #2\n\n
\nOP3-10\nLab/Facility, Other Payer, ID #3\nClean up IBXSAVE array when done with this segment.\n\n
\nOP3-3\nHard code 77\n\n
\nFormat data as state's 2-character abbreviation. If data element's value\nis null, do not output.\n\n
\nHARD CODE ENTITY TYPE\n\n
\nHARD CODE REFERRING PROVIDER CODE\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nIf data element's value is null, do not output.\n\n
\nIf data element's value is null, do not output.\n\n
\nOP6-10\nlab/facility, other payer, secondary ID #3. Clean up IBXSAVE array nodes \nused here.\n\n
\nOP7-5\nLab/Facility, Other Payer, Qualifier #1\n\n
\nOP7-7\nLab/Facility, Other Payer, Qualifier #2\n\n
\nOP7-9\nLab/Facility, Other Payer, Qualifier #3\n\n
\nOP7-6\nLab/Facility, Other Payer, ID #1\n\n
\nOP7-8\nLab/Facility, Other Payer, ID #2\n\n
\nOP7-10\nLab/Facility, Other Payer, ID #3\nCleanup array when done with segment.\n\n
\nIf data element's value is null, do not output.\n\n
\nOP7-4\nDefault a 2 for non-person.\n\n
\nOP7-3\nDetermine if there is a non-VA facility on the claim. If so, type is 77 \nregardless of what is on file.\n\n
\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids exist.\nOutput the qualifier for a person (1).\n\n\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids\nexist for the first 'other' id qualifier.\n\n\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids\nexist for the second 'other' id qualifier.\n\n\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids\nexist for the third 'other' id qualifier.\n\n\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids\nexist for the first 'other' id.\n\n\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids\nexist for the second 'other' id.\n\n\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids\nexist for the third 'other' id. Kill the IBXSAVE("OSQ") array to clean up.\n\n\nUse the IBXSAVE("OSQ",n) record to determine which 'OTHER PAYER' ids exist.\nOutput the qualifier 'DQ'.\n\n\nPRV-11\nBilling provider address line 2\n\n
\nCalculates the X12 code for sex from the DHCP code extracted. If data\nelement's value is null, do not output.\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nIf there is a fifth diagnosis, print its name.\n\n
\nIf there is a sixth diagnosis, print its name.\n\n
\nIf there is a seventh diagnosis, print its name.\n\n
\nIf there is an eighth diagnosis, print its name.\n\n
\nCalculates the X12 code for marital status from the DHCP code extracted.\n\n
\nIf there is a ninth diagnosis, print its name.\nCheck for more than 8 other diagnoses on file. If there is, output on new pg.\n\n
\nThis data element relies on the existence of the array containing the\ndiagnoses for the bill, previously extracted. This data will be output if\nit is the first 'E-code' dx found.\n\n
\nThis data element's value relies on the existence of the IBXSAVE("FL78")\nvariable previously extracted. Form Locator 78 on the UB92 is split into\n2 lines and this is the 3rd-5th character entered for this field if the\nentire text is greater than 3 characters in length, or is the entire text\nif not. If the right margin is 81 instead of 80, move the field over 1\nspace.\n\n\nExtracts all the possible providers into the appropriate line for box 82\nof the UB-92 print claim form. This is the first line extracted.\n\n
\nData can only be 5 (HCPCS) or 9 (ICD9). CPT-4 (4) has been rolled into 5\n\n
\nThis is a group data element so more than one occurrence of IBXDATA(n) is\npossible. Save off the procedures in the IBXSAVE array. Six procedures\nwill fit on a single page of a bill. If more than 6 procedure codes are\non the bill, multiple pages are used. The format of the IBXSAVE array is:\n the actual code for the ICD9 or ICD0 code^proc date formatted as MMDDYY\n\n
\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the first occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the first occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the second occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis element is blank.\n\n
\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the second occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the third occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the third occurrence exists, output the date\nfound in its second '^' piece.\n\n\nIf not already done, extract all the possible providers into the\nappropriate line for box 82 on the UB-92 print claim form. This is the\nsecond line extracted.\n\n
\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fourth occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fourth occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fifth occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the fifth occurrence exists, output the date\nfound in its second '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the sixth occurrence exists, output the code\nreferenced by its first '^' piece.\n\n\nThis data element relies on the existence of the IBXSAVE("PROC") array\npreviously extracted. If the sixth occurrence exists, output the date\nfound in its second '^' piece.\n\n\nIf data element's value is null, do not output.\n\n
\nIf not already done, extract all the possible providers into the\nappropriate line for box 82 on the UB-92 print claim form. This is the\nfourth line extracted.\n\n
\nIf not already done, extract all the possible providers into the\nappropriate line for box 82 on the UB-92 print claim form. This is the\nthird line extracted.\n\n
\nNot currently used\n\n
\nIf not already done, extract all the possible providers into the\nappropriate line for box 82 on the UB-92 print claim form. This is the\nfifth line extracted.\n\n
\nExtracts the insurance company name from the first piece of IBXDATA.\nIf MEDICARE WNR is current insurance, mailing name is MEDICARE.\nIf the parameter says move the data to another column, set spaces at the\nbeginning to accommodate this.\n\n
\nIf not already done, extract all the possible providers into the\nappropriate line for box 82 on the UB-92 print claim form. This is the\nsixth line extracted.\n\n
\nData element extracts full address data into IBXDATA array,\nsaves the data in IBXSAVE("CADR")=Street addr 1^Street addr 2^Street addr 3^\nCity^State^Zip^claim office id # for later use and resets IBXDATA to street\n1 and street 2 of address.\nIf the parameter says move the data to another column, set spaces at the\nbeginning to accommodate this.\n\n\nCombine the city, state and zip code for one line of the address.\nIf the parameter says move the data to another column, set spaces at the\nbeginning to accommodate this.\n\n
\nUse a constant SIGNATURE ON FILE.\n\n
\nUse data element value unless the variable IBPNT>0 (indicates reprint) or\nif data element value is null. Format as date in MMDDYY format.\n\n
\nHARD CODE FORMAT OTH PAYER OTH PROV ID\n\n
\nKills off globals,other variables to be used, sets right margin variable.\n\n
\nRefering Provider Secondary ID Qualifier\nEI=EMPLOYER, SY=SSN, 0B=STATE LICENSE NUMBER, 1A=BLUE CROSS, 1B=BLUE SHIELD,\n1C=MEDICARE PARTA aqnd PARTB, 1D=MEDICAID, 1G=UPIN Number, 1H=TRICARE\nG2=COMMERCIAL NUMBER, X5=STATE INDUSTRIAL ACCIDENT PROVIDER NUMBER\nN5=PROVIDER PLAN NETWORK ID\n\n
\nRefering Provider Secondary ID\n\n
\nRefering Provider Secondary ID Qualifier.\nEI=EMPLOYER, SY=SSN, 0B=STATE LICENSE NUMBER, 1A=BLUE CROSS, 1B=BLUE SHIELD,\n1C=MEDICARE PARTA aqnd PARTB, 1D=MEDICAID, 1G=UPIN Number, 1H=TRICARE\nG2=COMMERCAIL NUMBER, X5=STATE INDUSTRIAL ACCIDENT PROVIDER NUMBER\nN5=PROVIDER PLAN NETWORK ID\n\n
\nRefering Provider Secondary ID\n\n
\nRefering Provider Secondary ID Qualifier.\nEI=EMPLOYER, SY=SSN, 0B=STATE LICENSE NUMBER, 1A=BLUE CROSS, 1B=BLUE SHIELD,\n1C=MEDICARE PARTA aqnd PARTB, 1D=MEDICAID, 1G=UPIN Number, 1H=TRICARE\nG2=COMMERCAIL NUMBER, X5=STATE INDUSTRIAL ACCIDENT PROVIDER NUMBER\nN5=PROVIDER PLAN NETWORK ID\n\n
\nRefering Provider Secondary ID\n\n
\nIf data element's value is null, do not output.\nIf this is a request for an MRA, append the batch number as the 3rd '-'\npiece of the patient control number.\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nIf data element's value is null, do not output.\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nFROM FORMAT IN PROVINF^IBCEF7\n\n
\nIf data element's value is null, do not output.\n\n
\nConverts release of information indicator from DHCP to X12 format.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 4th and 8th\noccurrences of occurrence code 'from date' formatted as MMDDYY found in the\nsecond '^' piece of the IBXSAVE("OCC",n) array data element.\nAny overflow codes (12,16,...) are output on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 1st and 2nd\noccurrences of occurrence span codes found in the IBXSAVE("OCCS",n) array\ndata element. Overflow codes are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 1st and 2nd\noccurrences of occurrence span code 'from date' formatted as MMDDYY found\nin the second '^' piece of the IBXSAVE("OCCS",n) array data element.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCCS") extracted previously. This field outputs the 1st and 2nd\noccurrences of occurrence span code 'to date' formatted as MMDDYY found\nin the third '^' piece of the IBXSAVE("OCCS",n) array data element.\n\n\nThis field relies on the IBXSAVE("RP") array that was previously extracted.\nIf the first occurrence of this array has a non-null value, print it.\n\n\nRetrieves insured zip code address data from IBXSAVE array previously\nextracted. If data element's value is null, do not output.\n\n
\nEach occurrence span code from date found in the IBXSAVE array previously\nextracted is formatted into CCYYMMDD date format and is output on its own\nOCSn entry where n is a record count that will allow it to be mapped into\none of the 12 available pieces of the 837 occurrence span code records\ncorrectly. This is done to accommodate Austin's translator and one of its\nshortcomings.\n\n
\nSave all value codes extracted into IBXSAVE array for later use. The 2\npieces that constitute the IBXSAVE("VC") array are: CODE^VALUE formatted\nusing 8 characters for quantity and using 9 or 10 characters for a dollar\namount. Use 9 if right margin is 80 or less, 10 if > 80.\nOverflow fields are printed on a separate page.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe first piece of each occurrence found.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe second piece of each occurrence found.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe first piece of each occurrence found.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe second piece of each occurrence found.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe first piece of each occurrence found. If there are more than 12\nvalue codes, they are stored in the overflow array.\n\n\nThis data element relies on the array IBXSAVE("VC") previously extracted.\nThis is a group data element and can have multiple occurrences. Output is\nthe second piece of each occurrence found.\n\n\nThis field relies on the IBXSAVE("RP") array that was previously extracted.\nIf the second occurrence of this array has a non-null value, print it.\n\n\nThis field relies on the IBXSAVE("RP") array that was previously extracted.\nIf the second occurrence of this array has a non-null value, print it.\n\n\nThis field relies on the IBXSAVE("RP") array that was previously extracte\nIf the fourth occurrence of this array has a non-null value, print it.\n\n\nEach occurrence span code found in the IBXSAVE array previously extracted is\noutput.\n\n
\nThis data element is a group data element where more than one occurrence\nSince only 23 lines of service line can appear on one form, if there\nare more than 23 lines, subsequent pages are forced for the remaining data\nlines after 23. Since the page number must print on line 23 for multi-page\nbills, the FILL^IBCEF3 call places the page number text on the last line of\nthe last page.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the second '^'\npiece of the array. For text line where the first piece = 2, the text is\nassumed to start in column 1, so the data is extracted from positions 1-5.\nFor text line where the first piece = 3, the text is assumed to start in\ncolumn 6, so there is no data extracted for this field.\n\n\nThis data element is a group data element where more than one occurrence\nSince only 23 lines of service line can appear on one form, if there\nare more than 23 lines, subsequent pages are forced for the remaining data\nlines after 23.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the third '^'\npiece of the array. For text line where the first piece = 2, the text is\nassumed to start in column 1, so the data is extracted from positions 6-30.\nFor text line where the first piece = 3, the text is assumed to start in\ncolumn 6, so the data for this field is extracted from positions 1-25.\n\n\nThis data element is a group data element where more than one occurrence\nformatted in 7 spaces with 2 decimal places. Since only 23 lines of service\ncan appear on one form, if there are more than 23 lines, subsequent\npages are forced for the remaining data lines after 21 to leave room for a\nblank separating line and the page indicator.\nmight be expected. It relies on the presence of data in global\n^TMP($J,"IBC-RC",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the fourth\n(procedure code and modifiers) or fifth (unit charge) '^' pieces of the\narray. If there is a procedure and a unit charge, only the procedure code\nand its modifiers will print. If there is a unit charge and this is an\ninpatient bill and the revenue code is 100-219, it is printed and\n\n
\nThis data element is a group data element where more than one occurrence\nextracted from positions 36-42.\nSince only 23 lines of service line can appear on one form, if there\nare more than 23 lines, subsequent pages are forced for the remaining data\nlines after 23.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, output the OUTPATIENT from date that\nwas previously extracted into IBXSAVE("DATE"). For text line where the first\npiece = 2, the text is assumed to start in column 1, so the data is\nextracted from positions 41-47. For text line where the first piece = 3,\nthe text is assumed to start in column 6, so the data for this field is\n\n\nThis data element is a group data element where more than one occurrence\nfield is extracted from positions 43-48.\nSince only 23 lines of service line can appear on one form, if there\nare more than 23 lines, subsequent pages are forced for the remaining data\nlines after 23.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the sixth '^'\npiece of the array and is formmatted preceeded by a space. For text line\nwhere the first piece = 2, the text is assumed to start in column 1, so the\ndata is extracted from positions 48-53. For text line where the first\npiece = 3, the text is assumed to start in column 6, so the data for this\n\n\nThis data element is a group data element where more than one occurrence\nfield is extracted from positions 49-61.\nSince only 23 lines of service line can appear on one form, if there\nare more than 23 lines, subsequent pages are forced for the remaining data\nlines after 23.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the seventh '^'\npiece of the array and is formmatted preceeded by a space. For text line\nwhere the first piece = 2, the text is assumed to start in column 1, so the\ndata is extracted from positions 54-66. For text line where the first\npiece = 3, the text is assumed to start in column 6, so the data for this\n\n\nThis data element is a group data element where more than one occurrence\nfield is extracted from positions 62-72.\nSince only 23 lines of service line can appear on one form, if there\nare more than 23 lines, subsequent pages are forced for the remaining data\nlines after 23.\nmight be expected. It relies on the presence of data in array\nIBXSAVE("REV",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the eighth '^'\npiece of the array and is formatted preceeded by a space. For text line\nwhere the first piece = 2, the text is assumed to start in column 1, so the\ndata is extracted from positions 67-77. For text line where the first\npiece = 3, the text is assumed to start in column 6, so the data for this\n\n\nThis data element is a group data element where more than one occurrence\nThe ending extract point is one less in each case if the right margin is\nonly 80, not 81. Since only 23 lines of service line can appear on one form,\nif there are more than 23 lines, subsequent pages are forced for the\nremaining data lines after 23.\nmight be expected. It relies on the presence of data in array\n^TMP("IBC-RC",n) extracted previously. The first '^' piece of the array\nindicates whether this is a 'normal' service data line (=1) or a text line\n(=2 or =3). For a normal service line, the data is found in the ninth '^'\npiece of the array. For text line where the first piece = 2, the text is\nassumed to start in column 1, so the data is extracted from positions 78-81.\nFor text line where the first piece = 3, the text is assumed to start in\ncolumn 6, so the data for this field is extracted from positions 73-76.\n\n\nIf this data element returns a value other than null, it can be output on\n5 lines where characters 1-13 print on line 1, 14-27 print on line 2, 28-41\nprint on line 3, 42-55 print on line 4 and 56-69 print on line 5.\nSave off characters 14-69 in IBXSAVE("FL56",line #) array and set value of\nthis data element to the first 13 characters. If the right margin is 81\ninstead of 80, move the field over 1 space. The rest of IBXSAVE("FL56")\nwill be printed at a later time.\n \nIf the Form Locator 56 field has no data then the Prior Bills will be used.\n\n\nConverts assignment of benefits indicator from DHCP to X12 format.\n\n
\nThis data element's value relies on the existence of the IBXSAVE("FL56")\nvariable previously extracted. Form Locator 56 on the UB92 is split into\n5 lines and this is the 2nd line (14th-27th characters entered) for this\nfield. If the right margin is 81 instead of 80, move the field over 1 space.\n\n\nThis data element's value relies on the existence of the IBXSAVE("FL56")\nvariable previously extracted. Form Locator 56 on the UB92 is split into\n5 lines and this is the 3rd line (28th-41th characters entered) for this\nfield. If the right margin is 81 instead of 80, move the field over 1 space.\n\n\nThis data element's value relies on the existence of the IBXSAVE("FL56")\nvariable previously extracted. Form Locator 56 on the UB92 is split into\n5 lines and this is the 4th line (42nd-55th characters entered) for this\nfield. If the right margin is 81 instead of 80, move the field over 1 space.\n\n\nThis data element's value relies on the existence of the IBXSAVE("FL56")\nvariable previously extracted. Form Locator 56 on the UB92 is split into\n5 lines and this is the 5th line (56th-69th characters entered) for this\nfield. If the right margin is 81 instead of 80, move the field over 1 space.\n\n\nThe first 15 characters of the name of the primary, secondary, and tertiary\ninsurance companies along with the claim office number and payer id, if\nknown. If the primary or secondary insurance is MEDICARE WNR, output\n'MEDICARE'.\n\n
\nFor each insurance on file in the bill, print the ROI indicator = 'Y' if\nthe record is not a sensitive record, or 'R' if it is a sensitive record.\n\n
\nFor each insurance on file in the bill, print the ASSIGNMENT OF BENEFITS\nindicator = 'Y' if the data element value returned is null or is not 0,'n'\nor 'N', otherwise print 'N'.\n\n
\nIf the insurance company for the prior payment does not exist for the bill,\ndon't output the prior payment information.\n\n
\nSet the estimated amt for the current insurance equal to the balance on the\nbill.\n\n
\nConverts bill submission status from DHCP to X12 format. '00' is original\nsubmission, '15' is any subsequent submission of this bill.\n\n
\nNot used\n\n
\nNot used yet. No output.\n\n
\nNot used yet. No output.\n\n
\nIf the insurance is MEDICARE WNR, do not output the group name.\nAdd a space to the end of the Group Name to separate it from\nthe next field , Group Number.\n\n
\nIf the insurance is MEDICARE WNR, do not output the group number.\n\n
\nFormat date in CCYYMMDD format. If data element's value is null, do not\noutput.\n\n
\nIf the array IBXSAVE("OIEMP") doesn't already exist, extract it. For each\ninsured on the bill, extract the first piece of the data element for output\nin this field.\n\n\nThis data element relies on the existence of the IBXSAVE("OIEMP") array\nextracted previously. The output here is as much of the street address (5th\npiece) that will fit if the whole city and state are printed, then the\nsecond piece (city), a comma if city not null, and the third piece for the\nstate abbreviation.\n\n\nIf this data element returns a value other than null, it can be output on\n2 lines if its length is bigger than 3 characters. If less than 3\ncharacters in length, the text prints on line 2 and the entire text is\nsaved in IBXSAVE("FL78"). If the length is greater than 3, characters 1-2\nprint on line 1 and 3-5 print on line 2, save off characters 3-5 in\nIBXSAVE("FL78") array and set value of this data element to the first 2\ncharacters. If the right margin is 81 instead of 80, move the field over 1\nspace. IBXSAVE("FL78") will be printed at a later time.\n\n\nThe principal dx is found in the first occurrence of the data element's\nvalues. The rest of the diagnoses are saved off in the IBXSAVE("DX") array\nfor later use. Only allow 1 E-code.\n\n\nIf there is a second diagnosis, print its name.\n\n
\nIf there is a third diagnosis, print its name.\n\n
\nIf there is a fourth diagnosis, print its name.\n\n
\nFormat data element so it is numeric including cents, without the decimal.\nIf data element's value is null, do not output.\n\n
\nFormat data element so it is numeric including cents, without the decimal.\nIf data element's value is null, do not output.\n\n
\nIf data exists from the previous extract of IBXSAVE("ADMDT"), output it.\nFormat date in CCYYMMDD format. IB*2.0*547 removed the Outpatient date.\nIB*2.0*574 add Outpatient date for Hospice and Home Health Claims.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 2nd and 6th\noccurrences of occurrence codes found in the IBXSAVE("OCC",n) array data\nelement. Overflow codes are printed on a separate page.\n\n\nCleans up IBXSAVE array. No output.\n\n
\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 3rd and 7th\noccurrences of occurrence codes found in the IBXSAVE("OCC",n) array data\nelement. Overflow codes are printed on a separate page.\n\n\nThis data element is a group data element where more than one occurrence\nmight be expected. It relies on the presence of data in array\nIBXSAVE("OCC") extracted previously. This field outputs the 4th and 8th\noccurrences of occurrence codes found in the IBXSAVE("OCC",n) array data\nelement. Overflow codes are printed on a separate page.\n\n\nIf the agent cashier city is defined, save it in array IBXSAVE for later\nuse. Include the space to be used between city and state.\n\n
\nIf the agent cashier state is defined, save the 2-character state\nabbreviation in array IBXSAVE for later use. Include the space to be used\nbetween state and zip code.\n\n
\nIf the agent cashier zip code is defined, save the zip code in array IBXSAVE\nfor later use.\n\n
\nTakes data extracted from current insured's address and the city/state/zip\nand saves the values in IBXSAVE array.\n\n
\nChecks for multi-page output, adds the static fields to subsequent pages.\n\n
\nIf data element's value is null, do not output.\n\n
\nThis field relies on the existence of variable IBXSAVE("IADR") previously\nextracted.\n\n\nThis field relies on the existence of variable IBXSAVE("IADR") previously\nextracted. Output the state abbreviation.\n\n\nThis field relies on the existence of variable IBXSAVE("IADR") previously\nextracted. Output the insured's zip code.\n\n\nThis field relies on the existence of the variable IBXSAVE("IDEM")\npreviously extracted.\n\n\nSave the insured's demographic data in IBXSAVE("IDEM").\n\n\nField is not currently used by the V.A\n\n
\nFinds SSN for ATTENDING or RENDERING PROVIDER\n\n
\nIf MRA is needed, use default of VA0 and the site #. For other than MRA,\nuse the provider number assigned to the site by the insurance co.\n\n
\nSaves off data element in IBXSAVE array with the first '^' piece of the\ndata reformatted to a date format of CCYYMMDD and phone # stripped of\npunctuation. No output.\n\n
\nRetrieves insured state data from IBXSAVE array previously extracted. If\ndata element's value is null, do not output.\n\n
\nStrip all punctuation from phone number.\n\n
\nSet ^TMP("IBHDR",$J) global node so the header data is not extracted again.\nNo output needed.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. It relies on the\nexistence of the IBXSAVE("CCOB",COBSEQ) array that was previously extracted.\nFor other than the first occurrence, the RECORD ID 'COB1' must be output.\nOnly output 1 record per COB sequence.\n\n\nDepending on the revenue code found, this field is set to DA or UN to\nspecify the type of units being billed for.\n\n
\nIf header data has already been extracted, array ^TMP("IBHDR1",$J) will\nalready exist. Don't want to extract this field again, so kill data\nelement so there is no output. Also don't output data element if its\nvalue is null.\nThis data relies on the presence of the IBXSAVE("CADR") array that should\nhave been set in a previous data field.\n\n\nData element extracts address data into IBXDATA array\nSave the data in IBXSAVE("CADR")=Street addr 1^Street addr 2^Street addr 3^\nCity^State^Zip^claim office id # for later use.\n\n\nMove data to IBXSAVE for later use.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCOB",COB,n,1) array. Extract the second piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nCleans up the IBXSAVE array. No output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. It relies on the\nexistence of the IBXSAVE("MOA") array that was previously extracted.\nFor other than the first occurrence, the RECORD ID 'MOA1' must be output.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. It relies on the\nexistence of the IBXSAVE("MIA45") array that was previously extracted.\nFor other than the first occurrence, the RECORD ID 'MIA1' must be output.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. It relies on the\nexistence of the IBXSAVE("MIA45") array that was previously extracted.\nFor other than the first occurrence, the RECORD ID 'MIA2' must be output.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. It relies on the\nexistence of the IBXSAVE("CCAS") array that was previously extracted.\nFor other than the first occurrence, the RECORD ID 'CCAS' must be output.\n\n\nMove the IBXDATA array to the IBXSAVE array for later use.\n\n
\nMove the IBXDATA array to the IBXSAVE array for later use.\n\n
\nCleans up the IBXSAVE array. No output.\n\n
\nMove the IBXDATA array to the IBXSAVE array for later use.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the twelveth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the first piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the first piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n) array. Extract the first\npiece for this data.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,5) array. Extract the first\npiece for this data. Output only the first REMARKS CODE(1) found for each\nCOB sequence.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,1) array. Extract the first piece\nif not null for this data.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,2) array. Extract the first piece\nfor this data, if not null.\n\n\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the line # for each COB sequence found for the\nline. For every line output > 1, output the 'LCOB' record id.\n\n
\nOutput record id for 'LCOB' record.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the payer id for each COB sequence found for the\nline.\n\n
\nOutput record id for 'LCAS' record.\n\n
\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Each time\nwe encounter a new line item (after the first), a new group code, or more\nthan 6 reason codes for a given group code, output the 'LCAS' record id as\nthese each need a new record.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Each time\nwe encounter a new group code, or more than 6 reason codes for a given\ngroup code, output the group code as these each need a new record.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nreason codes can be output on a single record for the same line and group\ncode. This extracts the first, seventh, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nreason codes can be output on a single record for the same line and group\ncode. This extracts the second, eighth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj amts can be output on a single record for the same line and group\ncode. This extracts the first, seventh, etc onto separate records.\n\n\nCleans up IBXSAVE and ^TMP("DCX") arrays. No output.\n\n\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the second piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the third\npiece for this data. Output only the first REMARKS CODE(1) found for each\nCOB sequence.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the fourth\npiece for this data. Output only the first REMARKS CODE(2) found for each\nCOB sequence.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the fifth\npiece for this data. Output only the first REMARKS CODE(3) found for each\nCOB sequence.\n\n\nCleans up IBXSAVE array. No output.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the sixth\npiece for this data. Output only the first REMARKS CODE(4) found for each\nCOB sequence.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the eighth piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the ninth piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the third piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the fifth piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the sixth piece\nfor this data. Output the sum of each COB sequence as 1 IBXDATA(n) entry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the seventh\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the eighth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the ninth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nCleans up the IBXSAVE array. No output.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the tenth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the eleventh\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the thirteenth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the fourteenth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the fifteenth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the eighteenth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,5) array. Extract the second\npiece for this data. Output only the first REMARKS CODE(2) found for each\nCOB sequence.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,5) array. Extract the third\npiece for this data. Output only the first REMARKS CODE(3) found for each\nCOB sequence.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,5) array. Extract the fourth\npiece for this data. Output only the first REMARKS CODE(4) found for each\nCOB sequence.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the fifth\npiece for this data. Output only the first REMARKS CODE(5) found for each\nCOB sequence.\n\n\nCleans up IBXSAVE array. No output.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the sixteenth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the seventeenth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,1) array. Extract the second piece\nif not null for this data.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,3) array. Extract the first piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,1) array. Extract the third piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,2) array. Extract the second piece\nfor this data, if not null.\n\n\nhis data element relies on the previous extract of COB data for other\nnsurance into the IBXSAVE("CCAS",COB,n,3) array. Extract the second piece\nor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,2) array. Extract the third piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,3) array. Extract the third piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,4) array. Extract the third piece\nfor this data, if not null.\n\n\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,5) array. Extract the third piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,6) array. Extract the third piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,4) array. Extract the second piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,6) array. Extract the second piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,4) array. Extract the first piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,5) array. Extract the first piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,5) array. Extract the second piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("CCAS",COB,n,6) array. Extract the first piece\nfor this data, if not null.\n\n\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MOA",COB,n,3) array. Extract the seventh\npiece for this data. Output only the first REMARKS CODE(5) found for each\nCOB sequence.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extracted IBXSAVE array.\nOnly output the data for service lines that have data.\n\n
\nMRD;IB*2.0*516 - Changed to be blank.\n\n
\nThis data element relies on the previous extract of COB data for other\ninsurance into the IBXSAVE("MIA45",COB,n,4) array. Extract the fourth\npiece for this data. Output the sum of each COB sequence as 1 IBXDATA(n)\nentry.\n\n\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\nIf the type of service not = 7 (anesthesia), this is units (UN) and for\nanesthesia, it's minutes (MJ)\n\n
\nSUB-7\n(P) 2300/AMT(2)/02\nFormat the total purchased service charges amount into an EDI dollar \nformat before transmitting. Save the IBXSAVE("PS$") flag to indicate \nthat a dollar amount exists and that the qualifier in SUB-11 is needed.\n\n\nFinds SSN for REFERING PROVIDER\n\n
\nChanges data element (name) into LAST^FIRST^MIDDLE format. Saves data in\nIBXSAVE array for use by later fields.\n\n
\nChanges data element (name) into LAST^FIRST^MIDDLE format. Saves data in\nIBXSAVE array for use by later fields.\n\n
\nFinds the Operating Physicians SSN \n\n
\nThis is the X12 definition for the current insurance plan type\n(Refer to the 837 v4010 field 2000B/SBR/09.)\n\n
\nRetrieves insured demographics from IBXSAVE array previously extracted. If\ndata element's value is null, do not output.\n\n
\nClean up IBXSAVE array. No output.\n\n
\nThis is the X12 interpretation of the 'other' insurance plan types\n CI = COMMERCIAL (default if none defined),1,2\n 15 = INDEMNITY\n(see codes below or refer to the 837 v4010 field 2000B/SBR/09.)\n X12 CODES: MA = MEDICARE PART A 3\n MB = MEDICARE PART B 3\n HM = HMO\n MC = MEDICAID 4\n 12 = PPO\n CH = TRICARE 5\n WC = WORKERS COMP\n\n
\nClean up the IBXSAVE array. No output.\n\n
\nChanges data element (name) into LAST^FIRST^MIDDLE^CREDENTIALS format. Saves\ndata in IBXSAVE array for use by later fields.\nIf the provider name is blank and the provider id is SLF000 (self), this\nfield is not required.\n\n
\nIf the attending/rendering provider exists, output the first name from the\nsecond '^' piece.\n\n
\nOperating provider first name\n\n
\nIf the operating provider exists, output the first name from the second '^'\npiece.\n\n
\nIf the referring provider exists, output the first name from the second '^'\npiece.\n\n
\nCleans up the IBXSAVE array. No output.\n\n
\nThis field is blank.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extract IBXSAVE array. If\nany service line data is found, the data is output.\n\n
\nAlways 0-fill data to the left. If primary site, don't output. If not\nprimary site, this is the site suffix (up to 4 digits)\n\n
\nIf the right margin is 81 instead of 80, move the output over 1 space.\n\n
\nCleans up the IBXSAVE array ... no output.\n\n
\nIf the right margin is 81 instead of 80, move the output over 1 space.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the IBXDATA array. If any other insurance\ncompany data is found, these authorization codes are output.\n\n
\nIf data element's value is null, do not output.\n\n
\nExplanation of benefits indicator should always be set to "y"\n\n
\nFormat data element in CCYYMMDD date format. If data element's value is\nnull, do not output.\n\n
\nFormat data element in MM/DD/CCYY date format.\n\n
\nThis element is blank.\n\n
\nIf IBXDATA does not have a value that is greater than 0, no output. If \ndata element > 0, save off value in IBXSAVE array for later use, output\nas 'AA'.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extracted IBXSAVE array.\nOnly output the data for service lines that have data.\n\n
\nThis element is blank.\n\n
\nThis element is blank.\n\n
\nThis element is blank.\n\n
\nThis is a group data element so more than 1 occurrence of a value is\npossible for the data element in the previously extracted IBXSAVE array.\nOnly output the data for service lines that have data.\n\n
\nPRV-3\nBilling provider name\n\n
\nFormat data element in CCYYMMDD date format. If data element's value is \nnull do not output.\n\n
\nFormat code for the CLIA# in SUB-8. Just remove any punctuation.\n\n
\nSUB-9 lab/facility primary ID#\nRemove punctuation from the returned tax ID number.\n \nesg - 6/25/09 - IB*2*400 - Tie SUB-9 and SUB-13 together as an \nID/qualifier pair for purchased services.\n\n
\nThe data element calls N-PURCHASED SERVICE TYPE which extracts the NON-VA \nor 2 then Austin populates the purchased service loop 2310C.\n \nInvoke the $$SUB1OK function to determine if this claim is for purchased \nservices. If $$SUB1OK is true, then leave the value of IBXDATA alone as \nextracted from the data element. But if $$SUB1OK is false, then kill \nIBXDATA to make this field blank.\nCARE TYPE field from the claim (399,233).\n \n1:FEE BASIS, NON-LAB\n2:FEE BASIS, LAB\n3:NON-FEE BASIS, NON-LAB\n4:NON-FEE BASIS, LAB\n \nAustin uses this field for professional claims only. If the value is 1 \n\n
\nFormat data element as the 2-character state abbreviation. If data element\nis null, no output.\n\n
\nAdded NDC code in piece 22 as part of IB*2.0*516.\n\n
\nesg - 8/18/06 - IB patch 348 - New CMS-1500 claim form project\n \nBox 24K no longer exists on the 1500 form. Austin FSC was not mapping \nthis field to anything anyway.\n\n
\nIB patch 320. Move the data in this field to CI1A-3.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each \nline item (LCOB) that was previously extracted. If the line has COB data \nassociated with it, output the amount paid for each COB sequence found for\nthe line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the procedure for each COB sequence found for the\nline.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the revenue code for each COB sequence found for\nthe line.\n\n
\nIf IBXDATA does not have a value that is greater than 0, no output. If\ndata element > 0, output as 'EM'.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the modifier 1 for each COB sequence found for\nthe line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the modifier 2 for each COB sequence found for\nthe line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the modifier 3 for each COB sequence found for\nthe line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the modifier 4 for each COB sequence found for\nthe line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the description for each COB sequence found for\nthe line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the paid units for each COB sequence found for\nthe line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the assigned line # for each COB sequence found\nfor the line.\n\n
\nThis data element assumes the existence of the IBXSAVE array for each line\nitem (LCOB) that was previously extracted. If the line has COB data\nassociated with it, output the date paid for each COB sequence found for\nthe line. This data is only stored at the claim level, not the line level,\nso it is assumed it applies to every line item on the EOB.\n\n
\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj quantity can be output on a single record for the same line and group\ncode. This extracts the first, seventh, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj amts can be output on a single record for the same line and group\ncode. This extracts the second, eighth, etc onto separate records.\n\n\nIf IBXDATA does not have a value that is greater than 0, no output. If\ndata element > 0, output as 'OA'.\n\n
\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nreason codes can be output on a single record for the same line and group\ncode. This extracts the third, ninth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nreason codes can be output on a single record for the same line and group\ncode. This extracts the fourth, tenth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nreason codes can be output on a single record for the same line and group\ncode. This extracts the fifth, eleventh, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj quantity can be output on a single record for the same line and group\ncode. This extracts the sixth, twelveth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nreason codes can be output on a single record for the same line and group\ncode. This extracts the sixth, twelveth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj amts can be output on a single record for the same line and group\ncode. This extracts the fourth, tenth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj quantity can be output on a single record for the same line and group\ncode. This extracts the third, ninth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj quantity can be output on a single record for the same line and group\ncode. This extracts the fifth, eleventh, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj amts can be output on a single record for the same line and group\ncode. This extracts the third, ninth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj quantity can be output on a single record for the same line and group\ncode. This extracts the fourth, tenth, etc onto separate records.\n\n\nSave off data element's value in IBXSAVE array. No output. IB*547 \nrequirement to use only Inpatient Admission Date/Time.\nIB*574 - added date for Outpatient Home health and hospice\n\n
\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj amts can be output on a single record for the same line and group\ncode. This extracts the fifth, eleventh, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj quantity can be output on a single record for the same line and group\ncode. This extracts the second, eighth, etc onto separate records.\n\n\nThis data element assumes the existence of the IBXSAVE("LCOB") array that\nwas previously extracted with COB data for specific line items. Up to 6\nadj amts can be output on a single record for the same line and group\ncode. This extracts the sixth, twelveth, etc onto separate records.\n\n\nCleans up the IBXSAVE array. No output.\n\n
\nThe arrays IBXSAVE("INPT"), IBXSAVE("OUTPT") and IBXSAVE("RX") are created\nwhen the line items on the bill are produced. This field takes the data\nfrom these arrays and creates a new IBXSAVE("LCOB") array with just the COB\ndata and deletes the original IBXSAVE arrays.\n\n\nIf there is no street address, don't use the rest of the address either.\n\n
\nExtract time from date/time retrieved from IBXSAVE array previously\nextracted. Format time in HHMM format. If data element's value is null,\ndo not output.\n\n