Medical Image Diagnosis and Content-based Image Retrieval using Embeddings Learned by Contrastive Learning Method Results