The story on which the painting is based is from Nicolaes Tulp's book entitled Observationes medicae (1672 edition).