CN113284586B - Medical service processing method, device, equipment and storage medium - Google Patents

Medical service processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113284586B
CN113284586B CN202110566348.7A CN202110566348A CN113284586B CN 113284586 B CN113284586 B CN 113284586B CN 202110566348 A CN202110566348 A CN 202110566348A CN 113284586 B CN113284586 B CN 113284586B
Authority
CN
China
Prior art keywords
medical service
preset
service
interface
target medical
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
CN202110566348.7A
Other languages
Chinese (zh)
Other versions
CN113284586A (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.)
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 CN202110566348.7A priority Critical patent/CN113284586B/en
Publication of CN113284586A publication Critical patent/CN113284586A/en
Application granted granted Critical
Publication of CN113284586B publication Critical patent/CN113284586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Biomedical Technology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The invention relates to the technical field of big data, and discloses a medical service processing method, a device, equipment and a storage medium, which are applied to the intelligent medical field and are used for improving the stability of a current limiting service and the timeliness of a current limiting notification. The medical service processing method comprises the following steps: intercepting a target medical service request in a preset interception mode to obtain a target medical service interface and a plurality of service parameters; if the concurrency number is smaller than or equal to a preset current limiting threshold, calling a target medical service interface according to a plurality of service parameters to obtain a target medical service response message, and returning the target medical service response message; if the concurrency number is greater than the preset current limiting threshold, performing interface degradation processing on the target medical service interface according to a plurality of service parameters to obtain a degradation service response message, and sending the degradation service response message and the alarm short message. In addition, the invention also relates to a blockchain technology, and the target medical service response message and the degradation service response message can be stored in a blockchain node.

Description

Medical service processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of large data resource allocation, and in particular, to a medical service processing method, apparatus, device, and storage medium.
Background
At present, a plurality of flow control middleware are available in the market, and have a relatively strong flow control function. For example, a flow protection component sendtinel facing the distributed service architecture can limit the flow, monitor the dubbo condition of the service framework of the interface and provide a report page for a developer to check the flow control condition.
Each application needs to upload a large amount of information to the medical center management background, so that the medical center management background is required to have higher performance, the overhead and network overhead of the application are increased, and system resources are preempted in high concurrency. The existing sentinel has powerful functions, but lacks of short message notification alarm after current limiting configuration, operation and maintenance personnel are required to actively inquire the flow control condition, meanwhile, the use is complex, and a large number of functions influence the overall operation performance and operation stability of the medical center management background.
Disclosure of Invention
The invention provides a medical service processing method, a device, equipment and a storage medium, which are used for reducing the operation cost of a current limiting service through a current limiting interception mechanism and an early warning mechanism and improving the stability of the current limiting service and the timeliness of current limiting notification.
To achieve the above object, a first aspect of the present invention provides a medical service processing method, including: acquiring a target medical service request, and intercepting and checking the target medical service request in a preset interception mode to obtain a target medical service interface and a plurality of service parameters, wherein the target medical service request is used for processing a medical service preset in a preset medical service scene; when the current limiting mode is started, obtaining the concurrency quantity, and judging whether the concurrency quantity is smaller than or equal to a preset current limiting threshold value; if the concurrency quantity is smaller than or equal to a preset current limiting threshold, calling the target medical service interface according to the service parameters to obtain a target medical service response message, and returning the target medical service response message to the terminal; if the concurrency number is greater than a preset current limiting threshold, performing interface degradation processing on the target medical service interface according to the service parameters to obtain a degraded service response message, acquiring an alarm short message, and sending the degraded service response message and the alarm short message to a terminal, wherein the response parameters carried by the degraded service response message are smaller than those carried by the target medical service response message.
Optionally, in a first implementation manner of the first aspect of the present invention, the acquiring a target medical service request, intercepting and verifying the target medical service request by a preset intercepting manner, to obtain a target medical service interface and a plurality of service parameters, where the target medical service request is used for processing a preset medical service in a preset medical service scene, includes: receiving a target medical service request, and intercepting the target medical service request through a preset tangent plane-oriented programming algorithm, wherein the target medical service request is used for processing preset medical services in a preset medical service scene; judging whether the target medical service request is a repeated request within a preset duration; if the target medical service request is a repeated request within a preset duration, rejecting the target medical service request, and generating and recording request abnormal log information; if the target medical service request is not a repeated request within the preset duration, carrying out parameter analysis and parameter verification processing on the target medical service request to obtain a target medical service interface and a plurality of service parameters.
Optionally, in a second implementation manner of the first aspect of the present invention, if the target medical service request is not a repeated request within a preset duration, performing parameter analysis and parameter verification processing on the target medical service request to obtain a target medical service interface and a plurality of service parameters, including: if the target medical service request is not a repeated request within a preset duration, carrying out parameter analysis on the target medical service request to obtain an interface identifier and a plurality of service parameters; inquiring a preset configuration table according to the interface identification to obtain a target medical service interface and a parameter verification template, and respectively carrying out parameter verification on the service parameters based on the parameter verification template to obtain a parameter verification result; when the parameter verification result is that verification fails, capturing parameter verification failure information, and sending the parameter verification failure information to a terminal; and when the parameter verification result is that verification is passed, writing the target medical service interface and the service parameters into a preset memory database.
Optionally, in a third implementation manner of the first aspect of the present invention, if the concurrency number is less than or equal to a preset current limiting threshold, invoking the target medical service interface according to the multiple service parameters to obtain a target medical service response message, and returning the target medical service response message to the terminal, where the step includes: if the concurrency quantity is smaller than or equal to a preset current limiting threshold, acquiring a service state corresponding to the target medical service interface, and judging whether the service state is a normal state or not; when the service state is a normal state, adding business threads with the number of preset concurrent threads, and calling a target medical business interface according to the business parameters through the business threads with the number of the preset concurrent threads to obtain response parameters of the target medical business interface; converting response parameters of the target medical service interface into target medical service response messages according to a preset data encapsulation format, and performing data persistence processing on the target medical service response messages; and closing the business threads with the preset concurrent thread number, and returning the target medical business response message to the terminal.
Optionally, in a fourth implementation manner of the first aspect of the present invention, if the number of concurrency is greater than a preset current limiting threshold, performing interface degradation processing on the target medical service interface according to the multiple service parameters to obtain a degraded service response message, obtaining an alarm short message, and sending the degraded service response message and the alarm short message to a terminal, where a response parameter carried by the degraded service response message is less than a response parameter carried by the target medical service response message, and the method includes: if the concurrency number is greater than a preset current limiting threshold, acquiring a medical service interface name corresponding to the target medical service interface, inquiring a preset interface degradation configuration list according to the medical service interface name to obtain an inquiry result, and judging whether the inquiry result is a null value; if the query result is a null value, determining that the target medical service interface does not exist in the preset interface degradation configuration list, and generating and returning a target error code; if the query result is not null, extracting a target degradation interface from the query result, and calling the target degradation interface based on the plurality of service parameters to obtain response parameters of the target degradation interface; packaging response parameters of the target degradation interface into a degradation service response message, performing data persistence on the degradation service response message, and sending the degradation service response message to a terminal, wherein the response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message; setting an alarm short message, calling a preset alarm short message interface through a preset timing task, and pushing the alarm short message to the terminal.
Optionally, in a fifth implementation manner of the first aspect of the present invention, before the acquiring the target medical service request, intercepting and verifying the target medical service request by a preset intercepting manner to obtain a target medical service interface and a plurality of service parameters, before the target medical service request is used for processing a medical service preset in a preset medical service scene, the medical service processing method further includes: creating a frame section object through a preset section-oriented programming algorithm, and setting the same service processing logic corresponding to a plurality of medical service interfaces in the frame section object, wherein the plurality of medical service interfaces comprise the target medical service interfaces; and receiving a configuration information modification request, reading a target concurrency threshold from the configuration information modification request, and updating a preset current limit threshold according to the target concurrency threshold.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the if the number of concurrent packets is greater than a preset current limiting threshold, performing interface degradation processing on the target medical service interface according to the multiple service parameters to obtain a degraded service response packet, obtaining an alarm short message, and sending the degraded service response packet and the alarm short message to a terminal, where after the response parameter carried by the degraded service response packet is less than the response parameter carried by the target medical service response packet, the medical service processing method further includes: acquiring a plurality of interface calling information, wherein each interface calling information comprises the calling times of each medical service interface and the calling times of each degradation interface, each medical service interface corresponds to each degradation interface one by one, the plurality of medical service interfaces comprise the target medical service interface, and the plurality of degradation interfaces comprise target degradation interfaces; generating a medical service call thermodynamic diagram based on a preset distributed system and the interface call information, wherein the preset distributed system is pre-deployed in a plurality of preset regional machine rooms, and each preset host in the preset distributed system has an association relationship with the interface call information.
A second aspect of the present invention provides a medical service processing apparatus, comprising: the system comprises an interception module, a target medical service interface and a plurality of service parameters, wherein the interception module is used for acquiring a target medical service request, intercepting and checking the target medical service request in a preset interception mode to obtain the target medical service interface and the plurality of service parameters, and the target medical service request is used for processing a medical service preset in a preset medical service scene; the judging module is used for acquiring the concurrency quantity when the current limiting mode is started and judging whether the concurrency quantity is smaller than or equal to a preset current limiting threshold value or not; the calling module is used for calling the target medical service interface according to the plurality of service parameters to obtain a target medical service response message and returning the target medical service response message to the terminal if the concurrence number is smaller than or equal to a preset current limiting threshold; and the degradation processing module is used for carrying out interface degradation processing on the target medical service interface according to the plurality of service parameters if the concurrency quantity is larger than a preset current limiting threshold value, obtaining a degradation service response message, acquiring an alarm short message, and sending the degradation service response message and the alarm short message to a terminal, wherein the response parameter carried by the degradation service response message is smaller than the response parameter carried by the target medical service response message.
Optionally, in a first implementation manner of the second aspect of the present invention, the interception module includes: the system comprises an interception unit, a processing unit and a processing unit, wherein the interception unit is used for receiving a target medical service request and intercepting the target medical service request through a preset tangent plane-oriented programming algorithm, and the target medical service request is used for processing preset medical services in a preset medical service scene; the judging unit is used for judging whether the target medical service request is a repeated request within a preset duration; a rejecting unit, configured to reject the target medical service request if the target medical service request is a repeated request within a preset duration, and generate and record request exception log information; and the verification unit is used for carrying out parameter analysis and parameter verification processing on the target medical service request if the target medical service request is not a repeated request within the preset duration to obtain a target medical service interface and a plurality of service parameters.
Optionally, in a second implementation manner of the second aspect of the present invention, the verification unit is specifically configured to: if the target medical service request is not a repeated request within a preset duration, carrying out parameter analysis on the target medical service request to obtain an interface identifier and a plurality of service parameters; inquiring a preset configuration table according to the interface identification to obtain a target medical service interface and a parameter verification template, and respectively carrying out parameter verification on the service parameters based on the parameter verification template to obtain a parameter verification result; when the parameter verification result is that verification fails, capturing parameter verification failure information, and sending the parameter verification failure information to a terminal; and when the parameter verification result is that verification is passed, writing the target medical service interface and the service parameters into a preset memory database.
Optionally, in a third implementation manner of the second aspect of the present invention, the calling module is specifically configured to: if the concurrency quantity is smaller than or equal to a preset current limiting threshold, acquiring a service state corresponding to the target medical service interface, and judging whether the service state is a normal state or not; when the service state is a normal state, adding business threads with the number of preset concurrent threads, and calling a target medical business interface according to the business parameters through the business threads with the number of the preset concurrent threads to obtain response parameters of the target medical business interface; converting response parameters of the target medical service interface into target medical service response messages according to a preset data encapsulation format, and performing data persistence processing on the target medical service response messages; and closing the business threads with the preset concurrent thread number, and returning the target medical business response message to the terminal.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the degradation processing module is specifically configured to: if the concurrency number is greater than a preset current limiting threshold, acquiring a medical service interface name corresponding to the target medical service interface, inquiring a preset interface degradation configuration list according to the medical service interface name to obtain an inquiry result, and judging whether the inquiry result is a null value; if the query result is a null value, determining that the target medical service interface does not exist in the preset interface degradation configuration list, and generating and returning a target error code; if the query result is not null, extracting a target degradation interface from the query result, and calling the target degradation interface based on the plurality of service parameters to obtain response parameters of the target degradation interface; packaging response parameters of the target degradation interface into a degradation service response message, performing data persistence on the degradation service response message, and sending the degradation service response message to a terminal, wherein the response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message; setting an alarm short message, calling a preset alarm short message interface through a preset timing task, and pushing the alarm short message to the terminal.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the medical service processing apparatus further includes: the setting module is used for creating a frame section object through a preset section-oriented programming algorithm, setting the same service processing logic corresponding to a plurality of medical service interfaces in the frame section object, wherein the plurality of medical service interfaces comprise the target medical service interfaces; and the updating module is used for receiving a configuration information modification request, reading a target concurrency threshold from the configuration information modification request, and updating a preset current limit threshold according to the target concurrency threshold.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the medical service processing apparatus further includes: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a plurality of interface calling information, each interface calling information comprises the calling times of each medical service interface and the calling times of each degradation interface, each medical service interface corresponds to each degradation interface one by one, the plurality of medical service interfaces comprise the target medical service interfaces, and the plurality of degradation interfaces comprise target degradation interfaces; the generation module is used for generating a medical service call thermodynamic diagram based on a preset distributed system and the interface call information, wherein the preset distributed system is pre-deployed in a plurality of preset regional machine rooms, and each preset host in the preset distributed system has an association relation with the interface call information.
A third aspect of the present invention provides a medical service processing apparatus comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the medical service processing device to perform the medical service processing method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the medical service processing method described above.
According to the technical scheme provided by the invention, a target medical service request is acquired, interception and verification processing are carried out on the target medical service request in a preset interception mode, a target medical service interface and a plurality of service parameters are obtained, and the target medical service request is used for processing preset medical services in a preset medical service scene; when the current limiting mode is started, obtaining the concurrency quantity, and judging whether the concurrency quantity is smaller than or equal to a preset current limiting threshold value; if the concurrency quantity is smaller than or equal to a preset current limiting threshold, calling the target medical service interface according to the service parameters to obtain a target medical service response message, and returning the target medical service response message to the terminal; if the concurrency number is greater than a preset current limiting threshold, performing interface degradation processing on the target medical service interface according to the service parameters to obtain a degraded service response message, acquiring an alarm short message, and sending the degraded service response message and the alarm short message to a terminal, wherein the response parameters carried by the degraded service response message are smaller than those carried by the target medical service response message. In the embodiment of the invention, a target medical service request is intercepted and checked through a preset interception mode to obtain a target medical service interface and a plurality of service parameters; if the concurrency number is smaller than or equal to a preset current limiting threshold, calling a target medical service interface according to a plurality of service parameters to obtain a target medical service response message; if the concurrency number is greater than the preset current limiting threshold, degrading the target medical service interface according to the multiple service parameters to obtain a degraded service response message and an alarm short message. The operation cost of the corresponding current limiting service of the target medical service is reduced through the current limiting interception mechanism and the early warning mechanism, and the stability of the current limiting service and the timeliness of the current limiting notification are improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for processing medical services according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a method for processing medical services according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a medical service processing apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a medical service processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a medical service processing apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a medical service processing method, a device, equipment and a storage medium, which are used for reducing the operation cost of a corresponding current limiting service of a target medical service through a current limiting interception mechanism and an early warning mechanism and improving the stability of the current limiting service and the timeliness of current limiting notification.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and one embodiment of a method for processing a medical service in an embodiment of the present invention includes:
101. the method comprises the steps of obtaining a target medical service request, and intercepting and checking the target medical service request in a preset interception mode to obtain a target medical service interface and a plurality of service parameters, wherein the target medical service request is used for processing preset medical services in a preset medical service scene.
The target medical service in the preset medical service scene can be a medical registration service, a medical order payment service, a medical second killing activity, a medical order distribution service or a medical questionnaire, which is not limited herein. Specifically, a server acquires a target medical service request, the server intercepts the target medical service request through a preset interception mode, and the server analyzes parameters and checks parameters of the target medical service request to obtain a target medical service interface and a plurality of service parameters. The target medical service interfaces and the target medical service requests have a one-to-one correspondence. The target medical service request is used for indicating the terminal to request to process the target medical service in the preset medical service scene. It should be noted that the preset interception mode may be a preset tangent plane-oriented programming algorithm, a filter mode, or a java reflection mechanism interceptor mode, which is not limited herein.
It will be appreciated that the execution subject of the present invention may be a medical service processing apparatus, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
102. When the current limiting mode is started, the concurrency quantity is obtained, and whether the concurrency quantity is smaller than or equal to a preset current limiting threshold value is judged.
The preset current limiting threshold is a concurrency threshold configured for a target medical service in a preset medical service scene, when the server sets a preset current limiting mark to be a preset starting value or a preset closing value, the server determines that the current limiting mode is started or closed, the server improves the development efficiency of the medical service by configuring the preset current limiting mark, the preset starting value can be 1, the preset closing value can be 0, and the preset starting value or the preset closing value can also be other values, and particularly the method is not limited. For example, in a non-high concurrency preset medical service scenario, the server closes the current limiting mode, and the server performs normal service processing and response on any medical service request (including a target medical service request); under the high concurrency preset medical service scene, the server starts the current limiting mode, and the server can reduce the operation cost of the current limiting service corresponding to the target medical service by controlling the starting and closing of the current limiting mode.
Specifically, when the current limiting mode is started, the server acquires the concurrency quantity according to a preset statistical instruction; the server performs subtraction operation on the concurrent quantity and a preset current limiting threshold value to obtain an operation difference value; the server judges whether the operation difference value is larger than 0; if the operation difference is less than or equal to 0, the server determines that the concurrency number is less than or equal to a preset current limiting threshold, and the server executes step 103; if the difference is greater than 0, the server determines that the concurrency number is greater than the preset current limit threshold, and the server executes step 104. For example, the current limit threshold (i.e., the preset current limit threshold) corresponding to any host (i.e., the server) in the preset distributed system may be 200 or 300, which is not limited herein.
103. And if the concurrency number is smaller than or equal to the preset current limiting threshold, calling the target medical service interface according to the plurality of service parameters to obtain a target medical service response message, and returning the target medical service response message to the terminal.
Specifically, if the concurrency number is smaller than or equal to a preset current limiting threshold, the server increases the concurrency number of the target medical service interfaces, and calls the target medical service interfaces according to a plurality of service parameters to obtain response parameters of the target medical service; the server converts response parameters of the target medical service into response messages of the target medical service according to a preset data encapsulation format; the server processes the target medical service response message in a lasting mode, and returns the target medical service response message to the terminal, so that the concurrency quantity is reduced, and the response parameters carried by the target medical service response message are more than those carried by the degradation service response message.
104. If the concurrency number is greater than the preset current limiting threshold, performing interface degradation processing on the target medical service interface according to a plurality of service parameters to obtain a degradation service response message, acquiring an alarm short message, and sending the degradation service response message and the alarm short message to the terminal, wherein response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message.
It can be understood that the server monitors and records the calling condition of the target medical service in the preset medical service scene (for example, the service framework dubbo medical service interface and the representational state transfer rest interface) through the preset section object in the preset framework spring, counts the concurrency of the target medical service in the preset medical service scene in real time, and if the concurrency is greater than the preset current limiting threshold, the server triggers the current limiting interception logic. The specific process of triggering the current limiting interception logic by the server comprises the following steps: if the concurrency number is greater than a preset current limiting threshold, the server determines a corresponding interface degradation strategy according to the target medical service interface, the server performs interface degradation processing on the target medical service interface according to a plurality of service parameters and the interface degradation strategy to obtain a degradation service response message, and the degradation service response message is sent to the terminal so that the terminal analyzes and displays the degradation service response message; the server sets an alarm short message according to a preset alarm rule, calls a preset alarm short message interface through a preset timing task, and sends the alarm short message to the terminal, so that the terminal reminds a target person to check a problem in real time, and the response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message, namely, the size of the degradation service response message is smaller than that of the target medical service response message. It can be understood that the alarm short message is used for informing the target personnel of the function of checking the problem, and meanwhile, in order to avoid the increase of unnecessary service expenditure caused by frequent calling of the alarm short message interface, the server performs frequency control on the alarm logic. When the current limiting interception occurs, after the server calls the alarm short message interface once, the alarm short message interface needs to be called again at intervals of a first preset time (for example, 5 minutes). And the alarm short message interface sends an alarm short message every second preset time (for example, half an hour) for the same interface error information in order to avoid causing a large number of short messages. The method can inform target personnel in time to deal with the problem, improves the stability of the current limiting service and the timeliness of the current limiting notification, and reduces the current limiting expenditure. Further, the server stores the target medical service response message and the degradation service response message in a blockchain database, which is not limited herein.
In the embodiment of the invention, a target medical service request is intercepted and checked through a preset interception mode to obtain a target medical service interface and a plurality of service parameters; if the concurrency number is smaller than or equal to a preset current limiting threshold, calling a target medical service interface according to a plurality of service parameters to obtain a target medical service response message; if the concurrency number is greater than the preset current limiting threshold, degrading the target medical service interface according to the multiple service parameters to obtain a degraded service response message and an alarm short message. The operation cost of the corresponding current limiting service of the target medical service is reduced through the current limiting interception mechanism and the early warning mechanism, and the stability of the current limiting service and the timeliness of the current limiting notification are improved. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
Referring to fig. 2, another embodiment of the medical service processing method in the embodiment of the present invention includes:
201. Receiving a target medical service request, and intercepting the target medical service request through a preset tangent plane-oriented programming algorithm, wherein the target medical service request is used for processing preset medical services in a preset medical service scene.
The target medical service request may be used to request a medical registration service of the user, or may be used to request a medical second killing activity, which is not limited herein. The preset interception mode is a preset tangent plane-oriented programming algorithm, and the tangent plane-oriented programming algorithm adopts a transverse extraction mechanism to isolate each part of the business logic, so that the development efficiency is improved. Optionally, before step 201, the server creates a frame section object through a preset section-oriented programming algorithm, sets the same service processing logic corresponding to each of a plurality of medical service interfaces in the frame section object, and reduces code redundancy by including a target medical service interface; the server receives the configuration information modification request, reads the target concurrency threshold from the configuration information modification request, and updates the preset current limit threshold according to the target concurrency threshold. That is, the server can dynamically modify the preset current limiting threshold according to the resource consumption conditions of the plurality of medical service interfaces, so that the stability of the current limiting service is improved.
202. And judging whether the target medical service request is a repeated request within a preset time length.
That is, the server counts the number of the target medical service requests within a preset time period, and if the number of the target medical service requests counted within the preset time period is greater than 1, the server determines that the target medical service requests are repeated requests within the preset time period; if the number of the target medical service requests is counted to be equal to 1 in the preset time period, the server determines that the target medical service requests are not repeated requests in the preset time period.
203. If the target medical service request is a repeated request within the preset duration, rejecting the target medical service request, and generating and recording request abnormal log information.
Specifically, if the target medical service request is a repeat request within a preset duration, the server refuses the target medical service request, and the server acquires the current time and generates a status code (e.g. 501) and refusal reason description information; the server performs array encapsulation on the current time, the state code and the refusal reason description information to obtain request abnormal log information, and writes the request abnormal log information into a preset operation log. Further, the server periodically analyzes a plurality of log data (including request abnormal log information) in the preset operation log to obtain an operation log analysis report.
204. If the target medical service request is not a repeated request within the preset duration, carrying out parameter analysis and parameter verification processing on the target medical service request to obtain a target medical service interface and a plurality of service parameters.
Specifically, the server performs parameter analysis on the target medical service request according to a preset data format to obtain an interface identifier and a plurality of service parameters. The preset data format may be an object numbered musical notation JSON format, or may be other data formats, which are not limited herein.
Further, if the target medical service request is not a repeated request within the preset duration, the server performs parameter analysis on the target medical service request to obtain an interface identifier and a plurality of service parameters; the server queries a preset configuration table according to the interface identification to obtain a target medical service interface and a parameter verification template, and respectively performs parameter verification on a plurality of service parameters based on the parameter verification template to obtain a parameter verification result, wherein the parameter verification template and the interface identification have a one-to-one correspondence. Further, the server reads the parameter verification rule from the parameter verification template, and respectively carries out teaching and research treatment on a plurality of service parameters according to the parameter verification rule to obtain a parameter verification result; if all the parameters pass the verification, the server determines that the service parameter verification result is the verification pass; if at least one service parameter check fails, the server determines that the parameter check result is that the check fails. When the parameter verification result is that the verification fails, the server captures parameter verification failure information and sends the parameter verification failure information to the terminal, for example, when the parameter verification result is 0 or logic false, the server determines that the parameter verification result is that the verification fails; and when the parameter verification result is that the verification is passed, the server writes the target medical service interface and a plurality of service parameters into a preset memory database. The preset memory database may be a remote dictionary service rediss or a java memory database derby. The method is used for improving the reading and writing speed of the data. Further, the plurality of service parameters may further include a user identifier or a user token, and the server determines whether the user has access service rights according to the user identifier or the user token; if the user has access service authority, the server detects that the current limiting mode is started, the server executes step 205, and if the user does not have access service authority, the server returns a service access limited message to the terminal.
205. When the current limiting mode is started, the concurrency quantity is obtained, and whether the concurrency quantity is smaller than or equal to a preset current limiting threshold value is judged.
The execution of step 205 is similar to that of step 102, and detailed description thereof will be omitted herein.
206. And if the concurrency number is smaller than or equal to the preset current limiting threshold, calling the target medical service interface according to the plurality of service parameters to obtain a target medical service response message, and returning the target medical service response message to the terminal.
It should be noted that, when the server starts to call the target medical service interface, the server increases the concurrency number of the interfaces, and after the call of the target medical service interface is finished. The server reduces the number of concurrency of the deductions. Meanwhile, when the server increases the concurrency quantity and the concurrency quantity exceeds a preset current limiting threshold, the server triggers a current limiting interception logic.
Optionally, if the concurrency number is smaller than or equal to a preset current limiting threshold, the server acquires a service state corresponding to the target medical service interface, and judges whether the service state is a normal state; further, the server sends heartbeat request data to the target medical service, and if heartbeat response data reported by the target medical service interface is acquired within a preset duration threshold, the server determines that the service state corresponding to the target medical service interface is a normal state; if the heartbeat response data reported by the target medical service interface is not acquired within the preset duration threshold, the server determines that the service state corresponding to the target medical service interface is an abnormal state. When the service state is a normal state, the server increases business threads with the preset concurrent thread number, and calls a target medical business interface according to a plurality of business parameters through the business threads with the preset concurrent thread number to obtain response parameters of the target medical business interface; the server executes the business threads for increasing or decreasing the number of preset concurrent threads in the process of calling the target medical business interface, namely, increases or decreases the number of concurrent threads, and after each business thread increase, the server detects whether the number of the business threads is smaller than a preset current limiting threshold value or not, and if the number of the business threads is smaller than the preset current limiting threshold value, the server continues to increase the business threads. The server converts response parameters of the target medical service interface into target medical service response messages according to a preset data encapsulation format, and performs data persistence processing on the target medical service response messages; and the server closes the business threads with the preset concurrent thread number, and returns the target medical business response message to the terminal.
207. If the concurrency number is greater than the preset current limiting threshold, performing interface degradation processing on the target medical service interface according to a plurality of service parameters to obtain a degradation service response message, acquiring an alarm short message, and sending the degradation service response message and the alarm short message to the terminal, wherein response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message.
It should be noted that, the server configures in advance a mapping relationship between the target medical service interface and the target degradation interface in a preset interface degradation configuration list, and there is a one-to-one correspondence relationship between the target medical service interface and the target degradation interface. The server screens at least one degradation service parameter from the plurality of service parameters, wherein the number of the at least one degradation service parameter is less than the number of the read service parameters; sending an interface calling request to a target degradation interface to obtain a calling result; the server judges whether the calling result is successful, if so, the server executes a degradation processing flow based on at least one degradation service parameter to obtain a degradation interface response parameter; the server converts the response parameters of the degradation interface into degradation service response messages according to a preset data encapsulation format, performs data persistence on the degradation service response messages, and sends the degradation service response messages to the terminal; the server sets an alarm short message according to a preset alarm rule, calls a preset alarm short message interface through a preset timing task, and sends the alarm short message to the terminal, wherein response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message. The timeliness of current limiting alarm is improved, for example, current limiting interception is almost triggered at the moment of starting a fire-explosion medical second killing activity, and the server can notify a target person with an alarm short message every time, so that the target person can observe the overall service running condition in time.
Optionally, if the concurrency number is greater than a preset current limiting threshold, the server acquires a medical service interface name corresponding to the target medical service interface, queries a preset interface degradation configuration list according to the medical service interface name to obtain a query result, and judges whether the query result is a null value; specifically, the server sets the medical service interface name corresponding to the target medical service interface as a target index, generates a target query statement based on the target index and the structured query language grammar rule, executes the target query statement, and acquires a query result from a preset interface degradation configuration list. If the query result is null, the server determines that the target medical service interface does not exist in a preset interface degradation configuration list, and generates and returns a target error code; that is, the server determines that the target medical service interface does not have a corresponding degradation interface, invokes a preset information generation interface to set a target error code, and returns the target error code to the terminal. If the query result is not null, the server extracts a target degradation interface from the query result, and calls the target degradation interface based on a plurality of service parameters to obtain response parameters of the target degradation interface; the server packages response parameters of the target degradation interface into degradation service response messages, the server performs data persistence on the degradation service response messages and sends the degradation service response messages to the terminal, and the response parameters carried by the degradation service response messages are smaller than those carried by the target medical service response messages; the server sets an alarm short message, and calls a preset alarm short message interface through a preset timing task to push the alarm short message to the terminal.
Further, the server acquires a plurality of interface call information, wherein each interface call information comprises the call times of each medical service interface and the call times of each degradation interface, each medical service interface corresponds to each degradation interface one by one, the plurality of medical service interfaces comprise target medical service interfaces, and the plurality of degradation interfaces comprise target degradation interfaces; the server generates a medical service call thermodynamic diagram based on a preset distributed system and a plurality of interface call information, the preset distributed system is pre-deployed in a plurality of preset regional machine rooms, and each preset host in the preset distributed system has an association relationship with the plurality of interface call information. The server acquires the identification values corresponding to all preset hosts in the distributed system, and inquires preset regional address configuration information according to the identification values corresponding to all the preset hosts to obtain regional position information corresponding to all the preset hosts; the server may also create a healthcare invocation thermodynamic diagram based on the plurality of interface invocation information and the region location information corresponding to each preset host, where different colors of the geographic location information in each healthcare invocation thermodynamic diagram identify different healthcare interface access amounts (i.e., the number of invocations of each healthcare interface and the number of invocations of each demotion interface). The server may also use time as a unit, create a medical service thermodynamic diagram corresponding to each unit time based on the plurality of interface call information and the region position information corresponding to each preset host, and perform serialization processing on the medical service thermodynamic diagram corresponding to each unit time according to the time sequence, so as to obtain a medical service call thermodynamic diagram, where the medical service call thermodynamic diagram may be a dynamic graph.
In the embodiment of the invention, a target medical service request is intercepted and checked through a preset interception mode to obtain a target medical service interface and a plurality of service parameters; if the concurrency number is smaller than or equal to a preset current limiting threshold, calling a target medical service interface according to a plurality of service parameters to obtain a target medical service response message; if the concurrency number is greater than the preset current limiting threshold, degrading the target medical service interface according to the multiple service parameters to obtain a degraded service response message and an alarm short message. The operation cost of the corresponding current limiting service of the target medical service is reduced through the current limiting interception mechanism and the early warning mechanism, and the stability of the current limiting service and the timeliness of the current limiting notification are improved. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
The method for processing a medical service in the embodiment of the present invention is described above, and the device for processing a medical service in the embodiment of the present invention is described below, referring to fig. 3, and one embodiment of the device for processing a medical service in the embodiment of the present invention includes:
The interception module 301 is configured to obtain a target medical service request, intercept and verify the target medical service request in a preset interception manner, to obtain a target medical service interface and a plurality of service parameters, where the target medical service request is used to process a preset medical service in a preset medical service scene;
The judging module 302 is configured to obtain the concurrency number when the current limiting mode is started, and judge whether the concurrency number is less than or equal to a preset current limiting threshold;
A calling module 303, configured to call the target medical service interface according to the plurality of service parameters if the concurrency number is less than or equal to the preset current limiting threshold, obtain a target medical service response message, and return the target medical service response message to the terminal;
And the degradation processing module 304 is configured to perform interface degradation processing on the target medical service interface according to a plurality of service parameters if the concurrency number is greater than a preset current limiting threshold, obtain a degraded service response message, obtain an alarm short message, and send the degraded service response message and the alarm short message to the terminal, where the response parameter carried by the degraded service response message is less than the response parameter carried by the target medical service response message.
Further, the target medical service response message and the degradation service response message are stored in a blockchain database, and the method is not limited herein.
In the embodiment of the invention, a target medical service request is intercepted and checked through a preset interception mode to obtain a target medical service interface and a plurality of service parameters; if the concurrency number is smaller than or equal to a preset current limiting threshold, calling a target medical service interface according to a plurality of service parameters to obtain a target medical service response message; if the concurrency number is greater than the preset current limiting threshold, degrading the target medical service interface according to the multiple service parameters to obtain a degraded service response message and an alarm short message. The operation cost of the corresponding current limiting service of the target medical service is reduced through the current limiting interception mechanism and the early warning mechanism, and the stability of the current limiting service and the timeliness of the current limiting notification are improved.
Referring to fig. 4, another embodiment of the medical service processing apparatus according to the present invention includes:
The interception module 301 is configured to obtain a target medical service request, intercept and verify the target medical service request in a preset interception manner, to obtain a target medical service interface and a plurality of service parameters, where the target medical service request is used to process a preset medical service in a preset medical service scene;
The judging module 302 is configured to obtain the concurrency number when the current limiting mode is started, and judge whether the concurrency number is less than or equal to a preset current limiting threshold;
A calling module 303, configured to call the target medical service interface according to the plurality of service parameters if the concurrency number is less than or equal to the preset current limiting threshold, obtain a target medical service response message, and return the target medical service response message to the terminal;
And the degradation processing module 304 is configured to perform interface degradation processing on the target medical service interface according to a plurality of service parameters if the concurrency number is greater than a preset current limiting threshold, obtain a degraded service response message, obtain an alarm short message, and send the degraded service response message and the alarm short message to the terminal, where the response parameter carried by the degraded service response message is less than the response parameter carried by the target medical service response message.
Optionally, the interception module 301 may further include:
The interception unit 3011 is configured to receive a target medical service request, and intercept the target medical service request through a preset tangent plane-oriented programming algorithm, where the target medical service request is used for processing a preset medical service in a preset medical service scene; a judging unit 3012, configured to judge whether the target medical service request is a repeated request within a preset duration; a rejecting unit 3013, configured to reject the target medical service request if the target medical service request is a repeated request within a preset duration, and generate and record request exception log information; and the verification unit 3014 is configured to perform parameter analysis and parameter verification processing on the target medical service request if the target medical service request is not a repeated request within a preset duration, so as to obtain a target medical service interface and a plurality of service parameters.
Optionally, the verification unit 3014 may be specifically configured to:
If the target medical service request is not a repeated request within the preset duration, carrying out parameter analysis on the target medical service request to obtain an interface identifier and a plurality of service parameters; inquiring a preset configuration table according to the interface identification to obtain a target medical service interface and a parameter verification template, and respectively carrying out parameter verification on a plurality of service parameters based on the parameter verification template to obtain a parameter verification result; when the parameter verification result is that the verification fails, capturing parameter verification failure information, and sending the parameter verification failure information to the terminal; and when the parameter verification result is that the verification is passed, writing the target medical service interface and a plurality of service parameters into a preset memory database.
Optionally, the invoking module 303 may be further specifically configured to:
If the concurrency number is smaller than or equal to a preset current limiting threshold, acquiring a service state corresponding to the target medical service interface, and judging whether the service state is a normal state or not; when the service state is in a normal state, adding business threads with the number of preset concurrent threads, and calling a target medical business interface according to a plurality of business parameters through the business threads with the number of preset concurrent threads to obtain response parameters of the target medical business interface; converting response parameters of the target medical service interface into target medical service response messages according to a preset data encapsulation format, and performing data persistence processing on the target medical service response messages; and closing business threads with preset concurrent thread numbers, and returning the target medical business response message to the terminal.
Optionally, the degradation processing module 304 may be further specifically configured to:
If the concurrency number is greater than the preset current limiting threshold, acquiring a medical service interface name corresponding to the target medical service interface, inquiring a preset interface degradation configuration list according to the medical service interface name to obtain an inquiry result, and judging whether the inquiry result is a null value; if the query result is a null value, determining that the target medical service interface is not in the preset interface degradation configuration list, and generating and returning a target error code; if the query result is not null, extracting a target degradation interface from the query result, and calling the target degradation interface based on a plurality of service parameters to obtain response parameters of the target degradation interface; packaging response parameters of the target degradation interface into a degradation service response message, performing data persistence on the degradation service response message, and sending the degradation service response message to the terminal, wherein the response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message; setting an alarm short message, calling a preset alarm short message interface through a preset timing task, and pushing the alarm short message to the terminal.
Optionally, the medical service processing apparatus may further include:
The setting module 305 is configured to create a frame section object through a preset section-oriented programming algorithm, set identical service processing logic corresponding to a plurality of medical service interfaces in the frame section object, where the plurality of medical service interfaces includes a target medical service interface; and the updating module 306 is configured to receive the configuration information modification request, read the target concurrency threshold from the configuration information modification request, and update the preset current limit threshold according to the target concurrency threshold.
Optionally, the medical service processing apparatus may further include:
An obtaining module 307, configured to obtain a plurality of interface call information, where each interface call information includes a call number of times of each medical service interface and a call number of times of each degradation interface, each medical service interface corresponds to each degradation interface one-to-one, the plurality of medical service interfaces includes a target medical service interface, and the plurality of degradation interfaces includes a target degradation interface; the generating module 308 is configured to generate a medical service call thermodynamic diagram based on a preset distributed system and a plurality of interface call information, where the preset distributed system is pre-deployed in a plurality of preset regional machine rooms, and each preset host in the preset distributed system has an association relationship with the plurality of interface call information.
In the embodiment of the invention, a target medical service request is intercepted and checked through a preset interception mode to obtain a target medical service interface and a plurality of service parameters; if the concurrency number is smaller than or equal to a preset current limiting threshold, calling a target medical service interface according to a plurality of service parameters to obtain a target medical service response message; if the concurrency number is greater than the preset current limiting threshold, degrading the target medical service interface according to the multiple service parameters to obtain a degraded service response message and an alarm short message. The operation cost of the corresponding current limiting service of the target medical service is reduced through the current limiting interception mechanism and the early warning mechanism, and the stability of the current limiting service and the timeliness of the current limiting notification are improved.
The medical service processing apparatus according to the embodiment of the present invention is described in detail in terms of modularization in fig. 3 and 4 above, and the medical service processing device according to the embodiment of the present invention is described in detail in terms of hardware processing below.
Fig. 5 is a schematic structural diagram of a medical service processing device according to an embodiment of the present invention, where the medical service processing device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage mediums 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the medical service processing apparatus 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the medical service processing device 500.
The medical service processing device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the medical treatment device structure shown in fig. 5 is not limiting of the medical treatment device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, or may be a volatile computer readable storage medium, in which instructions are stored which, when executed on a computer, cause the computer to perform the steps of the medical service processing method.
The present invention also provides a medical service processing apparatus, including a memory and a processor, in which instructions are stored, which when executed by the processor, cause the processor to execute the steps of the medical service processing method in the above embodiments.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
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), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information 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.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A medical service processing method, characterized in that the medical service processing method comprises:
Acquiring a target medical service request, and intercepting and checking the target medical service request in a preset interception mode to obtain a target medical service interface and a plurality of service parameters, wherein the target medical service request is used for processing a medical service preset in a preset medical service scene;
When a current limiting mode is started, acquiring the concurrency quantity according to a preset statistical instruction, and judging whether the concurrency quantity is smaller than or equal to a preset current limiting threshold value, wherein the preset current limiting threshold value is a concurrency threshold value configured for a target medical service in a preset medical service scene;
If the concurrency quantity is smaller than or equal to a preset current limiting threshold, acquiring a service state corresponding to the target medical service interface, and judging whether the service state is a normal state or not;
when the service state is a normal state, adding business threads with the number of preset concurrent threads, and calling a target medical business interface according to the business parameters through the business threads with the number of the preset concurrent threads to obtain response parameters of the target medical business interface;
Converting response parameters of the target medical service interface into target medical service response messages according to a preset data encapsulation format, and performing data persistence processing on the target medical service response messages;
Closing the business threads with the preset concurrent thread number, and returning the target medical business response message to the terminal;
If the concurrency number is greater than a preset current limiting threshold, performing interface degradation processing on the target medical service interface according to the service parameters to obtain a degraded service response message, acquiring an alarm short message, and sending the degraded service response message and the alarm short message to a terminal, wherein the response parameters carried by the degraded service response message are smaller than those carried by the target medical service response message.
2. The medical service processing method according to claim 1, wherein the obtaining the target medical service request, performing interception and verification processing on the target medical service request by a preset interception mode to obtain a target medical service interface and a plurality of service parameters, where the target medical service request is used for processing a medical service preset in a preset medical service scene, includes:
receiving a target medical service request, and intercepting the target medical service request through a preset tangent plane-oriented programming algorithm, wherein the target medical service request is used for processing preset medical services in a preset medical service scene;
judging whether the target medical service request is a repeated request within a preset duration;
If the target medical service request is a repeated request within a preset duration, rejecting the target medical service request, and generating and recording request abnormal log information;
if the target medical service request is not a repeated request within the preset duration, carrying out parameter analysis and parameter verification processing on the target medical service request to obtain a target medical service interface and a plurality of service parameters.
3. The medical service processing method according to claim 2, wherein if the target medical service request is not a repeated request within a preset duration, performing parameter analysis and parameter verification processing on the target medical service request to obtain a target medical service interface and a plurality of service parameters, including:
If the target medical service request is not a repeated request within a preset duration, carrying out parameter analysis on the target medical service request to obtain an interface identifier and a plurality of service parameters;
Inquiring a preset configuration table according to the interface identification to obtain a target medical service interface and a parameter verification template, and respectively carrying out parameter verification on the service parameters based on the parameter verification template to obtain a parameter verification result;
when the parameter verification result is that verification fails, capturing parameter verification failure information, and sending the parameter verification failure information to a terminal;
And when the parameter verification result is that verification is passed, writing the target medical service interface and the service parameters into a preset memory database.
4. The medical service processing method according to claim 1, wherein if the number of concurrent services is greater than a preset current limiting threshold, performing interface degradation processing on the target medical service interface according to the plurality of service parameters to obtain a degraded service response message, obtaining an alarm short message, and sending the degraded service response message and the alarm short message to a terminal, where response parameters carried by the degraded service response message are smaller than response parameters carried by the target medical service response message, and the method includes:
If the concurrency number is greater than a preset current limiting threshold, acquiring a medical service interface name corresponding to the target medical service interface, inquiring a preset interface degradation configuration list according to the medical service interface name to obtain an inquiry result, and judging whether the inquiry result is a null value;
if the query result is a null value, determining that the target medical service interface does not exist in the preset interface degradation configuration list, and generating and returning a target error code;
If the query result is not null, extracting a target degradation interface from the query result, and calling the target degradation interface based on the plurality of service parameters to obtain response parameters of the target degradation interface;
Packaging response parameters of the target degradation interface into a degradation service response message, performing data persistence on the degradation service response message, and sending the degradation service response message to a terminal, wherein the response parameters carried by the degradation service response message are smaller than those carried by the target medical service response message;
setting an alarm short message, calling a preset alarm short message interface through a preset timing task, and pushing the alarm short message to the terminal.
5. The medical service processing method according to any one of claims 1 to 4, wherein, before the target medical service request is obtained, the target medical service request is intercepted and checked by a preset interception manner to obtain a target medical service interface and a plurality of service parameters, and before the target medical service request is used for processing a medical service preset in a preset medical service scene, the medical service processing method further comprises:
creating a frame section object through a preset section-oriented programming algorithm, and setting the same service processing logic corresponding to a plurality of medical service interfaces in the frame section object, wherein the plurality of medical service interfaces comprise the target medical service interfaces;
and receiving a configuration information modification request, reading a target concurrency threshold from the configuration information modification request, and updating a preset current limit threshold according to the target concurrency threshold.
6. The medical service processing method according to any one of claims 1 to 4, wherein, after the performing interface degradation processing on the target medical service interface according to the plurality of service parameters if the number of concurrences is greater than a preset current limiting threshold, obtaining a degraded service response message, obtaining an alarm short message, and sending the degraded service response message and the alarm short message to a terminal, where after the response parameter carried by the degraded service response message is less than the response parameter carried by the target medical service response message, the medical service processing method further includes:
Acquiring a plurality of interface calling information, wherein each interface calling information comprises the calling times of each medical service interface and the calling times of each degradation interface, each medical service interface corresponds to each degradation interface one by one, the plurality of medical service interfaces comprise the target medical service interface, and the plurality of degradation interfaces comprise target degradation interfaces;
Generating a medical service call thermodynamic diagram based on a preset distributed system and the interface call information, wherein the preset distributed system is pre-deployed in a plurality of preset regional machine rooms, and each preset host in the preset distributed system has an association relationship with the interface call information.
7. A medical service processing apparatus, characterized in that the medical service processing apparatus comprises:
The system comprises an interception module, a target medical service interface and a plurality of service parameters, wherein the interception module is used for acquiring a target medical service request, intercepting and checking the target medical service request in a preset interception mode to obtain the target medical service interface and the plurality of service parameters, and the target medical service request is used for processing a medical service preset in a preset medical service scene;
The judging module is used for acquiring the concurrency quantity according to a preset statistical instruction when the current limiting mode is started, and judging whether the concurrency quantity is smaller than or equal to a preset current limiting threshold value, wherein the preset current limiting threshold value is a concurrency threshold value for configuring a target medical service in the preset medical service scene;
a calling module, configured to obtain a service state corresponding to the target medical service interface if the concurrency number is less than or equal to a preset current limiting threshold, and determine whether the service state is a normal state;
when the service state is a normal state, adding business threads with the number of preset concurrent threads, and calling a target medical business interface according to the business parameters through the business threads with the number of the preset concurrent threads to obtain response parameters of the target medical business interface;
Converting response parameters of the target medical service interface into target medical service response messages according to a preset data encapsulation format, and performing data persistence processing on the target medical service response messages;
Closing the business threads with the preset concurrent thread number, and returning the target medical business response message to the terminal;
And the degradation processing module is used for carrying out interface degradation processing on the target medical service interface according to the plurality of service parameters if the concurrency quantity is larger than a preset current limiting threshold value, obtaining a degradation service response message, acquiring an alarm short message, and sending the degradation service response message and the alarm short message to a terminal, wherein the response parameter carried by the degradation service response message is smaller than the response parameter carried by the target medical service response message.
8. A medical service processing apparatus, characterized in that the medical service processing apparatus comprises: a memory and at least one processor, the memory having instructions stored therein;
The at least one processor invokes the instructions in the memory to cause the medical service processing device to perform the medical service processing method of any of claims 1-6.
9. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the medical service processing method of any of claims 1-6.
CN202110566348.7A 2021-05-24 2021-05-24 Medical service processing method, device, equipment and storage medium Active CN113284586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110566348.7A CN113284586B (en) 2021-05-24 2021-05-24 Medical service processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110566348.7A CN113284586B (en) 2021-05-24 2021-05-24 Medical service processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113284586A CN113284586A (en) 2021-08-20
CN113284586B true CN113284586B (en) 2024-05-14

Family

ID=77281158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110566348.7A Active CN113284586B (en) 2021-05-24 2021-05-24 Medical service processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113284586B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986391A (en) * 2021-10-29 2022-01-28 杭州网易云音乐科技有限公司 Request processing method, device, medium and computing equipment
CN115242872B (en) * 2022-06-24 2024-02-02 平安银行股份有限公司 Data processing method, device, computer equipment and readable storage medium
CN114969129B (en) * 2022-07-29 2022-12-13 飞狐信息技术(天津)有限公司 Abnormal service data backflow method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138688A (en) * 2019-04-15 2019-08-16 深圳壹账通智能科技有限公司 Dynamic adjusts method, apparatus, equipment and the readable storage medium storing program for executing of business interface
CN111782923A (en) * 2020-06-24 2020-10-16 平安科技(深圳)有限公司 Data query method and device, electronic equipment and storage medium
CN112035404A (en) * 2020-08-28 2020-12-04 康键信息技术(深圳)有限公司 Medical data monitoring and early warning method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108648786B (en) * 2018-05-16 2021-01-08 上海术木医疗科技有限公司 Medical cloud platform data sharing system and method based on third-party service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138688A (en) * 2019-04-15 2019-08-16 深圳壹账通智能科技有限公司 Dynamic adjusts method, apparatus, equipment and the readable storage medium storing program for executing of business interface
CN111782923A (en) * 2020-06-24 2020-10-16 平安科技(深圳)有限公司 Data query method and device, electronic equipment and storage medium
CN112035404A (en) * 2020-08-28 2020-12-04 康键信息技术(深圳)有限公司 Medical data monitoring and early warning method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113284586A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN113284586B (en) Medical service processing method, device, equipment and storage medium
CN111752965B (en) Real-time database data interaction method and system based on micro-service
JP5474177B2 (en) Distributed application monitoring
CN109802941A (en) A kind of login validation method, device, storage medium and server
US20200327045A1 (en) Test System and Test Method
CN110232010A (en) A kind of alarm method, alarm server and monitoring server
US11689536B1 (en) Server-based restricted access storage
CN113127199B (en) Load balancing configuration method, device, equipment and storage medium
CN112559285A (en) Distributed service architecture-based micro-service monitoring method and related device
US20040122940A1 (en) Method for monitoring applications in a network which does not natively support monitoring
CN108509313A (en) A kind of business monitoring method, platform and storage medium
CN112818064A (en) Multi-system data synchronization method, device, equipment and storage medium
CN110247812A (en) A kind of more cluster management methods, device, system and associated component
US11336534B2 (en) Network operation
CN114338684A (en) Energy management system and method
CN113360210A (en) Data reconciliation method and device, computer equipment and storage medium
CN117294763A (en) Cloud desktop terminal management method for forwarding terminal request information based on proxy service
US10846156B2 (en) Methods, devices and computer program products for managing software function
CN113760562A (en) Link tracking method, device, system, server and storage medium
WO2004017199A1 (en) Method for monitoring and managing an information system
US6865697B2 (en) Method and apparatus for reduced error checking of data received by a server from a client
CN110389875A (en) Method, apparatus and storage medium for supervisory computer system operating status
CN108874923B (en) Virtual article distribution method, server, and computer-readable storage medium
CN114428704A (en) Method and device for full-link distributed monitoring, computer equipment and storage medium
CN116185642B (en) Container memory optimization method and device, storage medium and electronic device

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