add_admid#

pharmpy.modeling.add_admid(model)[source]#

Add an admid column to the model dataset and datainfo. Dependent on the presence of a CMT column in order to add admid correctly.

When generated, admids of events in between doses is set to the last used admid.

Parameters:

model (Model) – Pharmpy model

Returns:

model (Model) – Pharmpy model

See also

get_admid

Get or create an admid column

get_cmt

Get or create a cmt column