The present disclosure relates to the field of computer technologies, and in particular, relates to a method and an apparatus for displaying data, and a terminal and a storage medium thereof.
With the development of computer technologies and medical technologies, users have an increasingly urgent demand for convenient knowing of their own health states to monitor the health states. A health state of a living individual can be monitored by acquiring data of multiple aspects reflecting the health state of the living individual and assessing the health state of the living individual based on the data of the multiple aspects.
The present disclosure provides a method and an apparatus for displaying data, and a terminal and a storage medium thereof.
In a first aspect of the present disclosure, a method for displaying data is provided. The method includes: displaying a first state diagram, wherein the first state diagram indicates a vital state of a living individual; receiving items to be assessed, wherein the items to be assessed are intended to assess the vital state of the living individual; and displaying a second state diagram, wherein the second state diagram is a result of updating the first state diagram based on the items to be assessed.
Optionally, the second state diagram is a result of growing the first state diagram based on an integrity degree of the items to be assessed.
Optionally, the second state diagram is a result of assessing the vital state of the living individual based on the items to be assessed and adjusting a color of the first state diagram based on an assessment result of the vital state of the living individual.
Optionally, the second state diagram is a result of adding a first icon onto the first state diagram, wherein the first icon indicates an association relationship between the living individual and a specified defect, and the association relationship is acquired based on analysis of the items to be assessed.
Optionally, the method further includes: receiving a select operation of the first icon; and displaying analysis of the association relationship between the living individual and the specified defect based on the select operation of the first icon.
Optionally, the second state diagram is a result of adding a second icon onto the first state diagram, wherein the second icon indicates a processing assessment value of an operation performed by a user.
Optionally, a redemption icon is displayed in the second state diagram; and in response to displaying the second state diagram, the method further includes: receiving a select operation of the redemption icon; displaying a redemption page of articles to be redeemed by using the processing assessment value based on the select operation of the redemption icon; receiving a select operation on the redemption page; and performing an operation of redeeming an article indicated by the select operation on the redemption page by using the processing assessment value of the user, based on the select operation on the redemption page.
Optionally, an icon for prompting to complete the items to be assessed is further displayed on a display interface of at least one of the first state diagram and the second state diagram.
Optionally, an icon for prompting to view interaction knowledge related to the items to be assessed is further displayed on the display interface of at least one of the first state diagram and the second state diagram.
Optionally, an assessment icon is displayed on the display interface of at least one of the first state diagram and the second state diagram; and the method further includes: receiving a select operation of the assessment icon; acquiring a score for assessing the vital state of the living individual based on the items to be assessed with instruction of the select operation; and displaying a third icon on the display interface of the at least one of the first state diagram and the second state diagram, wherein the third icon interprets the score.
Optionally, the method further includes: receiving a select operation of the score; and displaying score details of the score based on the select operation of the score.
Optionally, prior to displaying the second state diagram, the method further includes: assessing the vital state of the living individual based on the items to be assessed; and the displaying the second state diagram includes: displaying the second state diagram based on an assessment result of the vital state of the living individual.
Optionally, prior to displaying the second state diagram, the method further includes: sending the items to be assessed to a server; and receiving an assessment result of the vital state of the living individual sent by the server, wherein the assessment result is acquired based on the items to be assessed; and the displaying the second state diagram includes: displaying the second state diagram based on the assessment result of the vital state of the living individual.
Optionally, both the first state diagram and the second state diagram are tree structure diagrams.
Optionally, the vital state of the living individual includes a health state of the living individual.
In a second aspect, a terminal is provided according to the embodiments of the present disclosure. The terminal includes a memory, a processor, and a computer program stored on the memory and capable of being run by the processor, wherein the program, when run by the processor, causes the processor to perform the method for displaying data as described in the first aspect.
In a third aspect, a non-transitory computer-readable storage medium storing a computer program therein is provided according to the embodiments of the present disclosure, wherein the computer program, when run by a processor of a device, causes the device to perform the method for displaying data as described in the first aspect.
The present disclosure will be further described in detail hereinafter in combination with the accompanying drawings and the embodiments. It can be understood that the specific embodiments described herein are only configured to explain content related to the present disclosure, but not to limit the present disclosure. In addition, it should be noted that for convenience of description, only parts related to the present disclosure are shown in the accompanying drawings.
It should be noted that the embodiments in the present disclosure and the items in the embodiments may be combined with each other without conflict. The present disclosure will be described in detail hereinafter with reference to the accompanying drawings and in combination with the embodiments.
At present, in case of displaying a health state of a living individual, only data reflecting the health state of the living individual is displayed. As a result, the living individual is unable to directly perceive his/her actual health state, adversely affecting the user experience.
In the embodiments of the present disclosure, a vital state of a living individual can be assessed from multiple dimensions by utilizing items to be assessed of the living individual, and can be displayed to a user in a graphic fashion, such that the user can visually know the vital state of the living individual. Furthermore, by acquiring the items to be assessed of the living individual, a state diagram for indicating the vital state of the living individual is updated, such that a display mode of the state diagram is enriched, enabling the vital state of the living individual to be displayed visually and effectively.
In an embodiment, a method for displaying data according to the embodiment of the present disclosure may be performed with a system architecture of a terminal and a server. That is, a system capable of transmitting data may be provided, and may include the server and the terminal. The terminal may access the server over a wireless network and send items to be assessed of a living individual to the server. The server may assess a vital state of the living individual based on the items to be assessed, and send an assessment result to the terminal, such that the terminal can display the vital state of the living individual based on the assessment result.
Optionally, the server may store multiple algorithm rules for assessing the vital state of the living individual, and may assess the vital state of the living individual based on the items to be assessed according to the algorithm rule. For example, the server may store an assessment algorithm for assessing an association relationship between the living individual and various defect indicators, such as an assessment algorithm for assessing whether the living individual suffering from hypertension, an assessment algorithm for assessing whether the living individual suffering from intermittent claudication, and an assessment algorithm for assessing whether the living individual suffering from common diseases like diabetes. Furthermore, the server may also store a comprehensive assessment algorithm. That is, in response to acquiring the items to be assessed of the living individual, a current comprehensive state of the living individual may be determined by comprehensive analysis based on all the items to be assessed. In addition, the server may also store all kinds of information of the user, such as account information, points information and historical data, and the server may provide the information to the terminal. Optionally, the server may be achieved by a server or a server cluster including a plurality of servers, which is not specifically limited in the embodiments of the present disclosure.
The terminal may be a mobile terminal or a computer. The terminal may display a specified operation interface, and the user may input the items to be assessed on the operation interface, such that the terminal can display a state diagram on the operation interface based on the items to be assessed, thereby displaying the vital state of the living individual visually and effectively. An application program, namely, a client, may be run in the terminal. At this time, the specified operation interface is an operation interface of the client. The user may input the items to be assessed on the operation interface of the client after registering and logging in an account at the client; or, in the specified operation interface, the items to be assessed may also be input on a webpage for displaying the vital state of the living individual.
In another embodiment, a method for displaying data according to the embodiment of the present disclosure may be performed by a terminal. In this embodiment, the terminal may receive items to be assessed of a living individual input by a user; a vital state of the living individual is assessed based on the items to be assessed; and a state diagram is displayed in the terminal based on an assessment result.
For convenience of understanding and explanation, a method and an apparatus for displaying data, and a terminal and a storage medium thereof according to the embodiments of the present disclosure are described in detail hereinafter with reference to
In S110, a first state diagram is displayed, wherein the first state diagram indicates a vital state of a living individual.
In S120, items to be assessed are received, wherein the items to be assessed are intended to assess the vital state of the living individual.
In S130, a second state diagram is displayed, wherein the second state diagram is a result of updating the first state diagram based on the items to be assessed.
In the method for displaying data according to the embodiment of the present disclosure, the first state diagram indicating the vital state of the living individual is displayed, and the first state diagram is updated based on the items to be assessed in response to receiving the items to be assessed to display the second state diagram, such that the state diagram indicating the vital state of the living individual changes with the change of the items to be assessed. Thus, the influence of the items to be assessed on the vital state of the living individual is shown effectively and visually, enabling the user to visually grasp the vital state of the living individual and improving the user experience.
Optionally, the first state diagram and the second state diagram may only be contents displayed in some regions of a terminal operation interface. That is, in case of displaying the first state diagram, the terminal actually displays a first operation interface which includes the first state diagram. In case of displaying the second state diagram, the terminal actually displays the first operation interface which includes the second state diagram. Furthermore, the items to be assessed may be input in the first operation interface or displayed in another operation interface displayed in the terminal. For example, the items to be assessed may be received in a second operation interface displayed in the terminal. The implementation process of the method for displaying data according to the embodiment of the present disclosure is explained hereinafter by taking the embodiment in which the terminal displays the first state diagram and the second state diagram in the first operation interface and receives the items to be assessed in the second operation interface as an example. In case that the terminal displays the first state diagram and the second state diagram and receives the items to be assessed in an actual example, reference is made to the corresponding contents in the following examples for the practice of the method for displaying the data according to the embodiment of the present disclosure.
At this time, the S110 includes: the terminal displays the first operation interface, wherein the first operation interface includes the first state diagram, and the first state diagram indicates the vital state of the living individual.
In response to the user needs to use the terminal to display the vital state of the living individual, the user may operate the terminal to instruct the terminal to display the first operation interface. The first operation interface may be a main interface when the terminal provides a function of displaying the vital state of the living individual. That is, in response to the user needs to use the terminal to provide the function, the terminal displays the first operation interface. The first operation interface includes the state diagram indicating the vital state of the living individual.
For example, as shown in
Optionally, the first state diagram may be a state diagram that the user does not input the items to be assessed of the living individual. At this time, the first state diagram reflects an initialization state of the vital state of the living individual; or, the first state diagram may be a state diagram reflecting the vital state assessed based on the items to be assessed input by the user last time. The items to be assessed input last time interprets the items to be assessed input in a previous process for viewing the state diagram with respect to this viewing.
In another embodiment, the first state diagram is a state diagram showing the vital state of the living individual, and may be, such as, a tree structure diagram; or, the state diagram may be a structure diagram with another shape as long as different shapes of the state diagram can show vital states of the living individual in different time periods.
In the embodiment of the present disclosure, a biological individual may be the user himself/herself, or may be a person or an animal (such as a pet) that the user cares about. At this time, the vital state of the living individual includes the health state of the living individual. In addition, the method for displaying data according to the embodiment of the present disclosure may also display the vital state of an anthropomorphic biological individual. For example, the method for displaying data according to the embodiment of the present disclosure may also display a growth state of a game character in a game, which is not specifically limited in the embodiments of the present disclosure.
By S120, the terminal receives an operation instruction triggered on the first operation interface, switches the operation interface displayed in the terminal to a second operation interface based on the operation instruction, and receives items to be assessed input on the second operation interface. The operation instruction instructs the terminal to display the second operation interface. The items to be assessed are intended to assess the vital state of the living individual.
In the embodiment of the present disclosure, in response to the user needs to input the items to be assessed, the user may input an operation instruction on the first operation interface to enable the terminal to display the second operation interface, such that the user can input items to be assessed in the second operation interface. As shown in
The items to be assessed are the basis for assessing the vital state of the living individual. That is, the terminal or server may assess the vital state of the living individual based on the items to be assessed. Optionally, the items to be assessed may include monitoring information and basic information. The basic information may include at least one of: age, height/weight, marital state, disease history, smoking, drinking, living environment, medication, and the like. The monitoring information may include at least one of: daily exercise steps, daily sleep duration, blood pressure, heart rate, body temperature, blood sugar, uric acid, cholesterol, and the like. Here, the basic information may be manually input by the user, and the monitoring information may be automatically uploaded by a monitoring instrument having a binding relationship with the terminal.
Optionally, the items to be assessed may also include extended information. For example, the function of displaying the vital state of the living individual provided by the terminal may also include a function of answering health knowledge-related questions. At this time, the items to be assessed may also include question answering of the user. For another example, the items to be assessed may also include disease prediction of the living individual, such as the prediction of the living individual suffering from hypertension, diabetes, intermittent claudication, and osteoporosis.
In an exemplary embodiment, as shown in
By S130, the terminal switches the operation interface displayed in the terminal to the first operation interface based on the items to be assessed, wherein the first operation interface includes a second state diagram which is a result of updating the first state diagram based on the items to be assessed.
In response to completing input of the items to be assessed, the user may further operate the second operation interface, such as taping an OK button, to indicate the terminal that the input of the items to be assessed has been completed, such that the terminal can process the received items to be assessed and display influence of the items to be assessed on the first state diagram in the first operation interface. The influence may be shown by change of the second state diagram relative to the first state diagram. That is, in response to completing the input of the items to be assessed, the terminal may display the second state diagram in the first operation interface based on the items to be assessed, wherein the second state diagram is a result of updating the first state diagram based on the items to be assessed.
In a first example, the terminal may assess the vital state of the living individual based on the items to be assessed, and display the second state diagram based on an assessment result of the vital state of the living individual.
In a second example, the operation of assessing the vital state of the living individual based on the items to be assessed may be performed by the server. At this time, the terminal may send the items to be assessed to the server, such that the server can assess the vital state of the living individual based on the items to be assessed, and the server can send an assessment result of the vital state of the living individual to the terminal. Accordingly, the terminal may receive the assessment result of the vital state of the living individual sent by the server, and switch the operation interface displayed in the terminal to the first operation interface based on the assessment result of the vital state of the living individual.
In the second example, the terminal may encapsulate the received items to be assessed, and send the encapsulated items to be assessed to the server, such that the server can analyze the items to be assessed, and return the analysis result to the terminal. Thus, the terminal can display the second state diagram in the first operation interface.
Optionally, the second state diagram may be a state diagram regenerated by the terminal based on the assessment result; or, the second state diagram may be a state diagram acquired by the terminal dynamically processing the first state diagram based on the assessment result, which is not specifically limited in the embodiments of the present disclosure.
In order to better understand the practice of displaying the second state diagram in the first operation interface by the terminal based on the items to be assessed, the practice of displaying the second state diagram in the first operation interface is explained hereinafter by taking analysis by the server based on the items to be assessed as an example with reference to
Optionally, the example of the second state diagram may at least include the following.
In a first example of the second state diagram, the second state diagram may be a result of growing the first state diagram based on an integrity degree of the items to be assessed. Here, the growing may include positive growing and negative growing of the first state diagram.
Optionally, a total number of items to be assessed that are required to be input may be set. In response to inputting items to be assessed in the second operation interface, a ratio of a total number of the input items to be assessed to the total number of the required items to be assessed may be determined as an integrity degree of the items to be assessed. Furthermore, if the integrity degree of the displayed first state diagram is less than the integrity degree in response to inputting the items to be assessed, the second state diagram is a result of positively growing the first state diagram. If the integrity degree of the displayed first state diagram is greater than the integrity degree in response to inputting the items to be assessed, the second state diagram is a result of negatively growing the first state diagram.
The integrity degree of the items to be assessed input in the second operation interface may be acquired by comparing a total number of input items to be assessed of the displayed first state diagram for triggering the second operation interface and a total number of the items to be assessed input in the second operation interface. For example, in case that a size of the state diagram reflects the integrity degree of the items to be assessed, in response to inputting the items to be assessed in the second operation interface, if the number of the items to be assessed is less than that of the items to be assessed of the displayed first state diagram, it means that an integrity degree of the items to be assessed in response to the items to be assessed in the second operation interface is less than that of the items to be assessed of the displayed first state diagram. Thus, the first state diagram may be negatively processed. That is, the second state diagram may be acquired by reducing the size of the first state diagram. For another example, in case that the size of the state diagram reflects the integrity degree of the items to be assessed, in response to inputting the items to be assessed in the second operation interface, if the number of the items to be assessed is greater than that of the items to be assessed of the displayed first state diagram, it means that the integrity degree of the items to be assessed in response to inputting the items to be assessed in the second operation interface is greater than that of the items to be assessed of the displayed first state diagram. Thus, the first state diagram may be positively processed. That is, the second state diagram may be acquired by increasing the size of the first state diagram.
Furthermore, the total number of the items to be assessed that are required to be input may be set, and different ratios of the total number of the input items to be assessed to the total number of the items to be assessed that are required to be input correspond to state diagrams of different sizes; or, different ratio ranges may be set to correspond to the state diagrams of the different sizes. For example, in case that the ratio is in the range of [0, 15%], the size of the state diagram is set as a first-order size. In case that the ratio is in the range of (15%, 45%], the size of the state diagram is set as a second-order size. In case that the ratio is in the range of (45%, 70%], the size of the state diagram is set as a third-order size. In case that the ratio is in the range of (70%, 90%], the size of the state diagram is set as a fourth-order size. In case that the ratio is in the range of (90%, 100%], the size of the state diagram is set as a fifth-order size.
Optionally, in response to receiving the items to be assessed input in the second operation interface, the terminal may send all the input items to be assessed to the server. In response to receiving the items to be assessed, the server may count the number of the items to be assessed and determine the size of the state diagram based on the number of the items to be assessed, such that the terminal can adjust the first state diagram to acquire the second state diagram based on the determined size. Here, the number of the items to be assessed interprets the total number of the items to be assessed. In addition, different weights may be set for different items to be assessed based on different influence degrees of the items to be assessed on the vital state of the living individual, such that the size of the state diagram can be determined by referring to the weight and the integrity degree of the items to be assessed.
It can be understood that a mapping relationship between the sizes of the state diagrams and the number of the items to be assessed may be stored in the server, and different numbers of the items to be assessed correspond to the different sizes of the state diagrams.
In an embodiment, the mapping relationship may also be interpreted as a corresponding relationship between serial numbers of state diagrams and the number of the items to be assessed. Here, the state diagrams with different serial numbers have different sizes. For example, the server may store a plurality of state trees identified by a plurality of serial numbers respectively. The state trees identified by the different serial numbers have different sizes. In addition, the serial numbers may correspond to number ranges of the items to be assessed. For example, the serial number 1 corresponds to the number range of no more than five items to be assessed; the serial number 2 corresponds to the number range of more than 5 and no more than 10 items to be assessed; the serial number 3 corresponds to the number range of more than 10 and no more than 15 items to be assessed; the serial number 4 corresponds to the number range of more than 15 and no more than 20 items to be assessed; and the serial numbers 1 to 4 respectively identify state trees with different sizes, and the greater the serial number is, the larger the size of the identified state tree is.
In response to the user inputting a plurality of items to be assessed in the second operation interface, the terminal may send the items to be assessed to the server, and the server may count the number of the items to be assessed input in this time, determine a serial number corresponding to the items to be assessed based on the mapping relationship between the serial numbers of the state diagrams and the number range of the items to be assessed, and determine a state tree corresponding to the items to be assessed input this time accordingly. For example, the user inputs 12 items to be assessed, the corresponding state tree with the serial number 3 is determined. An analysis result returned by the server to the terminal carries the serial number 3 of the state tree, or a size of the state tree is directly added to the analysis result based on the serial number 3.
In response to receiving the analysis result sent by the server, the terminal may determine the size of the second state diagram, and perform growth processing on the first state diagram, such as directly replacing the first state diagram with the size indicated by the analysis result to display the second state diagram with the size indicated by the analysis result on the first operation interface, such that the second state diagram is presented as the result of growing the first state diagram.
For example, as shown in
It can be understood that by completing the items to be assessed many times by the user, the process of gradually increasing the state diagram is presented on the first operation interface. That is, the first state diagram may be an initial diagram or a state diagram displayed by the terminal prior to completing the items to be assessed this time. The second state diagram may be the state diagram in response to completing the items to be assessed this time.
In a second example of the second state diagram, the second state diagram is a result of assessing the vital state of the living individual based on the items to be assessed and adjusting a color of the first state diagram based on an assessment result of the vital state of the living individual.
In this example, different colors of the state diagrams may be adopted to reflect different vital states of the living individual. For example, in case that the vital state of the living individual includes a health state of the living individual and the state diagram is a tree structure diagram, the color of leaves in the tree structure diagram may be adopted to represent the health state of the living individual. The greener the leaves in the tree structure diagram are, the healthier the living individual is; and the yellower the leaves in the tree structure diagram are, the unhealthier the living individual is. Accordingly, in response to dynamically processing the first state diagram, the terminal may adjust the color of the first state diagram, such that the second state diagram is presented as a result of adjusting the color of the first state diagram.
In response to receiving the items to be assessed sent by the terminal, the server may analyze each of the items to be assessed, assign values to all the items to be assessed according to a predetermined rule, and assess the vital state of the living individual based on the assigned values of the items to be assessed. Here, the assigned values of the items to be assessed reflect an influence degree of the items to be assessed on the vital state of the living individual, namely, a loss degree to the vital state of the living individual. For example, the assigned value reflecting general influence may be less than 2, the assigned value reflecting moderate influence may be 2-3, and the assigned value reflecting severe influence may be more than 3. That is, if the assigned value of each of the items to be assessed is greater than 2, it means that the items to be assessed are abnormal. For the item under assessment reflecting a sleep duration, if the sleep duration input by the user is 5 hours, a corresponding assigned value is 3, which means that the item under assessment is abnormal; if the sleep duration input by the user is 9 hours, a corresponding assigned value is 1, which means that the item under assessment is normal.
In response to assessing the vital state of the living individual based on the assigned values of the items to be assessed, the server may count the number of each of values in the assigned values of the items to be assessed, and determine the color of the state diagram based on the numbers of the different values. For example, the number of items to be assessed whose assigned values is greater than or equal to 3 may be counted, and the color of the state diagram is determined based on the counted number, such that the vital state of the living individual can be shown by the color.
It can be understood that the server may store a mapping relationship between numbers of abnormal items to be assessed and colors of the state diagrams, such as a mapping relationship between the number of items to be assessed with an assigned value greater than 2 and a color of the state diagram. For example, in case that the state diagram is a state tree, if the assigned values of the items to be assessed are less than 2, the leaves of the state tree are green, which means that all the items to be assessed are normal; if the assigned values of the items to be assessed include values not less than 2 and not greater than 5, the leaves of the state tree are light yellow, which means that the items to be assessed are slightly abnormal; if the assigned values of the items to be assessed include values greater than 5 and not greater than 10, the leaves of the state tree are yellower, which means that the items to be assessed are seriously abnormal; and so on.
In response to statistically analyzing the assigned values of the items to be assessed input by the user and determining the number of the abnormal items to be assessed, the terminal may determine the color of the state diagram to be displayed, such as the color of the leaves of the state tree. Furthermore, a corresponding relationship between the colors of the state diagrams and the numbers of the items to be assessed may be interpreted as a corresponding relationship between serial numbers of the state diagrams and the numbers of the items to be assessed. The different serial numbers of the state diagrams correspond to the different colors of the state diagrams. Here, the analysis result returned by the server to the terminal may include the serial number of the state diagram, or may include the color of the state diagram.
Accordingly, the terminal may acquire the color to be adjusted by analyzing the analysis result, and adjust the first state diagram displayed by the terminal into a second state diagram based on the color. The second state diagram is acquired by color adjustment based on the first state diagram, for example, replacing a color in the first state diagram with a corresponding color indicated by the analysis result, such that the second state diagram is presented as a result of adjusting the color of the first state diagram. As shown in
Optionally, the items to be assessed and the corresponding assigned values may be shown in Table 1.
It should be noted that if the user does not input the date of birth or age, the server may calculate an assigned value of the age by using a set default value. If weight and height are not input, an assigned value of the BMI may be calculated by using a default value. If daily steps are not input, a default assigned value 2 may be set as an assigned value of the daily steps. If interaction knowledge is not input, the default assigned value 2 may be set as an assigned value of the interaction knowledge, while default assigned values of other items to be assessed may be 0.
Optionally, in order to comprehensively analyze the assigned values of the items to be assessed, an algorithm may also be provided, and calculates a score of the vital state of the living individual based on the assigned values of the items to be assessed. Accordingly, a third icon may also be displayed on the first operation interface, and interprets a score acquired by assessing the vital state of the living individual based on the assigned values of the items to be assessed.
In an embodiment, the score may be automatically calculated based on the assigned values of the input items to be assessed.
In another embodiment, an assessment icon may be displayed on a display interface of at least one of the first state diagram and the second state diagram. Accordingly, the method further includes: receiving a select operation of the assessment icon; acquiring a score for assessing the vital state of the living individual based on the items to be assessed with instruction of the select operation; and displaying a third icon on the display interface of the at least one state diagram, wherein the third icon interprets the score. That is, in this embodiment, the operation of calculating the score based on the assigned values of the input items to be assessed can be performed with triggering of the user's select operation of the assessment icon.
In addition, the above two operations of calculating the score may be performed by the terminal or the server. In case that each of the operations is performed by the server, the terminal may send the input items to be assessed to the server in response to acquiring the input items to be assessed, such that the server can calculate the score based on the input items to be assessed, and the terminal receives the score calculated by the server.
Further, in case that the third icon is displayed on the first operation interface, the method for displaying data may further include that the terminal receives the select operation of the third icon by the user, and displays score details of the score based on the select operation of the third icon. In an exemplary embodiment, as shown in
Optionally, a process of calculating the score of the vital state of the living individual based on the assigned values of the items to be assessed are described hereinafter.
In S1, a basic score is determined.
In the embodiments of the present disclosure, a default total score of the vital state may be set to 100 points. The basic score may be calculated based on the assigned value of each of the items to be assessed input by the user. In an embodiment, an example of calculating the basic score is described as follows.
In case that the assigned values of all the items to be assessed input by the user are ≤2, it may be determined that the basic score is 100 points. In case that the assigned values of all the items to be assessed input by the user include an assigned value of 3 but do not include an assigned value ≥4, it may be determined that the basic score is 85 points. In case that the assigned values of all the items to be assessed input by the user include the assigned value ≥4, it may be determined that the basic score is 70 points. It should be noted that a condition for calculating the basic score may be adjusted according to actual needs, and the above condition is only an example for the implementation.
In S2, a weight assigned value is calculated.
In S21, a total assigned value is acquired by calculating a sum of assigned values of all items to be assessed.
In S22, an assigned value coefficient is calculated based on the total assigned value.
In an optional embodiment, the total assigned value and the assigned value coefficient satisfy: the assigned value coefficient=1−total assigned value/100.
In S23, an assigned value constant b is determined based on a distribution interval of the assigned value coefficient.
Optionally, a corresponding relationship between distribution intervals of the assigned value coefficients and assigned value constants may refer to Table 2.
S24, the weight assigned value is calculated based on the total assigned value, the assigned value coefficient, and the assigned value constant.
In an optional embodiment, the total assigned value, the assigned value coefficient, the assigned value constant, and the weight assigned value may satisfy: the weight assigned value=(the total assigned value−the assigned value constant)×the assigned value coefficient+the assigned value constant.
In S3, a score of the vital state of the living individual is calculated based the basic score and the weight assigned value.
In an optional embodiment, the basic score, the weight assigned value and the score of the vital state of the living individual satisfy: the score of the vital state of the living individual=the basic score−the weight assigned value.
Optionally, the operation of calculating the score of the vital state of the living individual based on the assigned values of the items to be assessed may take the number of predetermined items to be assessed as a triggering condition. For example, in case that the total number of the items to be assessed input by the user reaches 12, the operation of calculating the score of the vital state of the living individual can be triggered. In case that the total number of the items to be assessed input by the user does not reach 12, the operation of calculating the score of the vital state of the living individual is not performed.
In a third example of the second state diagram, the second state diagram is a result of adding a first icon onto the first state diagram. The first icon indicates an association relationship between the living individual and a specified defect. The association relationship is acquired based on the analysis of the items to be assessed. In an embodiment, in case that the vital state of the living individual includes a health state of the living individual, the association relationship between the living individual and the specified defect may refer to a probability that the living individual has the specified defect.
In an embodiment, an icon for prompting to assess the association relationship between the living individual and the specified defect may be displayed in the first operation interface. The user may tap the icon to instruct the terminal to assess the association relationship between the living individual and the specified defect, and to use the first icon to indicate an assessment result. Here, in response to the icon tapped by the user, the terminal may display a tip for prompting the user to input items to be assessed that are required for assessing the association relationship between the living individual and the specified defect. In response to the input of instructions completed by the user, the terminal may assess based on the items to be assessed input by the user, and use the first icon to indicate the assessment result.
In another embodiment, the process of assessing the association relationship between the living individual and the specified defect based on the items to be assessed may also be automatically performed. For example, in response to detecting the acquired items to be assessed required for assessing the association relationship between the living individual and the specified defect, the terminal may automatically assess the association relationship between the living individual and the specified defect based on the acquired items to be assessed, and use the first icon to indicate the assessment result.
As shown in
Corresponding to the third example, the method for displaying data may further include: receiving a select operation of the first icon. Based on the select operation of the first icon, analysis of the association relationship between the living individual and the specified defect is displayed. For example, in response to the user tapping a prompt message for prompting to view the association relationship between the living individual and diabetes, the terminal may display a diabetes assessment result of the living individual as shown in
Optionally, in order to present a more complete vital state of the living individual, the server may also assess an association relationship between the living individual to which the items to be assessed belong and one or more specified defects based on a predetermined algorithm and the received items to be assessed. The specified defects may include osteoporosis, hypertension, intermittent claudication, diabetes, and the like. For example, based on the predetermined algorithm and the input items to be assessed, the server may analyze and assess whether the user has risks such as hypertension, intermittent claudication and diabetes, and levels of the risks. Accordingly, the server may return an analysis result including an assessment result to the terminal, such that the terminal can dynamically process the first state diagram based on the assessment result. That is, one or more first icons corresponding to the specified defects are added onto the first state diagram. Here, the first icon corresponding to the specified defect indicates the association relationship between the living individual and the specified defect.
For example, in response to the server assessing the association relationship between the living individual and diabetes, intermittent claudication and diabetes, and returning an analysis result to the terminal, the terminal may add one first icon corresponding to diabetes, one first icon corresponding to intermittent claudication and one first icon corresponding to hypertension onto the first state diagram. The first icon corresponding to diabetes indicates a probability of the living individual suffering from diabetes; the first icon corresponding to intermittent claudication indicates a probability of the living individual suffering from intermittent claudication; and the first icon corresponding to hypertension indicates a probability of the living individual suffering from hypertension.
Optionally, the following formula may be adopted as an assessment algorithm to assess whether the living individual suffering from hypertension. A calculation result of this formula indicates a value of the risk that the user suffers from hypertension in a specified time period in the future (such as in the next four years). In addition, the items to be assessed involved in assessing whether the living individual suffering from hypertension include: gender, age, smoking habit in life, BMI, systolic blood pressure, diastolic blood pressure and family history of whether parents suffering from hypertension.
Here, xi is an assigned value of an ith item under assessment, and βi is a regression coefficient corresponding to the item under assessment. In addition, in case that the item under assessment is gender, an assigned value of female is 1 and an assigned value of male is 0. Assigned values of the family history whether parents suffering from hypertension are: in case that one parent suffers from hypertension, an assigned value of x is 1, and in case that both parents suffer from hypertension, an assigned value of x is 2. Here, the items to be assessed and the values of corresponding regression coefficient β may be determined with reference to Table 3 below.
It should be noted that considering occurrence characteristics of hypertension, in order to ensure the accuracy of estimation, the items to be assessed input by the user may be judged to determine whether the items to be assessed meet an estimation condition, and estimation is performed only when the items to be assessed meet the estimation condition. Here, the items to be assessed involved in the estimation condition include height, weight, age, systolic blood pressure, diastolic blood pressure, and the like.
In an embodiment of judging whether the items to be assessed meet the estimation condition, as shown in
For the assessment of diabetes, the score of each of the items to be assessed of the living individual may be acquired based on the items to be assessed of the living individual, a sum of the scores of all the items to be assessed of the living individual is determined as an assessment score of the living individual, and a risk of the living individual suffering from diabetes within a specified time period in the future is determined based on the assessment score. For example, if the assessment score is ≥25, it means that the living individual has the risk of diabetes, and the first icon on the first operation interface shown in
For the risk assessment of diabetes, please refer to Table 4 for a corresponding relationship between the items to be assessed and the scores.
It should be noted that considering occurrence characteristics of diabetes, in order to ensure the accuracy of estimation, the items to be assessed input by the user may be judged to determine whether the items to be assessed meet an estimation condition, and estimation is performed only when the items to be assessed meet the estimation condition. Here, the items to be assessed involved in the estimation condition include: whether the living individual suffering from diabetes, age, and the like.
In an embodiment of judging whether the items to be assessed meet the estimation condition, as shown in
For the assessment of intermittent claudication, the score of each of the items to be assessed of the living individual may be acquired, a sum of the scores of all the items to be assessed of the living individual is determined as an assessment score of the living individual, and a probability of the living individual suffering from intermittent claudication within a specified time period in the future is determined based on the assessment score. Here, the items to be assessed and their scores may refer to Table 5. The assessment score of the living individual and the probability of the living individual suffering from intermittent claudication in the next four years may refer to Table 6.
It should be noted that considering occurrence characteristics of intermittent claudication, in order to ensure the accuracy of estimation, the items to be assessed input by the user may be judged to determine whether the items to be assessed meet an estimation condition, and estimation is performed only when the items to be assessed meet the estimation condition. Here, the items to be assessed involved in the estimation condition include: age, and the like.
In an embodiment of judging whether the items to be assessed meet the estimation condition, as shown in
It can be understood that in the embodiments of the present disclosure, other defect indicators, such as osteoporosis, may also be predicted. In an embodiment, an osteoporosis self-assessment tool for Asians (OSTA) may be used for prediction.
In an embodiment, a relationship between an OSTA index of a living individual and a weight and age of the living individual satisfies: OSTA index=(weight-age)×0.2.
Please refer to Table 7 for a corresponding relationship between the OSTA index of the living individual and a risk level of osteoporosis of the living individual. For example, in case that the OSTA index of the living individual belongs to the range of (−1,+∞), it can be determined that the risk level of osteoporosis of the living individual is low. In case that the OSTA index belongs to the range of [−3, −1], it can be determined that the risk level of osteoporosis of the living individual is medium. In case that the OSTA index of the living individual belongs to the range of [−4, −3), it can be determined that the risk level of osteoporosis of the living individual is slightly high. In case that the OSTA index of the living individual belongs to the range of (−∞, −4], it can be determined that the risk level of osteoporosis of the living individual is high.
It should be noted that considering occurrence characteristics of osteoporosis, in order to ensure the accuracy of estimation, the items to be assessed input by the user may be judged to determine whether the items to be assessed meet an estimation condition, and estimation is performed only when the items to be assessed meet the estimation condition. Here, the items to be assessed involved in the estimation condition include: weight, age, and the like.
In an embodiment of judging whether the items to be assessed meet the estimation condition, in case that the items to be assessed do not meet at least one of an age range and a weight range, the algorithm is directly ended, and the returned analysis result does not include any information about assessment of osteoporosis. In case that the items to be assessed meet both the age range and the weight range, a probability of the living individual suffering from osteoporosis is estimated. In addition, in order to improve the user experience, if it is determined that the items to be assessed do not meet at least one of the age range and the weight range, a prompt message of “the estimation is not for you” may be displayed. Here, the weight range may be [25 kg, 125 kg]. The age range may be [35 years old, 70 years old].
It should also be noted that when estimating the association relationship between the living individual and the specified defect, an influence weight of the items to be assessed on the specified defect may also be set based on an influence degree of the items to be assessed on the specified defect, and the association relationship between the living individual and the specified defect may be estimated with reference to the influence weight.
In a fourth example of the second state diagram, the second state diagram is a result of adding a second icon onto the first state diagram. The second icon indicates a processing assessment value of an operation performed by the user. The processing assessment value rewards a specified operation completed by the user to motivate the user. For example, in response to the items to be assessed completed by the user, as shown in
As an example of motivating the user by using the processing assessment value, a redemption icon is displayed in the second state diagram. The method for displaying the data according to the embodiments of the present disclosure further includes: receiving a select operation of the redemption icon; displaying a redemption page of articles to be redeemed by using the processing assessment value based on the select operation of the redemption icon; receiving a select operation on the redemption page; and performing an operation of redeeming an article indicated by the select operation on the redemption page by using the processing assessment value of the user, based on the select operation on the redemption page. Here, the article may be a virtual article such as a discount coupon, or a physical article such as a sleep monitor, a blood glucose monitor, or other health-care devices.
For example, a redemption icon of “points redemption” is displayed in the first operation interface as shown in
It should be noted that the more items to be assessed input by the user are, the more accurate the assessment result of the vital state of the living individual based on the items to be assessed is. Thus, an icon for prompting to complete the items to be assessed is further displayed on a display interface of at least one of the first state diagram and the second state diagram. For example, as shown in
In addition, in case that the items to be assessed are uncompleted, an icon for prompting the user to complete the items to be assessed may also be displayed in the first operation interface. For another example, in response to the user viewing the association relationship between the living individual and the specified defect, an icon for prompting the user to update a corresponding item under assessment may also be displayed in the first operation interface, such that re-assessment based on the updated items to be assessed is facilitated.
Optionally, in order to further improve the user experience, the terminal may also store interaction knowledge for helping the user acquire the items to be assessed. An icon (such as a “knowledge literacy” icon in
It should be noted that the operation of predicting the vital state in the embodiments of the present disclosure may be performed by using artificial intelligence (AI) technologies. In addition, the method for displaying data according to the embodiments of the present disclosure may be performed by an application installed in the terminal, and the application also has other functions which can share data with functions provided by the method for displaying data according to the embodiments of the present disclosure. For example, the application also has functions of providing beauty care advice, sleep advice, maternal and child advice, chronic disease advice. Moreover, these functions can share data with the functions provided by the method for displaying data according to the embodiments of the present disclosure. Therefore, as shown in
In the method for displaying data according the embodiments of the present disclosure, the first state diagram indicating the vital state of the living individual is displayed on the first operation interface, and the first state diagram is updated based on the items to be assessed in response to receiving the items to be assessed; the updated second state diagram is displayed on the operation interface, such that the state diagram indicating the vital state of the living individual changes with the change of the items to be assessed. Thus, the influence of the items to be assessed on the vital state of the living individual is shown effectively and visually, enabling the user to visually grasp the vital state of the living individual and improving the user experience.
An apparatus for displaying data is further provided according to the embodiment of the present disclosure. As shown in
The displaying module 601 is configured to display a first state diagram, wherein the first state diagram indicates a vital state of a living individual.
The receiving module 602 is configured to receive items to be assessed, wherein the items to be assessed are intended to assess the vital state of the living individual.
The displaying module 601 is further configured to display a second state diagram, wherein the second state diagram is a result of updating the first state diagram based on the items to be assessed.
In summary, in the apparatus for displaying data according the embodiments of the present disclosure, the displaying module displays the first state diagram indicating the vital state of the living individual on the first operation interface, and updates the first state diagram based on the items to be assessed in response to the receiving module receiving the items to be assessed to display the updated second state diagram on the operation interface, such that the state diagram indicating the vital state of the living individual changes with the change of the items to be assessed. Thus, the influence of the items to be assessed on the vital state of the living individual is shown effectively and visually, enabling the user to visually grasp the vital state of the living individual and improving the user experience.
Optionally, the second state diagram is a result of growing the first state diagram based on an integrity degree of the items to be assessed.
Optionally, the second state diagram is a result of assessing the vital state of the living individual based on the items to be assessed and adjusting a color of the first state diagram based on an assessment result of the vital state of the living individual.
Optionally, the second state diagram is a result of adding a first icon onto the first state diagram, wherein the first icon indicates an association relationship between the living individual and a specified defect, and the association relationship is acquired based on analysis of the items to be assessed.
Optionally, the receiving module 602 is further configured to receive a select operation of the first icon.
Accordingly, the displaying module 601 is further configured to display analysis of the association relationship between the living individual and the specified defect based on the select operation of the first icon.
Optionally, the second state diagram is a result of adding a second icon onto the first state diagram, wherein the second icon indicates a processing assessment value of an operation performed by a user.
Optionally, a redemption icon is displayed in the second state diagram.
The receiving module 602 is further configured to receive a select operation of the redemption icon.
The displaying module 601 is further configured to display a redemption page of articles to be redeemed by using the processing assessment value based on the select operation of the redemption icon.
The receiving module 602 is further configured to receive a select operation on the redemption page.
As shown in
Optionally, an icon for prompting to complete the items to be assessed is further displayed on a display interface of at least one of the first state diagram and the second state diagram.
Optionally, an icon for prompting to view interaction knowledge related to the items to be assessed is further displayed on a display interface of at least one of the first state diagram and the second state diagram.
Optionally, an assessment icon is displayed on a display interface of at least one of the first state diagram and the second state diagram, and the receiving module 602 is further configured to receive a select operation of the assessment icon.
The processing module 603 is further configured to acquire a score for assessing the vital state of the living individual based on the items to be assessed with instruction of the select operation.
The displaying module 601 is further configured to display a third icon on a display interface of the at least one state diagram, wherein the third icon interprets the score.
Optionally, the receiving module 602 is further configured to receive a select operation of the score.
Accordingly, the displaying module 601 is further configured to display score details of the score based on the select operation of the score.
Optionally, the processing module 603 is further configured to assess the vital state of the living individual based on the items to be assessed.
Accordingly, the displaying module 601 is specifically configured to display the second state diagram based on the assessment result of the vital state of the living individual.
Or, as shown in
Accordingly, the receiving module 602 is further configured to receive an assessment result of the vital state of the living individual sent by the server, wherein the assessment result is acquired based on the items to be assessed.
Accordingly, the displaying module 601 is specifically configured to display the second state diagram based on the assessment result of the vital state of the living individual.
Optionally, both the first state diagram and the second state diagram are tree structure diagrams.
Optionally, the vital state of the living individual includes a health state of the user.
In summary, in the apparatus for displaying data according the embodiments of the present disclosure, the displaying module displays the first state diagram indicating the vital state of the living individual on the first operation interface, and updates the first state diagram based on the items to be assessed in response to the receiving module receiving the items to be assessed to display the updated second state diagram on the operation interface, such that the state diagram indicating the vital state of the living individual changes with the change of the items to be assessed. Thus, the influence of the items to be assessed on the vital state of the living individual is shown effectively and visually, enabling the user to visually grasp the vital state of the living individual and improving the user experience.
A terminal is further provided according to the embodiments of the present disclosure. The terminal includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein the program, when run by the processor, causes the processor to perform the method for displaying data according to the embodiments of the present disclosure.
Components connected to the I/O interface 905 include: an input part 906 including a keyboard, a mouse and the like, an output part 706 including such as a cathode ray tube (CRT), a liquid crystal display (LCD) and a speaker, a storing part 908 including hardware and the like, and a communication part 909 including network interface cards such as an LAN card, a modem, and the like. The communication part 909 performs communication processing via a network such as the Internet. A driver 910 is connected to the I/O interface 905 according to the needs. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory is installed on the driver 910 as required so as to enable a computer program read out from the removable medium to be installed into the memory portion 908 according to the actual needs.
In the method for displaying data according to the embodiments of the present disclosure, the process described above with reference to
It should be noted that the machine-readable medium provided by the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The 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 of the above. More specific examples of the computer-readable storage medium may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any combination thereof. In an embodiment of the present disclosure, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, apparatus, or device.
In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, in which the computer-readable program code is carried. This propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than the computer-readable storage medium, which can send, propagate or transmit the program for use by or in combination with the instruction execution system, apparatus, or device. The program code stored on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to wireless, electric wire, optical cable, radio frequency (RF), and the like, or any combination thereof.
The flowcharts and block diagrams in the accompanying drawings show the architectures, functions and operations that may be performed by the method for displaying data and computer program products according to the embodiments of the present disclosure. Each block in the flowcharts and block diagrams may interpret one module, one program segment or a part of a code, which includes one or more executable instructions for performing determined logical functions. It should also be noted that in some alternative examples, the function described in one block may be realized in a sequence difference from that described in the accompanying drawings. For example, two consecutive blocks may be performed substantially in parallel, and may be performed in an inverse sequence, depending on the related functions. It should be also noted that each block or a combination of the blocks in the flowcharts and/or block diagrams may be performed by specific software systems for performing determined functions or operations, or by a combination of specific hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be performed by software or hardware. The described units or modules may also be arranged in a processor. For example, it can be described as: a processor including a display module and a receiving module. The names of these units or modules do not define the units or modules themselves in some cases. For example, the display module may also be described as “for displaying a second state diagram based on the items to be assessed, wherein the second state diagram is a result of updating the first state diagram based on the items to be assessed.”
A computer-readable storage medium is further provided according to the embodiments of the present disclosure. The computer-readable storage medium may be the computer-readable storage medium included in the above apparatus according to the above embodiments, or may be a computer-readable storage medium that exists alone and is not assembled in the device. The computer-readable storage medium stores one or more programs. The one or more programs are run by one or more processors of a device, causes the device to perform the method for displaying data according to the embodiments of the present disclosure. For example, the method includes: displaying a first state diagram, wherein the first state diagram indicates a vital state of a living individual; receiving items to be assessed, wherein the items to be assessed are intended to assess the vital state of the living individual; and displaying a second state diagram, wherein the second state diagram is a result of updating the first state diagram based on the items to be assessed.
In the embodiments of the present disclosure, the terms “first” and “second” merely describe but not denote or imply any relative importance. The term “a plurality of” means two or more, unless otherwise expressly provided. The singular forms “a,” “an,” and “the” include both singular and plural referents unless the context clearly dictates otherwise. Thus, for example, reference to “a device comprising a processor” includes one or more devices that include plurality of processors as well as a single device consisting of a single processor, reference to “a first icon” includes a combination of first icons as well as a single first icon, and the like.
The above embodiments of the present disclosure are only examples for clearly explaining the present disclosure, and are not the limitations of the embodiments of the present disclosure. Those skilled in the art should understand that the inventive scope involved in the present disclosure is not limited to the technical solutions formed by specific combinations of the above technical features, but also covers other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above technical solutions refer to technical solutions formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to). Here, it is impossible to enumerate all the embodiments. Any obvious changes or variations derived from the technical solutions of the present disclosure are still within the protection scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201911167179.9 | Nov 2019 | CN | national |
This application is a 371 of PCT Application No. PCT/CN2020/131332, filed on Nov. 25, 2020, which claims priority to Chinese Patent Application No. 201911167179.9, filed on Nov. 25, 2019 and entitled “METHOD AND APPARATUS FOR DISPLAYING DATA, AND DEVICE AND STORAGE MEDIUM THEREOF,” the disclosures of which are herein incorporated by reference in their entireties.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2020/131332 | 11/25/2020 | WO | 00 |