I used to do it but not with compose.
Health Connect and HeathKit provide you APIs to connect/tracking and get info. Then you use those info to display it on your UI represented in Compose UI.
So compose multiplatform is just an option you use to display your data.