Creating a healthy drinking culture for Swedes
|
How do you educate a well mannered, digitially connected culture to drink alcohol in moderation?
Fi together with Forsman & Bodenfors set out to create and update the old version of the online test called "Alkoholprofilen" (The Alcohol Profile) . The test is produced by Systembolaget (Government controlled off license) together with their specialized department group called IQ and is formulated for Swedes to get a better overview of their drinking habits. Systembolaget's goal is to create a healthy drinking culture and together with the IQ organization they have taken multiple actions to get the Swedish people more aware of the effects of Alcohol. Perhaps every country could follow in their footsteps?
The site is launching shortly, however Karl Stanton put together a little behind the scenes look at the projects technical demands and our approach to solving some obstacles.
Hello to those of you with a technical interest and that enjoy a beer on occasion,
this is an challenging but amazing project to work on. The Alkoholprofilen test has existed for quite some time, however it was in need of a fresh look, better I.A and super performance. One important tasks was to allow public access to the questionnaire from 3rd party vendors such as other alcohol researchers around the world via means of API.
Fi created an API (Application Programming Interface) which is entirely customizable by the client. We decided to develop the new AlkoholProfilen platform from the ground up across 3 main layers. The client layer and the PHP layer are bundled as a whole application which sits abstracted from the API layer. Essentially you could do the questionnaire without the need for layers 1 and 2 (see Wireframe image).
Here we go, get ready for some technical mumbo-jumbo!
#1 The client layer
The client layer is the interaction level, it’s how the user takes the questionnaire and interacts with the web service on a whole. It contains the GUI, and is built using the core front-end technologies including HTML, CSS, and Javascript. The client layer is also accessible without the presence of CSS and Javascript for true browser degradation and ultimate accessibility. Custom graphing and charting, form skinning and slider interactivity in javascript, are just some of the fundamental components that were needed to be created by the team during the development of this layer.
#2 The PHP application layer
The PHP application layer is the core of client layer’s interaction with the questionnaire. It controls all client-side requests for example; answering of questions, as well as the security and processing of all information gathered by the client layer. It stands as a bridge between the client layer and API. We can use this layer to break the linier process of the questionnaire by adding client requested features that may not necessarily be required by 3rd party vendors.
Fi built a proxy controller which allows for interactivity directly with the API across this bridge. It helped keep the top 2 layers completely removed from the API.
#3 The Web Service (API Layer)
The API layer handles all 3rd party requests. This layer is also used by Alkoholprofilen.se which is abstracted from this layer entirely. This allows other developers and platforms to interact with the questionnaire without relying on our own application layer. This layer is public and is accessed only in pair with an API key.
This layer handles core logic such as retrieving and answering questions, creating profiles, generating reports and most importantly, determining the outcome of the questionnaire. It is highly configurable by the client and this configuration is represented across all vendors’ implementations.
We will make sure to announce when the project is released so you can experience the site for yourself!
-
repponen
5 months ago
This is HOT! :)
-
Johnny
5 months ago
I see clearly that the calendar is based on Karls own drinking habbits, almost got all the days right :D
-
Stevo
5 months ago
Welldone lads...Nice stuff
-
decembersoul
5 months ago
Nicely explained Karl, looking forward to see this baby go live!
-
Mistermmmh
5 months ago
Nothing to say, amazing!
F-I stylish!
-
West
5 months ago
Will it appear in English as well?
-
Tekkaman S...
5 months ago
Thanks for sharing this, always love to see your steps in producing such great content especially something this.
-
karlstanton
5 months ago
This has been an interesting project for me! Being an Australian, a healthy drinking culture consists of cold beer, hot days, and 5 day Test Matches. Living in Sweden and being apart of the drinking culture has been somewhat of an eye opener, and working on this project has given me a better understanding of how Sweden tackles alcoholism and drinking/health in general. I do however have problems testing this site as I am always ending up in the "red zone"... you'll find out what that means soon. ;-)
It has been an exciting project for me and the team here in Stockholm, we have worked hard to break boundaries with HTML, Javascript and AJAX. Some of the Javascript components that have been developed are still amazing to see. Being able to use components from other projects and extending on them is the essence of team work and integration. Our team consisted of David Engzell, David Lindkvist, Hakim Elhattab and Stefan Hansen, and I'd like to extend my thanks for their amazing work. You guys rule!
Now, it's Saturday morning, and the Systembolaget closes in 2 hours... must buy my wine for the weekend!
Hej då!!
-
thefactory
5 months ago
Its amazing how you guys have been able to shift all your used to be Flash projects to simple AJAX applications. It definitely looks good and can't wait to play with the Controls.
-
fullfatstu...
5 months ago
amazing!
-
DualBrain
5 months ago
Slick designs! When I saw them I thought of FI... and read further and saw FI has something to do with it. Great!
-
daddymccoy21
5 months ago
I like the visuals on this. My first thought was that I was looking at the old Introduction piece Fi did for Nintendo Wii Fit, but then I noticed the bottom container "holding" the survey content. I like it!
-
sdasad
5 months ago
-
karlstanton
5 months ago


The site is now being advertised in the Systembolaget all around Sweden! We took these photos last Friday in Östermalmstorg, Stockholm.
Östermalmstorg
-
Johnny
5 months ago
Hmm... That bag looks heavy, didn't you take the test Karl?

-
kudretkeskin
5 months ago
-
Graig
4 months ago
Erm... that's not a wireframe!
-
dhess
4 months ago
Thx for posting this. I just had a look at the application. It's really good work. The design and the programming going really hand in hand. Has to be alot fun to create stuff like that...
Comments (19)