A system for providing homecare to a patient, the system comprises a medical pump device (1) programmable to carry out an administration operation for administering a medical fluid to a patient. The medical pump device (1) comprises a pumping mechanism (13) for administering the medical fluid, a storage device (12) for storing programming information, a processor device (11) for controlling operation of the pumping mechanism (13) according to the programming information, and a reader device (10) for reading identification information of an identification mark (40) of a fluid container (4) containing medical fluid. A communication device (2) is in communication connection with the medical pump device (1) via a communication network (3). Herein, the communication device (2) is constituted to transmit a prescription data set comprising programming information associated with a particular medical fluid to the medical pump device (1), and the medical pump device (1) is constituted to receive said prescription data set and store the programming information contained in the prescription data set in said storage device (12), wherein the processor device (11) of the medical pump device (1) is constituted to load the stored programming information associated with the particular medical fluid from the storage device (12) to carry out an administration operation if identification information read by the reader device (10) relates to the particular medical fluid. In this way a system for providing homecare to a patient is proposed which in an easy and efficient, yet reliable way allows a patient to program a medical pump device for carrying out an administration operation.