当前位置:网站首页>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'];
边栏推荐
- TypeError: Argument ‘angle‘ can not be treated as a double
- 数学知识:满足条件的01序列—求组合数
- 关于白盒测试,这些技巧你得游刃有余~
- [JS adds attributes to elements: setAttribute; classlist.remove; classlist.add;]
- AS400 大厂面试
- [stack] 921 Minimum Add to Make Parentheses Valid
- [content of content type request header]
- [Office PDF] PDF merging and splitting will free us from the functional limitations of paid software, OK
- Unknown database connection database error
- org.redisson.client.RedisResponseTimeoutException: Redis server response timeout (3000 ms)错误解决
猜你喜欢
[Qt5 tab] tab label and content hierarchical analysis
PHP通过第三方插件爬取数据
亲测有效,快速创建JMeter桌面快捷方式
6月第4周榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
Neo4j installation, operation, project construction and function realization
修复表中的名字(首字符大写,其他小写)
[无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大
New opportunities for vr/ar brought by metauniverse
Selenium classic interview question - multi window switching solution
3dsmax plug-in development traversal node object and object acquisition and inode transformation matrix description
随机推荐
Understanding and application of Qt5 layout in creation
那些一门心思研究自动化测试的人,后来怎样了?
Some essential differences
[Office PDF] PDF merging and splitting will free us from the functional limitations of paid software, OK
3dsmax plug-in development traversal node object and object acquisition and inode transformation matrix description
面对产业互联网的时候,甚至还用消费互联网的方式和方法去落地和实践产业互联网
Matlab farthest point sampling (FPS improved version)
3500 word summary: a complete set of skills that a qualified software testing engineer needs to master
未来的 Web3会带来什么?
AS400 entretien d'usine
AS400 大廠面試
7-2 拼题A打卡奖励 dp
微研所,微生物检验中常用的生化反应
3500字归纳总结:一名合格的软件测试工程师需要掌握的技能大全
微生物健康,食品微生物检测为什么很重要
Try new possibilities
工厂+策略模式
Working for eight years as a programmer, but with a salary of three years after graduation, it's too late to be enlightened again
Open3d point cloud color rendering
Strictmode jamming and leakage detection -strictmode principle (2)