The invention relates to a method and an electronic pill (20) for administration of at least one drug (3) to a patient, wherein a delivery profile of the at least one drug is determined according to at least one individual parameter of the patient. The at least one individual parameter may particularly relate to a genotype (GEN) or phenotype of the patient and for example comprise a distribution of proteins in the patients gastrointestinal tract (GIT). Optionally, the individual parameter may be adjusted based on measurements by the electronic pill or external devices during its passage through the patients gastrointestinal tract.