当前位置:网站首页>Short message sending solution in medical his industry
Short message sending solution in medical his industry
2022-07-01 01:49:00 【Sky breaking】
Scene one : SMS notification with the same content + Voice notification is sent synchronously
While pushing text messages , Synchronously push voice notifications of the same content ; After the user receives the notification on the phone , You can also check the SMS to confirm the content of the message .
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
Make an appointment for registration
telemedicine
System monitoring
Network order
Medical Examination Report
Order reminder
Information Office
Patient care
SMS channel congestion ;
SMS platform failure or network failure .
Two 、 Received but didn't pay attention to
For some very important scenes , Although the SMS has been successfully sent , But for various reasons, I didn't notice , for example :
Hospital internal server 、 Early warning and reminder of automatic equipment monitoring system ;
Important notice of hospital internal office system ;
The expert clinic or important examination notice reserved by the customer ;
Mutual wireless SMS 、 Voice notification solution can effectively solve the problem that users can't receive 、 Failure to notice information , Make sure users don't miss any important information
SMS high arrival solution ( Use SMS to inform the dedicated channel + Failed automatic retransmission + Delayed automatic retransmission and other technologies , Ensure that users can 100% Get text messages quickly .)

* 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'];
边栏推荐
- 【Proteus仿真】Arduino UNO +74C922键盘解码驱动4X4矩阵键盘
- PHP数组拼接MySQL的in语句
- Connectivity basis of Graphs
- Relationship between ASCII, Unicode, GBK, UTF-8
- [无线通信基础-15]:图解移动通信技术与应用发展-3- 数字通信2G GSM、CDMA、3G WDCMA/CDMA200/TD-SCDMA、4G LTE、5G NR概述
- 【agora】用户管理
- zabbix如何配置告警短信?(预警短信通知设置流程)
- Winodws 快速添加开机启动项
- Unknown database connection database error
- Strictmode analysis registration strictmode principle (4)
猜你喜欢

小程序中实现excel数据的批量导入

The argument type 'function' can't be assigned to the parameter type 'void function()‘

Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry

45 year old programmer tells you: why do programmers want to change jobs? It's too true

迪赛智慧数——其他图表(平行坐标图):2021年应届专业就业情况

3500 word summary: a complete set of skills that a qualified software testing engineer needs to master

Connectivity basis of Graphs

Gin configuration file

【2022年】江西省研究生数学建模方案、代码

未来的 Web3会带来什么?
随机推荐
Some items of OCR
zabbix如何配置告警短信?(预警短信通知设置流程)
Handsontable数据网格组件
[Qt5 basic \u 1] starting from 0, Mr. Detian will study with you - Introduction to the window
After working for 6 years, let's take stock of the golden rule of the workplace where workers mix up
AS400 大廠面試
Mathematical knowledge: 01 sequence satisfying conditions - find combinatorial number
短信在企业中的应用有哪些?
医疗HIS行业短信发送解决方案
短视频平台开发,依靠DrawerLayout实现侧滑菜单效果
静态域与静态方法
For the sustainable development of software testing, we must learn to knock code?
小程序中实现excel数据的批量导入
【agora】用户管理
Understanding and application of Qt5 layout in creation
[problem handled] -nvidia SMI command cannot obtain the GPU process number of its own container and the external GPU process number
微生物健康,食品微生物检测为什么很重要
[fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother
工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
PHP数组拼接MySQL的in语句