CN117059241A - Medical WeChat reminding service access method, device, equipment and medium - Google Patents

Medical WeChat reminding service access method, device, equipment and medium Download PDF

Info

Publication number
CN117059241A
CN117059241A CN202311022167.3A CN202311022167A CN117059241A CN 117059241 A CN117059241 A CN 117059241A CN 202311022167 A CN202311022167 A CN 202311022167A CN 117059241 A CN117059241 A CN 117059241A
Authority
CN
China
Prior art keywords
message
service
template
medical
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311022167.3A
Other languages
Chinese (zh)
Inventor
沈莉宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202311022167.3A priority Critical patent/CN117059241A/en
Publication of CN117059241A publication Critical patent/CN117059241A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/20ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Biomedical Technology (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Medical Informatics (AREA)
  • Epidemiology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the field of digital medical treatment, and discloses a medical WeChat reminding service access method, which comprises the following steps: receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content; selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service; and carrying out message encapsulation on the original message content by utilizing the target message template to obtain an encapsulated message, and delivering the encapsulated message to the target public number. The invention also provides a medical WeChat reminding service access device, equipment and medium. The invention can improve the efficiency of medical WeChat reminding service access.

Description

Medical WeChat reminding service access method, device, equipment and medium
Technical Field
The present invention relates to the field of digital medical technology, and in particular, to a medical WeChat reminding service access method, a device, an electronic device, and a computer readable storage medium.
Background
More and more medical service products provide various medical services for convenience for users, such as online medicine purchasing service, online reservation service and online consultation service. In general, a party providing medical services needs to inform a user of the latest status of the medical services in time, for example, reminding a user that a doctor has issued a bill, asking for confirmation and payment, or reminding the user that the doctor cannot go out for a normal visit. Because WeChat is communication software which is commonly used for daily communication, medical service products can timely send important reminding information to users by means of WeChat public numbers.
At present, due to various types of services provided by medical service products, corresponding reminding message contents are also rich and various, the same medical service product can be in butt joint with a plurality of WeChat public numbers, aiming at the requirement of each message for accessing the WeChat public numbers, the customization and development of a single thread have a great deal of repeated workload, and the medical WeChat reminding service access efficiency is low.
Disclosure of Invention
The invention provides a medical WeChat reminding service access method, a device and a computer readable storage medium, which mainly aim to improve the efficiency of medical WeChat reminding service access.
In order to achieve the above purpose, the invention provides a medical WeChat reminding service access method, which comprises the following steps:
receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
and carrying out message encapsulation on the original message content by utilizing the target message template to obtain an encapsulated message, and delivering the encapsulated message to the target public number.
Optionally, the identifying the service type of the medical service includes:
acquiring service description information of the medical service, and identifying keywords in the service description information;
sequentially calculating the similarity between the keyword and each service type label in a preset service type label set;
and selecting a service type label corresponding to the similarity larger than a preset similarity threshold as the service type of the medical service.
Optionally, the identifying the keyword in the service description information includes:
performing word segmentation on the service description information to obtain a word segmentation set, and converting each word segment in the word segmentation set into a word vector;
constructing a service vector matrix of the service description information by using the word segmentation set and the word vector of each word segmentation;
sequentially selecting one word as a target word, and calculating a key value of the target word according to a word vector of the target word and the service vector matrix;
and selecting a preset number of segmented words from the segmented word set as key words according to the sequence from the key value to the key value.
Optionally, the calculating the key value of the target word includes:
Calculating the key value of the target word by using the following key value algorithm:
wherein K is the key value, |W T I is the modulus of the transpose of the service vector matrix,and modeling the word vector of the target word segmentation.
Optionally, selecting, from a preset message template set, a message template that meets a preset template screening condition as the target message template of the medical service includes:
template definition information of each message template in a preset message template set is obtained, and template characteristics of each message template are extracted according to the template definition information;
extracting service characteristics of the service type and channel characteristics of the target public number;
sequentially calculating service distances between each template feature and the service features, and calculating channel distances between each template feature and the public number features;
weighting and averaging the service distance and the channel distance corresponding to each preset message template in sequence to obtain the comprehensive distance corresponding to the preset message template;
and selecting the message template with the comprehensive distance meeting the preset template screening condition as a target message template of the medical service.
Optionally, said message packaging the original message content with the target message template includes:
identifying variable parameters in the target message template and acquiring parameter labels of each variable parameter;
carrying out semantic recognition on the original message content, and carrying out semantic division on the original message according to a semantic recognition result to obtain a semantic unit set;
calculating the similarity between each semantic unit in the semantic unit set and each parameter label;
and replacing the variable parameter with the highest similarity with the semantic unit by using the semantic unit to obtain the packaged message.
In order to solve the above problems, the present invention further provides a medical WeChat reminding service access device, which is characterized in that the device comprises:
the request analysis module is used for receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
the message template screening module is used for selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
And the message encapsulation module is used for encapsulating the original message content by utilizing the target message template to obtain an encapsulated message and delivering the encapsulated message to the target public number.
Optionally, the message encapsulation module encapsulates the original message content by the following method:
identifying variable parameters in the target message template and acquiring parameter labels of each variable parameter;
carrying out semantic recognition on the original message content, and carrying out semantic division on the original message according to a semantic recognition result to obtain a semantic unit set;
calculating the similarity between each semantic unit in the semantic unit set and each parameter label;
and replacing the variable parameter with the highest similarity with the semantic unit by using the semantic unit to obtain the packaged message.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one computer program; and
And the processor executes the program stored in the memory to realize the medical WeChat reminding service access method.
In order to solve the above-mentioned problems, the present invention further provides a computer readable storage medium, in which at least one computer program is stored, the at least one computer program being executed by a processor in an electronic device to implement the medical WeChat reminder service access method described above.
According to the method, the target message template is screened according to the service type of the medical service and the target public number, and the original message content of the medical service is packaged by utilizing the target message template, so that the message which can be delivered through the target public number is obtained.
Drawings
Fig. 1 is a flow chart of a medical WeChat reminding service access method according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating a detailed implementation of one of the steps of the medical WeChat reminding service access method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a detailed implementation of one of the steps of the medical WeChat reminding service access method according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a medical WeChat reminding service access device according to an embodiment of the invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the medical WeChat reminding service access method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application provides a medical WeChat reminding service access method. The execution main body of the medical WeChat reminding service access method comprises at least one of a server, a terminal and the like which can be configured to execute the method provided by the embodiment of the application. In other words, the medical WeChat reminding service access method can be executed by software or hardware installed on the terminal device or the server device, and the software can be a blockchain platform. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (ContentDelivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flow chart of a medical WeChat reminding service access method according to an embodiment of the application is shown. In this embodiment, the medical WeChat reminding service access method includes:
S1, receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
in the embodiment of the invention, taking a medical service platform or a system as an example, the medical service platform provides a plurality of medical services for a large number of users, wherein the medical services comprise, but are not limited to, online clinic appointment, famous doctor appointment, appointment physical examination, online medicine purchase, online rehabilitation consultation and other services. Each medical service needs to send corresponding notification messages, such as a famous doctor number placing message, a famous doctor vacation message, a doctor ordering message, a reservation clinic success notification message, a reservation clinic time about to expire, and the like, through a WeChat path in time according to the change of the service state.
It can be understood that the medical services of the same service type have the same attribute, and correspondingly, the message access processing mode corresponding to the medical services of the same service type has a certain repeatability, so that in order to improve the efficiency of accessing the medical WeChat reminding service, in the embodiment of the invention, all the medical services are classified and managed.
In detail, the identifying the service type of the medical service includes:
Acquiring service description information of the medical service, and identifying keywords in the service description information;
sequentially calculating the similarity between the keyword and each service type label in a preset service type label set;
and selecting a service type label corresponding to the similarity larger than a preset similarity threshold as the service type of the medical service.
In the embodiment of the invention, the service description information of the medical service includes, but is not limited to, function description information or requirement definition information of the medical service, and the like. For example, an outpatient reservation service is provided that specifies each department of a hospital online.
In an alternative embodiment of the present invention, the keywords in the service description information may be identified by the following method:
performing word segmentation on the service description information to obtain a word segmentation set, and converting each word segment in the word segmentation set into a word vector;
constructing a service vector matrix of the service description information by using the word segmentation set and the word vector of each word segmentation;
sequentially selecting one word as a target word, and calculating a key value of the target word according to a word vector of the target word and the service vector matrix;
And selecting a preset number of segmented words from the segmented word set as key words according to the sequence from the key value to the key value.
In the embodiment of the invention, models with word vector conversion functions such as a word2vec model, an NLP (Natural Language Processing ) model and the like can be adopted to respectively convert the segmented words into word vectors, and further methods such as Glove (Global Vectors for Word Representation, global word vector), embedding Layer and the like can be adopted to construct a service vector matrix of the service description information according to the word vectors of each segmented word.
In the embodiment of the invention, the key value of the target word can be calculated by using the following key value algorithm:
wherein K is the key value, |W T I is the modulus of the transpose of the service vector matrix,and modeling the word vector of the target word segmentation.
In the embodiment of the invention, the preset service type label set can be set according to actual service conditions, for example, an outpatient appointment service class, a physical examination appointment service class, an online medicine-taking service class, a health consultation service class and the like.
In the embodiment of the invention, the information such as the target public number, the original message content, the message jump mode and the like carried in the message configuration request can be extracted according to the message grammar corresponding to the message configuration request.
In the embodiment of the invention, the message configuration request is analyzed from three dimensions of the service type, the target public number and the original message content corresponding to the medical service by taking the message configuration request as a unified access port, so that the message is favorably and uniformly configured according to the three dimensions of the service type, the target public number and the original message content.
S2, selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
in the embodiment of the present invention, the preset message template set refers to a set of preset number of message styles that are planned in advance according to the needs of the actual medical service, and each message template includes, but is not limited to, a message header style, a message body style, a message tail style, and the like. Wherein the message header style may be used to specify a message header, e.g., doctor inquiry notification, clinic appointment success notification; the message body style refers to the text content of the message and can be composed of fixed parameters and variable parameters, for example, a hospital label is a fixed parameter, two words of a hospital are displayed in the message of an object, the actual hospital name is a variable parameter, and the variable parameter is determined according to the actual service condition; the tail style is located at the tail of the message, and may be viewing details of the folded display, or viewing details of the provided jump page.
In detail, referring to fig. 2, the step S2 includes:
s21, acquiring template definition information of each message template in a preset message template set, and extracting template characteristics of each message template according to the template definition information;
s22, extracting service characteristics of the service type and channel characteristics of the target public number;
s23, sequentially calculating service distances between each template feature and the service features, and calculating channel distances between each template feature and the public number features;
s24, sequentially carrying out weighted averaging on the service distance and the channel distance corresponding to each preset message template to obtain the comprehensive distance corresponding to the preset message template;
s25, selecting the message template with the comprehensive distance meeting the preset template screening condition as a target message template of the medical service.
In the embodiment of the invention, the template definition information comprises, but is not limited to, description information such as message type, medical service information corresponding to the message, and a skip mode of the message. Because the template definition information is natural language information, the template definition information can be converted into a text vector matrix by adopting methods such as Glove (Global Vectors for Word Representation) and Embedding Layer, and template characteristics of the template definition information can be extracted from the text vector matrix.
In the embodiment of the invention, the service description information corresponding to the service type can be obtained, and the service characteristics of the service type are extracted from the service description information, wherein the service characteristics comprise but are not limited to medical service keyword characteristics, medical service classification characteristics and the like. Similarly, introduction information of the target public number may be obtained, and channel features of the target public number may be extracted from the introduction information, where the channel features include, but are not limited to, audience features, channel keyword features, and the like.
In the embodiment of the invention, a mahalanobis distance algorithm or a Euclidean distance algorithm can be utilized to respectively calculate the service distance between each template feature and the service feature and calculate the channel distance between each template feature and the public number feature.
In the embodiment of the invention, different weights can be respectively set for the channel characteristics and the service characteristics according to actual service conditions, for example, the weights of the service characteristics can be improved for highlighting the service differences of different medical services, and the weights of the channel characteristics can be improved for highlighting the removal differences of different target public numbers.
In the embodiment of the present invention, the preset template screening condition may be selecting a message template with the smallest sum distance value as the target message template of the medical service.
According to the embodiment of the invention, the message template is screened according to the service type and the target public number of the medical service, so that the fit degree of the message template and the actual medical service can be improved.
S3, message packaging is carried out on the original message content by utilizing the target message template, so that a packaged message is obtained, and the packaged message is delivered to the target public number.
It will be appreciated that typically message templates consist of variable parameters and fixed parameters, for example, a certain out-patient appointment success message template includes:
and (3) hospitals: hospital of certain first person
Department: department of stomatology
Doctor name: something somewhere else
Reservation time: 2021, 10, 23, 09:30-10:30 am
Message content: the appointment is successful, and the appointment is called in advance on the appointment day.
In the message template, the name of each item is fixed, and belongs to a fixed parameter, the specific value of each item is variable, and belongs to a variable parameter, for example, the specific reservation time can be changed according to actual conditions.
According to the embodiment of the invention, the data of the original message content is compared with the similarity between each variable parameter, and the original message content is replaced into the corresponding variable parameter according to the compared similarity result, so that the package of the original message content is finally realized, and the message which can be sent to the user through the target public number is obtained.
In detail, referring to fig. 3, the message packaging the original message content by using the target message template includes:
s31, identifying variable parameters in the target message template, and acquiring parameter labels of each variable parameter;
s32, carrying out semantic recognition on the original message content, and carrying out semantic division on the original message according to a semantic recognition result to obtain a semantic unit set;
s33, calculating the similarity between each semantic unit in the semantic unit set and each parameter label;
s34, replacing the variable parameter with the highest similarity with the semantic unit by utilizing the semantic unit to obtain the packaged message.
In the embodiment of the invention, the variable parameters can be identified according to the template definition information corresponding to the target message template. The parameter tag may be a parameter name of the variable parameter.
In the embodiment of the invention, the natural language model can be utilized to carry out semantic recognition on the original message content, and each semantic unit is an independent and complete information unit.
In the embodiment of the invention, each semantic unit and each parameter label can be respectively converted into the corresponding vector, and the similarity of the semantic unit and the parameter label can be obtained by calculating the distance value between the vectors.
According to the method, the target message template is screened according to the service type of the medical service and the target public number, and the original message content of the medical service is packaged by utilizing the target message template, so that the message which can be delivered through the target public number is obtained.
Fig. 4 is a functional block diagram of a medical WeChat reminding service access device according to an embodiment of the invention.
The medical WeChat reminding service access device 100 can be installed in electronic equipment. Depending on the implementation, the medical WeChat alert service access device 100 may include a request parsing module 101, a message template screening module 102, and a message packaging module 103. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
The request analysis module 101 is configured to receive a message configuration request initiated by a medical service, identify a service type of the medical service, and analyze the message configuration request to obtain a target public number and an original message content;
the message template screening module 102 is configured to select, from a preset message template set, a message template that meets a preset template screening condition as a target message template of the medical service;
the message encapsulation module 103 is configured to encapsulate the original message content by using the target message template to obtain an encapsulated message, and deliver the encapsulated message to the target public number.
In detail, the specific embodiments of each module of the medical WeChat reminding service access device 100 are as follows:
step one, receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
in the embodiment of the invention, taking a medical service platform or a system as an example, the medical service platform provides a plurality of medical services for a large number of users, wherein the medical services comprise, but are not limited to, online clinic appointment, famous doctor appointment, appointment physical examination, online medicine purchase, online rehabilitation consultation and other services. Each medical service needs to send corresponding notification messages, such as a famous doctor number placing message, a famous doctor vacation message, a doctor ordering message, a reservation clinic success notification message, a reservation clinic time about to expire, and the like, through a WeChat path in time according to the change of the service state.
It can be understood that the medical services of the same service type have the same attribute, and correspondingly, the message access processing mode corresponding to the medical services of the same service type has a certain repeatability, so that in order to improve the efficiency of accessing the medical WeChat reminding service, in the embodiment of the invention, all the medical services are classified and managed.
In detail, the identifying the service type of the medical service includes:
acquiring service description information of the medical service, and identifying keywords in the service description information;
sequentially calculating the similarity between the keyword and each service type label in a preset service type label set;
and selecting a service type label corresponding to the similarity larger than a preset similarity threshold as the service type of the medical service.
In the embodiment of the invention, the service description information of the medical service includes, but is not limited to, function description information or requirement definition information of the medical service, and the like. For example, an outpatient reservation service is provided that specifies each department of a hospital online.
In an alternative embodiment of the present invention, the keywords in the service description information may be identified by the following method:
performing word segmentation on the service description information to obtain a word segmentation set, and converting each word segment in the word segmentation set into a word vector;
Constructing a service vector matrix of the service description information by using the word segmentation set and the word vector of each word segmentation;
sequentially selecting one word as a target word, and calculating a key value of the target word according to a word vector of the target word and the service vector matrix;
and selecting a preset number of segmented words from the segmented word set as key words according to the sequence from the key value to the key value.
In the embodiment of the invention, models with word vector conversion functions such as a word2vec model, an NLP (Natural Language Processing ) model and the like can be adopted to respectively convert the segmented words into word vectors, and further methods such as Glove (Global Vectors for Word Representation, global word vector), embedding Layer and the like can be adopted to construct a service vector matrix of the service description information according to the word vectors of each segmented word.
In the embodiment of the invention, the key value of the target word can be calculated by using the following key value algorithm:
wherein K is the key value, |W T I is the modulus of the transpose of the service vector matrix,and modeling the word vector of the target word segmentation.
In the embodiment of the invention, the preset service type label set can be set according to actual service conditions, for example, an outpatient appointment service class, a physical examination appointment service class, an online medicine-taking service class, a health consultation service class and the like.
In the embodiment of the invention, the information such as the target public number, the original message content, the message jump mode and the like carried in the message configuration request can be extracted according to the message grammar corresponding to the message configuration request.
In the embodiment of the invention, the message configuration request is analyzed from three dimensions of the service type, the target public number and the original message content corresponding to the medical service by taking the message configuration request as a unified access port, so that the message is favorably and uniformly configured according to the three dimensions of the service type, the target public number and the original message content.
Selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
in the embodiment of the present invention, the preset message template set refers to a set of preset number of message styles that are planned in advance according to the needs of the actual medical service, and each message template includes, but is not limited to, a message header style, a message body style, a message tail style, and the like. Wherein the message header style may be used to specify a message header, e.g., doctor inquiry notification, clinic appointment success notification; the message body style refers to the text content of the message and can be composed of fixed parameters and variable parameters, for example, a hospital label is a fixed parameter, two words of a hospital are displayed in the message of an object, the actual hospital name is a variable parameter, and the variable parameter is determined according to the actual service condition; the tail style is located at the tail of the message, and may be viewing details of the folded display, or viewing details of the provided jump page.
In detail, selecting a message template meeting a preset template screening condition from a preset message template set as a target message template of the medical service, including:
template definition information of each message template in a preset message template set is obtained, and template characteristics of each message template are extracted according to the template definition information;
extracting service characteristics of the service type and channel characteristics of the target public number;
sequentially calculating service distances between each template feature and the service features, and calculating channel distances between each template feature and the public number features;
weighting and averaging the service distance and the channel distance corresponding to each preset message template in sequence to obtain the comprehensive distance corresponding to the preset message template;
and selecting the message template with the comprehensive distance meeting the preset template screening condition as a target message template of the medical service.
In the embodiment of the invention, the template definition information comprises, but is not limited to, description information such as message type, medical service information corresponding to the message, and a skip mode of the message. Because the template definition information is natural language information, the template definition information can be converted into a text vector matrix by adopting methods such as Glove (Global Vectors for Word Representation) and Embedding Layer, and template characteristics of the template definition information can be extracted from the text vector matrix.
In the embodiment of the invention, the service description information corresponding to the service type can be obtained, and the service characteristics of the service type are extracted from the service description information, wherein the service characteristics comprise but are not limited to medical service keyword characteristics, medical service classification characteristics and the like. Similarly, introduction information of the target public number may be obtained, and channel features of the target public number may be extracted from the introduction information, where the channel features include, but are not limited to, audience features, channel keyword features, and the like.
In the embodiment of the invention, a mahalanobis distance algorithm or a Euclidean distance algorithm can be utilized to respectively calculate the service distance between each template feature and the service feature and calculate the channel distance between each template feature and the public number feature.
In the embodiment of the invention, different weights can be respectively set for the channel characteristics and the service characteristics according to actual service conditions, for example, the weights of the service characteristics can be improved for highlighting the service differences of different medical services, and the weights of the channel characteristics can be improved for highlighting the removal differences of different target public numbers.
In the embodiment of the present invention, the preset template screening condition may be selecting a message template with the smallest sum distance value as the target message template of the medical service.
According to the embodiment of the invention, the message template is screened according to the service type and the target public number of the medical service, so that the fit degree of the message template and the actual medical service can be improved.
And thirdly, carrying out message encapsulation on the original message content by utilizing the target message template to obtain an encapsulated message, and delivering the encapsulated message to the target public number.
It will be appreciated that typically message templates consist of variable parameters and fixed parameters, for example, a certain out-patient appointment success message template includes:
and (3) hospitals: hospital of certain first person
Department: department of stomatology
Doctor name: something somewhere else
Reservation time: 2021, 10, 23, 09:30-10:30 am
Message content: the appointment is successful, and the appointment is called in advance on the appointment day.
In the message template, the name of each item is fixed, and belongs to a fixed parameter, the specific value of each item is variable, and belongs to a variable parameter, for example, the specific reservation time can be changed according to actual conditions.
According to the embodiment of the invention, the data of the original message content is compared with the similarity between each variable parameter, and the original message content is replaced into the corresponding variable parameter according to the compared similarity result, so that the package of the original message content is finally realized, and the message which can be sent to the user through the target public number is obtained.
In detail, the message packaging the original message content by using the target message template includes:
identifying variable parameters in the target message template and acquiring parameter labels of each variable parameter;
carrying out semantic recognition on the original message content, and carrying out semantic division on the original message according to a semantic recognition result to obtain a semantic unit set;
calculating the similarity between each semantic unit in the semantic unit set and each parameter label;
and replacing the variable parameter with the highest similarity with the semantic unit by using the semantic unit to obtain the packaged message.
In the embodiment of the invention, the variable parameters can be identified according to the template definition information corresponding to the target message template. The parameter tag may be a parameter name of the variable parameter.
In the embodiment of the invention, the natural language model can be utilized to carry out semantic recognition on the original message content, and each semantic unit is an independent and complete information unit.
In the embodiment of the invention, each semantic unit and each parameter label can be respectively converted into the corresponding vector, and the similarity of the semantic unit and the parameter label can be obtained by calculating the distance value between the vectors.
According to the method, the target message template is screened according to the service type of the medical service and the target public number, and the original message content of the medical service is packaged by utilizing the target message template, so that the message which can be delivered through the target public number is obtained.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a medical WeChat reminding service access method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a medical WeChat reminder service access program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments 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 memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various data, such as codes of a medical WeChat reminder service access program, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device 1 and processes data by running or executing programs or modules (e.g., medical WeChat reminder service access program, etc.) stored in the memory 11, and calling data stored in the memory 11.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 5 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
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, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The medical WeChat alert service access program stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, may implement:
receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
And carrying out message encapsulation on the original message content by utilizing the target message template to obtain an encapsulated message, and delivering the encapsulated message to the target public number.
Specifically, the specific implementation method of the above instructions by the processor 10 may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
Selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
and carrying out message encapsulation on the original message content by utilizing the target message template to obtain an encapsulated message, and delivering the encapsulated message to the target public number.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.

Claims (10)

1. A medical WeChat reminder service access method, the method comprising:
Receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
and carrying out message encapsulation on the original message content by utilizing the target message template to obtain an encapsulated message, and delivering the encapsulated message to the target public number.
2. The medical WeChat reminder service access method of claim 1, wherein said identifying the service type of the medical service comprises:
acquiring service description information of the medical service, and identifying keywords in the service description information;
sequentially calculating the similarity between the keyword and each service type label in a preset service type label set;
and selecting a service type label corresponding to the similarity larger than a preset similarity threshold as the service type of the medical service.
3. The medical WeChat reminder service access method of claim 2, wherein said identifying keywords in said business description information comprises:
Performing word segmentation on the service description information to obtain a word segmentation set, and converting each word segment in the word segmentation set into a word vector;
constructing a service vector matrix of the service description information by using the word segmentation set and the word vector of each word segmentation;
sequentially selecting one word as a target word, and calculating a key value of the target word according to a word vector of the target word and the service vector matrix;
and selecting a preset number of segmented words from the segmented word set as key words according to the sequence from the key value to the key value.
4. The medical WeChat reminder service access method of claim 3, wherein the calculating the key value of the target word segment comprises:
calculating the key value of the target word by using the following key value algorithm:
wherein K is the key value, |W T I is the modulus of the transpose of the service vector matrix,and modeling the word vector of the target word segmentation.
5. The medical WeChat reminder service access method of claim 1, wherein selecting a message template satisfying a preset template screening condition from a preset message template set as the target message template of the medical service comprises:
Template definition information of each message template in a preset message template set is obtained, and template characteristics of each message template are extracted according to the template definition information;
extracting service characteristics of the service type and channel characteristics of the target public number;
sequentially calculating service distances between each template feature and the service features, and calculating channel distances between each template feature and the public number features;
weighting and averaging the service distance and the channel distance corresponding to each preset message template in sequence to obtain the comprehensive distance corresponding to the preset message template;
and selecting the message template with the comprehensive distance meeting the preset template screening condition as a target message template of the medical service.
6. The medical WeChat alert service access method of claim 1, wherein said message packaging the original message content using the target message template comprises:
identifying variable parameters in the target message template and acquiring parameter labels of each variable parameter;
carrying out semantic recognition on the original message content, and carrying out semantic division on the original message according to a semantic recognition result to obtain a semantic unit set;
Calculating the similarity between each semantic unit in the semantic unit set and each parameter label;
and replacing the variable parameter with the highest similarity with the semantic unit by using the semantic unit to obtain the packaged message.
7. A medical WeChat alert service access device, the device comprising:
the request analysis module is used for receiving a message configuration request initiated by a medical service, identifying the service type of the medical service, and analyzing the message configuration request to obtain a target public number and original message content;
the message template screening module is used for selecting a message template meeting preset template screening conditions from a preset message template set as a target message template of the medical service;
and the message encapsulation module is used for encapsulating the original message content by utilizing the target message template to obtain an encapsulated message and delivering the encapsulated message to the target public number.
8. The medical WeChat alert service access device of claim 7, wherein the message encapsulation module encapsulates the original message content by:
Identifying variable parameters in the target message template and acquiring parameter labels of each variable parameter;
carrying out semantic recognition on the original message content, and carrying out semantic division on the original message according to a semantic recognition result to obtain a semantic unit set;
calculating the similarity between each semantic unit in the semantic unit set and each parameter label;
and replacing the variable parameter with the highest similarity with the semantic unit by using the semantic unit to obtain the packaged message.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the medical WeChat reminder service Access method of any one of claims 1 to 6.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the medical WeChat reminder service access method according to any one of claims 1 to 6.
CN202311022167.3A 2023-08-14 2023-08-14 Medical WeChat reminding service access method, device, equipment and medium Pending CN117059241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311022167.3A CN117059241A (en) 2023-08-14 2023-08-14 Medical WeChat reminding service access method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311022167.3A CN117059241A (en) 2023-08-14 2023-08-14 Medical WeChat reminding service access method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117059241A true CN117059241A (en) 2023-11-14

Family

ID=88663912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311022167.3A Pending CN117059241A (en) 2023-08-14 2023-08-14 Medical WeChat reminding service access method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117059241A (en)

Similar Documents

Publication Publication Date Title
CN112528616B (en) Service form generation method and device, electronic equipment and computer storage medium
CN111986744B (en) Patient interface generation method and device for medical institution, electronic equipment and medium
CN113902574A (en) Protocol data processing method, device, computer equipment and storage medium
CN116705304A (en) Multi-mode task processing method, device, equipment and medium based on image text
CN116702776A (en) Multi-task semantic division method, device, equipment and medium based on cross-Chinese and western medicine
CN116741358A (en) Inquiry registration recommendation method, inquiry registration recommendation device, inquiry registration recommendation equipment and storage medium
CN116842290A (en) Data caching method, device, equipment and computer readable storage medium
CN115982454A (en) User portrait based questionnaire pushing method, device, equipment and storage medium
CN113806540B (en) Text labeling method, text labeling device, electronic equipment and storage medium
CN114780688A (en) Text quality inspection method, device and equipment based on rule matching and storage medium
CN117059241A (en) Medical WeChat reminding service access method, device, equipment and medium
CN113706207A (en) Order transaction rate analysis method, device, equipment and medium based on semantic analysis
CN113344674A (en) Product recommendation method, device, equipment and storage medium based on user purchasing power
CN113723114A (en) Semantic analysis method, device and equipment based on multi-intent recognition and storage medium
CN113921097A (en) Medical data integration method and device, electronic equipment and storage medium
CN114399293B (en) Information reminding method, device, equipment and storage medium
CN112214556B (en) Label generation method, label generation device, electronic equipment and computer readable storage medium
CN114973294B (en) Image-text matching method, device, equipment and storage medium
CN116805529A (en) Medical service arrangement method, device, equipment and computer readable storage medium
CN116594618A (en) APP page list generation method and device, electronic equipment and storage medium
CN118427326A (en) Knowledge base text matching question-answering method, device and equipment based on dialogue model
CN116525142A (en) Intention recognition method and device based on-line inquiry, electronic equipment and medium
CN116882956A (en) Prompting method, device, equipment and storage medium for questionnaire life cycle
CN116860944A (en) Session generation method, device, electronic equipment and medium
CN116881558A (en) Medicine-based questionnaire pushing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination