System and method for micro-service based patient management with dependency injection
By adopting microservice architecture and dependency injection in the blood sugar control system, the system response and maintenance problems under multi-client terminals and complex sugar control solutions are solved, the timeliness of rapid response and data interaction are achieved, and the system flexibility is improved and maintainability.
Patent Information
- Application Number
- CN202310764647.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-16
- Filing Date
- 2023-06-27
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When existing blood sugar control systems face changes in multi-client terminals, complex sugar control schemes and user input schemes, they are difficult to respond quickly and maintain, resulting in system overload and untimely update of data interaction interfaces.
A microservice-based patient management system is designed to use dependency injection and modular design patterns to realize the separation and automated deployment of blood sugar control, diet and exercise modules through cloud service providers and multi-layer architectures, and provide microservice interfaces. , automatically synchronously update interface documents to ensure system flexibility and maintainability.
It realizes rapid response and effective division of labor in blood sugar control and data interaction, reduces the difficulty of system maintenance, ensures timeliness and accuracy of data interaction, and improves the flexibility and scalability of the system.
Smart Images

Figure CN119007937A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to microservices. More specifically, the present disclosure relates to systems and methods for microservices-based patient management. Background Art
[0002] Blood sugar control is usually managed through web pages, mobile applications (including IOS, Android or other platforms) and server programs (backend programs). Patient-oriented information display functions can be complex systems, such as complex self-adaptive self-organizing systems. For example, these software systems may include several aspects that increase their complexity and may create unexpected emergency properties or effects. One aspect of introducing complexity is to help users enter test data and life data, and information will be displayed in many places to encourage data entry. The same information will have some differences in the display logic under different clients, different pages and modules. The functional aspects of the software may be variable. The sugar control program can be adjusted according to clinical applications, clinical input or changed treatment standards. The business goals of the software manufacturer may change, thereby modifying the data interaction interface (for example, the way of using the network to provide services to customers for data interaction). The GUI may need to be adjusted, and the maintenance of the interface document may need to be updated, resulting in problems such as incomplete documentation and untimely updates.
[0003] These and other aspects present challenges to system development, such as how to respond quickly as we face more client terminals, more complex sugar control schemes, and changing user entry schemes. A large amount of labor is associated with modifying the management software with new blood sugar-control protocols, any changes to data processing, or new display data requirements. When new logic needs to be added to a patient's treatment plan, the client software may frequently request the back-end program and may overload the system, making it difficult to handle the large number of requests. As software requirements evolve, program systems become more complex and difficult to maintain. Therefore, when there are large changes in blood sugar-control protocols or data-patient interactions, it is difficult to achieve an effective division of labor to quickly deliver new management software. Summary of the invention
[0004] A system of one or more computers may be configured to perform specific operations or actions by means of having software, firmware, hardware, or a combination thereof installed on the system, which in operation causes or causes the system to perform the actions. One or more computer programs may be configured to perform specific operations or actions by means of including instructions that, when executed by a data processing device, cause the device to perform the actions.
[0005] In a general aspect, the system may include a client device configured to communicate with a user to receive user data. The system may also include a user module configured to record user data. The system may further include an adaptation module configured to receive a request from a client device. The system may further include a blood glucose control module configured to select a blood glucose control protocol based on the user data. In addition, the system may include a diet module configured to receive diet data, wherein the diet module is configured to provide diet recommendations to the user via the client device. The system may also include an exercise module configured to receive exercise data and provide exercise recommendations to the user via the client device. Other embodiments of this aspect include corresponding computer systems, devices, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the method.
[0006] Implementations may include one or more of the following features. The system may be configured where the client device is one of a smartphone, a small application, a computer, a wearable exercise monitor, and a smartwatch. The system may be configured where the user module is configured to record user data, including height, weight, age, gender, exertion, diagnosis time, clinical classification, dietary preferences, and / or exercise status information. The blood glucose control module may be configured to adapt at least one of a diet recommendation and an exercise recommendation to manage blood glucose levels.
[0007] The client device may be configured to register a user and cause a unique patient ID and token to be generated. The unique patient ID and token may be generated by a remote server. The adapter module may process the token before processing the request. The diet module may cause the diet calculation module to calculate calorie intake, analyze whether the diet data meets predetermined criteria based on the user data, and return the diet analysis results to the diet module. The exercise module may cause the exercise calculation module to analyze whether the exercise data meets predetermined criteria based on the user data to generate an analysis and transmit the analysis to the exercise module.
[0008] The analysis may include exercise recommendations. The blood glucose control module causes the blood glucose calculation module to receive the first and second blood glucose measurements and calculate the risk factor. The blood glucose calculation module may transmit the risk factor to the adaptation module and / or the user. Thus, the client device may transmit the risk factor to the user. The module may be implemented as one or more microservices and may utilize dependency injection. The module may be implemented as a plurality of processor executable instructions configured for execution by at least one processor, and / or the module may be stored on a non-transitory computer readable medium. Each module may be implemented as a microservice. Implementations of the described techniques may include hardware, methods or processes, or computer tangible media.
[0009] In one general aspect, a method may include receiving user data; recording user data; receiving a request from a client device; selecting a glycemic control protocol based on the user data; receiving dietary data; providing dietary recommendations to the user via the client device; receiving exercise data; and / or providing exercise recommendations to the user via the client device. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the method.
[0010] Implementations may include one or more of the following features. The method, wherein the client device is one of a smartphone, an applet, a computer, a wearable exercise monitor, and a smartwatch. The method may be implemented as a set of instructions stored on a readable medium, such as a readable medium storing software, wherein the readable medium is a non-transitory computer readable medium. The method may be stored as a computer program product.
[0011] The user data may include height, weight, age, gender, exertion, time of diagnosis, clinical classification, dietary preferences and / or exercise status information. The method may include adapting at least one of dietary recommendations and exercise recommendations to manage blood glucose levels. The client device may be configured to register a user and cause a unique patient id and token to be generated. The unique patient id and token may be generated by a remote server. The method may include an action of processing the token before processing the request.
[0012] The method may also include: causing the exercise calculation module to analyze whether the exercise data meets predetermined criteria based on the user data to generate an analysis; and transmitting the analysis to the user. The analysis may include exercise recommendations. The method may cause the blood glucose calculation module to receive the first and second blood glucose measurements; calculate the risk factor; and transmit the risk factor to the user. The method may further include the following actions: causing the diet calculation module to calculate the calorie intake; analyzing whether the diet data meets predetermined criteria based on the user data; and / or returning the diet analysis results to the user. The actions of the method may be implemented using one or more microservices, and / or may include injecting dependencies into a software module that is configured to perform the method when executed on a processor. The module may be stored on a non-transitory computer-readable medium, and / or each action may be implemented using a microservice. Implementations of the described technology may include hardware, methods or processes, or computer-tangible media.
[0013] In one general aspect, a system may include a processor component configured to provide: a component for receiving user data; a component for recording user data; a component for receiving a request from a client device; a component for selecting a glycemic control protocol based on the user data; a component for receiving dietary data; a component for providing dietary recommendations to a user via a client device; a component for receiving exercise data; and a component for providing exercise recommendations to a user via a client device. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the method. The system may include a processor component further configured to provide components for implementing the methods described herein. Implementations of the described techniques may include hardware, methods or processes, or computer tangible media. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] These and other aspects will become more apparent from the following detailed description of various embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0015] Figure 1 A block diagram of a system for microservice-based patient management according to an embodiment of the present disclosure is shown;
[0016] Figure 2 A block diagram of a computing device for microservices-based patient management according to an embodiment of the present disclosure is shown;
[0017] Figure 3 The overall calling process of the management module according to the embodiment of the present disclosure is shown;
[0018] Figure 4 A flowchart of a method for selecting a protocol for a user according to an embodiment of the present disclosure is shown;
[0019] Figure 5 A flow chart showing a method for calculating diet according to an embodiment of the present disclosure;
[0020] Figure 6 A flow chart showing a method of calculating an exercise routine according to an embodiment of the present invention;
[0021] Figure 7 A flowchart showing a request process between a client and an adaptation service according to an embodiment of the present disclosure;
[0022] Figure 8 shows a block diagram illustrating dependency injection according to an embodiment of the present disclosure; and
[0023] Fig. 9 A block diagram illustrating a process of updating a module according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0024] Figure 1 A block diagram illustration of a cloud-based system 100 for microservices-based patient management according to an embodiment of the present disclosure is shown. The system 100 includes a cloud service provider 102, one or more personal computers 104, and a mobile device 106. The system 100 also includes a management module 112. The management module 112 can provide an interface for the user to help manage blood glucose levels (i.e., glycemic control), which is described in more detail below.
[0025] The cloud service provider 102 may be configured to facilitate the provisioning of the management module 112. In some embodiments of the present disclosure, the cloud service provider 102 may be a hosting service, such as a company that provides cloud computing services to businesses and individuals, such that the cloud service provider 102 provides the infrastructure, software, and platform required to host, manage, and deliver cloud-based services.
[0026] The internal architecture of the management module 112 may include defining an abstract parent class in a specific implementation and using subclasses to inherit the abstraction. The management module 112 may use dependency injection to provide the modules required for the service to the user. This can separate the caller and the callee and increase the testability and readability of the code. Commonly used tools in the industry are Injector or Dagger2; Figure 8 Diagram illustrating dependency injection.
[0027] Each module within the management module 112 that needs to use the database 132 may have the functionality to switch between database versions. The database 132 may have version management so that the database 132 version can be synchronously upgraded to ensure that the database table structure meets the needs of the management module 112.
[0028] For example, four methods may be designed: list (list version), install (initial installation), upgrade (version upgrade), and downgrade (version downgrade), and an upgrade command chain may be used to manage the database 132 version. A commonly used tool in the industry is Alembic (a database version management tool).
[0029] Each module in the management module 112 can be released as a portable package for flexible deployment. The package can be built and released in an automated manner. Common tools in the industry include Docker (open source application container engine), Jenkins (continuous integration tool) and Kubernetes (for managing containerized applications on multiple hosts in a cloud platform). This is described below. Fig. 9 Medium picture.
[0030] Each service should use strong validation and provide and generate interface documentation in code. In the past, in order to achieve consistency between the documentation and the logic of the interface documentation, technicians often had to modify the interface documentation while changing the code, which could lead to problems such as untimely and inaccurate updates, and callers required a lot of debugging and communication.
[0031] In some embodiments, the cloud service provider 102 may provide infrastructure as a service, platform as a service, software as a service, and / or may be an interface to a blockchain infrastructure, which may or may not be hosted by the cloud service provider 102. The cloud service provider 102 may be configured to scale its computing resources up or down based on demand from users at a given moment.
[0032] Referring generally to system 100, personal computer 104 and mobile device 106 communicate with each other via network 108. Network 108 may include links such as Wi-Fi, Ethernet, Bluetooth, etc., and may utilize the Internet and associated protocols such as TCP / IP. Network 108 may be a local area network, a wide area network, a physical bus (such as a universal serial bus), the Internet, or some combination thereof.
[0033] The personal computer 104 and the mobile device 106 can interface with the cloud service provider 102 to manage the user's blood glucose level using the management module 112. In some embodiments, a dedicated application for interfacing with the management module 112 can be used, such as a mobile application on the mobile device 106 or a desktop application on the personal computer 104. Communication can include transmitting data in HTML, XML, JSON, YAML, or any data format. The management module 112 can provide a user-level account to an individual through a typical login mechanism. The management module 112 can be a web application, a web server, a web service, etc., and can utilize one or more protocols to transmit data.
[0034] The cloud service provider 102 may present the front end of the management module 112 as a web page, a webapp, a program for downloading and executing on the computer 104 or the mobile device 106. The management module 112 includes a user module 114, an adaptation module 116, a blood glucose control module 118, a diet module 123, and an exercise module 127. The blood glucose control module 118 may generate a blood glucose calculation module 120. The diet module 123 may generate a diet calculation module 125. The exercise module 127 may generate an exercise calculation module 129.
[0035] The management module 112 also includes various communication functionalities. The management module 112 can facilitate seamless communication and data exchange between multiple software applications, devices, and systems. That is, the management module 112 can include protocol processing, message formatting, data serialization, encryption, and authentication to facilitate communication with the computer 104 and / or the mobile device 106. The management module 112 can utilize a message formatting mechanism to format messages into formats such as XML, JSON, binary formats, and / or proprietary message formats. The management module 112 can utilize various encryption algorithms, such as RSA, AES, ECC, symmetric encryption, asymmetric encryption, etc., to enable secure communication between the management module 112 and the computer 104 and / or the mobile device 106.
[0036] The management module 112 can present a display for use by the computer 104 and / or the mobile device 106. The management module 112 can be a web-based provider, such as flask, an HTML server, a web framework, etc. The management module 112 can provide widgets, information, buttons, options, and menus to facilitate user interaction with the management module 112.
[0037] The management module 112 can be used to log into the user account 150 so that the user can create, save or retrieve data, or otherwise interface with any account features. The management module 112 can direct other components to execute instructions based on a workflow initiated by the user. That is, the GUI component of the management module 112 can receive events, such as mouse clicks, button presses, or GUI widget interactions, to initiate a routine, a series of steps, or a series of actions. For example, the management module 112 can step the user through how to set up and work to generate the protocol 151.
[0038] The system 100 may use a modular design pattern, may use a module assembly method, and may use an automatic release method to facilitate the management of the patient treatment protocol 151. The user may interact with the management module 112 via the user module 114. The user module 114 may present data to the user, collect user information such as diet and exercise data, and / or other data records. In some specific embodiments of the present disclosure, the user module 114 may be the sole entry point to the management module 112.
[0039] Modules 112, 114, 116, 118, 120, 123, 125, 127, 129 can be divided into independent services, such as microservices. The adaptation service performed by the adaptation module 116 can connect them in series. In some embodiments, the adaptation module 116 provides a user interface for the front end and the client 104, 106. In other embodiments, the adaptation module 116 interacts with the user module 114 to provide a user interface.
[0040] The architecture of the system 100 may include an internal multi-layer design using microservices. The system 100 may use object-oriented programming techniques such as abstraction, subclassing, inheritance, and dependency injection. The database 132 may have data table versioning functionality so that data table version management allows the database 132 to quickly switch between versions, thereby providing a table structure that matches the selected version.
[0041] The use of strong validation of interface access parameters and management tools can be used to automatically generate interface documents to promote consistency between documents and logic. When the code of system 100 is modified and the interface access parameters are modified, the interface document can be automatically updated synchronously to achieve consistency between the document and the code. Tools used to achieve this include sphinx, pydantic, etc.
[0042] The user may register and log in to the mobile device 106 or computer 104 to use the system 100. Thereafter, the user module 114 may generate a unique patient ID and token (an encrypted string of user information) corresponding to the user, which may be based on user information, such as the patient's phone number, for example. The user account 150 and associated data may be stored in the database 132.
[0043] Token encryption can use tools commonly used in the industry, such as jwt tools (a token-based web authentication method in json format), or any other suitable technology. After the management module 112 and the client (e.g., mobile device 106) agree on the encryption key, an encrypted token string can be generated by a method call, such as jwt.encode (payload, secret, algorithm = "HS256").
[0044] The adaptation module 116 can receive a request from a client device and request the user module 114 to decrypt and / or authenticate the token, and query the user's basic information based on the information in the token, and return it to the adaptation module 116 (this process is called token resolution). The adaptation module 116 can use token resolution to receive all user requests.
[0045] After the user completes registration, he / she can enter user data via a questionnaire assessment. As part of the assessment, or as a separate entry, the user can enter additional information, such as information related to the user's diet, exercise, physiological parameters, and blood sugar levels. After completing a sufficient amount of assessments, the management module 112 can use the assessment data to match the patient's basic data with predetermined criteria, which are associated with the patient's appropriate protocol 151. The protocol 151 can be transmitted to the adaptation module 116 to be relayed to the user.
[0046] After the token is parsed together with the dietary information (if any) entered by the user, the dietary information entered by the user will be forwarded by the adaptation module 116 to the dietary module 123, which can store and / or utilize the dietary information. The dietary module 123 can use the dietary information entered by the user to generate a dietary calculation module 125. The dietary calculation module 125 calculates the calorie intake of the dietary data entered by the user, and analyzes whether the patient's dietary content, calorie intake, and nutrients meet the predetermined criteria based on the information about the patient. After completing the calculation, the dietary calculation module 125 returns the analysis to the dietary module 123.
[0047] If the token is parsed using the exercise information entered by the user (if any), the exercise information entered by the user will be forwarded from the adaptation module 116 to the exercise module 127. The exercise module 127 can store the exercise information entered by the user, and can generate an exercise calculation module 129, which then calculates the exercise consumption of the exercise record and analyzes whether the exercise performed by the user and the calories consumed meet the predetermined criteria based on the information entered by the user. After completing the calculation, the exercise calculation module 129 returns the analysis result to the exercise module 127.
[0048] If blood glucose information is included in the token during parsing, the blood glucose information will be forwarded from the adaptation module 116 to the blood glucose control module 118. The blood glucose control module 118 can generate a blood glucose calculation module 120, which can use the blood glucose information to predict and calculate the changes in the patient's fasting blood glucose, blood glucose before and after breakfast, blood glucose before and after lunch, and blood glucose before and after dinner, and analyze whether it reaches the reasonable blood glucose range in the protocol 151, and determine the risk of hyperglycemia and / or hypoglycemia of the user. After the calculation is completed, the result can be returned to the adaptation module 116, and finally returned to the client 104, 106.
[0049] The user module 114 may be used to record the patient's height, weight, age, gender, fatigue level, diagnosis time, clinical classification, dietary preferences, exercise status information, and patient information.
[0050] The blood sugar control module 118 may have rules implemented and / or designed by medical experts so that they can have various sugar control protocols 151 and conditions for which the sugar control protocols 151 are applicable according to their professional knowledge (different sugar control programs are applicable to different heights, weights, ages, genders, living habits and blood sugar values, etc.). The database 132 may store various sugar control protocols 151.
[0051] The blood glucose control module 118 can use the recorded fasting blood glucose, blood glucose before and after breakfast, blood glucose before and after lunch, blood glucose before and after dinner, blood pressure (systolic and diastolic) and glycated hemoglobin to enable the blood glucose calculation module 120 to propose a protocol 151 for the user. The blood glucose control module 118 can use the recorded data and the data entered by the user through the user module 114 to query the applicable conditions in the database 132 to match and select the appropriate blood glucose control protocol 151 for the patient.
[0052] The diet module 123 may also generate a diet calculation module 125 to generate a diet plan for the patient based on the selected protocol according to the user's daily diet and exercise schedule to achieve physiological goals, such as glycated hemoglobin HbA1c levels.
[0053] The diet module 123 can also be used to record the patient's daily diet data and provide nutritional analysis, recommended recipes, recommended intake and other functions based on the target diet standard. The sugar control diet calculation module recommends nutritionally balanced recipe data, diet record analysis, calorie intake calculation and evaluation, and summarizes diet reports based on the user's basic information, life data, diet preferences and other information.
[0054] The exercise module 127 can record the patient's daily exercise data and generate an exercise calculation module 129 to provide exercise analysis, exercise program, recommended exercise consumption and / or other functions related to physical health.
[0055] The exercise calculation module 129 recommends a reasonable exercise plan for the user, analyzes exercise records, calculates and evaluates exercise consumption, and compiles exercise reports based on the user's basic information, life data, exercise preferences, exercise contraindications and other information.
[0056] Resource scheduler 110 can schedule requests to perform actions to one or more virtual servers 122, each having a virtual processor 124, virtual memory 126, and virtual disk space 128. Virtual servers 122 can be executed on one or more servers 121 on server farm 119, as scheduled and activated by resource scheduler 110.
[0057] Figure 2 A block diagram of a computing device for microservices-based patient management according to an embodiment of the present disclosure is shown. Figure 2 The computing device 200 may be Figure 1The computing device 200 includes an I / O interface 210 for communicating therein. The computing device 200 includes a data store 204, a processor 206, a network interface 208, a memory 225, and a user I / O device 226. The data store 204 stores data and may be a hard drive, a flash drive, a thumb drive, a volatile memory, a non-volatile memory, a semi-volatile memory, etc. The processor 206 may execute one or more processor-executable instructions 212, which may be stored in the data store 204 and / or the memory 225. For example, the processor 206 may execute processor-executable instructions 212 stored in the memory 225 that are retrieved from the data store 204. The memory 225 also includes program data 214, which may include information related to the processor-executable instructions 212. Computing device 200 may include user I / O devices 226 such as cursor device 230 (eg, touch screen or mouse), keyboard 232 (virtual or physical), and / or monitor 228 (which may be a touch screen). Computing device 200 communicates with network 202 via network interface 208 .
[0058] although Figure 2 The computing device 200 can be used as Figure 1 100, but in some embodiments, the patient management functionality may reside entirely in Figure 2 The computing device 200 is configured as follows. For example, Figure 1 The management module 112 may reside as the management module 250 in Figure 2 The processor executable instructions 212 are within. For example, Figure 2 The user module 234, the adaptation module 236, the blood glucose control module 238, the blood glucose calculation module 240, the diet module 241, the diet calculation module 244, the exercise module 246 and the exercise calculation module 248 may have the same or similar functionality as the user module 114, the adaptation module 116, the blood glucose control module 118, the blood glucose calculation 120, the diet module 123, the diet calculation module 125, the exercise module 127 and the exercise calculation module 129, respectively. The database 251 may be similar to Figure 1 The database 132 of the embodiment of the present invention. The database 251 may be, for example, a SQLite 3 database embedded in the computing device 200. Therefore, Figure 2 The user account 252 and the protocol 254 may be the same as the user account 150 and the protocol 132, respectively.
[0059] Thus, in some embodiments, the management module 250 may reside entirely on a local device (e.g., on a computer 104, a mobile device 106, etc.), may be partially located within a cloud service provider 102, and / or may be organized in a hybrid local and cloud configuration. In some embodiments, the management module 250 may be an application that may be executed on a computer 104, a mobile device 106, a cloud service provider 102, a computing device 200, etc., or some combination thereof.
[0060] Figure 3 The overall call flow of the management module 112 according to an embodiment of the present disclosure is shown. The module device 106, the computer device 104 and / or the computing device 200 can be considered as part of the client layer 2. The adaptation service layer 304 can use Figure 1 Adaptation module 116 or Figure 2 The adaptation service layer 304 interfaces the client layer 302 with the backend service layer 306. The backend service layer 306 may include a blood glucose control module 238, a diet module 241, and an exercise module 246 executed by the user module 234. The backend service layer 306 may generate an algorithm in an algorithm layer 308 such as a diet calculation module 244 or an exercise calculation module 248.
[0061] The overall calling process of the catering management service is Figure 4 As shown in the figure, the overall calling process of the exercise management service is Figure 5 The overall call flow of the blood glucose control program management service is shown in Figure 6 Shown in.
[0062] Reference again Figure 3 , the user service uses the token as an input parameter, which is parsed by the adaptation service layer 304. The input may include complete user information, interface routing, which may then be processed by the adaptation service 4 to pass the processed data to the adaptation service layer 304. After the adaptation service layer 304 processes the data, one or more of the modules 234, 238, 241, 246 may receive the processed data and transmit a response back to the calling client in the client layer 302.
[0063] Figure 4A flow chart of a method 400 for selecting a protocol 151 for a user according to an embodiment of the present disclosure is shown. The method 400 includes actions 402-416. In action 402, the client initiates a request. The request may include a token. In action 404, the adaptation module receives the request, and in action 406, the adaptation layer processes the request and user data and verifies the token received in action 404. In action 408, the blood glucose control module ingests user data, such as the user's age, gender, height, weight, labor status, and blood glucose value. In action 410, the diet module is requested to perform a recommendation calculation service to obtain a diet recommendation, and in action 412, the exercise module is requested to perform a calculation service for a recommended exercise routine. The diet module can generate a diet calculation module 125 to calculate a diet, and the exercise module can generate an exercise calculation module 129 to calculate an exercise routine. In action 414, the blood glucose control module combines data from the diet module and the exercise module to determine an appropriate protocol 151. In action 416, the protocol 151 is transmitted to the user.
[0064] Figure 5 A flow chart of a method for calculating a diet according to an embodiment of the present disclosure is shown. Method 500 includes actions 502-514. In action 502, the client initiates a request. In action 504, the adaptation module receives the request, and in action 506, the adaptation layer processes the request and user data, and verifies the token received in action 504. In action 508, the diet module ingests user data, such as the user's age, gender, height, weight, labor status, blood sugar value and / or other data. In action 510, the diet module is requested to perform calculations to provide diet recommendations. In action 512, the diet recommendations are transmitted to the adaptation layer. Action 514 transmits the diet recommendations to the user.
[0065] Figure 6 A flow chart of a method 600 of calculating an exercise routine according to an embodiment of the present disclosure is shown. In act 602, a client such as a mobile device 106 initiates a request. A token may be generated and sent along with the request. The token may be a security token as described herein. Act 604 is where the adaptation module 116, 236 receives the request. In act 606, the adaptation layer 304 processes the request and user data and verifies the token. The adaptation layer 304 may process the token by verifying the token. In act 608, a request is made to the blood glucose control module 118 to ingest the user data. In act 610, a request is made to the exercise module 127 so that the exercise calculation module 129 can calculate the exercise routine in act 612. Act 614 transmits the exercise routine to the user.
[0066] Figure 7A flow chart of a request process 700 between a client and an adaptation service according to an embodiment of the present disclosure is shown. Consider an example call requesting "record today's diet". The client 702 initiates a request to the adaptation module 704 with a parameter token, date, food name, food quantity, and dietary category, as shown by arrow 1. The adapter module 704 uses the parameter token to call the "get user information" interface of the user module 710, as illustrated by arrow 2. The user module 710 parses the token, obtains the user id, name, age, height, and weight, and returns them to the adapter module 704, as shown by arrow 3. After obtaining the user information, the adapter module 704 uses the parameters of user id, name, age, height, weight, date, food name, food quantity, and dietary category to call the diet module 706. The diet module 706 locates the user's storage location based on the user's information, records the date and food information into the database 132, obtains the diet analysis (shown as a bidirectional arrow 4) according to the diet calculation module 708, and responds to the request of the adaptation service with a result of "record success" or "record failure". The result is "record success" or "record failure". The adapter module 704 splices the data returned from the user module 710 and the diet module 706, and responds to the request from the client 702 with the result of "{user name} record {food name} {success / failure}", thereby completing the Figure 7 The request process shown in .
[0067] Figure 8 A block diagram 800 illustrating dependency injection according to an embodiment of the present disclosure is shown. A backend service 802 may receive dependency injection data from a database 804 via an adapter 806. The system includes a repository 808 for storing database 804 data. A redis 810 server may be used to provide a key-value type of data storage, and a use case 812 provides appropriate dependencies based on predetermined conditions.
[0068] Fig. 9 A block diagram 900 is shown to illustrate the process of updating a module according to an embodiment of the present disclosure. The code is initially submitted 914 to, for example, a repository 808. The build pipeline is then constructed in action 916. In action 902, source code is pulsed from the repository 808. A base image is generated in action 904, which is then compiled in action 906. In action 912, the software is pushed to be deployed via a deployment action 910. The software is then started in action 908.
[0069] Without departing from the present disclosure, those skilled in the art may design various substitutions and modifications. Therefore, the present disclosure is intended to include all such substitutions, modifications and variations. Additionally, although several embodiments of the present disclosure have been shown in the drawings and / or discussed herein, this is not intended to limit the present disclosure to this, because the scope of the present disclosure is intended to be as broad as allowed in the art, and the specification should also be understood in the same manner. Therefore, the above description should not be interpreted as restrictive, but only as an example of a specific embodiment. And, those skilled in the art will envision other modifications within the scope and spirit of the appended claims. Other elements, steps, methods and techniques that are not substantially different from those described above and / or in the appended claims are also within the scope of the present disclosure.
[0070] Only the embodiments shown in the drawings are presented to demonstrate certain examples of the present disclosure. Moreover, the drawings described are illustrative only and not restrictive. In the drawings, for the purpose of illustration, the sizes of some elements may be exaggerated and not drawn to a specific scale. Additionally, depending on the context, the elements shown in the drawings with the same numbers may be the same elements or may be similar elements.
[0071] Where the term "comprising" is used in the present specification and claims, it does not exclude other elements or steps. Where an indefinite or definite article, such as "a", "an" or "the" is used when referring to a singular noun, this includes the plural of the noun unless otherwise specifically stated. Therefore, the term "comprising" should not be interpreted as being limited to the items listed thereafter; it does not exclude other elements or steps, and the scope of the expression "a device comprising items A and B" should not be limited to a device consisting only of components A and B. This expression indicates that, with respect to the present disclosure, the only relevant components of the device are A and B. In addition, the terms "first", "second", "third", etc., whether used in the specification or in the claims, are provided to distinguish similar elements, and not necessarily to describe a sequential or chronological order. It should be understood that the terms so used are interchangeable where appropriate (unless clearly disclosed otherwise), and that the embodiments of the present disclosure described herein can operate in other orders and / or arrangements than those described or illustrated herein.
Claims
1. A system for provisioning microservices for health management, the system comprising: a client device configured to communicate with a user to receive user data; A user module configured to record user data; an adapter module configured to receive a request from a client device; a blood glucose control module configured to select a blood glucose control protocol according to user data; a dietary module configured to receive dietary data, wherein the dietary module is configured to provide dietary recommendations to a user via a client device; as well as An exercise module is configured to receive exercise data and provide exercise recommendations to a user via a client device.
2. The system according to claim 1, wherein: The client device is one of a smartphone, an applet, a computer, a wearable exercise monitor, and a smart watch.
3. The system according to claim 1, wherein: The user module is configured to record user data, including height, weight, age, gender, fatigue level, diagnosis time, clinical classification, dietary preferences and / or exercise status information.
4. The system according to claim 1, wherein: The blood glucose control module is configured to adapt at least one of the dietary recommendation and the exercise recommendation to manage blood glucose levels.
5. The system according to claim 1, wherein: The client device is configured to register a user and cause generation of a unique patient id and token.
6. The system according to claim 5, wherein: The unique patient id and token are generated by a remote server.
7. The system according to claim 5, wherein: The adapter module is configured to process the token before processing the request.
8. The system according to claim 1, wherein: The diet module enables the diet calculation module to calculate calorie intake, analyzes whether the diet data meets a predetermined standard based on the user data, and returns the diet analysis result to the diet module.
9. The system according to claim 1, wherein: The exercise module causes the exercise calculation module to analyze whether the exercise data meets a predetermined criterion based on the user data to generate an analysis and transmit the analysis to the exercise module.
10. The system according to claim 9, wherein: The analysis includes exercise recommendations.
11. The system according to claim 1, wherein: The blood glucose control module enables a blood glucose calculation module to receive the first and second blood glucose measurement values and calculate a risk factor, wherein the blood glucose calculation module is configured to transmit the risk factor to the adaptation module.
12. The system according to claim 11, wherein: The client device is configured to communicate the risk factor to a user.
13. The system of claim 1, wherein: The modules are implemented as one or more microservices.
14. The system of claim 1, wherein: The module makes use of dependency injection.
15. The system of claim 1, wherein: The modules are implemented as a plurality of processor-executable instructions configured for execution by at least one processor.
16. The system of claim 15, wherein: The modules are stored on a non-transitory computer readable medium.
17. The system of claim 1, wherein: Each module is implemented as a microservice.
18. A method for provisioning microservices for health management, the method comprising: Receive user data; Record user data; receiving a request from a client device; Select blood sugar control protocol based on user data; receiving dietary data; providing dietary recommendations to the user via the client device; receiving exercise data; as well as Exercise recommendations are provided to the user via the client device.
19. The method according to claim 18, wherein: The client device is one of a smartphone, an applet, a computer, a wearable exercise monitor, and a smart watch.
20. The method according to claim 18, wherein: The user data includes height, weight, age, gender, fatigue level, diagnosis time, clinical classification, dietary preferences and / or exercise status information.
21. The method of claim 18, further comprising adapting at least one of the dietary recommendation and the exercise recommendation to manage blood glucose levels.
22. The method according to claim 18, wherein: The client device is configured to register a user and cause generation of a unique patient id and token.
23. The method according to claim 22, wherein: The unique patient id and token are generated by a remote server.
24. The method of claim 22, further comprising processing the token before processing the request.
25. The method of claim 28, further comprising: enabling the diet calculation module to calculate calorie intake; Analyzing whether the dietary data meets predetermined standards based on the user data; as well as Return the dietary analysis results to the user.
26. The method of claim 18, further comprising: causing the exercise calculation module to analyze whether the exercise data meets predetermined criteria based on the user data to generate an analysis; as well as The analysis is communicated to the user.
27. The method according to claim 26, wherein: The analysis includes exercise recommendations.
28. The method of claim 18, further comprising: causing a blood glucose calculation module to receive first and second blood glucose measurement values; Calculate risk factors; as well as The risk factor is communicated to the user.
29. The method of claim 18, wherein: The actions are implemented using one or more microservices.
30. The method of claim 18, further comprising injecting dependencies within a software module configured to perform the method when executed on a processor.
31. The method according to claim 30, wherein: The modules are stored on a non-transitory computer readable medium.
32. The method of claim 18, wherein: Leverage microservices to implement each action.
33. A system for provisioning microservices for health management, the system comprising: A processor component configured to provide: A component for receiving user data; Components for recording user data; means for receiving a request from a client device; means for selecting a blood glucose control protocol based on user data; A component for receiving dietary data; means for providing dietary recommendations to a user via a client device; means for receiving exercise data; as well as Means for providing exercise recommendations to a user via a client device.
34. The system of claim 33, wherein: The processor means is further configured to provide means for implementing a method according to one of claims 19-32.
35. A system for provisioning microservices for health management, the system being implemented by an operation set of processor-executable instructions, the system comprising one or more processors configured to execute the operation set of processor-executable instructions, wherein the operation set of processor-executable instructions is configured to implement a method according to one of claims 18-32.
36. A readable medium storing software which, when executed by a computer, implements a method for providing dietary recommendations, the method comprising one of claims 18-32.
37. The readable medium storing software according to claim 36, wherein: The readable medium is a non-transitory computer readable medium.
38. A computer program product stored on a computer usable medium, comprising computer readable program means for causing a computer to implement the method according to one of the claims 18 to 32.
