(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PXLQG7'); Primary+ Pay Dues Membership Join AAFP Primary+ Pay Dues Member Benefits Favorites Membership Favorites Join AAFP View Cart Shop shopurl = '//nf.aafp.org/shop/rest/cart'; currentLocation = "" + document.location.href; if(currentLocation.indexOf("www.aafp.org") > -1 || currentLocation.indexOf("nf.aafp.org") > -1){ shopurl = "//nf.aafp.org/shop/rest/cart"; } AAFP.components.content.Cart.init(shopurl); Menu Sign In Welcome My Account Member Services Join AAFP Sign Out var fullName = ''; var isMember = false; var loggedinval = false; var processSavedUDCookie = false; var close = 'close'; var welcome = 'Welcome'; var btnContent = jQuery('.-js-mobile-account-menu-btn').html(); var restUrlval = '//nf.aafp.org/MyAcademy/individuals/GetIndividualFromHeader'; var signinUrl = '#/cgi-bin/lg.pl?redirect=' + document.location.href; var signoutUrl = "#/cgi-bin/logout.pl" if(signinUrl != ''){ jQuery(".-js-sign-in").attr("href", signinUrl); } if(signoutUrl != ''){ jQuery(".-js-sign-out").attr("href", signoutUrl); } var aafpidUval = getAAFPCookie("aafpid"); var aafpudval = getAAFPCookie("UD"); var SMSESSIONval = getAAFPCookie("SMSESSION"); loggedinval = (!(aafpidUval == '' || aafpidUval == '0000000')); //console.log("aafpidUval: " + aafpidUval); if(SMSESSIONval){ //console.log("SMSESSIONval: " + SMSESSIONval); if(SMSESSIONval == "LOGGEDOFF" || SMSESSIONval == ""){ loggedinval = false; deleteAAFPCookie("UD"); } } else{ loggedinval = false; deleteAAFPCookie("UD"); } //console.log("loggedinval: " + loggedinval); if(!loggedinval){ deleteAAFPCookie("UD"); signedOutState(); } else { //console.log("Here 1"); if(aafpudval && aafpudval.length > 0){ if( aafpudval.indexOf(aafpidUval) != -1 && aafpudval.indexOf("LastName") != -1 ){ processSavedUDCookie = true; } } if(processSavedUDCookie){ //console.log("Here 2 - processJsonSignInData"); processJsonSignInData(aafpudval); } else{ //console.log("Here 2 - callSignInService"); callSignInService(); } signedInState(); } function signedOutState(){ jQuery("body").removeClass("is-signed-out") jQuery("body").removeClass("is-signed-in"); jQuery("body").removeClass("is-non-member"); jQuery("body").removeClass("is-member"); jQuery("body").addClass("is-signed-out"); } function signedInState(){ jQuery("body").removeClass("is-signed-in"); jQuery("body").removeClass("is-signed-out"); jQuery("body").removeClass("is-non-member"); jQuery("body").removeClass("is-member"); //console.log("First Name: " + firstName); //console.log("Last Name: " + lastName); //console.log("isMember: " + isMember); jQuery(".-js-mobile-account-menu-btn .full-name").html(fullName); //jQuery(".-js-mobile-account-menu-btn .last-name").html(lastName); if(isMember){ jQuery("body").addClass("is-member"); } else{ jQuery("body").addClass("is-non-member"); } jQuery("body").addClass("is-signed-in"); btnContent = jQuery('.-js-mobile-account-menu-btn').html(); } function getAAFPCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function setAAFPCookie( name, value, expires, path, domain, secure ){ domain = ".aafp.org"; var today = new Date(); today.setTime( today.getTime() ); if ( expires ) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date( today.getTime() + (expires) ); path="/"; document.cookie = name + "=" +escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? "; path=" + path : "; path=/") + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" ); } function deleteAAFPCookie(c_name){ var tmp = getAAFPCookie(c_name); if(tmp) { setAAFPCookie(c_name, '', -1); } } // THIS FUNCTION MEANS THAT THE UD COOKIE EXISTS AND WE SIMPLY HAVE TO PARSE THE DATA function processJsonSignInData(json){ //console.log("processJsonSignInData method"); //console.log(json); try{ //console.debug("Parse the json"); if (jQuery.type(json) === 'object') { json = JSON.stringify(json); } if(json.indexOf(", \"data\"") == -1){ json = "{\"id\": \""+aafpidUval+"\", \"data\": "+ json + "}" } UDcustomer = eval('(' + json + ')'); deleteAAFPCookie("UD"); setAAFPCookie("UD", ""+json); udcustomerflag=""; udFirst = ""; udLast = ""; udFull = ""; if(UDcustomer){ if(UDcustomer.data.LastName && UDcustomer.data.LastName != ""){ udLast = "" + UDcustomer.data.LastName; } if(UDcustomer.data.FirstName && UDcustomer.data.FirstName != ""){ udFirst = "" + UDcustomer.data.FirstName; } if(udFirst.length <= 1 || (udFirst.length == 2 && udFirst.indexOf(".") != -1)){ if(udFirst.length == 1){ udFirst += "."; } udFirst += " " + udLast; } if(UDcustomer.data.IsCustomer && UDcustomer.data.IsCustomer != ""){ udcustomerflag = UDcustomer.data.IsCustomer; } } if(("" + udcustomerflag).toLowerCase() == "true"){ isMember = true; } if(udFirst.length > 11){ udFirst = udFirst.substring(0, 11) + "..."; } fullName = udFirst; } catch(eee){} signedInState(); } function callSignInService(){ try{ jQuery.getJSON(restUrlval + '?jsoncallback=?', processJsonSignInData); } catch(e){} } //Mobile Account Menu Toggle function loginMenuDetector(){ var v = jQuery(".js-window-width").css('text-indent'); //console.log("loginMenuDetector() width: " + v); if(v != "979px"){ jQuery(".account-portal__sign-in").removeClass("button").removeClass("button-primary"); jQuery('.-js-mobile-account-menu-btn').unbind("click").click(function(){ //if navigation is activated, change button to 'close' if (!jQuery('.-js-mobile-account-menu-btn').hasClass('-nav-active')) { jQuery(".-js-mobile-account-menu-btn").addClass('-nav-active'); jQuery('.-js-account-links').addClass('-is-active'); jQuery('.-js-welcome').text(close); } else { jQuery(".-js-mobile-account-menu-btn").removeClass('-nav-active'); jQuery('.-js-account-links').removeClass('-is-active'); jQuery('.-js-welcome').text(welcome); } }); } else{ jQuery('.-js-mobile-account-menu-btn').unbind("click"); jQuery(".-js-mobile-account-menu-btn").removeClass('-nav-active'); jQuery('.-js-account-links').removeClass('-is-active'); jQuery('.-js-welcome').text(welcome); jQuery(".account-portal__sign-in").addClass("button").addClass("button-primary"); } } loginMenuDetector(); jQuery(window).resize(function() { loginMenuDetector(); }); Search Clear the search input Search jQuery.extend( jQuery.ui.autocomplete.prototype, { close: function( event ) { var o = this; o.cancelSearch = true; if (o.options.keep_open) { o._adab_close( event ); } else { o._close( event ); } }, _close: function( event ) { if ( this.menu.element.is( ":visible" ) ) { this.menu.element.hide(); if (this.menu.blur) { this.menu.blur(); } this.isNewMenu = true; this._trigger( "close", event ); } }, _adab_close: function( event ) { this._trigger( "close", event ); } }); var settings = { account : "sp1004eca2", searchDomain : "#/", inputElement : "input#q", inputFormElement : "form#search-box", delay : 100, minLength : 3, maxResults : 10, browserAutocomplete : false, queryCaseSensitive : false, startsWith : false, submitOnSelect : true, zindex : 100, header : "", footer : "", appendTo : "form#search-box" } jQuery(document).ready( function(){ try{ $("input#q").AdobeAutocomplete(settings); } catch(e){} }); CME Journals Patient Care Med School & Residency Practice Management Advocacy Events AAFP News Get FMX OnDemand Experience FMX anytime, anywhere. Earn enduring Prescribed CME credits. Purchase Now Support Your AAFP Foundation Take advantage of this small way to make a big impact when paying membership dues. Learn More Earn Credits for MACRA Learn the basics. Take action in MIPS. Apply in your practice. Learn More Present at the 2018 AAFP FMX Submit today to present at the 2018 Family Medicine Experience in New Orleans, LA. Find Out More Earn CME Make an Impact MACRA CME Call for Proposals Member Services Report CME My CME Transcript My Account Pay Dues More Member Services Report FMX CME Report Your FMX CME Don't forget! Report your activity by Friday, October 13, to get credit. Report Now CONTINUING MEDICAL EDUCATION Satisfy Your ABFM Requirements Attend PerformanceNavigator® to satisfy your family medicine certification and earn up to 107 CME credits. Register Now Physician Payment Reform Avoid Negative Payment Adjustments Let the AAFP guide you down the MIPS path of the Quality Payment Program. Learn More AAFP News Now jQuery("#key_1506841262691_sidebarnewsrss_feed").aafp_rssreader({ feedLink: "/content/aafp/news/jcr:content/contentpar/gridblock_0/anntopstories.rss", channelTitle: "AAFP News", numStories: 3, refreshRate: 0, showChannelPublicationDate: false, showArticleDesc: true, showChannelCopyright: false, showChannelTitle: true, showChannelDesc: false, channelDesc: "", showRefreshTime: false, moreLink: "/content/aafp/news.html", moreLinkText: "More News Stories", showFirstLink: false, titleTarget: "_self", showXML: false, showHTML: false, showErrorMessage: false, useTitleLink: true, showArticlePublicationDate: true, pubDateFormat: "MMM dd, yyyy hh:mma", itemPubDateFormat: "[MM/dd/yyyy]", refreshDateFormat: "MMM dd, yyyy hh:mm:ssa", pubDateText: "Publication Date: ", refreshDateText: "Refresh Time: ", descriptionLength: 100, errorMessage: "URL not a valid Feed. Make sure that it is one of the following feed types (RSS / ATOM / RDF)" }); AAFP Journals American Family Physician October 1, 2017 Recurrent Ischemic Stroke: Strategies for Prevention Testosterone Therapy: Review of Clinical Applications Secondary Hypertension: Discovering the Underlying Cause More From This Issue » Take the online CME Quiz and earn 7 credits. Read AFPCME Quiz Family Practice Management September/October 2017  Technology Tools and Trends for Better Patient Care: Beyond the EHR How to Talk to Reluctant Patients About the Flu Shot Evaluating Physician Employment Contracts: How Do Your Benefits Measure Up? Reducing Frustration and Increasing Fulfillment: Reframing Finding the Bright Spots in Value-Based Care More From This Issue » Take the online CME Quiz and earn 6 credits. Read FPMCME Quiz AAFP Affiliates AAFP Affiliates & Partnerships The AAFP and its affiliate organizations work closely together to advance the specialty of family medicine. Home Home CME Journals Patient Care Med School & Residency Practice Management Advocacy Events AAFP News Primary+ Pay Dues Membership Join AAFP Primary+ Pay Dues Member Benefits Favorites Membership Favorites Join AAFP Careers Press Center Chapter Staff Congress of Delegates Info From Sponsors My Account About Contact Shop View Cart Copyright © 2017 American Academy of Family Physicians. All rights reserved. About This Site | Privacy Policy | Terms of Use Copyright © 2017 American Academy of Family Physicians. All rights reserved. 11400 Tomahawk Creek Parkway • Leawood, KS 66211-2680 800.274.2237 • 913.906.6000 • Fax: 913.906.6075 • [email protected] Home Top Search Clear the search input Search jQuery.extend( jQuery.ui.autocomplete.prototype, { close: function( event ) { var o = this; o.cancelSearch = true; if (o.options.keep_open) { o._adab_close( event ); } else { o._close( event ); } }, _close: function( event ) { if ( this.menu.element.is( ":visible" ) ) { this.menu.element.hide(); if (this.menu.blur) { this.menu.blur(); } this.isNewMenu = true; this._trigger( "close", event ); } }, _adab_close: function( event ) { this._trigger( "close", event ); } }); var settingsfooter = { account : "sp1004eca2", searchDomain : "#/", inputElement : "input#qfooter", inputFormElement : "form#search-boxfooter", delay : 100, minLength : 3, maxResults : 10, browserAutocomplete : false, queryCaseSensitive : false, startsWith : false, submitOnSelect : true, zindex : 100, header : "", footer : "", appendTo : "form#search-boxfooter" } jQuery(document).ready( function(){ try{ $("input#qfooter").AdobeAutocomplete(settingsfooter); } catch(e){} }); Home CME Journals Patient Care Med School & Residency Practice Management Advocacy Events AAFP News Primary+ Pay Dues Membership Join AAFP Primary+ Pay Dues Member Benefits Favorites Membership Favorites Join AAFP Careers Press Center Chapter Staff Congress of Delegates Info From Sponsors My Account About Contact Shop View Cart AAFP Connect Find us on Facebook Follow us on Twitter Copyright © 2017 American Academy of Family Physicians. All rights reserved. About This Site | Privacy Policy | Terms of Use }); -->