当前位置:网站首页>How to develop hospital information system (his) with SMS notification and voice function

How to develop hospital information system (his) with SMS notification and voice function

2022-06-24 11:14:00 Sky breaking

Help the information construction of the medical industry

Various information systems in the medical industry , Internal personnel of the same unit are required 、 The patient makes various information notifications 、 Interaction , In order to improve the operation efficiency of the system , Create greater value for medical institutions .

  SMS / The application of voice in various scenarios in the medical field

SMS / Voice notification , It can be widely used in the internal management of medical field 、 Various application scenarios such as patient service

For more scenarios, please see SMS voice HIS System solutions

  Make an appointment for registration

【*** The hospital 】 honorific ****, You have successfully booked ****, Time ****, Please bring... On the day of reservation **** Arrive on time **** See a doctor !

【*** The hospital 】 honorific ****, Hello! ! because **** Temporary suspension requires cancellation of your appointment , Sorry for the inconvenience . You are welcome to make an appointment with other experts . For matters not covered, please call the reservation hotline :8****799 ( Make an appointment for the hotline service time 8:00-17:00)

【*** The hospital 】 honorific ****, Your password is ****. Please wait on **** Go to **** See a doctor . Please bring your ID card with you when you see a doctor 、 Access code 、 Go to the medical record book to get the number for treatment , Over time , This appointment is invalid .

【*** The hospital 】 honorific **** sir , We have successfully booked you to ****, Please bring the reservation form in advance on the day of reservation **** Minutes to **** The radiology department shall go through the examination procedures according to the instructions on the appointment form , If you can't go in time , Please contact your family doctor :****, Telephone :****.

Order reminder

【*** The hospital 】 honorific ****, You have successfully cancelled ******** Outpatient registration of .

【*** The hospital 】 honorific **** sir / ma'am , Hello! , You have successfully registered ****.

【*** The hospital 】 Hello, doctor ,**** The patient's consultation order was not received due to the doctor's timeout , The order has been automatically cancelled by the system .

【*** The hospital 】 I'm sorry , The prescription you submitted , because ****, Refund processing has been done , The refund will be returned within three days

【*** The hospital 】 You have a new patient consultation service order , Please login in time ** The medical department of the Municipal People's Hospital handles .

【*** The hospital 】 You have a new patient consultation service order , Please login in time **** Hospital Medical APP Handle .

  Possible problems after accessing the SMS function

In the process of using SMS in medical institutions , Because of the following factors , It may cause the user to not receive SMS smoothly :

The customer unsubscribed or complained about the service ;
The user's mobile phone signal is unstable ;
The user is carrying the number to the network number ;
SMS channel congestion ;
The user's mobile client intercepts .
To deal with these situations , You can use SMS in the medical industry 、 Voice notification solution , Ensure that users can receive SMS messages normally . The main advantages of this scheme are :

Automatically detect the sending status of each SMS , In case of failure , The system automatically changes channels for retransmission ;
SMS can be turned on + Voice dual call function , If the second attempt of SMS fails , The system can automatically switch to voice call ;
No additional development required , It only needs to be configured on the SMS platform , You can have a failed resend 、 Voice dual call function .
Medical information system SMS / System flow chart of voice notification solution :

SMS voice test API Please check the address details SMS medical industry SMS 、 Voice notification solution  

 PHP Docking verification code SMS interface DEMO Example
This article provides you with PHP Language version verification code SMS interface docking DEMO Example  

Account registration : Please open an account through this address register - User center

 * Interface type : Trigger SMS interface , Support sending verification code SMS 、 Order notification SMS , Holiday blessings, etc .
 * Account registration : Please open an account through this address http://user.ihuyi.com/?exClaO

// Turn on SESSION
session_start();
 
header("Content-type:text/html; charset=UTF-8");
 
// Request data to SMS interface , Check the environment for   Turn on  curl init.
function Post($curlPost,$url){
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_HEADER, false);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_NOBODY, true);
        curl_setopt($curl, CURLOPT_POST, true);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $curlPost);
        $return_str = curl_exec($curl);
        curl_close($curl);
        return $return_str;
}
 
// take  xml Convert data to array format .
function xml_to_array($xml){
    $reg = "/<(\w+)[^>]*>([\\x00-\\xFF]*)<\\/\\1>/";
    if(preg_match_all($reg, $xml, $matches)){
        $count = count($matches[0]);
        for($i = 0; $i < $count; $i++){
        $subxml= $matches[2][$i];
        $key = $matches[1][$i];
            if(preg_match( $reg, $subxml )){
                $arr[$key] = xml_to_array( $subxml );
            }else{
                $arr[$key] = $subxml;
            }
        }
    }
    return $arr;
}
 
//random()  Function returns a random integer .
function random($length = 6 , $numeric = 0) {
    PHP_VERSION < '4.2.0' && mt_srand((double)microtime() * 1000000);
    if($numeric) {
        $hash = sprintf('%0'.$length.'d', mt_rand(0, pow(10, $length) - 1));
    } else {
        $hash = '';
        $chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789abcdefghjkmnpqrstuvwxyz';
        $max = strlen($chars) - 1;
        for($i = 0; $i < $length; $i++) {
            $hash .= $chars[mt_rand(0, $max)];
        }
    }
    return $hash;
}
// SMS interface address 
$target = "http://106.ihuyi.com/webservice/sms.php?method=Submit";
// Get cell phone number 
$mobile = $_POST['mobile'];
// Get verification code 
$send_code = $_POST['send_code'];
// Generated random number 
$mobile_code = random(4,1);
if(empty($mobile)){
    exit(' Mobile number cannot be empty ');
}
// Protect users from malicious requests 
if(empty($_SESSION['send_code']) or $send_code!=$_SESSION['send_code']){
    exit(' request timeout , Please refresh the page and try again ');
}
 
$post_data = "account= user name &password= password &mobile=".$mobile."&content=".rawurlencode(" Your verification code is :".$mobile_code.". Please don't leak the CAPTCHA to others .");
// View user name   Log in to the user center -> Verification code notification SMS > Product overview ->API Interface information ->APIID
// Check the password   Log in to the user center -> Verification code notification SMS > Product overview ->API Interface information ->APIKEY
$gets =  xml_to_array(Post($post_data, $target));
if($gets['SubmitResult']['code']==2){
    $_SESSION['mobile'] = $mobile;
    $_SESSION['mobile_code'] = $mobile_code;
}
echo $gets['SubmitResult']['msg'];


 

原网站

版权声明
本文为[Sky breaking]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240945158868.html