当前位置:网站首页>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'];
边栏推荐
- Mathematical knowledge: finding combinatorial number IV - finding combinatorial number
- Creating ASCII art with C #
- Upstream and downstream in software development
- Draw some interesting figures with flutter's canvas
- Strictmode analysis registration strictmode principle (4)
- How to select securities companies? In addition, is it safe to open a mobile account?
- 股票开户有哪些优惠活动?另外,手机开户安全么?
- For the sustainable development of software testing, we must learn to knock code?
- laravel Carbon 时间处理类使用
- zabbix如何配置告警短信?(预警短信通知设置流程)
猜你喜欢

数据探索电商平台用户行为流失分析

VirtualBox 安装增强功能

正向代理和反向代理快速理解

7-2 拼题A打卡奖励 dp

Creating ASCII art with C #

Log logrus third party library usage

Analysis on user behavior loss of data exploration e-commerce platform

Institute of Microbiology, commonly used biochemical reactions in microbiological testing
![[无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大](/img/fa/f9bad44147ba9af21183b7bd630e32.png)
[无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大

PHP通过第三方插件爬取数据
随机推荐
直播商城源码,实现左右联动商品分类页面
C # customize and dynamically switch cursor
[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE
6月第4周榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
【多源bfs】934. Shortest Bridge
Strictmode jamming and leakage detection -strictmode principle (2)
Relationship between ASCII, Unicode, GBK, UTF-8
Use of laravel carbon time processing class
数学知识:满足条件的01序列—求组合数
数学知识:求组合数 III—求组合数
如何选择券商?另外,手机开户安全么?
AS400 API 从零到一的整个历程
工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
The personal test is effective, and the JMeter desktop shortcut is quickly created
Unknown database connection database error
Winodws 快速添加开机启动项
短信在企业中的应用有哪些?
[fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother
Log4j2 threadcontext log link tracking
For the sustainable development of software testing, we must learn to knock code?