Timezone determination correction
In CareLink data TZ may be missing, which was previously extracted from Last SG's datetime. However Last SG is sometimes empty and TZ cannot be determined. If Last SG is not provided in CareLink data, then Last Alarm's datetime is used to get correct TZ.
Correct device type
Device type may be wrong in CareLink after moving from standalone CGM to 7xxG pumps. This causes an error in data retrieval since standalone CGM and 7xxG pumps use different API for data retrieval. To address this issue the recent CareLink data upload infos for patient accounts are checked and the actual device type is extracted from data upload infos (device used for uploading data).
Timezone determination correction In CareLink data TZ may be missing, which was previously extracted from Last SG's datetime. However Last SG is sometimes empty and TZ cannot be determined. If Last SG is not provided in CareLink data, then Last Alarm's datetime is used to get correct TZ.
Correct device type Device type may be wrong in CareLink after moving from standalone CGM to 7xxG pumps. This causes an error in data retrieval since standalone CGM and 7xxG pumps use different API for data retrieval. To address this issue the recent CareLink data upload infos for patient accounts are checked and the actual device type is extracted from data upload infos (device used for uploading data).