There are a couple of different ways this might happen.
When you're talking about members during their service transferring between different postings, it's the responsibility of the Canadian Armed Forces to make sure their health information follows them. When they release from the Canadian Armed Forces, then it becomes work between Veterans Affairs Canada and the Canadian Armed Forces to ensure that Veterans Affairs can access medical records, where appropriate, to be able to establish eligibility criteria or compensation that might be required for veterans.