The invention discloses a hospital software automatic deployment method based on data elements, which belongs to the technical field of software deployment, and comprises the following steps: S1, uniformly packaging and uploading a software installation package, a configuration file and third-party dependent software to a company software deployment service management end; s2, downloading installation software from company software deployment service management; s3, uploading the software installation package and the software deployment script to an in-hospital software deployment service management end through client software; and S4, logging in the in-hospital software deployment service management terminal, establishing communication between the in-hospital software deployment service management terminal and a target server needing software installation, and performing software deployment and installation on the target server by using a shell command corresponding to the target server. In a hospital network environment, compared with the prior art, the method has the advantages that the deployment operation and maintenance efficiency of field implementation personnel can be improved, and the problem of offline installation and deployment of Linux software is effectively solved.