13,000 lines and one button click

so theres xml, something that everone knows.. and then theres xslt 2.0 which as of today has only a draft recommendation which was formally published in nov,2005. and there are only two free fully functional processors in the whole world for it… saxon ( developed by michael kay, a member of the xslt recommendation commitee) and altovas xslt 2.0 processor.. stylustudio has xslt 2.0 support but no free thingie and by the way is always beefing about altova (the industry standard).. on their website theyve got a couple of pages detailing why its better than altova.. i tried out both and recommend altova tools…

a couple of months ago i had to write a program to generate a CCR (continuity of care record) which is based on the xml standard. the CCR is basically an xml document that consists of patient information (allergies, medications, insurance, SOAP (subjective, objective, assessment and plan) notes, etc) in a particular schema (XSD). using this standard format, intercommunication among hospitals, insurance agencies, private practises will be less dirty.

plan of action:

1. generated the delphi classes using the delphi XSD class generator (found in borland delphi enterprise edition)

2. entered sample data and validated the document using altovas xmlspy.

3. created a stlye sheet using xslt 2.0 and xpath

4. created a program that generated the xml (using data from the database) using the classes (created using the xsd class generator) and then created an html page with this data transformed by the .xslt stylesheet (made possible by the altova xslt 2.0 processor COM interface in delphi) .

but in the gui, theres just this one button labelled “CCR” that makes the functionality look so simple and my 3 weeks of work a piece of cake.. man i sweated my brain out trying to study all these things all at the same time.. at the end? almost 13,000 lines of code mapped to a single button click.. depressing.. well, at least the work is done for now…

Advertisements

Leave a comment

Filed under All, delphi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s