public with sharing class buttonAccountCtl {
    public buttonAccountCtl() {

    }

    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new initData();
        try{
            Account report =  [SELECT Name,Department_Class_ID_18__c,Department_Class__c,Hospital_ID__c,Hospital__c,Id FROM Account WHERE Id =: recordId LIMIT 1];
            System.debug(LoggingLevel.INFO, '*** opp: ' + report);
            res.Id = report.Id;
            res.HospitalC = report.Hospital__c;
            res.HospitalIdC = report.Hospital_ID__c;
            res.DepartmentClassC = report.Department_Class__c;
            res.DepartmentClassIdC = report.Department_Class_ID_18__c;
            res.Name = report.Name;

            System.debug(LoggingLevel.INFO, '*** res: ' + res);
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }   

    public class InitData{
        @AuraEnabled
        public String Id;
        @AuraEnabled
        public String HospitalC;
        @AuraEnabled
        public String HospitalIdC;
        @AuraEnabled
        public String DepartmentClassC;
        @AuraEnabled
        public String DepartmentClassIdC;
        @AuraEnabled
        public String Name;
     }
}