Environmental problems have a tremendous impact on the entire world population, particularly on human health, which plays a leading role in individual well-being. Environmental pollution, according to some estimates, kills approximately 9 million people every year. The introduction of artificial intelligence (AI) systems in many areas has enormous potential in reducing human impact on the environment; however, such systems have negative effects. The potential of AI systems to improve healthcare is inextricably linked to the ethical challenges posed by the complexity of these systems and their impact on the lives and health of communities, patients, and staff. In addition to aspects that relate directly to the algorithms, data, and clinical application of AI systems, long-term risks exist that are not obvious at first glance. One of these risks is the negative impact of AI systems on the environment, which may harm human health indirectly. AI systems are more than software, having physical components that are necessary for their functioning, such as processors, memory, and sensors. The manufacture and the energy consumption of the components has a profound effect on the environment. One study showed that when a single AI algorithm is trained, carbon emissions may reach values corresponding to the total carbon emissions from five cars lifetime. This study analyzes existing literature linking the development of AI systems, especially in healthcare, to their effects on the environment. The study is intended to complement the emerging AI Ethics Code for healthcare, specifically the principles of sustainability that will be included in this code. The study concludes that the environmental impact of AI systems should be considered when formulating ethical standards for AI in healthcare. These standards must be considered during the development, testing, and application phases of AI systems. All the people involved in the creation and use of AI systems (developers, physicians, and regulators) must monitor the environmental impact and minimize the environmental consequences of such systems at all stages of their existence. This principle calls for minimizing negative impacts, improving the energy efficiency, and disposing physical components in strict compliance with current legislation. Moreover, the rapid development of AI systems and the ethical dilemmas require that solutions be proposed jointly and ethical standards be developed in a manner that is consistent and sensitive to emerging technologies.