There is described a system for electronic patient care. The system comprises: a network; a facility gateway configured to provide a publish-subscribe service for an application; and a device gateway configured for execution by the facility gateway, the device gateway is configured to communicate via the network by providing a web service; and a medical device in operative communication with the network, wherein the medical device is configured to communicate with the device gateway using the web service.