A device for adding a medicine to an infusion solution in an infusion container having a removal opening provided with a seal area. A transfer cap, which has a first hollow spike for piercing the seal area, is connected to the removal opening of the infusion container. A receiving means for a medicine container is formed at the transfer cap, which has a second hollow spike for piercing a seal at the medicine container. A valve is arranged between the first and second hollow spikes in the transfer cap, where the valve interrupts the connection between the first and second hollow spikes and can be moved into the open position by the action of a force.