Purpose: Since the groundbreaking release of the powerful ChatGPT-3.5 model in late 2022, various industries have been exploring ways to incorporate AI into their operations. Our study aimed to assess whether AI assistance could effectively support medical professionals in learning and implementing programming skills for healthcare applications.
Methods: The latest versions of AI models—DeepSeek, Microsoft Copilot, Google Gemini, and ChatGPT—were used to assist in coding with Excel’s Visual Basic for Applications (VBA) and JavaScript. For VBA, select any worksheet/ right-click / View Code or Alt+F11 to open the VBA editor. The file was then saved with the extensions .xlsm or .xlsb. For JavaScript, the file was saved as .html. Both examples demonstrated body mass index (BMI) calculation, with the VBA version including an additional logical If statement for illustration. All programs were executed on an ASUS laptop (LAPTOP-TSDMU3MP) equipped with an Intel Core i7-1165G7 2.80GHz processor, running Windows 11 and Microsoft 365 software.
Results: When an AI tool reached its usage limit or failed to generate satisfactory results, other models were used as alternatives. This study demonstrated the feasibility of AI-assisted programming applications in the medical field, showing that AI can serve as a valuable assistant for developers. Using "BMI calculation" and "adult preventive healthcare" as example prompts, we found that providing these instructions to AI-enabled automatic generation of both VBA and JavaScript code, complete with implementation steps, functional descriptions, code explanations, execution examples, and important notes. The AI systems additionally performed debugging and code optimization. This approach allowed beginners without any programming background to get started easily. Moreover, by applying different input conditions across various AI platforms, users could obtain diverse outputs for comparison, thereby facilitating self-directed learning of programming languages. Beyond the conventional If-Then method, consultation with AI revealed alternative approaches using Select Case and IIF statements, which provided more concise coding solutions.
Conclusion: AI assistance can significantly lower the barrier to entry for programming. The inclusion of comments and code explanations offers valuable learning support and reference materials for programming novices.