Remote control and monitoring method and system based on hospital self-service machine
By building an identification hash value and access control tree, combining touch screen capacitance sensors and remote monitoring, the problems of identity authentication and information security in hospital self-service machines are solved, and control of user access content and information security supervision is realized.
Patent Information
- Application Number
- CN202510418444.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-12-31
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-18
AI Technical Summary
Existing hospital self-service machines have problems with user identity authentication and information security, which are prone to information leakage due to forgetting to bring your ID card or using it for multiple people, and lack effective access control and information encryption measures.
By obtaining the items to be filled in the data table, converting them into identification hash values to build a blank data tree and a control tree, combining user information data to generate an access control tree, using the touch screen capacitor sensor to receive access requests, generate an initial access page, and record the usage log and send it to the remote monitoring end to realize remote control and monitoring.
It realizes control of access content for different users, supervises user usage behavior, ensures information security, and prevents information leakage.
Smart Images

Figure CN120337185A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hospital self-service machines, and particularly to a method and system for remotely controlling and monitoring a hospital self-service machine. Background Art
[0002] With the development of technology, the use of hospital self-service machines has greatly improved the user experience.
[0003] In the current prior art, most hospital self-service machines log in by swiping an ID card, and there are often situations where the ID card is forgotten and the machine cannot be used. At the same time, there are many people using the hospital self-service machines every day, and different people leave usage traces when using them to preserve live detection and malicious attacks.
[0004] Although the above technology can realize the use of hospital self-service machines, due to the existence of many usage traces and the situation of multiple people using the same hospital self-service machine, it is particularly important to prevent information leakage. It is necessary to restrict the content that different users can access and encrypt the information to ensure information security. Summary of the Invention
[0005] The present invention provides a method for remotely controlling and monitoring a hospital self-service machine, and its main purpose is to control the access content of different users and supervise the user usage behavior using usage logs to ensure user information security.
[0006] To achieve the above object, a method for remotely controlling and monitoring a hospital self-service machine provided by the present invention includes:
[0007] Obtain a data table, extract multiple items to be filled based on the data table, obtain the data type corresponding to each item to be filled among the multiple items to be filled, convert the item to be filled into an identification hash value using the data type corresponding to the item to be filled, and summarize the identification hash values to obtain an identification hash value set;
[0008] Construct a blank data tree according to the identification hash value set and construct a blank control tree;
[0009] Receive user information data using the data table, confirm the access control tree corresponding to the user information data based on the user information data and the blank control tree, import the user information data into the blank data tree to obtain an initial information tree, and associate the access control tree and the initial information tree based on the user information data to obtain an information data tree;
[0010] Receive a user login request based on a pre-constructed QR code, and obtain a user code based on the login request;
[0011] Receive an access request using a pre-constructed touch screen capacitance sensor, and generate an initial access page of the pre-constructed hospital self-service machine according to the access request using the access control tree and the information data tree;
[0012] Generate a usage record based on the initial access page, user code, and access request;
[0013] After confirming that the user has ended the access based on the hospital self-service machine, summarize one or more usage records corresponding to the user to obtain a usage log, and send the usage log to a pre-built remote monitoring end. Based on the remote monitoring end after receiving the usage log, complete the remote control and monitoring based on the hospital self-service machine.
[0014] Optionally, the constructing a blank data tree according to the set of identification hash values includes:
[0015] Extract a first value set, a second value set, and other value sets from the set of identification hash values;
[0016] Construct an initial first sequence, recursively derive one or more first representative values from the first value set and identify the one or more first representative values in the initial first sequence to obtain one or more first identification sites, and use the one or more first identification sites to identify the initial first sequence to obtain a first identification sequence. Among them, the initial first sequence includes multiple first identifications, and the multiple first identifications are respectively: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9;
[0017] Extract first identification sites from the one or more first identification sites in sequence, and construct an initial second sequence based on the extracted first identification sites. Use the second value set to identify one or more second identification sites in the initial second sequence, and use the one or more second identification sites to identify the initial second sequence to obtain a second identification sequence corresponding to the extracted first identification sites. Among them, the number of second identification sequences is equal to the number of first identification sites;
[0018] Summarize the second identification sequences to obtain one or more second identification sequences;
[0019] Extract other values from the other value sets in sequence, and construct other value data pairs with the extracted other values as other value keys. Summarize the other value data pairs to obtain an other value data pair set. Among them, the other value data pair set includes multiple other value data pairs, and the other value data pairs include: other value keys and other associated data;
[0020] Construct a blank data tree according to the first identification sequence, one or more second identification sequences, and the other value data pair set.
[0021] Optionally, the constructing a blank data tree according to the first identification sequence, one or more second identification sequences, and the other value data pair set includes:
[0022] Extract identification hash values from the set of identification hash values in sequence, and perform the following operations on all the extracted identification hash values:
[0023] Identify the first value, the second value, and the hash other value of the extracted identification hash value;
[0024] Identify the first identification site corresponding to the first value in the first identification sequence, confirm the second identification sequence corresponding to the first identification site corresponding to the first value based on one or more second identification sequences to obtain the hashed second identification sequence, and identify the second identification site corresponding to the second value in the hashed second identification sequence, and connect the first identification site corresponding to the first value and the second identification site corresponding to the second value to obtain the first retrieval path of the extracted identification hash value;
[0025] Identify the other value data pair corresponding to the hash other value in the other value data pair set to obtain the identification other pair, construct the third identification site based on the other value key in the identification other pair, and connect the second identification site corresponding to the second value and the third identification site to obtain the second retrieval path of the extracted identification hash value;
[0026] Use the second identification site as the connection node to connect the first retrieval path and the second retrieval path to obtain the attribute tree corresponding to the extracted identification hash value;
[0027] Summarize the attribute tree corresponding to the identification hash value to obtain the blank data tree corresponding to the user information data.
[0028] Optionally, the constructing the blank control tree includes:
[0029] Obtain multiple access subjects, multiple options, and multiple objects, construct an initial subject layer using the multiple access subjects, construct an initial option layer according to the multiple options, and construct an initial object layer according to the multiple objects;
[0030] Perform the following operations on each access subject among the multiple access subjects:
[0031] Extract options from the multiple options in sequence, and obtain the option access right between the extracted option and the access subject. If the option access right is consent to access, construct an option permission branch based on the extracted option access right; otherwise, skip the extracted option. The option permission branch is a branch with the access subject as the parent node and the extracted option as the child node. The consent to access includes: consent to view and consent to modify;
[0032] Identify one or more accessible objects corresponding to the extracted option from the multiple objects, and use the extracted option in the option permission branch as the policy connection point to connect the option permission branch and the one or more accessible objects to obtain one or more object access branches;
[0033] Construct a subject access tree based on an access subject, one or more option permission branches corresponding to the access subject, and one or more object access branches corresponding to each option permission branch in all the option permission branches;
[0034] Update the initial subject layer, the initial option layer, and the initial object layer by using multiple subject access trees to obtain an updated subject layer, an updated option layer, and an updated object layer;
[0035] Generate a blank control tree by using the updated subject layer, the updated option layer, and the updated object layer.
[0036] Optionally, the confirming the access control tree corresponding to the user information data based on the user information data and the blank control tree includes:
[0037] Identify the subject type based on the user information data, confirm the access subject with the same subject type from the updated subject layer, and extract the subject access tree corresponding to the access subject with the same subject type from the blank control tree to obtain the access control tree corresponding to the user information data.
[0038] Optionally, the importing the user information data into the blank data tree to obtain an initial information tree includes:
[0039] Extract user information from the user information data in sequence, and perform the following operations on all the extracted user information:
[0040] Identify the data hash value corresponding to the extracted user information, retrieve the identification other pair corresponding to the data hash value from the blank data tree based on the data hash value, perform an encryption operation on the user information by using a pre-constructed encryption method, and assign the encrypted user information to the other associated data in the identification other pair corresponding to the data hash value to obtain an encrypted other value data pair, where the encrypted other value data pair corresponds to the user information one by one;
[0041] After confirming that each user information in the user information data corresponds to an encrypted other value data pair, obtain the initial information tree.
[0042] Optionally, the receiving an access request by using a pre-constructed touch screen capacitance sensor includes:
[0043] Obtain a screen display unit, and display an initial page on a hospital self-service machine according to the screen display unit, where the initial page includes multiple tabs;
[0044] Obtain the initial capacitance of the display screen based on the touch screen capacitance sensor, and use a pre-constructed timer to monitor the touch screen capacitance sensor in real time to obtain a dynamic capacitance, where the monitoring frequency of the timer is preset;
[0045] When the dynamic capacitance is greater than a preset capacitance threshold, obtain the time when the dynamic capacitance is greater than the preset capacitance threshold to obtain a time point, obtain the pressure point at which the dynamic capacitance is greater than the preset capacitance threshold, and obtain the starting point of the pressure signal according to the time point and the pressure point;
[0046] According to the initial page, the pressure point, and the monitoring frequency of the timer, when the dynamic capacitance is equal to the initial capacitance for the second time, use the time when the dynamic capacitance is detected to be equal to the initial capacitance for the second time by the touch screen capacitance sensor as the end point of the pressure signal to obtain the end point of the pressure signal, and generate a pressure signal based on the starting point and the end point of the pressure signal;
[0047] Analyze the pressure signal to obtain an access request.
[0048] Optionally, the analyzing the pressure signal to obtain an access request includes:
[0049] Extract pressure points based on the pressure signal, sequentially extract tabs from multiple tabs, and perform the following operations on each of the extracted tabs:
[0050] Obtain an option area based on the extracted tab, determine whether the pressure point is in the option area. If the pressure point is not in the option area, skip the extracted tab. If the pressure point is in the option area, confirm the option corresponding to the extracted tab to obtain a target option;
[0051] Generate an access request according to the target option.
[0052] Optionally, the associating the access control tree and the initial information tree based on the user information data to obtain an information data tree includes:
[0053] Extract an optional set and an accessible object set from the access control tree, and perform a numerical operation on the optional set and the accessible object set using a pre-constructed numerical method to obtain a plurality of permission hash values;
[0054] Extract the user password based on the user information data, and calculate a data tree index code according to the user password and the plurality of permission hash values. The calculation formula of the data tree index code is:
[0055]
[0056] Where Y represents the data tree index code, ρ represents the encoding coefficient, i represents the serial number of the i-th permission hash value, n represents the number of permission hash values in the plurality of permission hash values, y i represents the i-th permission hash value, ω i represents the permission weight of the i-th permission hash value. When the permission corresponding to the permission hash value is consent to access, ω i= 0 when the permission corresponding to the permission hash value is consent to modification, ω i = 1, where σ represents the hash value corresponding to the user password;
[0057] The information data tree is obtained by associating the initial information tree with the data tree index code.
[0058] To achieve the above object, the present invention also provides a remote control and monitoring system for a hospital self-service machine, including:
[0059] A hash value construction module for obtaining a data table, extracting a plurality of items to be filled based on the data table, obtaining the data type corresponding to each item to be filled among the plurality of items to be filled, converting the item to be filled into an identification hash value by using the data type corresponding to the item to be filled, and summarizing the identification hash values to obtain an identification hash value set;
[0060] An information tree acquisition module for constructing a blank data tree according to the identification hash value set, constructing a blank control tree, receiving user information data by using the data table, confirming an access control tree corresponding to the user information data based on the user information data and the blank control tree, importing the user information data into the blank data tree to obtain an initial information tree, and obtaining an information data tree by associating the access control tree and the initial information tree based on the user information data;
[0061] An initial access page generation module for receiving a user login request based on a pre-constructed two-dimensional code, obtaining a user code based on the login request, receiving an access request by using a pre-constructed touch screen capacitance sensor, and generating a pre-constructed initial access page of the hospital self-service machine according to the access request by using the access control tree and the information data tree;
[0062] A monitoring module for generating a usage record based on the initial access page, the user code and the access request, summarizing one or more usage records corresponding to the user after confirming that the user ends the access based on the hospital self-service machine to obtain a usage log, sending the usage log to a pre-constructed remote monitoring end, and completing remote control and monitoring of the hospital self-service machine based on the remote monitoring end after receiving the usage log.
[0063] To solve the above problems, the present invention also provides an electronic device, which includes:
[0064] A memory storing at least one instruction; and
[0065] A processor for executing the instructions stored in the memory to implement the above-mentioned remote control and monitoring method of the hospital self-service machine.
[0066] To solve the above problems, the present invention also provides a computer-readable storage medium storing at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the remote control and monitoring method of the hospital self-service machine described above.
[0067] The present invention obtains a data table, extracts multiple items to be filled based on the data table, obtains the data type corresponding to each item to be filled among the multiple items to be filled, and converts the item to be filled into an identification hash value by using the data type corresponding to the item to be filled, aggregates the identification hash values to obtain an identification hash value set, and converts the item to be filled into an identification hash value as an index for easy search in the subsequent information data tree. A blank data tree is constructed according to the identification hash value set, a blank control tree is constructed, and the blank control tree is constructed according to different access subjects to confirm the access rights of different access subjects. After the first identification sequence connects the attribute trees corresponding to different identification hash values together, a blank data tree is obtained. After the user information data is input subsequently, the identification hash values corresponding to different information of the user information data can be uniformly connected through the first identification sequence for easy search. The user information data is received by using the data table, the access control tree corresponding to the user information data is confirmed based on the user information data and the blank control tree, and the user information data is imported into the blank data tree to obtain an initial information tree. Based on the user information data, the access control tree and the initial information tree are associated to obtain an information data tree. After the user logs in to the hospital self-service machine, the access subject of the user can be confirmed according to the user login account of the user, and the access permission tree can be confirmed according to the access subject. The data tree index code is calculated according to the access permission tree, and the information data tree storing the user information data is called by using the data tree index code. Based on a pre-constructed two-dimensional code, the login request of the user is received, the user code is obtained based on the login request, a pre-constructed touch screen capacitance sensor is used to receive the access request, the interaction between the user and the hospital self-service machine is realized through the touch screen sensor on the hospital self-service machine. According to the access request, an initial access page of the pre-constructed hospital self-service machine is generated by using the access control tree and the information data tree. A usage record is generated based on the initial access page, the user code and the access request. After the hospital self-service machine confirms that the user ends the access, one or more usage records corresponding to the user are aggregated to obtain a usage log, and the usage log is sent to a pre-constructed remote monitoring end. Based on the remote monitoring end that receives the usage log, the remote control and monitoring of the hospital self-service machine are completed, and the usage trace of the user is recorded through the usage log, thereby realizing remote monitoring. Therefore, the present invention can control the access content of different users and supervise the user usage behavior by using the usage log to ensure the security of user information. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a schematic flowchart of the remote control and monitoring method of the hospital self-service machine provided by an embodiment of the present invention;
[0069] Figure 2 A functional module diagram of a remote control and monitoring system for a hospital self-service machine provided by an embodiment of the present invention;
[0070] Figure 3 A schematic structural diagram of an electronic device for implementing the remote control and monitoring method of the hospital self-service machine provided by an embodiment of the present invention.
[0071] The implementation, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0072] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0073] An embodiment of the present application provides a remote control and monitoring method for a hospital self-service machine. The execution subject of the remote control and monitoring method of the hospital self-service machine includes, but is not limited to, at least one of electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the remote control and monitoring method of the hospital self-service machine can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes, but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0074] Referring to Figure 1 As shown, it is a flowchart of a remote control and monitoring method for a hospital self-service machine provided by an embodiment of the present invention. In this embodiment, the remote control and monitoring method of the hospital self-service machine includes:
[0075] S1. Obtain a data table, extract a plurality of items to be filled based on the data table, obtain the data type corresponding to each item to be filled among the plurality of items to be filled, convert the item to be filled into an identification hash value by using the data type corresponding to the item to be filled, and summarize the identification hash values to obtain an identification hash value set.
[0076] It can be understood that the data table is a table preset when a user enters user information on a hospital self-service machine, the item to be filled is an item that needs to be filled in the data table, and the identification hash value is a hash value obtained by converting the item to be filled according to the data type.
[0077] Exemplarily, when a user creates an electronic medical record, the user needs to fill in the name and gender. The name and gender are items to be filled. The name and gender appear in Chinese on the hospital self-service machine used by the user and are stored in the form of hash values when stored. For example, the name and gender are converted into two different hash values by using RLP encoding.
[0078] It should be noted that the identification hash value is only used to identify the position of the item to be filled in the information data tree and has nothing to do with the content filled in the item to be filled. For example, whether it is Zhang or Wang, the identification hash value corresponding to the name is the same.
[0079] S2. Construct a blank data tree according to the set of identification hash values and construct a blank control tree.
[0080] Further, the constructing a blank data tree according to the set of identification hash values includes:
[0081] Extract the first value set, the second value set and other value sets from the set of identification hash values;
[0082] Construct an initial first sequence, recursively obtain one or more first representative values from the first value set and identify the one or more first representative values in the initial first sequence to obtain one or more first identification sites, and use the one or more first identification sites to identify the initial first sequence to obtain a first identification sequence. Among them, the initial first sequence includes a plurality of first identifications, and the plurality of first identifications are respectively: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9;
[0083] Extract the first identification sites from the one or more first identification sites in turn, and construct an initial second sequence based on the extracted first identification sites. Use the second value set to identify one or more second identification sites in the initial second sequence, and use the one or more second identification sites to identify the initial second sequence to obtain a second identification sequence corresponding to the extracted first identification sites. Among them, the number of second identification sequences is equal to the number of first identification sites;
[0084] Summarize the second identification sequences to obtain one or more second identification sequences;
[0085] Extract other values from the other value sets in turn, use the extracted other values as other value keys to construct other value data pairs, and summarize the other value data pairs to obtain an other value data pair set. Among them, the other value data pair set includes a plurality of other value data pairs, and the other value data pairs include: other value keys and other associated data;
[0086] Construct a blank data tree according to the first identification sequence, one or more second identification sequences and the other value data pair set.
[0087] Further, the first value set is a set composed of the first values of all identification hash values in the set of identification hash values, the second value set is a set composed of the second values of all identification hash values in the set of identification hash values, and the other value set is a set composed of the remaining numerical values after deleting the first value and the second value from each identification hash value in the set of identification hash values.
[0088] Exemplarily, the existing set of identification hash values is: 11111, 113343, and 45678. The first value of 11111 is 1, the second value is 1, and the other values are 111. The first value of 113343 is 1, the second value is 1, and the other values are 3343. The first value of 45678 is 4, the second value is 5, and the other values are 678. Therefore, the first value set is: 1, 1, and 4. The second value set is: 1, 1, and 4. The other value set is 111, 3343, and 678.
[0089] Further, the method of recursively obtaining one or more first representative values from the first value set and identifying the one or more first representative values in the initial first sequence is as follows: find different numerical values in the first value set, and the different numerical values are the one or more first representative values. For example, if the first value set is: 1, 1, and 4, then the different numerical values are 1 and 4. There are two first representative values, which are 1 and 4 respectively. Then find 1 and 4 in the initial first sequence, and both 1 and 4 are confirmed as the first identification sites. Mark the initial first sequence as marking 1 and 4 in the initial first sequence. This technology is the prior art. Optionally, use pointers to mark 1 and 4. This is convenient for quickly finding the first identification sites when constructing the blank data tree.
[0090] It can be understood that the first identification sequence is the initial first sequence in which there are the one or more first identification sites. The initial second sequence is the same as the initial first sequence. The initial second sequence is composed of multiple second identifications, and the multiple second identifications are respectively: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. The method for obtaining one or more second identification sites is as follows: in the initial second sequence corresponding to the first identification site, recursively process the second value set to obtain one or more second representative values, and obtain one or more second identification sites according to the one or more second representative values. The specific implementation method is the same as that of the one or more first identification sites and can achieve the same effect. At the same time, the method for obtaining the second identification sequence is also the same as that of the first identification sequence.
[0091] Exemplarily, the existing set of identification hash values is: 11111, 113343, and 45678. There are first identification sites 1 and 4 in the first identification sequence. Now, extract the first identification site 1. The identification hash values corresponding to the first identification site 1 are: 11111 and 113343. Generate the initial second sequence corresponding to the first identification site 1. Since the second values in 11111 and 113343 are both 1, there is only one second identification site, and the second identification site is 1. Use the second identification site 1 to identify the initial second sequence to obtain the second identification sequence. Now, extract the first identification site 4. The identification hash value 45678 corresponding to the first identification site 4 is generated. Generate the initial second sequence corresponding to the first identification site 4. Since the second value in 45678 is 5, there is only one second identification site, and the second identification site is 5. And so on, which will not be elaborated here.
[0092] Further, other value keys are the sites used for identification in other value data pairs, and other associated data is the information stored in other value data pairs. When user information data is not imported into the blank data tree, there is no data in other associated data and it is blank. For example, the existing identification hash value is: 11111, and the identification hash value 11111 represents a name. The other value of the identification hash value is 111. The other value key is 111 in the other value data pair. And in the other value data pair, the other associated data pair is the user's name. If the name in the user information data is Zhang Xiao, then the other associated data in the other value data pair should be "Zhang Xiao" after the user information data is imported.
[0093] It can be understood that constructing the blank data tree according to the first identification sequence, one or more second identification sequences, and the other value data pair set includes:
[0094] Extract the identification hash values from the set of identification hash values in sequence, and perform the following operations on all the extracted identification hash values:
[0095] Identify the first value, the second value, and the hash other value of the extracted identification hash value;
[0096] Identify the first identification site corresponding to the first value in the first identification sequence, confirm the second identification sequence corresponding to the first identification site corresponding to the first value based on one or more second identification sequences to obtain the hashed second identification sequence, and identify the second identification site corresponding to the second value in the hashed second identification sequence. Connect the first identification site corresponding to the first value and the second identification site corresponding to the second value to obtain the first retrieval path of the extracted identification hash value;
[0097] Identify the other-value data pair corresponding to the hash other value in the other-value data pair set to obtain an identified other pair. Construct a third identification site based on the other-value key in the identified other pair. Connect the second identification site corresponding to the second numerical value and the third identification site to obtain the second retrieval path for the identified hash value.
[0098] Using the second identification site as a connection node, connect the first retrieval path and the second retrieval path to obtain the attribute tree corresponding to the identified hash value.
[0099] Summarize the attribute trees corresponding to the identified hash values to obtain the blank data tree corresponding to the user information data.
[0100] It can be understood that the first numerical value is the first number in the identified hash value, the second numerical value is the second number in the identified hash value, the hash other value is the other value in the identified hash value, and the first retrieval path is the path constructed for retrieval between the first identification sequence and the second identification sequence. The third identification site is the identification point formed by the other-value key for identification, and the second retrieval path is the path of the identified hash value extracted from the second identification sequence and the other-value data pair set. The connection node is the common node of the first retrieval path and the second retrieval path of the identified hash value, and the blank data tree is a set of multiple attribute trees corresponding to the user data information not filled in. When the data tables corresponding to the user information data are the same, even if the content filled in the user information data is different, the blank data tree is the same. For example, in the data table, it is required to fill in: name, gender, department, date of birth, and ID number. After Zhang fills in the data table, Zhang's user information data is obtained. After Zhao fills in the data table, Zhao's user information data is obtained. The blank data trees corresponding to Zhang's user information data and Zhao's user information data are the same.
[0101] Exemplarily, the identified hash value set is: 11111, 113343, and 45678. There are first identification sites 1 and 4 in the first identification sequence. Now, extract 11111. Therefore, the corresponding first identification site of 11111 is 1. Extract the second identification sequence corresponding to the first identification site 1. The second identification site in the second identification sequence is 1. At this time, connect the first identification site 1 and the second identification site 1 to obtain the first retrieval path. The other value data pair set is: (111 - other associated data), (3343 - other associated data), and (678 - other associated data). The hash other value of the identification hash value 11111 is 111. Therefore, identify the other value data pair corresponding to the hash other value 111 in the other value data pair set to obtain the identification other pair, that is, the identification other pair is: (111 - other associated data). Among them, 111 in (111 - other associated data) is the third identification site. Connect the second identification site 1 and the third identification site 111 to obtain the second retrieval path. Using the second identification site 1 as the connection node, connect the first retrieval path and the second retrieval path to obtain the attribute tree of the identification hash value 11111. Perform the above operations on both 113343 and 45678 to obtain the attribute tree of the identification hash value 113343 and the attribute tree of the identification hash value 45678. Connect the attribute tree of the identification hash value 11111, the attribute tree of the identification hash value 113343, and the attribute tree of the identification hash value 45678 with the first identification sequence as the root node to obtain a blank data tree.
[0102] It can be understood that in the embodiment of the present invention, after connecting the attribute trees corresponding to different identification hash values using the first identification sequence, a blank data tree is obtained. The purpose of this step is to uniformly connect the identification hash values corresponding to different user information data of user information, which is convenient for storage and retrieval.
[0103] Further, the construction of the blank control tree includes:
[0104] Obtain multiple access subjects, multiple options, and multiple objects. Use the multiple access subjects to construct an initial subject layer, construct an initial option layer according to the multiple options, and construct an initial object layer according to the multiple objects;
[0105] Perform the following operations on each access subject among the multiple access subjects:
[0106] Sequentially extract options from the multiple options and obtain the option access right between the extracted option and the access subject. If the option access right is consent to access, then construct an option permission branch based on the extracted option access right. Otherwise, skip the extracted option. Among them, the option permission branch is a branch with the access subject as the parent node and the extracted option as the child node. The consent to access includes: consent to view and consent to modify;
[0107] Identify one or more accessible objects corresponding to the extracted option from the multiple objects. Using the extracted option in the option permission branch as a policy connection point, connect the option permission branch with one or more accessible objects to obtain one or more object access branches;
[0108] Construct a subject access tree based on the access subject, one or more option permission branches corresponding to the access subject, and one or more object access branches corresponding to each option permission branch in all option permission branches;
[0109] Update the initial subject layer, initial option layer, and initial object layer using multiple subject access trees to obtain an updated subject layer, updated option layer, and updated object layer;
[0110] Generate a blank control tree using the updated subject layer, updated option layer, and updated object layer.
[0111] It can be understood that the access subject is the identity of the visitor in the blank control tree. For example, attending physician, pharmacist, imaging physician, control personnel, user, etc. When using a hospital self-service machine, the access permissions and operation permissions corresponding to different identities are different. Therefore, the content that different access subjects can consent to access is limited. The option is a tab on the hospital self-service machine, such as registration, query, payment, etc. The object is the object on which the access subject performs an operation, such as Doctor Zhang, ID number, electronic medical record, payment form, etc. During the operation of the hospital self-service machine, without adding an access subject, option, and object, the total access subject, total option, and total object remain unchanged. Therefore, the initial subject layer, initial option layer, and initial object layer constructed in the embodiments of the present invention include all access subjects, all options, and all objects.
[0112] It should be noted that the option access right is the access permission of the access subject to the extracted option, and the accessible object is the object that the access subject can access under the extracted option. For example, the access subject is a doctor, the option is payment, and the multiple accessible objects are payment list, payment code, payment list generation time, etc.
[0113] Furthermore, the subject access tree is a data structure that describes the permissions of the access subject. The subject access tree is composed of the access subject, one or more option permission branches corresponding to the access subject, and one or more object access branches corresponding to each option permission branch in all option permission branches.
[0114] Exemplarily, there are now two access subjects: a physician and a user, multiple options: 1, 2, and 3, and multiple objects: a, b, c, d, e, and f. Therefore, the initial subject layer is: [physician, user], the initial option layer is: [1, 2, 3], the initial object layer is: [a, b, c, d, e, f], and there is no association between the initial subject layer, the initial option layer, and the initial object layer. Now extract the access subject physician, and sequentially extract options from the multiple options 1, 2, and 3. Extract option 1. If the option access right between the access subject physician and option 1 is consent to access, then construct an option permission branch between the access subject physician and option 1. Similarly, construct an option permission branch between the access subject physician and option 2. Since the option access right between the physician and option 3 is not consent to access, skip option 3. At this time, the access subject physician has two option permission branches, namely: the option permission branch between the subject physician and option 1 and the option permission branch between the subject physician and option 2. Extract option 1. The objects that the access subject physician can access under option 1 are: a and b. Therefore, both a and b are accessible objects, and an object access branch is constructed between option 1 and the accessible object a, and an object access branch is constructed between option 1 and the accessible object b. Extract option 2. The accessible object of the access subject physician under option 2 is: c. Therefore, an object access branch is constructed between option 2 and the accessible object c. The subject access tree of the access subject physician includes: the option permission branch between the subject physician and option 1, the option permission branch between the subject physician and option 2, the object access branch between option 1 and the accessible object a, the object access branch between option 1 and the accessible object b, and the object access branch between option 2 and the accessible object c. The construction of the subject access tree of the access subject user is the same as the above steps and will not be elaborated here. According to the subject access tree of the access subject physician and the subject access tree of the access subject user, update the initial subject layer, the initial option layer, and the initial object layer to obtain the updated subject layer, the updated option layer, and the updated object layer. Therefore, the associations between the access subject physician in the updated subject layer and the updated option layer include the option permission branch between the subject physician and option 1, the option permission branch between the subject physician and option 2, and also include one or more option permission branches corresponding to the access subject user. By analogy, the construction of the associations between the updated object layer and the updated option layer is similar to the above steps and can achieve the same effect, which will not be elaborated here.
[0115] It can be understood that the blank control tree is a data structure constructed from multiple updated subject layers, updated option layers, and updated object layers before importing the permissions of user information data.
[0116] S3. Receive user information data using a data table, confirm the access control tree corresponding to the user information data based on the user information data and the blank control tree, import the user information data into the blank data tree to obtain an initial information tree, and associate the access control tree and the initial information tree based on the user information data to obtain an information data tree.
[0117] Further, the step of confirming the access control tree corresponding to the user information data based on the user information data and the blank control tree includes:
[0118] Identify the subject type based on the user information data, confirm the access subject with the same subject type from the updated subject layer, and extract the subject access tree corresponding to the access subject with the same subject type from the blank control tree to obtain the access control tree corresponding to the user information data.
[0119] It should be noted that the subject type is the access subject corresponding to the user information data. For example, if the access subject corresponding to the user information data is a doctor, then extract the subject access tree with the access subject of doctor from the blank control tree, and use this as the access control tree of the user information data.
[0120] Further, the step of importing the user information data into the blank data tree to obtain an initial information tree includes:
[0121] Extract user information from the user information data in sequence, and perform the following operations on the extracted user information:
[0122] Identify the data hash value corresponding to the extracted user information, retrieve the identification other pair corresponding to the data hash value from the blank data tree based on the data hash value, perform an encryption operation on the user information using a pre - constructed encryption method, and assign the encrypted user information to the other associated data in the identification other pair corresponding to the data hash value to obtain an encrypted other - value data pair, where the encrypted other - value data pair corresponds to the user information one by one;
[0123] After confirming that each user information in the user information data corresponds to an encrypted other - value data pair, an initial information tree is obtained.
[0124] Exemplarily, the data table needs to fill in: name, gender, department. Therefore, the user fills in according to the data table: Xiaozhao, female, orthopedics department. At this time, the user information data is: Xiaozhao, female, orthopedics department, and the user information data includes three pieces of user information, which are Xiaozhao, female, and orthopedics department respectively. Extract Xiaozhao. Since Xiaozhao is a name, the data hash value corresponding to Xiaozhao can be identified according to the name. Therefore, according to the data hash value, the identification other pair corresponding to the data hash value can be retrieved from the blank data tree.
[0125] It should be noted that the method for retrieving other value pairs corresponding to the data hash value from the blank data tree is as follows: Extract the first data value, the second data value, and the other data values of the data hash value. Retrieve the first identification site corresponding to the first data value from the first identification sequence of the blank data tree. Obtain the first retrieval path corresponding to the first data value according to the first identification site corresponding to the first data value, and get the target retrieval path. Confirm the second identification sequence corresponding to the first data value according to the target retrieval path to obtain the data second sequence. Use the second data value and the other data values to identify the second retrieval path corresponding to the data hash value from the data second sequence, and extract the identification other pairs corresponding to the data hash value based on the second retrieval path corresponding to the data hash value.
[0126] It can be understood that the first data value is the first numerical value in the data hash value, the second data value is the second numerical value in the data hash value, and the other data values are the other values in the data hash value.
[0127] It should be noted that, optionally, the encryption method is to encrypt using a hash function. This technology is an existing technology and will not be elaborated here. Before the user information data is imported into the blank data tree, the other associated data in the identification other pairs is blank. The implementation method of importing the user information data into the blank data tree is as follows: Import the encrypted user information into the other associated data in the identification other pairs corresponding to the data hash value. The encrypted other value pair is composed of the other associated data after importing the encrypted user information and the other value key in the identification other pairs. The initial information tree is a data structure obtained by importing all the user information in the user information data into the corresponding identification other pairs.
[0128] Exemplarily, the identification other pair is: (111 - other associated data), the user information is Xiaozhang. After encrypting Xiaozhang using the hash function, the encrypted user information is a. Then fill a into the identification other pair (111 - other associated data) to obtain the encrypted other value pair: (111 - a).
[0129] Furthermore, obtaining the information data tree based on the user information data, the associated access control tree, and the initial information tree includes:
[0130] Extract the option set and the accessible object set from the access control tree, and perform a numerical operation on the option set and the accessible object set using a pre-constructed numerical method to obtain multiple permission hash values;
[0131] Extract the user password based on the user information data, and calculate the data tree index code according to the user password and the multiple permission hash values. Among them, the calculation formula of the data tree index code is:
[0132]
[0133] Wherein, Y represents the data tree index code, ρ represents the coding coefficient, i represents the sequence number of the i-th permission hash value, n represents the number of permission hash values among multiple permission hash values, and y i represents the i-th permission hash value, and ω i represents the permission weight of the i-th permission hash value. When the permission corresponding to the permission hash value is consent to view, ω i = 0. When the permission corresponding to the permission hash value is consent to modify, ω i = 1, and σ represents the hash value corresponding to the user password;
[0134] The initial information tree is associated with the data tree index code to obtain the information data tree.
[0135] It can be understood that the optional set and the accessible object set are respectively the sets composed of all options that the access subject corresponding to the user information data in the access control tree can have the right to access and the sets composed of all accessible objects, which has nothing to do with the user information filled in the user information data. The numericalization method is similar to the method of converting the to-be-filled items into identification hash values using the data types corresponding to the to-be-filled items, but the permission hash values only include numbers and do not include letters. Optionally, the embodiments of the present invention use the Unicode code points of Chinese characters to perform numericalization operations on the optional set and the accessible object set. This technology is the prior art and will not be elaborated here.
[0136] Further, the information data tree is the initial information tree associated with the data tree index code. In the embodiments of the present invention, after the user logs in to the hospital self-service machine, the access subject of the user can be confirmed according to the user's login account, and the access permission tree can be confirmed according to the access subject. The data tree index code is calculated according to the access permission tree, and the information data tree storing the user information data is called using the data tree index code.
[0137] S4. Receive the user's login request based on the pre-built two-dimensional code, obtain the user code based on the login request, receive the access request using the pre-built touch screen capacitance sensor, and generate the initial access page of the pre-built hospital self-service machine according to the access request, using the access control tree and the information data tree.
[0138] It can be understood that the login request is the request initiated by the user after scanning the two-dimensional code on the hospital self-service machine and entering the login account. The user code is the unique identification code in the background management system of the hospital self-service machine according to the user's login account. The touch screen capacitance sensor is the sensor installed on the touch screen of the hospital self-service machine.
[0139] Further, the receiving the access request using the pre-built touch screen capacitance sensor includes:
[0140] Obtain a screen display unit and display an initial page on the hospital self-service machine according to the screen display unit, where the initial page includes multiple tabs;
[0141] Obtain the initial capacitance of the display screen based on the touch screen capacitance sensor, and use a pre-built timer to monitor the touch screen capacitance sensor in real time to obtain a dynamic capacitance, where the monitoring frequency of the timer is preset;
[0142] When the dynamic capacitance is greater than a preset capacitance threshold, obtain the time when the dynamic capacitance is greater than the preset capacitance threshold to obtain a time point, obtain the pressure point at the position where the dynamic capacitance is greater than the preset capacitance threshold, and obtain the starting point of the pressure signal according to the time point and the pressure point;
[0143] According to the initial page, the pressure point, and the monitoring frequency of the timer, when the dynamic capacitance is equal to the initial capacitance for the second time, use the time when the dynamic capacitance is detected to be equal to the initial capacitance for the second time by the touch screen capacitance sensor as the end point of the pressure signal to obtain the end point of the pressure signal, and generate a pressure signal based on the starting point and the end point of the pressure signal;
[0144] Analyze the pressure signal to obtain an access request.
[0145] It can be understood that the touch screen capacitance sensor can identify the place where the capacitance changes according to the change of capacitance, that is, the pressure point. This technology is an existing technology and will not be elaborated here. The initial page is the page displayed after the user logs in to the hospital self-service machine. The initial capacitance is the capacitance when the touch screen sensor determines that it is not pressed by the user of the hospital self-service machine. The dynamic capacitance is the capacitance obtained by the timer monitoring the capacitance change of the touch screen sensor in real time. For example, if the initial capacitance is a and the monitoring frequency of the timer is 10 ms, the capacitance obtained by detecting the touch screen capacitance sensor every 10 ms is the dynamic capacitance. The capacitance threshold is the capacitance value determined that the dynamic capacitance detected by the touch screen capacitance sensor is caused by the user's touch. For example, when the user touches the hospital self-service machine, the dynamic capacitance is greater than the initial capacitance. When the user accidentally touches it by mistake, the force of the accidental touch is less than the force of the user touching the hospital self-service machine. Therefore, the embodiment of the present invention sets a capacitance threshold to reduce the resource waste caused by accidental touches. The starting point of the pressure signal is the starting point of the pressure signal. After confirming that the user touches the hospital self-service machine according to the capacitance threshold, the pressure signal starts to be collected.
[0146] It should be noted that in the embodiment of the present invention, the interaction between the user and the hospital self-service machine is realized through the touch screen sensor on the hospital self-service machine.
[0147] Further, the meaning of the dynamic capacitance being equal to the initial capacitance for the second time is as follows: After a period of time from the starting point of the pressure signal, the pressure signal is continuously collected. According to the monitoring frequency, it is continuously detected whether the dynamic capacitance of the pressure site is equal to the initial capacitance. After the dynamic capacitance is equal to the initial capacitance, according to the monitoring frequency, when the dynamic capacitance is detected to be equal to the initial capacitance for the next time, the time when the dynamic capacitance is detected to be equal to the initial capacitance for the next time is taken as the end point of the pressure signal. The purpose is to ensure the integrity of the pressure signal.
[0148] Further, parsing the pressure signal to obtain an access request includes:
[0149] Extracting pressure sites based on the pressure signal, sequentially extracting tabs from multiple tabs, and performing the following operations on each of the extracted tabs:
[0150] Obtaining an option area based on the extracted tab, determining whether the pressure site is in the option area. If the pressure site is not in the option area, the extracted tab is skipped. If the pressure site is in the option area, the option corresponding to the extracted tab is confirmed to obtain a target option;
[0151] Generating an access request according to the target option.
[0152] Further, the option area is the range of the tab corresponding to the pressure site on the touch screen capacitive sensor. The pixels corresponding to the tabs on the display screen of the hospital self-service machine will be mapped to the option area. Therefore, clicking on the area where the tab is located on the display screen of the hospital self-service machine is equivalent to clicking on the option area. Optionally, the touch screen capacitive sensor is a physical coordinate system. Therefore, the pressure site can be identified in the form of two-dimensional coordinates in the touch screen sensor. This technology is an existing technology and will not be elaborated here. The target option is the option selected by the user.
[0153] It can be understood that after the user logs in to the hospital self-service machine, an access request is initiated by clicking on the options on the hospital self-service machine. According to the target option in the access request, the accessible object that the user can access is called from the access permissions, and the information corresponding to the accessible object is displayed according to the information data tree. The user information corresponding to the accessible object is displayed on the initial access page.
[0154] Exemplarily, in the access permission tree, it stores: user a, option b and the accessible object is the mobile phone number. When storing the data, the mobile phone number is generated into an identification hash value and stored in the encrypted other value data pair in the information data tree.
[0155] S5. Generating a usage record based on the initial access page, user code, and access request.
[0156] It is understandable that the usage record is the access request instruction sent by the user each time and the usage trace in the initial access page.
[0157] S6. After confirming that the user has ended the access based on the hospital self-service machine, summarize one or more usage records corresponding to the user to obtain a usage log, send the usage log to a pre-built remote monitoring end, and complete the remote control and monitoring based on the hospital self-service machine by the remote monitoring end after receiving the usage log.
[0158] It is understandable that when the user only browses without modification and then exits on the initial access page, there is only one usage record on the initial access page, and the remote monitoring end is a unit for monitoring the running status of the hospital self-service machine and the user's usage record, such as a computer, an app, etc.
[0159] To solve the problems described in the background art, the present invention obtains a data table, extracts multiple items to be filled based on the data table, obtains the data type corresponding to each item to be filled among the multiple items to be filled, converts the item to be filled into an identification hash value by using the data type corresponding to the item to be filled, summarizes the identification hash values to obtain an identification hash value set, and converts the item to be filled into an identification hash value as an index for easy searching in the subsequent information data tree. A blank data tree is constructed according to the identification hash value set, a blank control tree is constructed, and the blank control tree is constructed according to different access subjects to confirm the access rights of different access subjects. After the first identification sequence connects the attribute trees corresponding to different identification hash values together, a blank data tree is obtained. After the user information data is input subsequently, the identification hash values corresponding to different information of the user information data can be uniformly connected through the first identification sequence for easy searching. The user information data is received by using the data table, the access control tree corresponding to the user information data is confirmed based on the user information data and the blank control tree, and the user information data is imported into the blank data tree to obtain an initial information tree. The access control tree and the initial information tree are associated based on the user information data to obtain an information data tree. After the user logs in to the hospital self-service machine, the access subject of the user can be confirmed according to the user login account of the user, and the access right tree can be confirmed according to the access subject. The data tree index code is calculated according to the access right tree, and the information data tree storing the user information data is called by using the data tree index code. The login request of the user is received based on the pre-constructed two-dimensional code, the user code is obtained based on the login request, the access request is received by using the pre-constructed touch screen capacitance sensor, the interaction between the user and the hospital self-service machine is realized through the touch screen sensor on the hospital self-service machine, and according to the access request, the initial access page of the pre-constructed hospital self-service machine is generated by using the access control tree and the information data tree. A usage record is generated based on the initial access page, the user code, and the access request. After it is confirmed by the hospital self-service machine that the user ends the access, one or more usage records corresponding to the user are summarized to obtain a usage log, and the usage log is sent to the pre-constructed remote monitoring end. Based on the remote monitoring end that receives the usage log, the remote control and monitoring of the hospital self-service machine are completed, and the usage trace of the user is recorded through the usage log, so as to realize remote monitoring. Therefore, the present invention can control the access content of different users and supervise the user usage behavior by using the usage log to ensure the security of user information.
[0160] As Figure 2 shown, it is a functional module diagram of a remote control and monitoring system of a hospital self-service machine provided by an embodiment of the present invention.
[0161] The remote control and monitoring system 100 of the hospital self-service machine described in the present invention can be installed in an electronic device. According to the implemented functions, the remote control and monitoring system 100 of the hospital self-service machine can include a hash value construction module 101, an information tree acquisition module 102, an initial access page generation module 103, and a monitoring module 104. The modules described in the present invention can also be referred to as units, which refer to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
[0162] The hash value construction module 101 is used to obtain a data table, extract a plurality of items to be filled based on the data table, obtain the data type corresponding to each item to be filled among the plurality of items to be filled, convert the item to be filled into an identification hash value by using the data type corresponding to the item to be filled, and summarize the identification hash values to obtain an identification hash value set;
[0163] The information tree acquisition module 102 is used to construct a blank data tree according to the identification hash value set, construct a blank control tree, receive user information data by using the data table, confirm the access control tree corresponding to the user information data based on the user information data and the blank control tree, import the user information data into the blank data tree to obtain an initial information tree, and associate the access control tree and the initial information tree based on the user information data to obtain an information data tree;
[0164] The initial access page generation module 103 is used to receive a user's login request based on a pre-constructed two-dimensional code, obtain a user code based on the login request, receive an access request by using a pre-constructed touch screen capacitive sensor, and generate an initial access page of the pre-constructed hospital self-service machine according to the access request by using the access control tree and the information data tree;
[0165] The monitoring module 104 is used to generate a usage record based on the initial access page, the user code, and the access request, summarize one or more usage records corresponding to the user after confirming that the user ends the access based on the hospital self-service machine to obtain a usage log, send the usage log to a pre-constructed remote monitoring end, and complete the remote control and monitoring of the hospital self-service machine based on the remote monitoring end after receiving the usage log.
[0166] Specifically, each module in the remote control and monitoring system 100 of the hospital self-service machine in the embodiment of the present invention adopts the same technical means as the Figure 1 remote control and monitoring method of the hospital self-service machine described therein and can produce the same technical effects, which will not be elaborated here.
[0167] As Figure 3 shown, it is a schematic structural diagram of an electronic device for implementing the remote control and monitoring method of a hospital self-service machine provided by an embodiment of the present invention.
[0168] The electronic device 1 may include a processor 10, a memory 11, and a bus 12. It may also include a computer program stored in the memory 11 and executable on the processor 10, such as a program for the remote control and monitoring method of a hospital self-service machine.
[0169] Among them, the memory 11 includes at least one type of readable storage medium, which includes flash memory, mobile hard disks, multimedia cards, card-type memories (such as SD or DX memories, etc.), magnetic memories, magnetic disks, optical disks, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as the mobile hard disk of the electronic device 1. In some other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc., equipped on the electronic device 1. Further, the memory 11 also includes the internal storage unit of the electronic device 1 and also includes an external storage device. The memory 11 can not only be used to store application software installed on the electronic device 1 and various types of data, such as the code of the program for the remote control and monitoring method of a hospital self-service machine, but also be used to temporarily store data that has been output or will be output.
[0170] In some embodiments, the processor 10 may be composed of integrated circuits. For example, it may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same or different functions, including the combination of one or more Central Processing Units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, connecting all components of the entire electronic device through various interfaces and lines. By running or executing the programs or modules stored in the memory 11 (such as the program for the remote control and monitoring method of a hospital self-service machine, etc.), and by calling the data stored in the memory 11, it executes various functions of the electronic device 1 and processes data.
[0171] The bus 12 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 12 can be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to implement the connection and communication between the memory 11 and at least one processor 10, etc.
[0172] Figure 3 Only an electronic device with components is shown. Those skilled in the art can understand that Figure 3 the shown structure does not constitute a limitation on the electronic device 1 and may include fewer or more components than shown, or combine certain components, or have a different component arrangement.
[0173] For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component. Preferably, the power source can be logically connected to the at least one processor 10 through a power management device, so as to implement functions such as charge management, discharge management, and power consumption management through the power management device. The power source may also include any components such as one or more DC or AC power sources, a recharge device, a power failure detection circuit, a power converter or inverter, a power status indicator, etc. The electronic device 1 may also include a variety of sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be elaborated here.
[0174] Furthermore, the electronic device 1 may further include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0175] Optionally, the electronic device 1 may further include a user interface. The user interface may be a display, an input unit (such as a keyboard), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) toucher, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display the information processed in the electronic device 1 and to display a visual user interface.
[0176] The program of the remote control and monitoring method for the hospital self-service machine stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve the following:
[0177] Obtain a data table, extract multiple items to be filled based on the data table, obtain the data type corresponding to each item to be filled among the multiple items to be filled, convert the item to be filled into an identification hash value using the data type corresponding to the item to be filled, and summarize the identification hash values to obtain an identification hash value set;
[0178] Construct a blank data tree and a blank control tree according to the identification hash value set;
[0179] Receive user information data using the data table, confirm the access control tree corresponding to the user information data based on the user information data and the blank control tree, import the user information data into the blank data tree to obtain an initial information tree, and associate the access control tree and the initial information tree based on the user information data to obtain an information data tree;
[0180] Receive the user's login request based on a pre-constructed QR code, and obtain a user code based on the login request;
[0181] Receive an access request using a pre-constructed touch screen capacitance sensor, and generate an initial access page for the pre-constructed hospital self-service machine according to the access request using the access control tree and the information data tree;
[0182] Generate a usage record based on the initial access page, the user code, and the access request;
[0183] After the hospital self-service machine confirms that the user has ended the access, summarize one or more usage records corresponding to the user to obtain a usage log, send the usage log to a pre-constructed remote monitoring end, and complete the remote control and monitoring of the hospital self-service machine based on the remote monitoring end after receiving the usage log.
[0184] Specifically, for the specific implementation method of the above instructions by the processor 10, reference can be made to Figures 1 to 3 the description of the relevant steps in the corresponding embodiments, which will not be elaborated here.
[0185] Furthermore, if the modules / units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM, Read-Only Memory).
[0186] The present invention also provides a computer-readable storage medium. The readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the following can be achieved:
[0187] Obtain a data table, extract multiple items to be filled based on the data table, obtain the data type corresponding to each item to be filled among the multiple items to be filled, convert the item to be filled into an identification hash value by using the data type corresponding to the item to be filled, and summarize the identification hash values to obtain an identification hash value set;
[0188] Construct a blank data tree according to the identification hash value set, and construct a blank control tree;
[0189] Receive user information data by using the data table, confirm the access control tree corresponding to the user information data based on the user information data and the blank control tree, import the user information data into the blank data tree to obtain an initial information tree, and associate the access control tree and the initial information tree based on the user information data to obtain an information data tree;
[0190] Receive a user's login request based on a pre-constructed two-dimensional code, and obtain a user code based on the login request;
[0191] Receive an access request by using a pre-constructed touch screen capacitance sensor, and generate an initial access page of a pre-constructed hospital self-service machine according to the access request by using the access control tree and the information data tree;
[0192] Generate a usage record based on the initial access page, the user code, and the access request;
[0193] After confirming that the user ends the access based on the hospital self-service machine, summarize one or more usage records corresponding to the user to obtain a usage log, send the usage log to a pre-constructed remote monitoring end, and complete remote control and monitoring of the hospital self-service machine based on the remote monitoring end after receiving the usage log.
[0194] In several embodiments provided by the present invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, and there can be other division methods in actual implementation.
[0195] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0196] In addition, in each embodiment of the present invention, each functional module can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware, or in the form of a combination of hardware and software functional modules.
[0197] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the present invention can be implemented in other specific forms.
[0198] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A remote control and monitoring method based on a hospital self-service machine, characterized in that, The method includes: Obtain a data table, extract multiple items to be filled based on the data table, obtain the data type corresponding to each item to be filled among the multiple items to be filled, convert the item to be filled into an identification hash value using the data type corresponding to the item to be filled, and summarize the identification hash values to obtain an identification hash value set; Construct a blank data tree according to the identification hash value set, and construct a blank control tree; Receive user information data using the data table, confirm the access control tree corresponding to the user information data based on the user information data and the blank control tree, import the user information data into the blank data tree to obtain an initial information tree, and associate the access control tree and the initial information tree based on the user information data to obtain an information data tree; Receive the user's login request based on a pre-constructed QR code, and obtain a user code based on the login request; Receive an access request using a pre-constructed touch screen capacitance sensor, and generate an initial access page of a pre-constructed hospital self-service machine according to the access request using the access control tree and the information data tree; Generate a usage record based on the initial access page, the user code, and the access request; After the hospital self-service machine confirms that the user has ended the access, summarize one or more usage records corresponding to the user to obtain a usage log, send the usage log to a pre-constructed remote monitoring end, and complete the remote control and monitoring of the hospital self-service machine based on the remote monitoring end after receiving the usage log.
2. The remote control and monitoring method based on a hospital self-service machine according to claim 1, wherein, The constructing a blank data tree according to the identification hash value set includes: Extract a first value set, a second value set, and other value sets from the identification hash value set; Construct an initial first sequence, recursively obtain one or more first representative values from the first value set and identify the one or more first representative values in the initial first sequence to obtain one or more first identification sites, and use the one or more first identification sites to identify the initial first sequence to obtain a first identification sequence, where the initial first sequence includes multiple first identifications, and the multiple first identifications are respectively: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9; Extract the first identification sites in sequence from the one or more first identification sites, and construct an initial second sequence based on the extracted first identification sites. Use the second value set to identify one or more second identification sites in the initial second sequence, and use the one or more second identification sites to identify the initial second sequence to obtain a second identification sequence corresponding to the extracted first identification site, where the number of second identification sequences is equal to the number of first identification sites; Summarize the second identification sequences to obtain one or more second identification sequences; Extract other values in sequence from the other value sets, construct other value data pairs with the extracted other values as other value keys, summarize the other value data pairs to obtain an other value data pair set, where the other value data pair set includes multiple other value data pairs, and the other value data pairs include: other value keys and other associated data; Construct a blank data tree according to the first identification sequence, one or more second identification sequences, and the other value data pair set.
3. The remote control and monitoring method based on a hospital self-service machine according to claim 2, characterized in that The constructing a blank data tree according to the first identification sequence, one or more second identification sequences, and the other value data pair set includes: Extract the identification hash values from the identification hash value set in sequence, and perform the following operations on each of the extracted identification hash values: Identify the first value, the second value, and the hash other value of the extracted identification hash value; Identify the first identification site corresponding to the first value in the first identification sequence, confirm the second identification sequence corresponding to the first identification site corresponding to the first value based on one or more second identification sequences to obtain the hash second identification sequence, and identify the second identification site corresponding to the second value in the hash second identification sequence, and connect the first identification site corresponding to the first value and the second identification site corresponding to the second value to obtain the first retrieval path of the extracted identification hash value; Identify the other value data pair corresponding to the hash other value in the other value data pair set to obtain the identification other pair, construct the third identification site based on the other value key in the identification other pair, and connect the second identification site corresponding to the second value and the third identification site to obtain the second retrieval path of the extracted identification hash value; Use the second identification site as the connection node to connect the first retrieval path and the second retrieval path to obtain the attribute tree corresponding to the extracted identification hash value; Summarize the attribute trees corresponding to the identification hash values to obtain the blank data tree corresponding to the user information data.
4. The remote control and monitoring method based on a hospital self-service machine according to claim 3, characterized in that, The construction of the blank control tree includes: Obtain multiple access subjects, multiple options, and multiple objects, use the multiple access subjects to construct the initial subject layer, construct the initial option layer according to the multiple options, and construct the initial object layer according to the multiple objects; Perform the following operations on each of the multiple access subjects: Extract the options from the multiple options in sequence, and obtain the option access right between the extracted option and the access subject. If the option access right is to consent to access, construct an option permission branch based on the extracted option access right. Otherwise, skip the extracted option. The option permission branch is a branch with the access subject as the parent node and the extracted option as the child node. The consent to access includes: consent to view and consent to modify; Identify one or more accessible objects corresponding to the extracted option from the multiple objects, use the extracted option in the option permission branch as the policy connection point, and connect the option permission branch and one or more accessible objects to obtain one or more object access branches; Construct a subject access tree based on the access subject, one or more option permission branches corresponding to the access subject, and one or more object access branches corresponding to each option permission branch in all option permission branches; Use multiple subject access trees to update the initial subject layer, the initial option layer, and the initial object layer to obtain an updated subject layer, an updated option layer, and an updated object layer; Generate a blank control tree using the updated subject layer, the updated option layer, and the updated object layer.
5. The remote control and monitoring method based on a hospital self-service machine according to claim 4, characterized in that The confirmation of the access control tree corresponding to the user information data based on the user information data and the blank control tree includes: Identify the subject type based on the user information data, confirm the access subject with the same subject type from the updated subject layer, and extract the subject access tree corresponding to the access subject with the same subject type from the blank control tree to obtain the access control tree corresponding to the user information data.
6. The remote control and monitoring method based on a hospital self-service machine according to claim 5, wherein And import the user information data into the blank data tree to obtain the initial information tree, including: Extract user information from the user information data in sequence, and perform the following operations on the extracted user information: Identify the data hash value corresponding to the extracted user information, retrieve the identification other pair corresponding to the data hash value from the blank data tree based on the data hash value, perform an encryption operation on the user information using a pre-constructed encryption method, and assign the encrypted user information to the other associated data in the identification other pair corresponding to the data hash value to obtain the encrypted other value data pair, where the encrypted other value data pair corresponds to the user information one by one; After confirming that each user information in the user information data corresponds to an encrypted other value data pair, obtain the initial information tree.
7. The remote control and monitoring method based on a hospital self-service machine according to claim 6, characterized in that, The utilization of the pre-constructed touch screen capacitance sensor to receive an access request includes: Obtain the screen display unit, and display the initial page on the hospital self-service machine according to the screen display unit, where the initial page includes multiple tabs; Obtain the initial capacitance of the display screen based on the touch screen capacitance sensor, and use the pre-constructed timer to monitor the touch screen capacitance sensor in real time to obtain the dynamic capacitance, where the monitoring frequency of the timer is preset; When the dynamic capacitance is greater than the preset capacitance threshold, obtain the time when the dynamic capacitance is greater than the preset capacitance threshold to obtain the time locus, obtain the pressure locus at the position where the dynamic capacitance is greater than the preset capacitance threshold, and obtain the pressure signal starting point according to the time locus and the pressure locus; According to the initial page, the pressure locus, and the monitoring frequency of the timer, when the dynamic capacitance is equal to the initial capacitance for the second time, use the time when the touch screen capacitance sensor detects that the dynamic capacitance is equal to the initial capacitance for the second time as the end point of the pressure signal to obtain the pressure signal end point, and generate a pressure signal based on the pressure signal starting point and the pressure signal end point; Analyze the pressure signal to obtain an access request.
8. The remote control and monitoring method based on a hospital self-service machine according to claim 7, characterized in that, The analysis of the pressure signal to obtain an access request includes: Extract the pressure locus based on the pressure signal, extract the tabs from the multiple tabs in sequence, and perform the following operations on the extracted tabs: Obtain the option area based on the extracted tab, determine whether the pressure locus is in the option area, if the pressure locus is not in the option area, skip the extracted tab, and if the pressure locus is in the option area, confirm the option corresponding to the extracted tab to obtain the target option; Generate an access request according to the target option.
9. The remote control and monitoring method based on a hospital self-service machine according to claim 8, wherein The association of the access control tree and the initial information tree based on the user information data to obtain the information data tree includes: Extract the optional set and the accessible object set from the access control tree, and perform a numericalization operation on the optional set and the accessible object set using a pre-constructed numericalization method to obtain multiple permission hash values; Extract the user password based on the user information data, and calculate the data tree index code according to the user password and multiple permission hash values. Among them, the calculation formula of the data tree index code is: Among them, Y represents the data tree index code, ρ represents the coding coefficient, i represents the serial number of the i-th permission hash value, n represents the number of permission hash values among multiple permission hash values, and y i represents the i-th permission hash value, and ω i represents the permission weight of the i-th permission hash value. When the permission corresponding to the permission hash value is consent to view, ω i = 0. When the permission corresponding to the permission hash value is consent to modify, ω i = 1, and σ represents the hash value corresponding to the user password; Associate the initial information tree with the data tree index code to obtain the information data tree.
10. A remote control and monitoring system based on a hospital self-service machine, characterized in that, The system includes: A hash value construction module, configured to obtain a data table, extract multiple items to be filled based on the data table, obtain the data type corresponding to each item to be filled among the multiple items to be filled, convert the item to be filled into an identification hash value by using the data type corresponding to the item to be filled, and summarize the identification hash values to obtain an identification hash value set; An information tree acquisition module, configured to construct a blank data tree according to the identification hash value set, construct a blank control tree, receive user information data by using the data table, confirm the access control tree corresponding to the user information data based on the user information data and the blank control tree, and import the user information data into the blank data tree to obtain an initial information tree, and associate the access control tree and the initial information tree based on the user information data to obtain an information data tree; An initial access page generation module, configured to receive a user's login request based on a pre-constructed QR code, obtain a user code based on the login request, receive an access request by using a pre-constructed touch screen capacitive sensor, and generate an initial access page of a pre-constructed hospital self-service machine according to the access request by using the access control tree and the information data tree; A monitoring module, configured to generate a usage record based on the initial access page, the user code, and the access request, summarize one or more usage records corresponding to the user after confirming that the user ends the access based on the hospital self-service machine to obtain a usage log, send the usage log to a pre-constructed remote monitoring end, and complete remote control and monitoring of the hospital self-service machine based on the remote monitoring end after receiving the usage log.