Agent based virtual electronic patient record. From intra to inter-institution data integration