ContactRequest a DemoDemo Login

What is Redix PDF module?

The PDF module allows users to convert EDI/HIPAA/XML/CSV/Flat File Transactions to Adobe’s PDF Form.

Can the PDF module be licensed alone?

No, the PDF module is an add-on module on the Redix AnyToAny Format Converter Engine. The user will need to license the Redix AnyToAny Format Converter Engine as well.

Does Redix PDF module support CMS 1500 and UB04 conversions?)

Redix PDF module supports several PDF maps in the healthcare industry. One of the widely distributed maps is a map that converts a HIPAA 837 Professional to HCFA 1500 PDF file. Later, the map was modified to converts a HIPAA 837 Professional with NPI information to CMS 1500 PDF file. The following is a list for all of the PDF maps that Redix has developed.

Map NameSource MessageOutput Description
HIPAA_A1_837_Inst_To_HCFA_1450_OutboundPDF HIPAA 837 Institutional 4010A1 HCFA 1450 Form in PDF
HIPAA_A1_837_Prof_to_HCFA_1500_OutboundPDF HIPAA 837 Professional 4010A1 HCFA 1500 Form in PDF
PDF_CMS-1500-RAW_VIEW-PDFperClaim HIPAA 837 Professional (4010A1 with NPI) CMS 1500 PDF file. One claim per PDF file.
PDF_CMS-1500-RAW_VIEW HIPAA 837 Professional (4010A1 with NPI) CMS 1500 PDF file. All claims in one PDF file.
PDF_CMS-UB04-RAW_VIEW-PDFperClaim HIPAA 837 Institutional (4010A1 with NPI) CMS UB04 PDF file. One claim per PDF file.
PDF_CMS-UB04-RAW_VIEW HIPAA 837 Institutional (4010A1 with NPI) CMS UB04 PDF file. All claims in one PDF file.
PDF_HCFA-1500-RAW_VIEW-PDFperClaim HIPAA 837 Professional (4010A1 with NPI) HCFA 1500 PDF file. One claim per PDF file.
PDF_HCFA-1500-RAW_VIEW HIPAA 837 Professional (4010A1 with NPI) HCFA 1500 PDF file. All claims in one PDF file.
PDF_HCFA-UB92-RAW_VIEW-PDFperClaim HIPAA 837 Institutional (4010A1 with NPI) HCFA UB92 PDF file. One claim per PDF file.
PDF_HCFA-UB92-RAW_VIEW HIPAA 837 Institutional (4010A1 with NPI) HCFA UB02 PDF file. All claims in one PDF file.
PDF_Bulk_HIPAA_835_Report HIPAA 835 (4010A1 with NPI) 835 PDF file (format designed by Redix). All remittance information in one PDF file.

The user with PDF module license is entitled to get one of the above maps for free. The rest of maps can be licensed with a fee.

How can I create a PDF document in "landscape" orientation?

The OFD function pdfSetBBox can be used to create a PDF document in landscape orientation. In the Redix PDF Module, the default boundary box is for the portrait orientation, which is equivalent to the following pdfSetBBox statement:

pdfSetBBox(pdf, 4, 0.0, 0.0, 612.0, 792.0);

If the user wants to create a PDF document in "landscape" orientation, then the user should use the following statement:

pdfSetBBox(pdf, 4, 0.0, 0.0, 792.0, 612.0);

Below is an OFD example (demo.ofd) that demonstrates how to toggle between the portrait and landscape orientations. The first page is a portrait page, the second page is a landscape page, and the third page is another portrait page. pdfSetBBox function calls have been highlighted in blue.

output

ret:=pdfCreateNewPDF("test_out.pdf");                # Open our NEW PDF file;

ret:=pdfAppend();                # Add First Page;

ret := pdfSetFont("Arial", 2, 10.0, 0, 2);

Ret := pdfSetBBox(4, 0.0, 0.0, 612.0, 792.0);        # Need to alwasy set BBox,
to ensure proper height of page;


# Corners;
Ret := pdfWriteText(0.0, (792.0 - 10.0), "CORNER A");
Ret := pdfWriteText(0.0, 0.0, "CORNER B");
Ret := pdfWriteText((612.0 - 60.0), 0.0, "CORNER C");
Ret := pdfWriteText((612.0 - 60.0), (792.0 - 10.0), "CORNER D");

# Center of Page;
ret := pdfSetTextRect(214.0, 409.0, 200.0, -1);
ret := pdfWriteFText(1, "CENTER OF PAGE");
ret := pdfSetTextRect(214.0, 393.0, 200.0, -1);
ret := pdfWriteFText(1, "612.0 x 792.0");

# Draw Box;
w := 582.0;
h := 762.0;
ret := pdfRectangle(16.0, 16.0, w, h, 4);

# Draw Inside Box;
ret := pdfSetTextRect(19.0, h + 10.0, 250.0, -1);                # Top Down
Drawing;
ret := pdfWriteFText(0, "DRAWING INSIDE BOX");

ret := pdfEndPage();                # End Page 1;



ret:=pdfAppend();

ret := pdfSetFont("Arial", 2, 10.0, 0, 2);

Ret := pdfSetBBox(4, 0.0, 0.0, 792.0, 612.0);        # Need to always set BBox,
to ensure proper height of page;

# Corners;
Ret := pdfWriteText(0.0, (612.0 - 10.0), "CORNER A");
Ret := pdfWriteText(0.0, 0.0, "CORNER B");
Ret := pdfWriteText((792.0 - 60.0), 0.0, "CORNER C");
Ret := pdfWriteText((792.0 - 60.0), (612.0 - 10.0), "CORNER D"); 

# Center of Page;
ret := pdfSetTextRect(304.0, 342.0, 200.0, -1);
ret := pdfWriteFText(1, "CENTER OF PAGE");
ret := pdfSetTextRect(304.0, 308.0, 200.0, -1);
ret := pdfWriteFText(1, "792.0 x 612.0");

# Draw Box;
w := 762.0;
h := 582.0;
ret := pdfRectangle(16.0, 16.0, w, h, 4);

# Draw Inside Box;
ret := pdfSetTextRect(19.0, h + 10.0, 250.0, -1);                # Top Down
Drawing;
ret := pdfWriteFText(0, "DRAWING INSIDE BOX");

ret := pdfEndPage();
ret:=pdfAppend();                # Add Third Page;

ret := pdfSetFont("Arial", 2, 10.0, 0, 2);

Ret := pdfSetBBox(4, 0.0, 0.0, 612.0, 792.0);        # Need to always set BBox,
to ensure proper height of page;

# Corners;
Ret := pdfWriteText(0.0, (792.0 - 10.0), "CORNER A");
Ret := pdfWriteText(0.0, 0.0, "CORNER B");
Ret := pdfWriteText((612.0 - 60.0), 0.0, "CORNER C");
Ret := pdfWriteText((612.0 - 60.0), (792.0 - 10.0), "CORNER D");

# Center of Page;
ret := pdfSetTextRect(214.0, 409.0, 200.0, -1);
ret := pdfWriteFText(1, "CENTER OF PAGE");
ret := pdfSetTextRect(214.0, 393.0, 200.0, -1);
ret := pdfWriteFText(1, "612.0 x 792.0");

# Draw Box;
w := 582.0;
h := 762.0;
ret := pdfRectangle(16.0, 16.0, w, h, 4);
# Draw Inside Box;
ret := pdfSetTextRect(19.0, h + 10.0, 250.0, -1);                # Top Down
Drawing;
ret := pdfWriteFText(0, "DRAWING INSIDE BOX");

ret := pdfEndPage();                # End Page 3;

ret := pdfCloseFile();
endoutput;

You can run the above OFD file by typing the following command in Command Prompt:

redixscr demo.ofd

You may want to refer to redixscr for information on how to use the executable.

The PDF output will look like:

PDF Ladscape

How do I create an error file in PDF?

With the Redix PDF Module license, users can convert the Redix error file into a PDF file. The following details the steps to create a PDF error file.

Steps to Create a PDF Error File

First, the user needs to generate a Redix error file. Redix error files are generated by the Redix Engine using any Redix API, such as the redix_app_extA API, or redix command line. A typical line of Redix error data looks like the following:

Warning: Composite Data Element Error occurs at Line Number = 4; Segment Name = LOC; Element position = 2; Composite position = 1; Invalid data = (DE); Element Number = 3225; Error Number = 12: Invalid value;

Warning: Element Error occurs at Line Number = 14; Segment Name = FTX; Element Position = 5; Invalid data = (AA); Element Number = 3453; Error Number = 12: Invalid value; External codebase file (edf_001.dbf) does not support the value 3453:AA;

Segment Error Occurs at Line Number = 47; Segment Name = UNT; Error Number = 29: Control count not match number of instances

Secondly, the user needs to run the file "pdferror.ofd" using either the command line redixscr or redix_scrA() API. This OFD file is located in the PDF sub-folder. An example of how to to do this using the command-line interface is as follows:

redixscr pdferror.ofd “InputFileName.edi|ErrorFileName.err|OutputFileName.pdf” “|”

The InputFileName.edi is the filename of the original input file, the ErrorFileName.err is filename of the Redix error file, and the OutputFileName.pdf is the filename of the PDF file to be created. Note that the last parameter is a vertical bar, which tells the Redix module that each filename is separated by a vertical bar.

Example

An input file (h_a1_837p_bad.edi") looks like the following:

ISA*00*          *00*          *20*test222222     *ZZ*test22222     
*011107*1220*U*00401*112240001*1*P*:
GS*HC*test111111*test22222*19971107*1220*123456789*X*004010X098A1
ST*837*0020
BHT*0019*00*0123*19981015*1023*RP
REF*87*004010X098A1
NM1*41*2*PREMIER BILLING SERVICE*****46*TGJ23
PER*IC*JERRY*TE*3055552222*EX*231**1
PER*IC*TERRY*TE*3055554444*EX*232*FX*2
NM1*40*2*UNION MUTUAL OF OREGON*****46*11122333
HL*1**20
NM1*85*2*PREMIER BILLING SERVICE*****24*58-7654321
N3*234 Seaway St
N4*Miami*FL*A7728
PER*IC*MARY*TE*3055571111*EX*128*FX*3
PER*IC*SHARI*TE*3055753333*EX*129*FX*4
NM1*87*2*KILDARE ASSOC*****24*58-1234567
N3*2345 OCEAN BLVD
N4*MIAMI*FL*33111
HL*2*1*22*0
SBR*P*18*12312-A******HM
PAT*****D8*19970314*01*146
NM1*IL*1*SMITH*TED****MI*000221111
N3*236 N MAIN ST
N4*MIAMI*FL*33413
DMG*D8*19430501*M
NM1*PR*2*ALLIANCE HEALTH AND LIFE INSURANCE*****PI*741234
CLM*26462967*90***41::1*Y*A*Y*Y*C
DTP*431*D8*19981003
REF*D9*17312345600006351
HI*BK:0340*BF:V7389
NM1*82*1*KILDARE*BEN****34*112233334
PRV*PE*ZZ*203BF0100X
NM1*77*2*KILDARE ASSOCIATES*****24*58-1234567
N3*2345 OCEAN BLVD
N4*MIAMI*FL*33111
SBR*P*18*12312-A**CP****HM
OI***Y*B**Y
NM1*IL*1*SMITH*TED****MI*000221111
NM1*PR*2*ALLIANCE HEALTH AND LIFE INSURANCE*****PI*741234
PER*IC*CHRIS*TE*3055597777*EX*452*FX*5
PER*IC*TISH*TE*3055599999*EX*453*FX*6
LX*1
SV1*HC:99213*40*UN*1***1**Y
DTP*472*D8*19981003
LX*2
SV1*HC:99214*15*UN*1***1**Y
DTP*472*D8*19981003
LX*3
SV1*HC:99212*35*UN*1***2**Y
DTP*472*D8*19981003
LX*4
SV1*HC:86663*10*UN*1***2**Y
DTP*472*D8*19981010
SE*52*0020
GE*1*123456789
IEA*1*112240001

The Redix engine will return the following error file (837p.err):

Warning: Element Error occurs at Line Number = 7; Segment Name = PER; Element
Position = 7; Invalid data = ( ); Element Number = 365; Error Number = 2: Conditional
required data element missing.; B(7,8); If one of the elements in the list (7,8) is
being used, then the other element(s) are required.
Warning: Element Error occurs at Line Number = 10; Segment Name = HL; Element
Position = 4; Invalid data = (); Element Number = 736; Error Number = 1: Mandatory
data element missing;
Warning: Element Error occurs at Line Number = 27; Segment Name = CLM; Element
Position = 2; Invalid data = (90); Element Number = 782; Error Number = 6: The
Calculated Sum of Line Charges ($100.00) does not equal the Claim Amount ($90.00).

Run the following command in the command-line interface:

redixscr pdferror.ofd “h_a1_837p_bad.edi|837p.err|test_out.pdf”  “|”

The following PDF file (test_out.pdf) will then be generated:

Corporate Headquarters

265 Davidson Avenue
Suite 142
Somerset, NJ 08873

Sales

888.850.8088
Sales Office available M-F 8:00 - 5:00 US Pacific Time
sales@redix.com

Support

888.850.8088
support@redix.com