private static ContactInformation ToPrescriberContactInformation(CreatePharmaceuticalPrescription command) { return(new ContactInformation (ToPrescriberPostalAddress(command), command.PrescriberPrimaryTelephoneNumber, command.PrescriberSecondaryTelephoneNumber, null, EmailAddress.CreateIfNotEmpty(command.PrescriberPrimaryEmailAddress), EmailAddress.CreateIfNotEmpty(command.PrescriberSecondaryEmailAddress), string.IsNullOrWhiteSpace(command.PrescriberWebSite) ? null : new Uri(command.PrescriberWebSite) )); }