CN111967236B - Message processing method, device, computer equipment and storage medium - Google Patents

Message processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN111967236B
CN111967236B CN202010749679.XA CN202010749679A CN111967236B CN 111967236 B CN111967236 B CN 111967236B CN 202010749679 A CN202010749679 A CN 202010749679A CN 111967236 B CN111967236 B CN 111967236B
Authority
CN
China
Prior art keywords
target
message
party platform
service data
engine
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.)
Active
Application number
CN202010749679.XA
Other languages
Chinese (zh)
Other versions
CN111967236A (en
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.)
Wuhan United Imaging Healthcare Co Ltd
Original Assignee
Wuhan United Imaging Healthcare 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 Wuhan United Imaging Healthcare Co Ltd filed Critical Wuhan United Imaging Healthcare Co Ltd
Priority to CN202010749679.XA priority Critical patent/CN111967236B/en
Publication of CN111967236A publication Critical patent/CN111967236A/en
Application granted granted Critical
Publication of CN111967236B publication Critical patent/CN111967236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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
    • G16H15/00ICT specially adapted for medical reports, e.g. generation or transmission thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Epidemiology (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a message processing method, a device, a computer device and a storage medium, when target service data is required to be sent to a third party platform, the target service data is acquired, a preset template engine is called to generate a target message body from the target service data, and then the target message body is sent to the third party platform. In the method, when the target service data is sent to the third party platform, the target service data is sent through the preset template engine, so that when the third party platform is in butt joint, only the message body template is required to be modified, the target service data is filled into the message body template, and the message can be sent to the third party platform without the need of reproducing the message body, thereby improving the message interaction efficiency between the service platforms.

Description

Message processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a message processing method, a device, a computer device, and a storage medium.
Background
Typically, message interaction can be performed between each service platform, for example, an ultrasonic service system needs to dock multiple third party platforms when in practical use. However, the message format and the message definition required by each third party platform are different, and the definition of the same standard message by different platforms may be inconsistent. Therefore, a hard coding method is needed to generate the message, the hard coding method needs to manually code corresponding classes and functions in the system according to different message body requirements, for example, HL 7V 3 (standardized health information transmission protocol) messages, different classes need to be added in codes to realize the response node message body, and finally, the response node message body is spliced into the finished message.
However, the generation of the message by the hard coding mode cannot meet the diversified requirements of each platform, and when the platforms are docked, the process of revising the codes is complex, and the manpower resources for development and testing are wasted, so that the message interaction efficiency between the service platforms is extremely low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a message processing method, apparatus, computer device, and storage medium that can improve the efficiency of message interaction between service platforms.
In a first aspect, an embodiment of the present application provides a message processing method, including:
If the target service data is required to be sent to the third party platform, acquiring the target service data;
calling a preset template engine to generate target message body from target service data;
and sending the target message body to a third party platform.
In one embodiment, the method further comprises:
Detecting whether target service data need to be sent to a third party platform or not;
And if the target service data is required to be sent to the third party platform, executing the step of acquiring the target service data.
In one embodiment, the detecting whether the target service data needs to be sent to the third party platform includes:
And if the message sending instruction is received, determining that the target service data needs to be sent to the third party platform.
In one embodiment, the triggering manner of the message sending instruction includes:
triggering a message sending instruction through a preset rule engine; the rule engine is used to control the type and flow of messages sent.
In one embodiment, the triggering the message sending instruction through the preset rule engine includes:
and if the preset time is reached, calling a rule engine to trigger a message sending instruction.
In one embodiment, the triggering the message sending instruction through the preset rule engine includes:
and if the trigger request input by the user is received, invoking a rule engine to trigger a message sending instruction.
In one embodiment, the message sending instruction carries a template engine identifier;
the calling the preset template engine to generate the target message body from the target service data comprises the following steps:
Determining a target template engine corresponding to the third-party platform according to the template engine identification
And generating the target message body from the target business data through the target template engine.
In one embodiment, the generating, by the target template engine, the target message body from the target service data includes:
and filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body.
In a second aspect, an embodiment of the present application provides a message processing apparatus, including:
the acquisition module is used for acquiring the target service data if the target service data need to be sent to the third party platform;
the calling module is used for calling a preset template engine to generate target message bodies from target service data;
And the sending module is used for sending the target message body to the third party platform.
In one embodiment, the apparatus further comprises:
The detection module is used for detecting whether the target service data is required to be sent to the third party platform;
The obtaining module is configured to perform the step of obtaining the target service data if the target service data needs to be sent to the third party platform.
In one embodiment, the detection module includes: and the determining unit is used for determining that the target service data needs to be sent to the third party platform if the message sending instruction is received.
In one embodiment, the apparatus further comprises: the triggering module is used for triggering the message sending instruction through a preset rule engine; the rule engine is used to control the type and flow of messages sent.
In one embodiment, the triggering module includes: the first calling unit is used for calling the rule engine to trigger the message to send the instruction if the preset time is reached.
In one embodiment, the triggering module includes: and the second calling unit is used for calling the rule engine to trigger the message to send the instruction if the trigger request input by the user is received.
In one embodiment, the message sending instruction carries a template engine identifier; the calling module comprises:
And the determining unit is used for determining a target template engine generating unit corresponding to the third-party platform according to the template engine identification and generating target message bodies from the target business data through the target template engine.
In one embodiment, the generating unit is specifically configured to fill the target service data into a corresponding placeholder location in the target template engine to obtain the target message body.
In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
If the target service data is required to be sent to the third party platform, acquiring the target service data;
calling a preset template engine to generate target message body from target service data;
and sending the target message body to a third party platform.
In one embodiment, the processor when executing the computer program further performs the steps of:
Detecting whether target service data need to be sent to a third party platform or not;
And if the target service data is required to be sent to the third party platform, executing the step of acquiring the target service data.
In one embodiment, the processor when executing the computer program further performs the steps of:
And if the message sending instruction is received, determining that the target service data needs to be sent to the third party platform.
In one embodiment, the processor when executing the computer program further performs the steps of:
triggering a message sending instruction through a preset rule engine; the rule engine is used to control the type and flow of messages sent.
In one embodiment, the processor when executing the computer program further performs the steps of:
and if the preset time is reached, calling a rule engine to trigger a message sending instruction.
In one embodiment, the processor when executing the computer program further performs the steps of:
and if the trigger request input by the user is received, invoking a rule engine to trigger a message sending instruction.
In one embodiment, the processor when executing the computer program further performs the steps of:
Determining a target template engine corresponding to the third-party platform according to the template engine identification
And generating the target message body from the target business data through the target template engine.
In one embodiment, the processor when executing the computer program further performs the steps of:
and filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
If the target service data is required to be sent to the third party platform, acquiring the target service data;
calling a preset template engine to generate target message body from target service data;
and sending the target message body to a third party platform.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Detecting whether target service data need to be sent to a third party platform or not;
And if the target service data is required to be sent to the third party platform, executing the step of acquiring the target service data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
And if the message sending instruction is received, determining that the target service data needs to be sent to the third party platform.
In one embodiment, the computer program when executed by the processor further performs the steps of:
triggering a message sending instruction through a preset rule engine; the rule engine is used to control the type and flow of messages sent.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the preset time is reached, calling a rule engine to trigger a message sending instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the trigger request input by the user is received, invoking a rule engine to trigger a message sending instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining a target template engine corresponding to the third-party platform according to the template engine identification
And generating the target message body from the target business data through the target template engine.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body.
When target service data is required to be sent to a third party platform, the method, the device, the computer equipment and the storage medium for processing the message acquire the target service data, call a preset template engine to generate a target message body from the target service data, and then send the target message body to the third party platform. In the method, when the target service data is sent to the third party platform, the target service data is sent through the preset template engine, so that when the third party platform is in butt joint, only the message body template is required to be modified, the target service data is filled into the message body template, and the message can be sent to the third party platform without the need of reproducing the message body, thereby improving the message interaction efficiency between the service platforms.
Drawings
FIG. 1 is a diagram of an application environment for a message processing method in one embodiment;
FIG. 1a is a diagram of the internal architecture of a server in one embodiment;
FIG. 2 is a flow diagram of a message processing method in one embodiment;
FIG. 3 is a flow chart of a message processing method according to another embodiment;
FIG. 4 is a flow chart of a message processing method in another embodiment;
FIG. 5 is a block diagram of a deployment device of a software product in one embodiment;
FIG. 6 is a block diagram of a deployment device of a software product in another embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. 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 message processing method provided by the application can be applied to an application environment shown in figure 1. The service platform 01 and the third party platform 02 can perform message interaction, and the operations of the service platform 01 and the third party platform 02 are carried in a server. The internal structure of a server carrying a service platform 01 and a third party platform 02 is shown in fig. 1a, and the server includes a processor, a memory and a network interface connected through a system bus. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server includes nonvolatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the server is used for storing relevant data of message processing. The network interface of the server is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a message processing method.
The embodiment of the application provides a message processing method, a message processing device, computer equipment and a storage medium, which can improve the message interaction efficiency between service platforms. The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail by examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. It should be noted that, in the message processing method provided by the present application, the execution subject of fig. 2 to fig. 4 is a service platform (in practical application, a server corresponding to the service platform, here simply referred to as the service platform). The execution body of fig. 2-4 may also be a message processing apparatus, where the apparatus may be implemented as part or all of a service platform by using software, hardware, or a combination of software and hardware.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application.
In one embodiment, as shown in fig. 2, a message processing method is provided, and the embodiment is described by taking a server in fig. 1a as an example, and relates to a specific process that a service platform generates a target message body by using a preset board engine according to target service data to be sent to a third party platform, and then sends the target message body to the third party platform, where the embodiment includes the following steps:
S101, if the target service data is required to be sent to the third party platform, the target service data is acquired.
Referring to fig. 1, if a service platform needs to send target service data to a third party platform, the service platform needs to acquire the target service data. For example, the service platform is an ultrasound service system, and the third party platform is a management information system, a clinical medical information system, and the like. The third party platform is different from the service platform, but needs to perform information interaction. The target service data is data which is prepared by the service platform and sent to the third party platform, and takes an ultrasonic service system as an example, and the target service data comprises, but is not limited to, an ultrasonic image-text report and the like of a diagnosis and treatment object.
The premise of the service platform obtaining the target service data is that the service platform needs to send the target service data to the third party platform, and then the service platform needs to judge whether to send the target service data to the third party platform. Optionally, the method further comprises: detecting whether target service data need to be sent to a third party platform or not; and if the target service data is required to be sent to the third party platform, executing the step of acquiring the target service data. Optionally, one implementation of detecting whether the target service data needs to be sent to the third party platform includes: and if the message sending instruction is received, determining that the target service data needs to be sent to the third party platform. The service platform detects whether a message sending instruction is received or not, and if the message sending instruction is received, the service platform determines that target service data need to be sent to the third party platform.
Specifically, the service platform may detect whether the target service data needs to be sent to the third party platform or not by detecting whether the target service data meets a preset sending condition, where the preset sending condition includes sending a preset type of service data at regular time, for example, sending an ultrasonic image-text report of all diagnosis and treatment objects on the same day to the third party platform at 12 am; or the preset sending condition comprises receiving a request of a third party platform, for example, receiving an ultrasonic graphic report of the request XX sent by the third party platform. The present embodiment does not limit the preset transmission conditions.
Based on preset sending conditions, when the service platform detects that the target service data meets the preset sending conditions, determining that the target service data needs to be sent to a third party platform, and then executing the step of obtaining the target service data.
S102, calling a preset template engine to generate target message body from target service data.
It can be understood that the multiple platforms/systems referred to by the third party platform are referred to, so when the service platform detects whether to send the target service data to the third party platform, the service platform is aimed at one or more of the platforms/systems, and in practical application, when the service platform performs message interaction with the service platform, the format and definition of the message are different, so when the service platform obtains the target service data and sends the target service data to the third party platform, it is required to determine to package the target service data and package the target service data into the message body corresponding to the third party platform.
Specifically, the service platform may implement the method of generating the target message body from the target service data by calling a preset template engine, where the template engine is a template component of the preset message body and is used for producing the message, and the preset template engine may be a general message body template, or may be templates of multiple different types of message bodies, for example, HL 7V 3 (standardized sanitary information transmission protocol) messages and XDS messages, which is not limited in this embodiment. For example, if the preset template engine is a universal message body template component, the service platform directly calls the universal message body template component to generate the target message body from the target service data; however, if the preset template engine is a message body template component of a plurality of different types, the service platform calls the message body template component corresponding to the third party platform to be sent, and generates the target message body from the target service data.
In one embodiment, the template engine may be determined based on at least one of a third party platform type, a service platform type, a user type, a target service data type. Still further, the template engine may be further determined by a machine learning model, wherein the training features of the machine learning model include at least one of a third party platform type, a business platform type, a user type, a target business data type.
S103, sending the target message body to the third party platform.
After the target message body is generated, the target message body is sent to a third party platform. Of course, if multiple third party platforms need to be sent simultaneously in actual application, different target message bodies generated by adopting different template engines can be sent to the corresponding third party platforms.
According to the message processing method provided by the embodiment, when the target service data is required to be sent to the third party platform, the target service data is obtained, a preset template engine is called to generate a target message body from the target service data, and then the target message body is sent to the third party platform. In the method, when the target service data is sent to the third party platform, the target service data is sent through the preset template engine, so that when the third party platform is in butt joint, only the message body template is required to be modified, the target service data is filled into the message body template, and the message can be sent to the third party platform without the need of reproducing the message body, thereby improving the message interaction efficiency between the service platforms.
Describing the case where the preset template engine includes a plurality of different types of message body template components by some embodiments, as shown in fig. 3, in one embodiment, the calling the preset template engine to generate the target message body from the target service data includes:
s201, determining a target template engine corresponding to the third party platform.
After obtaining the target service data and the third party platform to be sent, the service platform determines a target template engine corresponding to the third party platform so as to generate a target message body identifiable by the third party platform from the target service data by adopting the target template engine corresponding to the third party platform.
Optionally, the target template engine is determined according to the template engine identifier, and then the service platform may directly obtain the target template engine according to the correspondence between the template engine identifier and the target template engine.
Optionally, the template engine identifier is carried in a message sending instruction, and the message sending instruction is used for instructing the service platform to send the target service data to the third party platform. The service platform receives a message sending instruction for sending the target service data to the third party platform, and the message sending instruction carries a template engine identifier, so that the service platform can determine a target template engine according to the template engine identifier, namely, the target template engine corresponding to the third party platform.
In one embodiment, the message sending instruction may be triggered by a preset rule engine, which is used to control the kind and flow of the sent message. The method comprises the steps of presetting a rule engine for controlling the type and flow of a transmitted message, and triggering a message transmitting instruction when the rule engine meets preset rules. Further, when the rule engine triggers the message sending instruction, the rule engine can carry the identification of the template engine to be adopted in the triggered message sending instruction according to the type of the target service data.
Optionally, if the preset time is reached, calling a rule engine to trigger a message sending instruction; optionally, if a trigger request input by a user is received, a rule engine trigger message sending instruction is invoked.
The rule engine triggers the message sending instruction when a preset rule is met, wherein the preset rule can be that the trigger request input by a user is received or a preset time is reached, namely, when the trigger request input by the user is received or the preset time is reached, the service platform calls the rule engine to trigger the message sending instruction. Or the preset rule may be other rules, for example, a request of a third party platform is received, which is not limited in this embodiment.
S202, generating a target message body from the target business data through a target template engine.
After the target template engine is determined, the target template engine is called to generate target message body from the target service data. Optionally, the means for generating the target message body includes: and filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body.
The message body template in each template engine is a file in a text form, wherein the content required to be filled into the message body template exists in a form of placeholders in the template, and when the target service data is required to be filled into the message body template, the corresponding content is filled into the position of the corresponding placeholders, for example, the name of a diagnosis and treatment object in the target service data is replaced with the placeholders of the name column in the message body template, or the ultrasonic image-text report of the diagnosis and treatment object in the target service data is replaced with the placeholders of the ultrasonic image-text report column in the message body template.
In this embodiment, the preset template engine includes a plurality of message body template components of different types, and when the target message body is generated, the message body template corresponding to the third party platform is adopted, so when the third party platform is docked, only the message body template needs to be modified, and thus, the content (for example, specific diagnosis and treatment information) and the presentation mode (for example, different message body templates) are separated by the template engine, so that the generation of different message bodies is realized, and therefore, the messages with different standards and different platform requirements are generated, the smooth interaction between the platforms is ensured, and the interaction efficiency of the messages between the platforms is improved.
As shown in fig. 4, an embodiment of the present application provides a message processing method, which includes:
S301, if the preset time is reached or a trigger request input by a user is received, a rule engine trigger message sending instruction is called;
S302, receiving a message sending instruction, and determining that target service data need to be sent to a third party platform;
s303, obtaining a template engine identification carried in a message sending instruction;
s304, determining a target template engine corresponding to the third party platform according to the template engine identification;
s305, generating a target message body from target business data through a target template engine;
S306, sending the target message body to the third party platform.
In this embodiment, when the target service data needs to be sent to the third party platform, the target template engine corresponding to the third party platform is determined according to the template engine identifier, and then the target message body is sent to the third party platform after the target template engine is adopted to generate the target message body from the target service data. In this embodiment, since the message body template corresponding to the third party platform is used to generate the target message body, only the message body template needs to be modified when the third party platform is docked, so that the content (for example, specific diagnosis and treatment information) and the presentation mode (for example, different message body templates) are separated by the template engine, and different message bodies are generated, so that messages with different standards and different platform requirements are generated, smooth interaction between the platforms is ensured, and the interaction efficiency of the messages between the platforms is improved.
The implementation principle and technical effects of each step in the message processing method provided in this embodiment are similar to those in the foregoing message processing method embodiments, and are not described herein again. The implementation manner of each step in the embodiment of fig. 4 is merely an example, and the implementation manner is not limited, and the order of each step may be adjusted in practical application, so long as the purpose of each step can be achieved.
It should be understood that, although the steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 5, there is provided a message processing apparatus comprising:
the acquiring module 10 is configured to acquire target service data if the target service data needs to be sent to a third party platform;
the calling module 11 is used for calling a preset template engine to generate a target message body from the target service data;
a sending module 12, configured to send the target message body to the third party platform.
In one embodiment, the apparatus further comprises:
The detection module is used for detecting whether the target service data is required to be sent to the third party platform;
the obtaining module 10 is configured to perform the step of obtaining the target service data if the target service data needs to be sent to the third party platform.
In one embodiment, the detection module includes: and the determining unit is used for determining that the target service data needs to be sent to the third party platform if the message sending instruction is received.
In one embodiment, the apparatus further comprises: the triggering module is used for triggering the message sending instruction through a preset rule engine; the rule engine is used to control the type and flow of messages sent.
In one embodiment, the triggering module includes: the first calling unit is used for calling the rule engine to trigger the message to send the instruction if the preset time is reached.
In one embodiment, the triggering module includes: and the second calling unit is used for calling the rule engine to trigger the message to send the instruction if the trigger request input by the user is received.
In one embodiment, the message sending instruction carries a template engine identifier; as shown in fig. 6, the calling module 11 includes:
A determining unit 111, configured to determine, according to the template engine identifier, a target template engine corresponding to the third party platform
A generating unit 112, configured to generate, by using the target template engine, the target service data into a target message body.
In one embodiment, the generating unit is specifically configured to fill the target service data into a corresponding placeholder location in the target template engine to obtain a target message body.
For specific limitations of the message processing apparatus, reference may be made to the above limitations of the message processing method, and no further description is given here. The respective modules in the above-described message processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a message processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
If the target service data is required to be sent to the third party platform, acquiring the target service data;
calling a preset template engine to generate target message body from target service data;
and sending the target message body to a third party platform.
In one embodiment, the processor, when executing the computer program, performs the steps of:
Detecting whether target service data need to be sent to a third party platform or not;
And if the target service data is required to be sent to the third party platform, executing the step of acquiring the target service data.
In one embodiment, the processor, when executing the computer program, performs the steps of:
And if the message sending instruction is received, determining that the target service data needs to be sent to the third party platform.
In one embodiment, the processor, when executing the computer program, performs the steps of:
triggering a message sending instruction through a preset rule engine; the rule engine is used to control the type and flow of messages sent.
In one embodiment, the processor, when executing the computer program, performs the steps of:
and if the preset time is reached, calling a rule engine to trigger a message sending instruction.
In one embodiment, the processor, when executing the computer program, performs the steps of:
and if the trigger request input by the user is received, invoking a rule engine to trigger a message sending instruction.
In one embodiment, the processor, when executing the computer program, performs the steps of:
Determining a target template engine corresponding to the third-party platform according to the template engine identification
And generating the target message body from the target business data through the target template engine.
In one embodiment, the processor, when executing the computer program, performs the steps of:
and filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
If the target service data is required to be sent to the third party platform, acquiring the target service data;
calling a preset template engine to generate target message body from target service data;
and sending the target message body to a third party platform.
In one embodiment, the computer program when executed by a processor performs the steps of:
Detecting whether target service data need to be sent to a third party platform or not;
And if the target service data is required to be sent to the third party platform, executing the step of acquiring the target service data.
In one embodiment, the computer program when executed by a processor performs the steps of:
And if the message sending instruction is received, determining that the target service data needs to be sent to the third party platform.
In one embodiment, the computer program when executed by a processor performs the steps of:
triggering a message sending instruction through a preset rule engine; the rule engine is used to control the type and flow of messages sent.
In one embodiment, the computer program when executed by a processor performs the steps of:
and if the preset time is reached, calling a rule engine to trigger a message sending instruction.
In one embodiment, the computer program when executed by a processor performs the steps of:
and if the trigger request input by the user is received, invoking a rule engine to trigger a message sending instruction.
In one embodiment, the computer program when executed by a processor performs the steps of:
Determining a target template engine corresponding to the third-party platform according to the template engine identification
And generating the target message body from the target business data through the target template engine.
In one embodiment, the computer program when executed by a processor performs the steps of:
and filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body.
The foregoing embodiment provides a computer readable storage medium, which has similar principles and technical effects to those of the foregoing method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method of message processing, the method comprising:
if a message sending instruction is received, determining that target service data need to be sent to a third party platform, and acquiring the target service data; the third party platform comprises a management information system and a clinical medical information system; the target service data comprise ultrasonic images and ultrasonic image-text reports of diagnosis and treatment objects; when each third party platform performs message interaction with the service platform, the format and definition of the message are different;
Acquiring a template engine identification carried in the message sending instruction;
Determining a target template engine corresponding to the third-party platform according to the template engine identification; the message body template in the target template engine is a file in a text form;
filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body;
And sending the target message body to the third party platform.
2. The method of claim 1, wherein the triggering of the message sending instruction comprises:
Triggering the message sending instruction through a preset rule engine; the rule engine is used for controlling the type and flow of the message.
3. The method of claim 2, wherein triggering the message sending instruction by a preset rules engine comprises:
and if the preset time is reached, calling the rule engine to trigger the message sending instruction.
4. The method of claim 2, wherein triggering the message sending instruction by a preset rules engine comprises:
and if a trigger request input by a user is received, invoking the rule engine to trigger the message sending instruction.
5. The method of any of claims 1-4, wherein the service platform is an ultrasound service system.
6. The method of any of claims 1-4, wherein the target template engine is a template component of a pre-set message body.
7. The method of any of claims 1-4, wherein the target template engine is determined based on at least one of a third party platform type, a business platform type, a user type, a target business data type.
8. A message processing apparatus, the apparatus comprising:
The acquisition module is used for determining that target service data need to be sent to the third party platform under the condition of receiving the message sending instruction, and acquiring the target service data; the third party platform comprises a management information system and a clinical medical information system; the target service data comprise ultrasonic images and ultrasonic image-text reports of diagnosis and treatment objects; when each third party platform performs message interaction with the service platform, the format and definition of the message are different;
The calling module is used for acquiring a template engine identifier carried in the message sending instruction; determining a target template engine corresponding to the third-party platform according to the template engine identification; the message body template in the target template engine is a file in a text form; filling the target business data into the corresponding placeholder positions in the target template engine to obtain a target message body;
and the sending module is used for sending the target message body to the third party platform.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202010749679.XA 2020-07-30 2020-07-30 Message processing method, device, computer equipment and storage medium Active CN111967236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010749679.XA CN111967236B (en) 2020-07-30 2020-07-30 Message processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010749679.XA CN111967236B (en) 2020-07-30 2020-07-30 Message processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111967236A CN111967236A (en) 2020-11-20
CN111967236B true CN111967236B (en) 2024-05-24

Family

ID=73364109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010749679.XA Active CN111967236B (en) 2020-07-30 2020-07-30 Message processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111967236B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656735A (en) * 2021-08-19 2021-11-16 携程商旅信息服务(上海)有限公司 Message pushing system, method, electronic equipment and storage medium
CN114222256B (en) * 2021-11-16 2023-10-20 中国建设银行股份有限公司 Message sending method and device and electronic equipment
CN114374737A (en) * 2022-01-12 2022-04-19 平安普惠企业管理有限公司 Message pushing method and device, computer equipment and storage medium
CN114900381B (en) * 2022-03-23 2024-03-22 青岛海尔科技有限公司 Message sending method and device, storage medium and electronic device
CN115514792B (en) * 2022-11-23 2023-03-28 中汽数据(天津)有限公司 Automobile test equipment interaction method based on industrial Internet identification system
CN115796143B (en) * 2023-01-18 2023-06-02 鲁班(北京)电子商务科技有限公司 Cross-platform message template configuration method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107438856A (en) * 2015-04-01 2017-12-05 谷歌公司 The notice transmission of triggering association
CN107645524A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 A kind of message push processing method and device
CN110187986A (en) * 2019-05-31 2019-08-30 深信服科技股份有限公司 A kind of command management method, system, device and computer readable storage medium
CN110351315A (en) * 2018-04-03 2019-10-18 中兴通讯股份有限公司 Method, system and storage medium, the electronic device of data processing
CN110825488A (en) * 2019-09-29 2020-02-21 山东中创软件工程股份有限公司 Business processing method and device, electronic equipment and storage medium
CN111263938A (en) * 2017-09-29 2020-06-09 甲骨文国际公司 Rule-based autonomous database cloud service framework
CN111274045A (en) * 2020-01-14 2020-06-12 平安银行股份有限公司 Multi-platform docking method and device, computer equipment and readable storage medium
CN111342982A (en) * 2020-02-28 2020-06-26 海信集团有限公司 Method and system for transmitting integrated multiple messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10547577B2 (en) * 2017-03-28 2020-01-28 Whatsapp Inc. Techniques for templated messages
US11151314B2 (en) * 2018-10-19 2021-10-19 Sap Se Extensible grid layout

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107438856A (en) * 2015-04-01 2017-12-05 谷歌公司 The notice transmission of triggering association
CN107645524A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 A kind of message push processing method and device
CN111263938A (en) * 2017-09-29 2020-06-09 甲骨文国际公司 Rule-based autonomous database cloud service framework
CN110351315A (en) * 2018-04-03 2019-10-18 中兴通讯股份有限公司 Method, system and storage medium, the electronic device of data processing
CN110187986A (en) * 2019-05-31 2019-08-30 深信服科技股份有限公司 A kind of command management method, system, device and computer readable storage medium
CN110825488A (en) * 2019-09-29 2020-02-21 山东中创软件工程股份有限公司 Business processing method and device, electronic equipment and storage medium
CN111274045A (en) * 2020-01-14 2020-06-12 平安银行股份有限公司 Multi-platform docking method and device, computer equipment and readable storage medium
CN111342982A (en) * 2020-02-28 2020-06-26 海信集团有限公司 Method and system for transmitting integrated multiple messages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种多Agent的情境装配模型;宋晨;刘惠义;;计算机集成制造系统;20160515(第05期);全文 *

Also Published As

Publication number Publication date
CN111967236A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN111967236B (en) Message processing method, device, computer equipment and storage medium
CN105677452B (en) Task processing method and device for task platform
CN109101228B (en) Application program execution method and device
CN106133698A (en) Framework for user model collapse report
CN106547580B (en) Method and device for hooking function, mobile terminal and storage medium
CN111209122B (en) Interface calling method and device, electronic equipment and storage medium
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN111459541A (en) Application program packaging method and device, computer equipment and storage medium
CN108900627B (en) Network request method, terminal device and storage medium
CN113672405A (en) Data interaction system and page display method based on data interaction system
CN113225379A (en) Method and device for sending HTTP request message
CN104503768A (en) Call method and device for application programming interface (API)
CN115145545A (en) Method and device for generating small program code, computer equipment and storage medium
KR101689984B1 (en) Programmable controller, programmable controller system, and execute error information creation method
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN112231210A (en) Test method, equipment and storage medium under network function virtualization environment
CN108196999A (en) Server B MC obtains the method and device of GPU temperature
EP3188071A1 (en) Application accessing control method and device
CN113885753A (en) Information input method and device, terminal equipment and storage medium
CN114610446A (en) Method, device and system for automatically injecting probe
CN114567571A (en) Performance test method and device, electronic equipment and computer readable storage medium
CN114282760A (en) Workflow generation method and device combining dynamic form and dynamic flow
CN112925658A (en) Bridging method and device
CN112256564A (en) Application program running method and device and electronic equipment
CN112416877A (en) Medical data storage method and device, computer 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
GR01 Patent grant
GR01 Patent grant