| The emergence of new Internet hospitals is favourably received by mediciner and patients,and they are also in the stage of design,development and continuous exploration of Internet hospital system.The Internet Hospital Development Team has been committed to building a Service platform based on the mobile Internet,push forward the appliance of artificial intelligence technology in the medical domain,and preferably benefiting the people,in spite of this,the more popped the Internet hospital system has lots of loopholes,collapse of frequent problems,investigate its reason,many Internet hospital system development project team are eager to crash,is short of adequate preparation preliminary,And it bring about a great many of situations that the maintenance staff of the hospital system can’t solve.In the ditch system under the condition of complex logic operations,many Internet hospital project background system has 40%~50%of the code are similar,many developers need to repeat the same work to achieve the basic functions of the project,which will greatly affect the development efficiency,but now there is no a good Internet oriented hospital project code generation tool automation,in order to save the Internet hospital repeated work necessary for design of the project,to reduce unnecessary design time and code programmers engineering business.To sum up,In recent years,the Internet hospital system has experienced some difficulties,such as immature development and low efficiency,if the coveted speed,and can lead to code quality cannot be guaranteed,and the development line of Internet hospital system is messy,which is caused by the lack of unified standards and unified development tools,the development team behind closed doors,the system framework,and code style forms.Therefore,if we can develop an advanced and convenient Internet hospital system,code automatic generation tool for Internet hospital system developers,developers can lessen dispensable duplication of work in the engineering work and move to design work,which will undoubtedly enormously improve efficiency and velocity,will be able to better address the current Internet situation of hospital development needs.After demand analysis,this study could be divided into template engine overall structure and the template library,the database manipulation layer,data layer,design of input layer,then each layer of the implementation of the work gradually,collect multiple Internet hospital database data,using the method of top-down analysis hospital database and design style of a batch of Internet database design documents,Generate a batch of hospital database table building files and data files,so that users can quickly realize the automatic generation of hospital database.Design the data acquisition tool class,collect large sample data from the database,transfer the data to the data specification module,and transfer dozens of kinds of data to the data receiving module through the double channel of type and naming conversion.The design parameters of the developer in the database and input design layer are the data sources of the data receiving module.This module receives various model design parameters such as global configuration parameters,project package parameters,sub-template design parameters and so on,and provides design scheme for the subsequent system model.All templates in the template library are self-developed.In this study,a batch of Internet hospital-style parent template code frames are designed,and then hundreds of microelement sub-templates are designed and stored according to page micrometaclass,data micrometaclass,operation micrometaclass and other types.The template engine loader is adjusted,and the template hybrid loader is designed to greatly improve the efficiency of template loading.The core generation module consists of dynamic template planning,dynamic template loading and code generation.The code generation component project initialization,framework code generation in the first stage and overall code generation in the second stage are three stages.By PostMan and other testing module,the test tool to simulate the development process,and test a batch of generated code,test the accuracy and stability of the interface,the experimental results show that this study can be achieved in a short period of time the Internet hospital system generated code generation and database,the interface unusually low probability,high efficiency,accord with "NO code" development concept,Can allow developers to easily complete a batch of streamlined,functional,easy to maintain the Internet hospital system project code. |