public override async Tasks.Task <OperationResultEnum> Execute() { _logger.LogInformation($"Deserializing Fhir resource at '{_arguments.Questionnaire.Path}'."); _logger.LogInformation($"Expecting format: '{_arguments.MimeType}'."); Questionnaire questionnaire = await SerializationUtility.DeserializeResource <Questionnaire>(_arguments.Questionnaire.Path); if (questionnaire == null) { _issues.Add(new Issue { Details = $"Failed to deserialize Questionnaire from file\nLocation: '{_arguments.Questionnaire.Path}'.", Severity = IssueSeverityEnum.Error, }); return(OperationResultEnum.Failed); } _issues.AddRange(VerifyItemValidation(questionnaire)); return(_issues.Any(issue => issue.Severity == IssueSeverityEnum.Error) ? OperationResultEnum.Failed : OperationResultEnum.Succeeded); }