A computer program comprising instructions that, when executed by one or more processors, perform the method of:
- obtaining a first data set from one or more injection devices used by the subject to apply the treatment regimen, the first data set comprising a plurality of medicament records taken over a time course, each respective medicament record in the plurality of medicament records comprising:
- (i) a respective medicament injection event including an automatically obtained amount of medicament injected into the subject using a respective injection device in the one or more injection devices,
- (ii) a corresponding automatically obtained injection event timestamp within the time course that is automatically generated by the respective injection device upon occurrence of the respective medicament injection event;
- wherein each of the medicament records are assigned:
- a corresponding single-shape data structure, configured for representing a single injection in the distribution of injections, in a displayed mode, wherein the single-shape data structure comprises:
- (i) a corresponding single-shape polygon, configured for visualizing a polygon with a two-dimensional shape, in the displayed mode, wherein the single-shape polygon is configured to be displayed with:
- a first length extending in a first dimension, and with first a coordinate according to the first dimension, wherein (i) the first length is having a fixed value, or (ii) wherein the first length is variable and represents a duration wherein the medicament relating to the respective medicament injection event is still active, and
- a second length extending in a second dimension, and with a second coordinate according to the second dimension, wherein (i) the second length is having a fixed value, or (ii) wherein the second length is variable and represents an amount of injected medicament, or (iii) wherein the second length is variable and represents an amount of active medicament remaining from the injected amount of medicament;
- (ii) a corresponding first intensity indicator, configured for displaying a first visual property of the single-shape polygon, in the displayed mode;
- creating a plurality of consecutive time windows within the time course, wherein each time window is of the same fixed duration,
- for each respective time window, creating a set of medicament records, and thereby creating a plurality of sets of medicament records, wherein each respective set of medicament records comprises a number of medicament records from the first data set, and wherein each respective medicament record within the respective set of medicament records have a timestamp in the respective time window;
- for each respective medicament record, within each set of medicament records of the plurality of sets of medicament records, assigning a corresponding relative time being the relative time within the time window, whereby the plurality of sets of medicament records represents the distribution of injections;
- for each respective set of medicament records, superimposing the single-shape polygon from each of the medicament records in the respective set of medicament records, wherein the single-shape polygon is superimposed according to the first dimension being the relative time and the second dimension being the amount of injected medicament, wherein an interval along the first dimension is defined by the fixed duration of the time window, and whereby two or more superimposed single-shape polygons may overlap within the interval;
- responsive to identifying two or more superimposed overlapping single-shape polygons:
- creating a set of multi-shape data structures, comprising a number of multi-shape data structures configured for representing the average and the variability of the distribution of injections, in a displayed mode,
- for each multi-shape data structure:
- (i) creating a corresponding subset of overlapping single-shape polygons, wherein the subset of overlapping single-shape polygons define a corresponding subset of single-shape data structures,
- (ii) calculating a corresponding multi-shape polygon, configured for visualizing a polygon with a two-dimensional shape and according to the first and the second dimension, in the displayed mode, wherein the multi-shape polygon is defined by the overlap between the single-shape polygons of the corresponding subset of overlapping single-shape polygons, which corresponds to the subset of single-shape data structures,
- (iii) calculating a number of elements in the subset, being the number of overlapping single-shape data structures in the subset of overlapping single shape polygons,
- (iv) calculating a corresponding second intensity indicator, configured for displaying the first visual property of the multi-shape polygon, in the displayed mode, wherein the second intensity indicator is an increasing function of the number of elements in the subset;
- and
- communicating display data, wherein the display data comprises:
- (i) the plurality of sets of medicament records, and
- (ii) the set of multi-shape data structures;
- and wherein
- the communication of the display data is directed to a display.