mclinic-api: update algorithm to accommodate changes in the instance of the object.
Merge pull request #10 from nribeka/mclinic-api#7

mclinic-api: update algorithm to accommodate changes in the object