Text this: Linking patient records at scale with a hybrid approach combining contrastive learning and deterministic rules