yea, mine is all array based.  I pull the data from a FoxPro table via XML
(and jump through several hoops.)  Then I have a main loop that spins
through the data (which is ordered) and

* creates a new PO if the PO number has changes (PO Object)
* Create a PoLineItem for each line in the PO (POLineItemObject)
* repeat.

* PO's own POLineItems
* All PO's are owned by the X12_850 object.

Once everything is nicely sliced and diced into objects I call
X12_850->generateX12(). This spits out all the necessary headers and then
calls generateX12() on each PO. Each PO spits out all the necessary headers
and then calls generateX12() on each POLine Item.  Then it spits out the
necessary trailers and bumps control back up the line.

Once it's finished, I have a (honkin' big) string that represents the 850
document. Currently, I dump this out to a file for ftping but you could just
as easily use CURL to call a SOAP process somewhere if your X12 partner had
a brain. (mine does not, the company I was a consultant for in the medical
insurance industry did not either)

Anyhow, I'm happy to share what I know if you have questions.

HTH,
=C=

*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
* http://www.calevans.com
*


-----Original Message-----
From: Edward Peloke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 3:55 PM
To: Php-General@Lists. Php. Net
Subject: RE: [PHP] x12 837


Cal,

You used php for this?  I am pretty sure that an 850 is on our list of
things to do somewhere.

Eddie

-----Original Message-----
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 4:22 PM
To: Edward Peloke; Php-General@Lists. Php. Net
Subject: RE: [PHP] x12 837


I've created an 850 and a base class x12. It's not terribly hard. I did not
find much in the way of useful classes already built though.

=C=

*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*


-----Original Message-----
From: Edward Peloke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 3:39 PM
To: Php-General@Lists. Php. Net
Subject: [PHP] x12 837


Ok, I know this is a longshot but does anyone on this list work in the
healthcare industry and have created an 837 with php?  I am thinking of
attempting to create one in php and didn't want to reinvent the wheel.

Thanks,
Eddie


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to