make cm ID and consultation ID links