Identyfikacja lekarza okiem developera

O systemie medpass

Medpass to niezależny system logowania dla medycyny, który w zależności od uprawnień pozwala uzyskać dostęp do specjalistycznej wiedzy w portalach medycznych.

Instalacja medpass

Instalacja Medpass jest prosta i bezpłatna. Skorzystaj z gotowych bibliotek i przykładów (php, ruby, asp).

Medpass API

Medpass API pozwala właścicielom stron komunikować się z systemem Medpass i budować bezpieczne społeczności lekarzy i pacjentów.

5 listopada 2010

[eng] How to implement MEDPASS?

Filed under: Inne

Medpass is an independent authentication system for medical industry, which provides an access to the expert knowledge on the medical web sites and applications. It is also available for third-party sites and frees users from having to set up separate login accounts for them. The installation of the Medpass is easy and cost free. OpenID standards, which are used in Medpass, are well known for many web developers but here is some description of how to integrate Medpass for a web site or application.

Interaction sequence

As user wants to log on web site with Medpass authentication, he has to pass his Medpass login account. This login should be represented as unique login part and the openID server part. It is better to request from user just login but before sending it to server, it should be changed to full version that includes server address in it, for example: Then, the web site redirects the browser to the, where the user can authenticate himself against the OpenID provider. After successful authentication, either with a traditional method (username and password) or with more advanced techniques (such as certificate exchange), the OpenID provider redirects the browser back to the originating web site, along with the verified user credentials.

Working with OpenID
It is important to select an OpenID compliant library compatible with you programming language. There are libraries available for Java, Python, PHP, and others. Medpass authentication has been tested against the OpenID for Rails, PHP and .NET library. For some more libraries check:

• – for java

For the user, on the third-party web site, there is only basic login form with login input text-field and submit button. All the rest is done on the safe Medpass server side, which returns the status dependent on the result of logging process.

Pic. Example of login form
When an error occurs, status is set to ‘failure’. When user is authenticated successfully and redirected to the starting page (or application) from OpenID provider, there is identity and status ‘success’ returned. This identity can be used to recognize user and open new session for him. The privileges should be set based on the session.
Logging out is done on the third-party application side by closing session of the user.
It is recommended to handle the errors with some information for the user. Usually the text displayed on the screen that something has gone wrong is good enough.
Here are some working opened implementations for different programming environments. Based on data-flow in them, system Medpass can be easily adapted to any other programming language.
Rails –
.NET –
What do we expect from third-party web developers to be localized by the login form?
Links to:
- Password recovery procedure:
- Registration procedure:
- Information about Medpass:
- Medpass regulations:

Contact to operating personnel (help desk):
Activeweb Sp. z o.o.
3/2 Bronikowskiego st.
02-796 Warszaw
tel. +48 (22) 894 06 33
fax +48 (22) 894 66 22

Pic. Example of handling error

Working with Medpass API
Medpass is not only OpenID server. It offers also a SOAP based webservice with a lot of methods returning data about the users registered on Medpass. After authentication, there is user’s identity returned. It can be used as one of the arguments to receive information about that user.
SOAP webservice is safe and has its own security system. For more information please contact our company.

Some examples of the methods:

Returns bulletins, which user is signed up for.
- openid_url
- String build of firstname, firstname and lastname, login or phrase for anonymous users.
<?xml version="1.0" encoding="UTF-8" ?>
<env:Envelope xmlns:xsd=""
<n1:GetBulletinsResponse xmlns:n1="urn:ActionWebService"
<return n2:arrayType="n1:BulletinSoap[53]"
<name xsi:type="xsd:string">Poradnik Medyczny</name>
<b_id xsi:type="xsd:int">1</b_id>
<link xsi:type="xsd:string"></link>
Returns name of the user in accordance with the private policy.
- openid_url
- String build of firstname, firstname and lastname, login or phrase for anonymous users.
example: "Jan Kowalski"
"anonimowy użytkownik"
Returns group (by id) of the user (is he doctor or maybe medical student?).
- openid_url
- Integer – Id of user’s group set in Medpass 2.0.
2 #doctor
5 #Phamacist
Returns answer (true or false) for question if user is a doctor.
- openid_url
- Boolean
True # is a doctor
False # is not a doctor

For more methods, further information and implementation details please contact our company.

Przekaż dalej znajomym:
  • Print
  • Digg
  • Facebook
  • Google Bookmarks
  • Flaker
  • Grono
  • Pinger
  • Technorati
  • Twitter

Brak komentarzy »

Brak komentarzy.

Kanał RSS z komentarzami do tego wpisu. TrackBack URL

Dodaj komentarz