Académique Documents
Professionnel Documents
Culture Documents
Upload
Search
Explore
Shan Shanu
academics...
business,
presentations,
books,
Search
1
of 81
Share 0
1,940 Reads
Abdelnasir Abdalla
Comment
Download
Related Documents
0 p.
6 p.
MRCGP-INT OSCE
taking MRCGP-INT-UK history in G.P common osce cases 4
DR.ABDELNASIR ELSHEIKH
12
insomnia 13
alcoholism 19
chronic fatigue
23
COPD 25
chest pain
26
M C PIN O C RG T SE
tennis elbow
31
DR.AB ELSHE
TIA 37
MRCGP-IN
postnatal depression
45
MFFP-UK DTP-KSU-
asthma 47
OSCE INS
syncope 50
NGHA-RIY
dementia 51
55
contraceptive pill
57
headache 59
NASSIR
angery patient 62
1970@
GMAIL
.COM
TMN 66
POST -mi
70
herpes zoster
76
prediabetic 78
index
M C PIN O C RG T SE
M C PIN O C RG T SE
Upload
About Press Blog
Follow Us!
Developers / API
scribd.com/scribd
twitter.com/scribd
facebook.com/scribd
Partners
academics...
business,
presentations,
books,
Search
Jobs
Terms
Copyright
Privacy
');}}};(function(){var _map={};easyXDM.Fn={set:function(name,fn){_map[name]=fn;},get:function(name,del){var fn=_map[name];if(del){delete _map[name];} return fn;}};}());easyXDM.Socket=function(cong){var stack=chainStack(prepareTransportStack(cong).concat([{incoming:function(message,origin){cong.onMessage(message,origin);},callback:function(success){if(cong.onReady){cong.onReady(success);}}}])),recipient=getLocation(cong.remote);this.destroy=function(){stack.destroy();};this.postMessage=function(message){stack.outgoing(message,recipient);};stack.init();};easyXDM.Rpc=function(cong,jsonRpcCong){if(jsonRpcCong.local){for(var method in jsonRpcCong.local){if(jsonRpcCong.local.hasOwnProperty(method)){var member=jsonRpcCong.local[method];if(typeof member==="function"){jsonRpcCong.local[method]={method:member};}}}} var stack=chainStack(prepareTransportStack(cong).concat([new easyXDM.stack.RpcBehavior(this,jsonRpcCong),{callback:function(success){if(cong.onReady){cong.onReady(success);}}}]));this.destroy=function(){stack.destroy();};stack.init();};easyXDM.stack.PostMessageTransport=function(cong){var pub,frame,callerWindow,targetOrigin;function _getOrigin(event){if(event.origin){return event.origin;} if(event.uri){return getLocation(event.uri);} if(event.domain){return location.protocol+"//"+event.domain;} throw"Unable to retrieve the origin of the event";} function _window_onMessage(event){var origin=_getOrigin(event);if(origin==targetOrigin&&event.data.substring(0,cong.channel.length+1)==cong.channel+" "){pub.up.incoming(event.data.substring(cong.channel.length+1),origin);}} return(pub={outgoing:function(message,domain,fn){callerWindow.postMessage(cong.channel+" "+message,domain||targetOrigin);fn();},destroy:function(){un(window,"message",_window_onMessage);if(frame){callerWindow=null;frame.parentNode.removeChild(frame);frame=null;}},init:function(){targetOrigin=getLocation(cong.remote);if(cong.isHost){on(window,"message",function waitForReady(event){if(event.data==cong.channel+"ready"){callerWindow=frame.contentWindow;un(window,"message",waitForReady);on(window,"message",_window_onMessage);setTimeout(function(){pub.up.callback(true);},0);}});apply(cong.props,{src:appendQueryParameters(cong.remote,{xdm_e:location.protocol+"//"+location.host,xdm_c:cong.channel,xdm_p:1})});frame=createFrame(cong);} else{on(window,"message",_window_onMessage);callerWindow=window.parent;callerWindow.postMessage(cong.channel+"-ready",targetOrigin);setTimeout(function(){pub.up.callback(true);},0);}}});};easyXDM.stack.NixTransport=function(cong){var pub,frame,send,targetOrigin,proxy;return(pub={outgoing:function(message,domain,fn){send(message);fn();},destroy:function(){proxy=null;if(frame){frame.parentNode.removeChild(frame);frame=null;}},init:function(){targetOrigin=getLocation(cong.remote);if(cong.isHost){try{if(!isHostMethod(window,"GetNixProxy")){window.execScript('Class NixProxy\n'+' Private m_parent, m_child, m_Auth\n'+'\n'+' Public Sub SetParent(obj, auth)\n'+' If isEmpty(m_Auth) Then m_Auth = auth\n'+' SET m_parent = obj\n'+' End Sub\n'+' Public Sub SetChild(obj)\n'+' SET m_child = obj\n'+' m_parent.ready()\n'+' End Sub\n'+'\n'+' Public Sub SendToParent(data, auth)\n'+' If m_Auth = auth Then m_parent.send(CStr(data))\n'+' End Sub\n'+' Public Sub SendToChild(data, auth)\n'+' If m_Auth = auth Then m_child.send(CStr(data))\n'+' End Sub\n'+'End Class\n'+'Function GetNixProxy()\n'+' Set GetNixProxy = New NixProxy\n'+'End Function\n','vbscript');} proxy=GetNixProxy();proxy.SetParent({send:function(msg){pub.up.incoming(msg,targetOrigin);},ready:function(){setTimeout(function(){pub.up.callback(true);},0);}},cong.secret);send=function(msg){proxy.SendToChild(msg,cong.secret);};} catch(e){throw new Error("Could not set up VBScript NixProxy:"+e.message);} apply(cong.props,{src:appendQueryParameters(cong.remote,{xdm_e:location.protocol+"//"+location.host,xdm_c:cong.channel,xdm_s:cong.secret,xdm_p:3})});frame=createFrame(cong);frame.contentWindow.opener=proxy;} else{try{proxy=window.opener;} catch(e){throw new Error("Cannot access window.opener");} proxy.SetChild({send:function(msg){global.setTimeout(function(){pub.up.incoming(msg,targetOrigin);},0);}});send=function(msg){proxy.SendToParent(msg,cong.secret);};setTimeout(function(){pub.up.callback(true);},0);}}});};easyXDM.stack.NameTransport=function(cong){var pub;var isHost,callerWindow,remoteWindow,readyCount,callback,remoteOrigin,remoteUrl;function _sendMessage(message){var url=cong.remoteHelper+(isHost?("#_3"+encodeURIComponent(remoteUrl+"#"+cong.channel)):("#_2"+cong.channel));callerWindow.contentWindow.sendMessage(message,url);} function _onReady(){if(isHost){if(++readyCount===2||!isHost){pub.up.callback(true);}} else{_sendMessage("ready");pub.up.callback(true);}} function _onMessage(message){pub.up.incoming(message,remoteOrigin);} function _onLoad(){if(callback){setTimeout(function(){callback(true);},0);}} return(pub={outgoing:function(message,domain,fn){callback=fn;_sendMessage(message);},destroy:function(){callerWindow.parentNode.removeChild(callerWindow);callerWindow=null;if(isHost){remoteWindow.parentNode.removeChild(remoteWindow);remoteWindow=null;}},init:function(){isHost=cong.isHost;readyCount=0;remoteOrigin=getLocation(cong.remote);cong.local=resolveUrl(cong.local);if(isHost){easyXDM.Fn.set(cong.channel,function(message){if(isHost&&message==="ready"){easyXDM.Fn.set(cong.channel,_onMessage);_onReady();}});remoteUrl=appendQueryParameters(cong.remote,{xdm_e:cong.local,xdm_c:cong.channel,xdm_p:2});apply(cong.props,{src:remoteUrl+'#'+cong.channel,name:cong.channel});remoteWindow=createFrame(cong);} else{cong.remoteHelper=cong.remote;easyXDM.Fn.set(cong.channel,_onMessage);} callerWindow=createFrame({props:{src:cong.local+"#_4"+cong.channel},onLoad:function(){un(callerWindow,"load",callerWindow.loadFn);easyXDM.Fn.set(cong.channel+"_load",_onLoad);_onReady();}});}});};easyXDM.stack.HashTransport=function(cong){var pub;var me=this,isHost,_timer,pollInterval,_lastMsg,_msgNr,_listenerWindow,_callerWindow;var usePolling,useParent,useResize,_remoteOrigin;function _sendMessage(message){if(!_callerWindow){return;} var url=cong.remote+"#"+(_msgNr++)+"_"+message;if(isHost||!useParent){_callerWindow.contentWindow.location=url;if(useResize){_callerWindow.width=_callerWindow.width>75?50:100;}} else{_callerWindow.location=url;}} function _handleHash(hash){_lastMsg=hash;pub.up.incoming(_lastMsg.substring(_lastMsg.indexOf("_")+1),_remoteOrigin);} function _onResize(){_handleHash(_listenerWindow.location.hash);} function _pollHash(){if(_listenerWindow.location.hash&&_listenerWindow.location.hash!=_lastMsg){_handleHash(_listenerWindow.location.hash);}} function _attachListeners(){if(usePolling){_timer=setInterval(_pollHash,pollInterval);} else{on(_listenerWindow,"resize",_onResize);}} return(pub={outgoing:function(message,domain){_sendMessage(message);},destroy:function(){if(usePolling){window.clearInterval(_timer);} else if(_listenerWindow){un(_listenerWindow,"resize",_pollHash);} if(isHost||!useParent){_callerWindow.parentNode.removeChild(_callerWindow);} _callerWindow=null;},init:function(){isHost=cong.isHost;pollInterval=cong.interval;_lastMsg="#"+cong.channel;_msgNr=0;usePolling=cong.usePolling;useParent=cong.useParent;useResize=cong.useResize;_remoteOrigin=getLocation(cong.remote);if(!isHost&&useParent){_listenerWindow=window;_callerWindow=parent;_attachListeners();pub.up.callback(true);} else{apply(cong,{props:{src:(isHost?cong.remote:cong.remote+"#"+cong.channel),name:(isHost?"local_":"remote_")+cong.channel},onLoad:(isHost&&useParent||!isHost)?(function(){_listenerWindow=window;_attachListeners();pub.up.callback(true);}):null});_callerWindow=createFrame(cong);if(isHost&&!useParent){var tries=0,max=cong.delay/50;(function getRef(){if(++tries>max){throw new Error("Unable to reference listenerwindow");} if(_listenerWindow){return;} try{_listenerWindow=_callerWindow.contentWindow.frames["remote_"+cong.channel];window.clearTimeout(_timer);_attachListeners();pub.up.callback(true);return;} catch(ex){setTimeout(getRef,50);}}());}}}});};easyXDM.stack.ReliableBehavior=function(cong){var pub,timer,current,next,sendId=0,sendCount=0,maxTries=cong.tries||5,timeout=cong.timeout,receiveId=0,callback;return(pub={incoming:function(message,origin){var indexOf=message.indexOf("_"),ack=parseInt(message.substring(0,indexOf),10),id;message=message.substring(indexOf+1);indexOf=message.indexOf("_");id=parseInt(message.substring(0,indexOf),10);indexOf=message.indexOf("_");message=message.substring(indexOf+1);if(timer&&ack===sendId){window.clearTimeout(timer);timer=null;if(callback){setTimeout(function(){callback(true);},0);}} if(id!==0){if(id!==receiveId){receiveId=id;message=message.substring(id.length+1);pub.down.outgoing(id+"_0_ack",origin);setTimeout(function(){pub.up.incoming(message,origin);},cong.timeout/2);} else{pub.down.outgoing(id+"_0_ack",origin);}}},outgoing:function(message,origin,fn){callback=fn;sendCount=0;current={data:receiveId+"_"+(++sendId)+"_"+message,origin:origin};(function send(){timer=null;if(++sendCount>maxTries){if(callback){setTimeout(function(){callback(false);},0);}} else{pub.down.outgoing(current.data,current.origin);timer=setTimeout(send,cong.timeout);}}());},destroy:function(){if(timer){window.clearInterval(timer);} pub.down.destroy();}});};easyXDM.stack.QueueBehavior=function(cong){var pub,queue=[],waiting=true,incoming="",destroying,maxLength=0;function dispatch(){if(waiting||queue.length===0||destroying){return;} waiting=true;var message=queue.shift();pub.down.outgoing(message.data,message.origin,function(success){waiting=false;if(message.callback){setTimeout(function(){message.callback(success);},0);} dispatch();});} return(pub={init:function(){if(undef(cong)){cong={};} maxLength=cong.maxLength?cong.maxLength:0;pub.down.init();},callback:function(success){waiting=false;dispatch();pub.up.callback(success);},incoming:function(message,origin){var indexOf=message.indexOf("_"),seq=parseInt(message.substring(0,indexOf),10);incoming+=message.substring(indexOf+1);if(seq===0){if(cong.encode){incoming=decodeURIComponent(incoming);} pub.up.incoming(incoming,origin);incoming="";}},outgoing:function(message,origin,fn){if(cong.encode){message=encodeURIComponent(message);} var fragments=[],fragment;if(maxLength){while(message.length!==0){fragment=message.substring(0,maxLength);message=message.substring(fragment.length);fragments.push(fragment);}} else{fragments.push(message);} while((fragment=fragments.shift())){queue.push({data:fragments.length+"_"+fragment,origin:origin,callback:fragments.length===0?fn:null});} dispatch();},destroy:function(){destroying=true;pub.down.destroy();}});};easyXDM.stack.VerifyBehavior=function(cong){var pub,mySecret,theirSecret,veried=false;function startVerication(){mySecret=Math.random().toString(16).substring(2);pub.down.outgoing(mySecret);} return(pub={incoming:function(message,origin){var indexOf=message.indexOf("_");if(indexOf===-1){if(message===mySecret){pub.up.callback(true);} else if(!theirSecret){theirSecret=message;if(!cong.initiate){startVerication();} pub.down.outgoing(message);}} else{if(message.substring(0,indexOf)===theirSecret){pub.up.incoming(message.substring(indexOf+1),origin);}}},outgoing:function(message,origin,fn){pub.down.outgoing(mySecret+"_"+message,origin,fn);},callback:function(success){if(cong.initiate){startVerication();}}});};easyXDM.stack.RpcBehavior=function(proxy,cong){var pub,serializer=cong.serializer||getJSON();var _callbackCounter=0,_callbacks={};function _send(data){data.jsonrpc="2.0";pub.down.outgoing(serializer.stringify(data));} function _createMethod(denition,method){var slice=Array.prototype.slice;return function(){var l=arguments.length,callback,message={method:method};if(l>0&&typeof arguments[l-1]==="function"){if(l>1&&typeof arguments[l-2]==="function"){callback={success:arguments[l-2],error:arguments[l-1]};message.params=slice.call(arguments,0,l-2);} else{callback={success:arguments[l-1]};message.params=slice.call(arguments,0,l-1);} _callbacks[""+(++_callbackCounter)]=callback;message.id=_callbackCounter;} else{message.params=slice.call(arguments,0);} _send(message);};} function _executeMethod(method,id,fn,params){if(!fn){if(id){_send({id:id,error:{code:-32601,message:"Procedure not found."}});} return;} var used=false,success,error;if(id){success=function(result){if(used){return;} used=true;_send({id:id,result:result});};error=function(message){if(used){return;} used=true;_send({id:id,error:{code:-32099,message:"Application error: "+message}});};} else{success=error=emptyFn;} try{var result=fn.method.apply(fn.scope,params.concat([success,error]));if(!undef(result)){success(result);}} catch(ex1){error(ex1.message);}} return(pub={incoming:function(message,origin){var data=serializer.parse(message);if(data.method){if(cong.handle){cong.handle(data,_send);} else{_executeMethod(data.method,data.id,cong.local[data.method],data.params);}} else{var callback=_callbacks[data.id];if(data.error){if(callback.error){callback.error(data.error);}} else if(callback.success){callback.success(data.result);} delete _callbacks[data.id];}},init:function(){if(cong.remote){for(var method in cong.remote){if(cong.remote.hasOwnProperty(method)){proxy[method]=_createMethod(cong.remote[method],method);}}} pub.down.init();},destroy:function(){for(var method in cong.remote){if(cong.remote.hasOwnProperty(method)&&proxy.hasOwnProperty(method)){delete proxy[method];}} pub.down.destroy();}});};})(window,document,location,window.setTimeout,decodeURIComponent,encodeURIComponent);
Language: English