I am expecting that an app which allows you to upload your boluses would have an initial configuration when you add an insulin type to tell it "this insulin generally lasts X amount of time in my body".  That app would then relay that information along with the fact that a bolus happened whenever that bolus happens.