Lockheed Martin: Lockheed Martin Healthplan Website
2009-06-19
A site for Aetna health plan customers at Lockheed Martin
My first Django project and first work with Project Evolution was a site for Aetna health plan. The bulk of the site is driven by a Django-powered content management system with the rest of the content from a series of applications. thumb:1
The FAQ section does double-duty as a set of frequently asked questions and a message board for users to ask questions of site administrators. Questions are answered in the Django administrator panel which forwards the response to the user by email. If the question is general enough, the administrator can promote the question and answer into the FAQ list.
The glossary application generates a standard Glossary of Terms page, but building the application was anything but standard. thumb:2 The first time I built a glossary tool, it was in ASP and Access, probably around 2002. Just to generate the list of letters at the top of the page required creating an array and typing every letter of the alphabet (the smarter me, a couple of years later, learned to write them out as a string and then split it into letters, but it’s still typing and there weren’t keen list sites all over the Internet where you could cut and paste from). So you’ll have to imagine how pleased I was to be working in Python, where I could just loop over string.uppercase (or .lowercase if you prefer). The bit of the glossary I’m most proud of is harder to find: I built a template tag that looks through any piece of content, finds phrases and words that exist in the glossary and marks them up so users can find out what a term means without leaving the page (you can see an example by hover over “HealthPlan” in the fourth bullet point here). The tag is smart enough that it only marks a word once, doesn’t mark up a word inside certain HTML tags (so it doesn’t pop up and prevent you from clicking on a link) and looks for the longest matching phrase in each case (so phrases that contain other glossary terms get properly marked).
Aetna provides Lockheed Martin employees with an Action Plan to help them improve their health. thumb:3 The application allows administrators to provide a plan, tips and hints for every month. It’s available as a series of HTML pages, print-friendly pages or as a PDF for downloading. To make the PDF version easy to maintain and update, it’s generated as a standard Django view with an HTML template that is turned into a PDF using Pisa.

