An internet hospital application generation method and device
Patent Information
- Application Number
- CN202610628288.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-08
- Publication Date
- 2026-10-16
AI Technical Summary
[0003]相关技术中,现有低代码平台在搭建互联网医院时,配置和预览分离,导致用户无法实时获得反馈;表单驱动模式导致操作路径冗长,且变更后需人工触发刷新机制,降低了应用搭建的效率,降低了用户体验
[0013] According to another aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the Internet hospital application generation method provided by the present invention.
Smart Images

Figure CN122924752A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for generating Internet hospital applications. Background Technology
[0002] With the development of internet technology, internet hospitals have gradually become the mainstream model of medical services. Currently, the construction of internet hospitals faces the challenge of quickly connecting with third-party hospitals. How to enable users to build personalized internet hospitals more quickly and efficiently is an urgent problem to be solved.
[0003] In related technologies, existing low-code platforms separate configuration and preview when building internet hospitals, resulting in users not being able to receive real-time feedback; the form-driven mode leads to lengthy operation paths, and changes require manual triggering of the refresh mechanism, which reduces the efficiency of application building and the user experience. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method and apparatus for generating Internet hospital applications, which realizes real-time interactive visualization of configuration and preview on the same interface, achieves automated application deployment, improves development efficiency and user experience, and ensures the accuracy of configuration preview.
[0005] To achieve the above objectives, according to one aspect of the present invention, a method for generating an Internet hospital application is provided, comprising: A request to obtain the target application template is sent to the server. The server returns the configuration information of the target application template. The configuration information is displayed on the configuration preview interface of the target application template. The configuration preview interface includes a configuration area and a preview area. The configuration information includes a list of medical service capabilities constructed in a multi-level tree structure and a preview component corresponding to each medical service capability. The list of medical service capabilities is displayed in a multi-level tree structure in the configuration area, and the selection status of each medical service capability is displayed. The preview component corresponding to each medical service capability whose selection status is selected is displayed in the preview area. In response to a change in the selection status of a target medical service capability detected by the system, target configuration information is generated based on the changed selection status of the target medical service capability, and the display result of the target preview component corresponding to the target medical service capability in the preview area is updated based on the target configuration information. In response to receiving a configuration completion instruction for the target application, a generation request for the target application is sent to the server. The generation request includes the target configuration information, so that the server generates the target application based on the target configuration information.
[0006] Optionally, target configuration information is generated based on the changed selection status of the target medical service capability, including: The status attribute value is determined based on the selected status after the change of the target medical service capability; The target configuration information is generated based on the status attribute values of the target medical service capabilities.
[0007] Optionally, updating the display result of the target preview component corresponding to the target medical service capability in the preview area according to the target configuration information includes: The state attribute value is pushed to the target preview component using a preset callback function; If the state attribute value is a first preset value, then the display result is to hide the target preview component from the preview area; If the status attribute value is a second preset value, the display result is to display the target preview component in the preview area.
[0008] Optionally, the method further includes: In response to a selection command for any preview component in the preview area, information about the medical service capabilities of that preview component is displayed.
[0009] Optionally, before sending the generation request of the target application to the server, the method further includes: The target configuration information of the target application is validated for required fields. After the validation passes, the target configuration information is validated for compatibility according to preset topology rules. After the validation passes, a generation request for the target application is sent to the server. The preset topology rules include the dependency relationships of each medical service capability in the target configuration information based on the multi-level tree structure.
[0010] Optionally, after the server generates the target application based on the target configuration information, the method further includes: The system obtains a list of management applications from the server, sends a request to the target application from the list of management applications, retrieves the historical configuration information of the target application from the server, and displays the historical configuration information on the configuration preview interface. The corresponding preview component is rendered based on the status of each medical service capability in the historical configuration information and displayed in the preview area; In response to detecting a change in the selection status of any medical service capability, the historical configuration information is updated according to the changed selection status of the medical service capability, and the display result of the preview component corresponding to the medical service capability in the preview area is updated according to the updated historical configuration information. Upon receiving a configuration completion instruction from the target application, an update request for the target application is sent to the server. The update request includes updated historical configuration information, so that the server updates the target application based on the updated configuration information.
[0011] According to another aspect of the present invention, an internet hospital application generation apparatus is provided, comprising: The acquisition module sends a request to the server to acquire the target application template, receives the configuration information of the target application template returned by the server, and displays the configuration information on the configuration preview interface of the target application template. The configuration preview interface includes a configuration area and a preview area. The configuration information includes a list of medical service capabilities constructed in a multi-level tree structure and a preview component corresponding to each medical service capability. The configuration area displays the list of medical service capabilities in a multi-level tree structure and shows the selection status of each medical service capability. The preview area displays the preview component corresponding to each medical service capability whose selection status is selected. The update module, in response to a change in the selection status of a target medical service capability detected by listening, generates target configuration information based on the changed selection status of the target medical service capability, and updates the display result of the target preview component corresponding to the target medical service capability in the preview area based on the target configuration information; The generation module, in response to receiving a configuration completion instruction for the target application, sends a generation request for the target application to the server. The generation request includes the target configuration information, so that the server generates the target application based on the target configuration information.
[0012] According to another aspect of the present invention, an electronic device is provided, comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the Internet hospital application generation method provided by the present invention.
[0013] According to another aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the Internet hospital application generation method provided by the present invention.
[0014] According to another aspect of the present invention, a computer program product is provided, including a computer program that, when executed by a processor, implements the Internet hospital application generation method provided by the present invention.
[0015] One embodiment of the above invention has the following advantages or beneficial effects: The Internet hospital application generation method of the present invention, after obtaining the configuration information of the target application template from the server, displays the multi-level tree structure of the list of medical service capabilities and the selection status of each medical service capability in the configuration area, and displays the preview component corresponding to the selected medical service capability in the preview area; after listening to the status change of the medical service capability, the target configuration information is generated, and the corresponding preview component is displayed or hidden in the preview area in real time. After the configuration is completed, the server generates the target application based on the target configuration information. This method enables real-time interaction between configuration and preview on the same interface, providing a visual and real-time feedback interaction mode to achieve "what you see is what you get," reducing operational steps, lowering the cognitive cost for users, improving user experience, and enhancing configuration efficiency and accuracy. It describes the topological relationships between medical service capabilities through a multi-level tree structure, and detects compatibility in real time based on these relationships, ensuring the accuracy and effectiveness of configuration and improving system reliability and stability. A cascading verification process of configuration-real-time preview-automated application generation is constructed, tightly integrating the development, testing, and deployment phases to form an efficient closed loop. This ensures end-to-end quality control from application configuration to deployment, improving development efficiency and reducing development costs. Furthermore, the modular design based on the combination of medical service capabilities allows the system to flexibly expand with new medical service capabilities to adapt to business development needs.
[0016] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0017] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein: Figure 1 This is a schematic diagram of the main process of an Internet hospital application generation method according to an embodiment of the present invention; Figure 2 This is a system schematic diagram of an internet hospital application generation method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the main process of another method for generating an Internet hospital application according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the main process of another method for generating an Internet hospital application according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the configuration preview interface of an Internet hospital application generation method according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the main modules of the Internet hospital application generation device according to an embodiment of the present invention; Figure 7 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied; Figure 8 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0018] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0019] It should be noted that the collection, gathering, updating, analysis, processing, use, transmission, and storage of user personal information involved in this disclosed technical solution all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken to prevent unauthorized access to user personal information data and to safeguard user personal information security, network security, and national security.
[0020] Figure 1 This is a schematic diagram of the main flow of an internet hospital application generation method according to an embodiment of the present invention, as shown below. Figure 1 As shown, the method for generating this internet hospital application includes the following steps: Step S101: Send a request to the server to obtain the target application template, receive the configuration information of the target application template returned by the server, and display the configuration information on the configuration preview interface of the target application template. The configuration preview interface includes a configuration area and a preview area. The configuration information includes a list of medical service capabilities constructed in a multi-level tree structure and a preview component corresponding to each medical service capability. The list of medical service capabilities is displayed in a multi-level tree structure in the configuration area, and the selection status of each medical service capability is displayed. The preview component corresponding to each medical service capability whose selection status is selected is displayed in the preview area. Step S102: In response to the detection of a change in the selection status of the target medical service capability, generate target configuration information based on the changed selection status of the target medical service capability, and update the display result of the target preview component corresponding to the target medical service capability in the preview area based on the target configuration information; Step S103: In response to the listening for a configuration completion instruction for the target application, a generation request for the target application is sent to the server. The generation request includes the target configuration information so that the server can generate the target application based on the target configuration information.
[0021] In this embodiment of the invention, the method for generating internet hospital applications can be applied to the construction of internet hospitals, and the execution subject of this method can be a client. First, before sending a request to the server to obtain the target application template, a request to obtain the application template list is sent to the server based on the application template library. The application template list is then obtained from the server. Next, a request to obtain the target application template is sent to the server based on the target application list. The configuration information of the target application template is received from the server, and then the configuration information is displayed on a configuration preview interface. The configuration preview interface includes a configuration area and a preview area. Displaying the configuration area and the preview area on the same interface allows for simultaneous configuration changes and preview of the display effect, reducing the interactive operation process and improving the user experience.
[0022] The configuration information of the target application template includes a list of medical service capabilities built in a multi-level tree structure and a preview component corresponding to each medical service capability. The list of medical service capabilities includes one or more medical service capabilities of the target application template. For example, in the field of Internet healthcare, each medical service capability can be a functional module provided by an Internet hospital, such as online consultation, prescription management, and laboratory testing.
[0023] One or more healthcare service capabilities are linked by a multi-level tree structure, meaning each capability can be a parent node, a child node, or a leaf node of one or more other healthcare service capabilities. Each healthcare service capability has a corresponding associated preview component (UI component) that displays the capability's status. The configuration information includes the selection status of each capability. Some capabilities can be selected by default; for example, a selection box can be placed in front of each capability, and clicking the box changes its status. A black dot or checkmark appears in the selection box when the capability is selected, while a blank box indicates it is not selected. The configuration area displays a list of healthcare service capabilities in a multi-level tree structure, showing their selection status. If a capability is selected, the preview area displays the corresponding preview component; if it is not selected, the preview area does not display the preview component for that capability.
[0024] The preview area is implemented through a sandbox previewer. The filter previewer provides an isolated operating environment that can safely and in real time preview the application effect. Through DOM (Document Object Type) differential rendering, only the changed parts are updated, and the preview components corresponding to the medical service capabilities are dynamically displayed or hidden, so as to achieve efficient interface refresh.
[0025] Users can select one or more medical service capabilities from the various medical service capabilities displayed in the configuration area, and preview the display effect of the corresponding preview components of the selected medical service capability combination in the preview area, thereby building the target application, namely the Internet hospital application, to meet personalized needs.
[0026] Users can change the selection status of medical service capabilities, thereby updating configuration information based on the combination of selected medical service capabilities. Specifically, the selection status of the target medical service capability is monitored. When a change in selection status is detected, target configuration information is generated based on the changed selection status of the target medical service capability and other medical service capabilities whose selection status has not changed. The target configuration information can be a JSON (a lightweight text data interchange format) data structure. Then, the display result of the preview component in the preview area is updated based on the target configuration information. Specifically, the target configuration information can be compared with the configuration information to determine the difference configuration information. Based on the difference configuration information, DOM technology is used to re-render to obtain the display result of the target preview component. If it changes from unselected to selected, the target preview component is displayed in the preview area; if it changes from selected to unselected, the displayed target preview component is hidden from the preview area.
[0027] In this embodiment of the invention, generating target configuration information based on the changed selection status of the target medical service capability includes: determining a status attribute value based on the changed selection status of the target medical service capability; and generating target configuration information based on the status attribute value of the target medical service capability.
[0028] Specifically, different selection states correspond to different state attribute values, which can be customized according to business needs. For example, the state attribute value for the selected state can be set to a first preset value, and the state attribute value for the unselected state can be set to a second preset value. Based on the selected or unselected state attribute value after the change in the target medical service capability, the target configuration information can be obtained. That is, the target configuration information includes the state attribute value of the target medical service capability, as well as other medical service capabilities whose selection states have not changed and their state attribute values. For example, when "My Prescriptions" is checked in the configuration area, the "My Prescriptions" menu appears in real time in the preview area; when the "Online Consultation - Prescription" sub-item is unchecked in the configuration area, the prescription button above the doctor-patient dialogue input box disappears. The display or hiding of the preview component corresponding to the target medical service capability is achieved through DOM differential rendering, thereby realizing efficient interface refresh and improving efficiency.
[0029] In this embodiment of the invention, updating the display result of the target preview component corresponding to the target medical service capability in the preview area according to the target configuration information includes: Use a preset callback function to push the state attribute value to the target preview component; If the state attribute value is the first preset value, the result will be to hide the target preview component from the preview area; If the state attribute value is the second preset value, the result will be to display the target preview component in the preview area.
[0030] Specifically, when a change in the selection status of a target medical service capability is detected, a preset callback function is automatically triggered. The preset callback function pushes the changed status attribute value of the target medical service capability to the target preview component, and then drives the target preview component to re-render. If the status attribute value is the first preset value, indicating that the selection status has changed from selected to unselected, the target preview component is hidden from the preview area. If the status attribute value is the second preset value, indicating that the selection status has changed from unselected to selected, the target preview component is displayed in the preview area.
[0031] Through a monitoring mechanism, changes to configuration information can be captured and transmitted to the preview area in real time, achieving a "what you see is what you get" interactive experience. A reactive data binding framework, based on React's state management, establishes an automatic synchronization relationship between the data layer (i.e., the state attribute values of medical service capabilities) and the view layer (i.e., the preview component). When the selected state of a medical service capability changes, the state attribute value is automatically updated, triggering a re-rendering of the preview component in the preview area through a publish-subscribe mechanism. This method significantly reduces the user's cognitive load, streamlines the operational interaction process, enables real-time feedback, and improves configuration efficiency and accuracy.
[0032] In this embodiment of the invention, the method for generating an internet hospital application further includes: in response to a selection instruction received from any preview component in the preview area, displaying information about the medical service capabilities of that preview component. That is, in the preview area, deep preview interaction can be performed based on the preview component; selecting a preview component displays information about the medical service capabilities corresponding to that component. This information may include detailed information about the medical service capability, such as introductory information, and may also include the medical service capabilities and detailed information of each level of sub-nodes of that medical service capability. For example, clicking the prescription button can slide out a prescription drawer to display detailed medical service capability information, such as prescription information for each prescription.
[0033] In this embodiment of the invention, before sending the generation request of the target application to the server, the method further includes: The target configuration information of the target application is validated for required fields. After the validation passes, the target configuration information is validated for compatibility according to the preset topology rules. After the validation passes, the target application generation request is sent to the server. The preset topology rules include the dependency relationship of each medical service capability in the target configuration information based on a multi-level tree structure.
[0034] After the user completes the changes to the configuration information and obtains the target configuration information, the application can be generated based on this information. Specifically, upon receiving confirmation from the user that the target application configuration is complete, an application generation request is sent to the server. This request includes the target configuration information, and the server generates the application based on this information. Before sending the application generation request to the server, the target application needs to be validated, including mandatory field validation and compatibility validation. If the validation passes, the server's application generation interface is requested, and the application generation request is sent to the server based on this interface. Mandatory fields may include application identifier, application name, configuration rules, security and permission configurations, etc. Required fields are validated. If validation fails, a failure message is displayed. If validation passes, a compatibility check is performed. Specifically, the compatibility of combinations of medical service capabilities in the target configuration information (i.e., combinations of medical service capabilities whose selection status is selected) is checked according to preset topology rules. Preset topology rules include the dependencies between medical service capabilities built on a multi-level tree structure. That is, preset topology rules can be stored in the node metadata of each medical service capability. Based on the node metadata of each medical service capability, the preset topology rules can be obtained. Based on the preset topology rules, the medical service capabilities corresponding to the parent node and the medical service capabilities corresponding to the child nodes of the medical service capability can be obtained. The medical service capability corresponding to the parent node of the medical service capability is also the medical service capability node strongly bound to the medical service capability, that is, the medical service capability node that the medical service capability depends on, and the medical service capability node that depends on the medical service capability. For example, "My Prescriptions" depends on "Online Consultation - Prescriptions", and "Patient Management" must be bound to "Post-Diagnosis Management". After performing compatibility checks on the target configuration information according to the preset topology rules, if the check passes, a request to generate the application is sent to the server. If the check fails, a failure message is displayed. If there are potential conflicts or incompatibilities, a visual prompt message is generated, and suggested solutions are displayed in the visual prompt message to ensure that the generated application is functionally complete and runs stably.
[0035] By performing mandatory field and compatibility checks on the target application's configuration information, the accuracy and effectiveness of the configuration are ensured, avoiding functional abnormalities or deployment failures caused by improper combinations of medical service capabilities. Complex business logic is transformed into clear visual feedback, greatly reducing the risk of configuration errors and improving the robustness of the system.
[0036] After receiving the application generation request, the server verifies the target configuration information of the target application based on the application identifier and configuration rules. If the verification is successful, the server generates a deployment package based on the target configuration information. The cloud automatically deploys the application based on the deployment package. After successful deployment, the server automatically redirects to the target application's page.
[0037] In this embodiment of the invention, after the server generates the target application based on the target configuration information, the method further includes: Get the list of management applications from the server, send a request to the target application from the list of management applications, in order to get the historical configuration information of the target application from the server, and display the historical configuration information on the configuration preview interface; The corresponding preview component is rendered based on the status of each medical service capability in the historical configuration information and displayed in the preview area; In response to a change in the selection status of any medical service capability, update the historical configuration information according to the changed selection status of any medical service capability, and update the display result of the preview component corresponding to any medical service capability in the preview area according to the updated historical configuration information. Upon receiving a configuration completion command from the target application, an update request for the target application is sent to the server. The update request includes the updated historical configuration information so that the server can update the target application based on the updated configuration information.
[0038] In this embodiment of the invention, after the application is generated, it can be updated to meet business needs. Specifically, an application management list is obtained from the server, and a request to obtain the target application is sent to the server based on the application management list. The historical configuration information of the target application returned by the server is received, and the historical configuration information is displayed on the configuration preview interface. The configuration area displays a list of medical service capabilities and the selection status of each medical service capability. The selection status of each medical service capability is the default historical selection status, and the historical configuration information can be the initial JSON configuration. The preview area displays preview components of medical service capabilities that are historically selected. Clicking on the preview component displays the information of the corresponding medical service capability.
[0039] Users can modify historical configuration information on the configuration preview interface. For the list of medical service capabilities in the configuration area, they can update the selection status of one or more medical service capabilities in the list, such as checking or deselecting one or more medical service capabilities. After listening for a change in the selection status of any medical service capability, a status change event is triggered. The historical configuration information is updated according to the updated selection status of any medical service capability to generate an updated JSON configuration. The initial JSON configuration and the updated JSON configuration are compared to dynamically update the preview DOM, that is, update the display result of the preview component corresponding to any medical service capability, i.e., show or hide it.
[0040] After receiving the configuration completion command, the system performs mandatory field and compatibility checks on the updated historical configuration information. If the check fails, a failure message is displayed. If the check passes, an update request for the target application is sent to the server. The server generates a deployment package based on the updated historical configuration information and automatically completes the deployment in the cloud, thereby updating the target application and automatically opening the new version of the target application's page.
[0041] Figure 2 This is a system schematic diagram of an internet hospital application generation method according to an embodiment of the present invention. The creation process of this internet hospital application generation method includes: selecting a template for the target application from an application template list; the template configuration engine displays the configuration information of the target application template in a configuration preview interface; and option status management is used to monitor the selection status of the medical service capabilities of the target application template. The editing process includes selecting the target application from an application management list, displaying the historical configuration information of the target application (i.e., version configuration snapshot), and then monitoring the selection status of medical service capabilities in the historical configuration information. The core interaction process is as follows: when a status change of any medical service capability is detected, a status change event is triggered, the configuration change (i.e., the difference JSON configuration) is calculated, and then DOM difference rendering is performed through a sandbox previewer to display or hide the preview component of any medical service capability in the preview area, achieving a visual preview. The deployment process is as follows: when the "generate" or "confirm" button is clicked, mandatory field validation is performed. If it fails, an error handler is used to handle the issue and display a failure message. If it succeeds, a compatibility check is performed. If the check succeeds, a deployment package is generated, automatically deployed in the cloud, an application instance is created, and the controller automatically redirects to the target application's page.
[0042] Figure 3 This is a flowchart illustrating another method for generating an internet hospital application according to an embodiment of the present invention. The client obtains a list of application templates from the server and displays it on a template selection page. After selecting a template, the user enters a template configuration preview interface, which displays the template configuration information. This configuration preview interface includes a list of medical service capabilities on the left and a real-time preview area on the right. The user can select or deselect medical service capabilities based on the list to change their selection status. Upon detecting a change in the status of a medical service capability, a status change event is triggered, updating the configuration information. An updated JSON configuration is generated based on the updated configuration information, and the preview DOM is dynamically updated based on the updated JSON configuration. The real-time preview area on the right displays or hides preview components based on the selected medical service capability. Simultaneously, users can click on preview components in the preview area to display information about the corresponding medical service capability.
[0043] After confirming the configuration, the required fields and compatibility are checked. Once the checks are passed, the client sends an application generation request to the server. The server generates a deployment package based on the updated configuration information and automatically deploys it in the cloud. After successful deployment, the application page is opened.
[0044] Figure 4 This invention provides a flowchart illustrating another method for generating an internet hospital application. The client obtains an application management list from the server, clicks on the target application in the list, enters the application editing page, loads historical configuration information, and displays it in the configuration preview interface. This configuration preview interface includes a list of medical service capabilities on the left and a real-time preview area on the right. Based on the historical configuration information, the client initializes the historical selection status of each medical service capability, generates an initial JSON configuration, and dynamically updates the preview DOM based on the initial JSON configuration. Users can select or deselect medical service capabilities from the list to change their selection status. Upon detecting a change in the status of a medical service capability, a status change event is triggered. An updated JSON configuration is generated based on the updated selection status of the medical service capability, and the preview DOM is dynamically updated based on the updated JSON configuration. The real-time preview area on the right displays or hides preview components based on the selected medical service capability. Simultaneously, users can click on preview components in the preview area to display information about the corresponding medical service capability.
[0045] After confirming the configuration, the required fields and compatibility are checked. Once the checks are passed, the client sends an application generation request to the server. The server generates a deployment package based on the updated configuration information and automatically deploys it in the cloud. After successful deployment, the new version of the application page is opened.
[0046] Figure 5This is a schematic diagram of the configuration preview interface for an internet hospital application generation method according to an embodiment of the present invention. The configuration preview interface includes a configuration area on the left and a preview area on the right. The left configuration area displays a list of medical service capabilities using a multi-level tree structure. Each medical service capability (such as "Online Consultation," "My Prescriptions," "Case Review," and "Patient Management") can display its child nodes' medical service capabilities. For example, "Patient Management" includes child nodes such as "Post-Diagnosis Management" and "Personal Health Management." Each medical service capability has a selection box in front of it, allowing users to check or deselect the capability to determine its selection status. Selected items can be clearly identified using visual styles (such as fill color and checkmark icons). The right preview area renders the target application interface generated by the currently selected combination of medical service capabilities in real time. The preview area adopts a sandboxed micro-frontend architecture, dynamically loading preview components associated with the medical service capabilities on the left, such as the doctor-patient dialogue window for online consultations. Each preview component in the preview area has a visual association with the medical service capabilities on the left. For example, when "My Prescriptions" is checked in the left-hand configuration area, a "My Prescriptions" menu entry is added to the left of the preview area; when the "Online Consultation - Prescription" sub-item is unchecked, the prescription button above the doctor-patient dialogue input box immediately disappears. Users can slide out a prescription drawer by clicking the prescription button in the preview area, enabling deeper interaction.
[0047] The Internet hospital application generation method of this invention obtains the configuration information of the target application template from the server, displays a multi-level tree-structured list of medical service capabilities and the selection status of each medical service capability in the configuration area, and displays the preview components corresponding to the selected medical service capabilities in the preview area; after listening for changes in the status of medical service capabilities, it generates target configuration information, and displays or hides the corresponding preview components in the preview area in real time; after the configuration is completed, the server generates the target application based on the target configuration information. This method enables real-time interaction between configuration and preview on the same interface, providing a visual and real-time feedback interaction mode to achieve "what you see is what you get," reducing operational steps, lowering the cognitive cost for users, improving user experience, and enhancing configuration efficiency and accuracy. It describes the topological relationships between medical service capabilities through a multi-level tree structure, and detects compatibility in real time based on these relationships, ensuring the accuracy and effectiveness of configuration and improving system reliability and stability. A cascading verification process of configuration-real-time preview-automated application generation is constructed, tightly integrating the development, testing, and deployment phases to form an efficient closed loop. This ensures end-to-end quality control from application configuration to deployment, improving development efficiency and reducing development costs. Furthermore, the modular design based on the combination of medical service capabilities allows the system to flexibly expand with new medical service capabilities to adapt to business development needs.
[0048] According to another aspect of the embodiments of the present invention, such as Figure 6 As shown, an Internet hospital application generation device 600 is provided, comprising: The acquisition module 601 sends a request to the server to acquire the target application template, receives the configuration information of the target application template returned by the server, and displays the configuration information on the configuration preview interface of the target application template. The configuration preview interface includes a configuration area and a preview area. The configuration information includes a list of medical service capabilities constructed in a multi-level tree structure and a preview component corresponding to each medical service capability. The configuration area displays the list of medical service capabilities in a multi-level tree structure and shows the selection status of each medical service capability. The preview area displays the preview component corresponding to each medical service capability whose selection status is selected. The update module 602 responds to the detection of a change in the selection status of the target medical service capability, generates target configuration information based on the changed selection status of the target medical service capability, and updates the display result of the target preview component corresponding to the target medical service capability in the preview area based on the target configuration information. The generation module 603, in response to receiving a configuration completion instruction for the target application, sends a generation request for the target application to the server. The generation request includes target configuration information so that the server can generate the target application based on the target configuration information.
[0049] In this embodiment of the invention, the update module 602 is further configured to: determine the status attribute value based on the changed selection status of the target medical service capability; and generate target configuration information based on the status attribute value of the target medical service capability.
[0050] In this embodiment of the invention, the update module 602 is further configured to: push the state attribute value to the target preview component using a preset callback function; if the state attribute value is a first preset value, the display result is to hide the target preview component from the preview area; if the state attribute value is a second preset value, the display result is to display the target preview component in the preview area.
[0051] In this embodiment of the invention, the update module 602 is further configured to: in response to listening to a selection instruction for any preview component in the preview area, display information about the medical service capabilities of any preview component.
[0052] In this embodiment of the invention, the generation module 603 is further configured to: perform mandatory field verification on the target configuration information of the target application before sending the generation request of the target application to the server; perform compatibility verification on the target configuration information according to the preset topology rules after the verification passes; and send the generation request of the target application to the server after the verification passes. The preset topology rules include the dependency relationship of each medical service capability in the target configuration information based on a multi-level tree structure.
[0053] In this embodiment of the invention, the generation module 603 is further configured to: after the server generates the target application based on the target configuration information, obtain a list of management applications from the server, send a request to obtain the target application from the list of management applications, obtain historical configuration information of the target application from the server, and display the historical configuration information on the configuration preview interface. The corresponding preview component is rendered based on the status of each medical service capability in the historical configuration information and displayed in the preview area; In response to a change in the selection status of any medical service capability, update the historical configuration information according to the changed selection status of any medical service capability, and update the display result of the preview component corresponding to any medical service capability in the preview area according to the updated historical configuration information. Upon receiving a configuration completion command from the target application, an update request for the target application is sent to the server. The update request includes the updated historical configuration information so that the server can update the target application based on the updated configuration information.
[0054] According to another aspect of the present invention, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the Internet hospital application generation method provided by the present invention.
[0055] According to another aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the Internet hospital application generation method provided by the present invention.
[0056] According to another aspect of the present invention, a computer program product is provided, including a computer program that, when executed by a processor, implements the Internet hospital application generation method provided by the present invention.
[0057] Figure 7 An exemplary system architecture 700 is shown that can be applied to the Internet hospital application generation method or Internet hospital application generation apparatus of the present invention.
[0058] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, and 703, a network 704, and a server 705. Network 704 serves as the medium for providing communication links between terminal devices 701, 702, and 703 and server 705. Network 704 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0059] Users can use terminal devices 701, 702, and 703 to interact with server 705 via network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0060] Terminal devices 701, 702, and 703 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0061] Server 705 can be a server providing various services, such as a backend management server supporting shopping websites browsed by users using terminal devices 701, 702, and 703 (for example only). The backend management server can analyze and process data such as received product information query requests, and feed back the processing results (such as target push information, product information - for example only) to the terminal devices.
[0062] It should be noted that the Internet hospital application generation method provided in this embodiment of the invention is generally executed by terminal devices 701, 702, and 703, and correspondingly, the Internet hospital application generation device is generally set in terminal devices 701, 702, and 703.
[0063] It should be understood that Figure 7 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0064] The following is for reference. Figure 8 It shows a schematic diagram of the structure of a computer system 800 suitable for implementing a terminal device of the present invention. Figure 8 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0065] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 802 or programs loaded from storage section 808 into random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the system 800. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0066] The following components are connected to I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to I / O interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 810 as needed so that computer programs read from it can be installed into storage section 808 as needed.
[0067] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit (CPU) 801, it performs the functions defined above in the system of this invention.
[0068] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0069] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0070] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor may be described as including an acquisition module, an update module, and a generation module. The names of these modules do not necessarily limit the module itself. For example, the update module may also be described as "a module that, in response to detecting a change in the selection state of a target medical service capability, generates target configuration information based on the changed selection state of the target medical service capability, and updates the display result of the target preview component corresponding to the target medical service capability in the preview area based on the target configuration information."
[0071] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include: sending a request to obtain a target application template to a server; receiving configuration information of the target application template returned by the server; displaying the configuration information on a configuration preview interface of the target application template, the configuration preview interface including a configuration area and a preview area; displaying a list of medical service capabilities in a multi-level tree structure in the configuration area, and displaying the selection status of each medical service capability; displaying a preview component corresponding to each medical service capability whose selection status is selected in the preview area; in response to detecting a change in the selection status of a target medical service capability, generating target configuration information based on the changed selection status of the target medical service capability, and updating the display result of the target preview component corresponding to the target medical service capability in the preview area based on the target configuration information; and in response to detecting a configuration completion instruction for a target application, sending a generation request for the target application to the server, the generation request including the target configuration information, so that the server generates the target application based on the target configuration information.
[0072] According to the technical solution of the present invention, the Internet hospital application generation method of the present invention obtains the configuration information of the target application template from the server, displays the multi-level tree structure of the list of medical service capabilities and the selection status of each medical service capability in the configuration area, and displays the preview component corresponding to the selected medical service capability in the preview area; after listening to the status change of the medical service capability, the target configuration information is generated, and the corresponding preview component is displayed or hidden in the preview area in real time. After the configuration is completed, the server generates the target application based on the target configuration information. This method enables real-time interaction between configuration and preview on the same interface, providing a visual and real-time feedback interaction mode to achieve "what you see is what you get," reducing operational steps, lowering the cognitive cost for users, improving user experience, and enhancing configuration efficiency and accuracy. It describes the topological relationships between medical service capabilities through a multi-level tree structure, and detects compatibility in real time based on these relationships, ensuring the accuracy and effectiveness of configuration and improving system reliability and stability. A cascading verification process of configuration-real-time preview-automated application generation is constructed, tightly integrating the development, testing, and deployment phases to form an efficient closed loop. This ensures end-to-end quality control from application configuration to deployment, improving development efficiency and reducing development costs. Furthermore, the modular design based on the combination of medical service capabilities allows the system to flexibly expand with new medical service capabilities to adapt to business development needs.
[0073] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for generating an internet hospital application, characterized in that, include: A request to obtain the target application template is sent to the server, and the configuration information of the target application template returned by the server is received. The configuration information is displayed on the configuration preview interface of the target application template. The configuration preview interface includes a configuration area and a preview area. The configuration information includes a list of medical service capabilities constructed in a multi-level tree structure and a preview component corresponding to each medical service capability. The list of medical service capabilities is displayed in the configuration area in a multi-level tree structure, and the selection status of each medical service capability is displayed. The preview area displays a preview component corresponding to each of the medical service capabilities that is selected. In response to a change in the selection status of a target medical service capability detected by the system, target configuration information is generated based on the changed selection status of the target medical service capability, and the display result of the target preview component corresponding to the target medical service capability in the preview area is updated based on the target configuration information. In response to receiving a configuration completion instruction for the target application, a generation request for the target application is sent to the server. The generation request includes the target configuration information, so that the server generates the target application based on the target configuration information.
2. The method according to claim 1, characterized in that, Target configuration information is generated based on the changed selection status of the target medical service capabilities, including: The status attribute value is determined based on the selected status after the change of the target medical service capability; The target configuration information is generated based on the status attribute values of the target medical service capabilities.
3. The method according to claim 2, characterized in that, Update the display result of the target preview component corresponding to the target medical service capability in the preview area according to the target configuration information, including: The state attribute value is pushed to the target preview component using a preset callback function; If the state attribute value is a first preset value, then the display result is to hide the target preview component from the preview area; If the status attribute value is a second preset value, the display result is to display the target preview component in the preview area.
4. The method according to claim 1, characterized in that, The method further includes: In response to a selection command for any preview component in the preview area, information about the medical service capabilities of that preview component is displayed.
5. The method according to claim 1, characterized in that, Before sending the generation request for the target application to the server, the process also includes: The target configuration information of the target application is validated for required fields. After the validation passes, the target configuration information is validated for compatibility according to preset topology rules. After the validation passes, a generation request for the target application is sent to the server. The preset topology rules include the dependency relationships of each medical service capability in the target configuration information based on the multi-level tree structure.
6. The method according to any one of claims 1-5, characterized in that, After the server generates the target application based on the target configuration information, the method further includes: The system obtains a list of management applications from the server, sends a request to the target application from the list of management applications, retrieves the historical configuration information of the target application from the server, and displays the historical configuration information on the configuration preview interface. The corresponding preview component is rendered based on the status of each medical service capability in the historical configuration information and displayed in the preview area; In response to detecting a change in the selection status of any medical service capability, the historical configuration information is updated according to the changed selection status of the medical service capability, and the display result of the preview component corresponding to the medical service capability in the preview area is updated according to the updated historical configuration information. Upon receiving a configuration completion instruction from the target application, an update request for the target application is sent to the server. The update request includes updated historical configuration information, so that the server updates the target application based on the updated configuration information.
7. An internet hospital application generation device, characterized in that, include: The acquisition module sends a request to the server to acquire the target application template, receives the configuration information of the target application template returned by the server, and displays the configuration information on the configuration preview interface of the target application template. The configuration preview interface includes a configuration area and a preview area. The configuration information includes a list of medical service capabilities constructed in a multi-level tree structure and a preview component corresponding to each medical service capability. The list of medical service capabilities is displayed in the configuration area in a multi-level tree structure, and the selection status of each medical service capability is displayed. The preview area displays a preview component corresponding to each of the medical service capabilities that is selected. The update module, in response to a change in the selection status of a target medical service capability detected by listening, generates target configuration information based on the changed selection status of the target medical service capability, and updates the display result of the target preview component corresponding to the target medical service capability in the preview area based on the target configuration information; The generation module, in response to receiving a configuration completion instruction for the target application, sends a generation request for the target application to the server. The generation request includes the target configuration information, so that the server generates the target application based on the target configuration information.
8. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-6.