internal static VidalAPI.Domain.SummarizedAllergyAlert dtoToNative(SummarizedAllergyAlertDto? SummarizedAllergyAlert) { switch (SummarizedAllergyAlert) { case SummarizedAllergyAlertDto.HAS_ALERT: return VidalAPI.Domain.SummarizedAllergyAlert.SUMMARIZEDALLERGYALERT_HAS_ALERT; case SummarizedAllergyAlertDto.NO_ALERT: return VidalAPI.Domain.SummarizedAllergyAlert.SUMMARIZEDALLERGYALERT_NO_ALERT; case SummarizedAllergyAlertDto.UNKNOWN_ALERT: return VidalAPI.Domain.SummarizedAllergyAlert.SUMMARIZEDALLERGYALERT_UNKNOWN_ALERT; } return VidalAPI.Domain.SummarizedAllergyAlert.SUMMARIZEDALLERGYALERT_JNULL; }
internal static ServiceAnalysis.SummarizedAllergyAlert? dtoToAnalysisService(SummarizedAllergyAlertDto? SummarizedAllergyAlert) { switch (SummarizedAllergyAlert) { case SummarizedAllergyAlertDto.HAS_ALERT: return ServiceAnalysis.SummarizedAllergyAlert.HAS_ALERT; case SummarizedAllergyAlertDto.NO_ALERT: return ServiceAnalysis.SummarizedAllergyAlert.NO_ALERT; case SummarizedAllergyAlertDto.UNKNOWN_ALERT: return ServiceAnalysis.SummarizedAllergyAlert.UNKNOWN_ALERT; } return null; }