James B. Carr II, MD - Sports Medicine | HSS (2022)

This browser is no longer supported.

To get the best experience using our site, we recommend downloading the latest version of Chrome, Safari, Edge or Firefox.

James B. Carr II, MD - Sports Medicine | HSS (1)

Sports Medicine

About Dr. Carr

Dr. James "Beamer" Carr II is an Assistant Attending Orthopedic Surgeon in the Sports Medicine Institute at HSS and an Assistant Professor at Weill Cornell Medical College. He grew up in Virginia where his father was an orthopedic trauma surgeon. His experiences as a collegiate baseball player and admiration for his late father inspired his specialization in orthopedic sports medicine.

Prior to joining HSS, Dr. Carr graduated from Furman University in Greenville, South Carolina. He completed medical school at Wake Forest University and orthopedic surgery residency at University of Virginia. Dr. Carr did a sports medicine and shoulder surgery fellowship at Hospital for Special Surgery where he worked as a member of the medical staff for the New York Mets. He continues to work closely with the New York Mets and serves as an assistant team physician for the organization.

Clinically, Dr. Carr uses arthroscopic and minimally invasive techniques to treat most sports related injuries. He has a particular interest in shoulder, elbow and knee problems, including: rotator cuff tears, shoulder dislocations, labrum tears, ulnar collateral ligament tears, distal biceps tears, anterior cruciate ligament (ACL) tears, and patella instability.

He is very active in both clinical and laboratory research that focuses on injury prevention, enhanced rehabilitation and use of biologic agents (e.g. platelet-rich plasma/PRP/growth factors). Dr. Carr continues to participate in basic science, clinical and biomechanical research, including development of a rat model for ulnar collateral ligament reconstruction (i.e. Tommy John surgery). He is the author of numerous articles and book chapters on shoulder, elbow and knee problems.

Physician Video

Departments

Orthopedic Surgery
Sports Medicine

Special Expertise

Overhead throwing shoulder and elbow problems
Tommy John surgery
Shoulder instability

Procedures

AC joint reconstruction
Achilles tendon repair
Clavicle fracture
Distal biceps repair
Knee cartilage surgery
Knee ligament reconstruction
Lateral and medial epicondylitis
Meniscus repair and meniscectomy
Patella stabilization
Rotator cuff repair
Shoulder instability surgery
Shoulder labrum repair
Tibial tubercle osteotomy
Ulnar collateral ligament reconstruction (i.e. Tommy John Surgery)

Patient Stories

Insurance

Please call our office if you have questions regarding your insurance coverage. If you have out of network benefits, then your insurance may reimburse you for a portion of your office visit. We will work with you and your insurance to minimize your out-of-pocket costs. Financial assistance may be available for patients in need.

Credentials

Appointments

Assistant Attending Orthopedic Surgeon, Hospital for Special Surgery
Assistant Professor of Orthopedic Surgery, Weill Cornell Medical College
Assistant Attending Orthopedic Surgeon, NewYork-Presbyterian Hospital

Affiliations

Assistant Team Physician, New York Mets

Certification

American Board of Orthopaedic Surgery, Board Eligible

Awards

Warren Kadrmas Fellow Citizenship Award, 2019
AAOS Shoulder and Elbow Best Poster Award, 2018
Chief Resident of the Year Award, 2018
Mulholland Resident and Fellow Teaching Award, 2017
Alpha Omega Alpha Honor Society, 2012
Gold Humanism Honor Society, 2012

Education

Wake Forest University School of Medicine, 2013

Internship

Orthopaedic Surgery, University of Virginia, 2014

Residency

Orthopaedic Surgery, University of Virginia, 2018

Fellowship

Sports Medicine and Shoulder Surgery, Hospital for Special Surgery, 2019

State Licensure

Languages

English

For My Patients

James B. Carr II, MD - Sports Medicine | HSS (4)

Surgical Locations

Dr. Carr performs surgery at the following locations:

(Video) Jason and Chocolate Challenge | Funny stories for kids

Publications by Dr. Carr

Selected Books/Chapters

Carr JB, Altchek DW. Flextor-pronator tendon tears. Sports-Related Conditions of the Elbow: A Guide to Successful Return to Play. SLACK Inc, 2020. In Press.

Carr JB, Rodeo SA. Biology of injury and repair of soft tissues of the shoulder. Shoulder Arthroscopy: Principles and Practice, 2nd edition. Springer International Publishing, 2020. In Press.

Taylor AS, Carr JB, Morse K, Apostolakos J, O'Brien SJ. Surgical management of the biceps-labrum complex. Rockwood and Matsen's The Shoulder, 6th edition. Elsevier, 2020. In Press.

Taylor AS, Carr JB, Morse K, Apostolakos J, O'Brien SJ. Developmental anatomy of the shoulder and anatomy of the glenohumeral joint. Rockwood and Matsen's The Shoulder, 6th edition. Elsevier, 2020. In Press.

Altchek DW, Carr JB, Cirdi YU, Ergün S, Karahan M. Management of shoulder instability in basketball players. Basketball Sports Medicine and Science. Springer International Publishing, 2020. In Press.

Carr JB, Allen AA. Triceps tendon repair. Elbow Surgery, Tricks of the Trade. Thieme Publishers, 2020. In Press.

Carr JB, Gomoll A. Matrix-induced autologous chondrocyte implantation. Operative Techniques in Orthopaedic Surgery, 3rd edition. Wolters Kluwer, 2020. In Press.

Carr JB, Dines JS. Stingers and Burners. Spinal conditions in the athlete: A clinical evaluation, management and controversies. Springer International Publishing, 2019. In Press

Carr JB, Dines JS. Elbow pain in the throwing athlete. Mechanics, Pathomechanics and Injury in the Overhead Athlete: A Case-Based Approach to Evaluation, Diagnosis and Management. Springer International Publishing, 2019.

Carr JB. Trochanteric bursitis and iliotibial band dysfunction. Making the Diagnosis in Orthopaedics: A Multimedia Guide. Lippincott Williams & Wilkins, 2018.

Selected Journal Articles

Carr JB, Rodeo S. The role of biological agents in the management of common shoulder pathology: current state and future directions. J Shoulder Elbow Surg. In Press.

Carr JB, Chicklo B, Altchek DW, Dines JS. On field management of shoulder and elbow injuries in baseball. Curr Rev Musculoskelet Med. Curr Rev Musculoskeletal Med. 2019 Jun;12(2):67-71. PMID: 30887285

Dooley E, Carr JB, Carson EW, Russell S. The effects of knee support on the sagittal lower-body joint kinematics and kinetics of deep squats. J Biomech. 2019 Jan3;82:164-170. PMID 30446216

Carr JB, Cancienne JM, Werner BC. Obstructive sleep apnea affects complication rates following knee arthroscopy but use of continuous positive airway pressure is not protective against complications. Knee Surg Sports Traumatol Arthrosc. 2019 Feb;27(2):534-540. Epub 2018 Sep 22. PMID: 30244341

Carr JB, Yildirim B, Richter D, Etier B, Pierce J, Anderson M, Diduch D. Primary anterolateral ligament rupture in patients requiring revision anterior cruciate ligament reconstruction: a retrospective case-control magnetic imaging review. Arthroscopy. 2018 Nov;34(11):3055-3062. PMID: 30301631

Carr JB, Conte E, Rajadhyaksha EA, Laroche KA, Gwathmey FW, Carson EW. Operative fixation of an anterior inferior iliac spine apophyseal avulsion fracture nonunion in an adolescent soccer player: a case report. JBJS Case Connect. 2017 April-June;7(2):e29. PMID: 29244669

Carr JB, Quincy J, Rajadhyaksha E, Carson EW, Turney KL. Traumatic avulsion of the serratus anterior muscle in a collegiate rower: a case report. Sports Health. 2017 Jan/Feb;9(1):80-83. PMID: 27655830.

Carr JB, Werner BW, Yarboro SR. An update on management of syndesmosis injury: a national database study. Am J Ortho. 2016 Nov/Dec;45(7):E472-E477. PMID: 28005114

Holst DC, Carr JB, Miller AN. Alcohol, injuries, and outcomes comparing injured moped and motorcycle drivers. Am Surg. 2016 Sep;82(9):254-6. PMID: 27670539

Carr JB, Werner BC, Miller MD, Gwathmey FW. Knee dislocation in the morbidly obese patient. J Knee Surg. 2016 May;29(4):278-86. PMID 26838970.

Selected Presentations

Carr JB, Cancienne JM, Diduch DR, Werner BC. Obstructive sleep apnea and knee arthroscopy: is there an increased risk of postoperative adverse events? AAOS 2018 Annual Meeting, March 6-10. New Orleans, LA.

Carr JB, Yildirim B, Richter D, Etier B, Diduch DR, Anderson W, Pierce J, Novicoff W. Primary anterolateral ligament rupture in patients requiring revision ACL reconstruction: a retrospective MRI review. University of Virginia Annual Resident Research Day, June 2016.

Hall MJ, Carr JB, Cooper MT. Forefoot deformities in patients with thyroid dysfunction. Virginia Orthopaedic Society Annual Meeting, March 2016.

Burrus MT, Werner BC, Carr JB, Perumal V, Park JS. Increased Failure Rate of Modified Double Arthrodeses Compared to Triple Arthrodeses for Pes Planovalgus. University of Virginia Annual Resident Research Day, June 2015.

Werner BC, Carr JB, Wiggins JC, Gwathmey FW, Browne JA. Manipulation under anesthesia after total knee arthroplasty is associated with an increased incidence of subsequent revision surgery. AAHKS 24th Annual Meeting, November 2014.

(Video) 11 Moments You Wouldn’t Believe If Not Filmed

Research

Industry Relationships

Industry Relationships

One of the goals of HSS is to advance the science of orthopedic surgery, rheumatology, and related disciplines for the benefit of patients. Physicians at HSS may collaborate with outside companies for education, research and medical advances. HSS supports this collaboration in order to foster medical breakthroughs; however HSS also believes that these collaborations must be disclosed.

As part of the disclosure process, this website lists physician collaborations with outside companies. The disclosures are provided by information provided by the physician and other sources and are updated regularly. Further information may be available on individual company websites.

As of December 22, 2020, Dr. Carr reported no relationships with healthcare industry.

By disclosing the collaborations of HSS physicians with industry on this website, HSS and its physicians make this information available to their patients and the public, thus creating a transparent environment for those who are interested in this information. Further, the HSSConflicts of Interest Policy does not permit physicians to collect royalties on products developed by him/her that are used on patients at HSS.

(Video) Dr. James Carr II Physician Profile

"; } //if (Address_List[i].getElementsByTagName("Telehealth")[0].childNodes.length > 0) { //divTelehealthMobile.innerHTML += "

Offers Virtual Care

"; //} // CREATE CHILD DIVS INSIDE THE PARENT DIV2. if (Address_List[i].getElementsByTagName("Practice2")[0].childNodes.length > 0) { var divLeft2 = document.createElement('div'); divLeft2.className = 'col-6 col-md-3 col-lg-auto pe-0 ps-3 pe-md-3 pe-lg-5 pb-3 pb-md-0 address-box position-relative'; divLeft2.innerHTML += "" + Address_List[i].getElementsByTagName("Practice2")[0].childNodes[0].nodeValue + ""; //divLeft2.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Address21")[0].childNodes.length > 0) { divLeft2.innerHTML += Address_List[i].getElementsByTagName("Address21")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Address22")[0].childNodes.length > 0) { divLeft2.innerHTML += ", "; divLeft2.innerHTML += Address_List[i].getElementsByTagName("Address22")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Address23")[0].childNodes.length > 0) { divLeft2.innerHTML += "
"; divLeft2.innerHTML += Address_List[i].getElementsByTagName("Address23")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("City2")[0].childNodes.length > 0) { divLeft2.innerHTML += "
"; divLeft2.innerHTML += Address_List[i].getElementsByTagName("City2")[0].childNodes[0].nodeValue; divLeft2.innerHTML += ", "; } if (Address_List[i].getElementsByTagName("State2")[0].childNodes.length > 0) { divLeft2.innerHTML += Address_List[i].getElementsByTagName("State2")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Zip2")[0].childNodes.length > 0) { divLeft2.innerHTML += " "; divLeft2.innerHTML += Address_List[i].getElementsByTagName("Zip2")[0].childNodes[0].nodeValue; divLeft2.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Phone2")[0].childNodes.length > 0) { divLeft2.innerHTML += "Tel: "; divLeft2.innerHTML += Address_List[i].getElementsByTagName("Phone2")[0].childNodes[0].nodeValue; divLeft2.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Fax2")[0].childNodes.length > 0) { divLeft2.innerHTML += "Fax: "; divLeft2.innerHTML += Address_List[i].getElementsByTagName("Fax2")[0].childNodes[0].nodeValue; } // CREATE CHILD DIVS INSIDE THE PARENT DIV3. if (Address_List[i].getElementsByTagName("Practice3")[0].childNodes.length > 0) { var divLeft3 = document.createElement('div'); divLeft3.className = 'col-6 col-md-3 col-lg-auto pe-0 ps-3 pe-md-3 pe-lg-5 pb-3 pb-md-0 address-box position-relative'; divLeft3.innerHTML += "" + Address_List[i].getElementsByTagName("Practice3")[0].childNodes[0].nodeValue + ""; //divLeft3.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Address31")[0].childNodes.length > 0) { divLeft3.innerHTML += Address_List[i].getElementsByTagName("Address31")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Address32")[0].childNodes.length > 0) { divLeft3.innerHTML += ", "; divLeft3.innerHTML += Address_List[i].getElementsByTagName("Address32")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Address33")[0].childNodes.length > 0) { divLeft3.innerHTML += "
"; divLeft3.innerHTML += Address_List[i].getElementsByTagName("Address33")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("City3")[0].childNodes.length > 0) { divLeft3.innerHTML += "
"; divLeft3.innerHTML += Address_List[i].getElementsByTagName("City3")[0].childNodes[0].nodeValue; divLeft3.innerHTML += ", "; } if (Address_List[i].getElementsByTagName("State3")[0].childNodes.length > 0) { divLeft3.innerHTML += Address_List[i].getElementsByTagName("State3")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Zip3")[0].childNodes.length > 0) { divLeft3.innerHTML += " "; divLeft3.innerHTML += Address_List[i].getElementsByTagName("Zip3")[0].childNodes[0].nodeValue; divLeft3.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Phone3")[0].childNodes.length > 0) { divLeft3.innerHTML += "Tel: "; divLeft3.innerHTML += Address_List[i].getElementsByTagName("Phone3")[0].childNodes[0].nodeValue; divLeft3.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Fax3")[0].childNodes.length > 0) { divLeft3.innerHTML += "Fax: "; divLeft3.innerHTML += Address_List[i].getElementsByTagName("Fax3")[0].childNodes[0].nodeValue; } // CREATE CHILD DIVS INSIDE THE PARENT DIV4. if (Address_List[i].getElementsByTagName("Practice4")[0].childNodes.length > 0) { var divLeft4 = document.createElement('div'); divLeft4.className = 'col-6 col-md-3 col-lg-auto pe-0 ps-3 pe-md-3 pe-lg-5 pb-3 pb-md-0 address-box position-relative'; divLeft4.innerHTML += "" + Address_List[i].getElementsByTagName("Practice4")[0].childNodes[0].nodeValue + ""; //divLeft4.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Address41")[0].childNodes.length > 0) { divLeft4.innerHTML += Address_List[i].getElementsByTagName("Address41")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Address42")[0].childNodes.length > 0) { divLeft4.innerHTML += ", "; divLeft4.innerHTML += Address_List[i].getElementsByTagName("Address42")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("City4")[0].childNodes.length > 0) { divLeft4.innerHTML += "
"; divLeft4.innerHTML += Address_List[i].getElementsByTagName("City4")[0].childNodes[0].nodeValue; divLeft4.innerHTML += ", "; } if (Address_List[i].getElementsByTagName("State4")[0].childNodes.length > 0) { divLeft4.innerHTML += Address_List[i].getElementsByTagName("State4")[0].childNodes[0].nodeValue; } if (Address_List[i].getElementsByTagName("Zip4")[0].childNodes.length > 0) { divLeft4.innerHTML += " "; divLeft4.innerHTML += Address_List[i].getElementsByTagName("Zip4")[0].childNodes[0].nodeValue; divLeft4.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Phone4")[0].childNodes.length > 0) { divLeft4.innerHTML += "Tel: "; divLeft4.innerHTML += Address_List[i].getElementsByTagName("Phone4")[0].childNodes[0].nodeValue; divLeft4.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Fax4")[0].childNodes.length > 0) { divLeft4.innerHTML += "Fax: "; divLeft4.innerHTML += Address_List[i].getElementsByTagName("Fax4")[0].childNodes[0].nodeValue; } // add statelicensure if (Address_List[i].getElementsByTagName("StateLicense")[0].childNodes.length > 0) { divStatelicensure.innerHTML += Address_List[i].getElementsByTagName("StateLicense")[0].childNodes[0].nodeValue; var fllink = Address_List[i].getElementsByTagName("StateLicense")[0].childNodes[0].nodeValue; if (fllink.indexOf("Florida") !== -1) { $('#fltelehealth').show(); } } // add temporary state licensure //if (Address_List[i].getElementsByTagName("TemporaryStateLicensure")[0].childNodes.length > 0) { //divStatelicensure.innerHTML += ", "; //divStatelicensure.innerHTML += Address_List[i].getElementsByTagName("TemporaryStateLicensure")[0].childNodes[0].nodeValue; //} //add Insurance if (Address_List[i].getElementsByTagName("Aetna")[0].childNodes.length > 0) { divInsurance.innerHTML += "Aetna"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Aetna_Medicare_PPO")[0].childNodes.length > 0) { divInsurance.innerHTML += "Aetna Medicare PPO"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("BCBS_PPO_HMO_POS")[0].childNodes.length > 0) { divInsurance.innerHTML += "Blue Cross Blue Shield PPO HMO POS"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("BCBS_HealthPlus")[0].childNodes.length > 0) { divInsurance.innerHTML += "Blue Cross Blue Shield HealthPlus - Individual Network ONLY (Not Medicaid)"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Cigna")[0].childNodes.length > 0) { divInsurance.innerHTML += "Cigna"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Connecticare")[0].childNodes.length > 0) { divInsurance.innerHTML += "Connecticare (not through Access Health CT)"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("EmblemHealth_GHI")[0].childNodes.length > 0) { divInsurance.innerHTML += "EmblemHealth GHI"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("EmblemHealth_HIP")[0].childNodes.length > 0) { divInsurance.innerHTML += "EmblemHealth HIP"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("EmblemHealth_Medicare")[0].childNodes.length > 0) { divInsurance.innerHTML += "EmblemHealth Medicare"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("EmblemHealth_Select_Care")[0].childNodes.length > 0) { divInsurance.innerHTML += "EmblemHealth Select Care"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("The_Empire_Plan_NYSHIP")[0].childNodes.length > 0) { divInsurance.innerHTML += "The Empire Plan NYSHIP"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Medicare")[0].childNodes.length > 0) { divInsurance.innerHTML += "Medicare"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Medicaid")[0].childNodes.length > 0) { divInsurance.innerHTML += "Medicaid"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Medicare_NonPar")[0].childNodes.length > 0) { divInsurance.innerHTML += "Medicare (Status: Non-Par using Medicare Limited Fee Schedule)"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("MultiPlan_PHCS")[0].childNodes.length > 0) { divInsurance.innerHTML += "MultiPlan PHCS"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Oxford")[0].childNodes.length > 0) { divInsurance.innerHTML += "Oxford"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("Oxford_Medicare")[0].childNodes.length > 0) { divInsurance.innerHTML += "Oxford Medicare"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("UnitedHealthcare")[0].childNodes.length > 0) { divInsurance.innerHTML += "UnitedHealthcare"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("UnitedHealthcare_Compass")[0].childNodes.length > 0) { divInsurance.innerHTML += "UnitedHealthcare Compass"; divInsurance.innerHTML += "
"; } if (Address_List[i].getElementsByTagName("UnitedHealthcare_Medicare")[0].childNodes.length > 0) { divInsurance.innerHTML += "UnitedHealthcare Medicare"; divInsurance.innerHTML += "
"; } // ADD THE CHILD TO THE PARENT DIV. divAddress.appendChild(divLeft); if (Address_List[i].getElementsByTagName("Practice2")[0].childNodes.length > 0) { divAddress.appendChild(divLeft2); } if (Address_List[i].getElementsByTagName("Practice3")[0].childNodes.length > 0) { divAddress.appendChild(divLeft3); } if (Address_List[i].getElementsByTagName("Practice4")[0].childNodes.length > 0) { divAddress.appendChild(divLeft4); } } } }; $('#os-url-top, #os-url-top-mobile, #os-url-top-sg, #os-url-top-mobile-sg, #osurl, #os-url-top-zd, #os-url-top-mobile-zd, #os-url-bottom-zd, #os-url-bottom-sg, #os-url-bottom, #os-url, #os-url-leftNav, #os-url-leftNav-sg, #os-url-leftNav-zd').on( 'click', function() { var phonequery = $('#physician-phone-number, #physician-phone-number-mobile').attr("data-phone");var osdata = "id=16398&vt=11700000136&vc=11700000132&dept=4001002002,&view=plain&drname=Dr. Carr&QueryString=Carr James&phone=" //generating os-btn url for os-start page var osurl = "https://www.hss.edu/open-schedule-start.asp?findadocflow=yes&" + osdata + phonequery var osurlsg = osurl + "" var osurlzd = osurl + "" // add OS URL to each element $('#os-url-top').attr('href', osurl ); $('#os-url-top-mobile').attr('href', osurl ); $('#os-url-bottom').attr('href', osurl ); $('#os-url').attr('href', osurl ); $('#os-url-leftNav').attr('href', osurl ); $('#os-url-top-sg').attr('href', osurlsg ); $('#os-url-top-mobile-sg').attr('href', osurlsg ); $('#os-url-bottom-sg').attr('href', osurlsg ); $('#os-url-leftNav-sg').attr('href', osurlsg ); $('#os-url-top-zd').attr('href', osurlzd ); $('#os-url-top-mobile-zd').attr('href', osurlzd ); $('#os-url-bottom-zd').attr('href', osurlzd ); $('#os-url-leftNav-zd').attr('href', osurlzd ); $('#osurl').attr('href', osurl ); $('#os-url').attr('href', osurl ); $('#os-url-leftNav').attr('href', osurl ) });//hide os button if the doctor changed to call from OS screening page function getAvailabilityData() { //let myHeaders = new Headers(); //myHeaders.append("Authorization", `Bearer ${token}`); let requestOptions = { method: 'GET', headers: { 'x-api-key' : 'OqrTIBKNOXajKIrSueK0313MOoKgkTUJ3c7wgJa3' }, redirect: 'follow' }; fetch("https://bacdoaqw0b.execute-api.us-east-1.amazonaws.com/prod/availability?doctorId=16398", requestOptions) .then(response => response.json()) //.then(html => { //document.getElementById('response1').innerHTML = html; //}) .then((data) => { //in-person start //filter to extract virtual const data2 = Object.values(data).filter(department => department.departmentId !== 'VIRTUAL')const data3 = Object.values(data2).filter(name => name.nameLastFirst === 'Carr James')//const datanoempty = Object.values(data2).filter(availability2 => availability2.availability !== '')const mapById = data3.reduce((acc, { id, availability }) => { acc[id] = { id, availability: (acc[id] ? acc[id].availability + ",": "") + `${availability}`}return acc;}, {})//mapById = mapById.replace(/^,/, '');const resultArray = Object.values(mapById); resultArray.forEach((result) => { //function to add visb class, if vis element is not empty in xml function hasClass(element, cls) { return (' ' + element.className + ' ').indexOf(' ' + cls + ' ') > -1; } var elementclass = document.getElementById('physican-search-banner-appointment-wrapper'); //function to add visb class, if vis element is not empty in xml end //if (result.Epic_ID ==='16398') {if ((result.availability !== '') && (result.availability !== null) && (result.availability.length > 0) && (result.availability !== ',') && (result.availability !== ',,') && (result.availability !== ',,,') && (result.availability !== ',,,,')) { let availabledates = JSON.stringify(result.availability); availabledates = availabledates.replace(/['"]+/g, ''); //remove last commna from string availabledates = availabledates.replace(/,\s*$/, ""); //remove first comma from string availabledates = availabledates.replace(/^,/, ''); availabledates = availabledates.replace(/^,/,''); //remove one extra comma when there is only one date per each location availabledates = availabledates.replace(',,', ','); //console.log (result.id + availabledates); //console.log(availabledates) //order dates by the latest let availabledatessort = availabledates.split(",").sort((a,b)=>new Date(a) - new Date(b)).join(","); //availabledatessort = availabledatessort + ","; //console.log (availabledatessort); //find the first date let firstdate = availabledatessort.split(",")[0] //} //switch to mm/dd format for os btn firstdateforosbtn = [moment(firstdate).format('M/D')]; //console.log((availabledatessort.split(",").length - 1)); //find 1st and 2nd dates and combime into one const countdates = [...availabledates].filter(l => l === ',').length; if (countdates == 0) { seconddateforosbtn = ""; } else { let seconddate = availabledatessort.split(",")[1] seconddateforosbtn = [moment(seconddate).format('M/D')]; } let inpersonalldates = firstdateforosbtn + ", " + seconddateforosbtn //remove last commna from string inpersonalldates = inpersonalldates.replace(/,\s*$/, ""); const dates = '

In-person
'+inpersonalldates+'

'; document.getElementById("response").insertAdjacentHTML("beforeend", dates); const datesMobile = '

In-person
'+inpersonalldates+'

'; document.getElementById("response-date").insertAdjacentHTML("beforeend", datesMobile); } }); //in-person end //VC data.forEach((result) => { if ((result.availability !== '') && (result.availability.length > 0) && (result.availability !== ',,') && (result.availability !== ',,,') && (result.availability !== ',,,,') && (result.locationName ==='VIRTUAL')) { let vcavailabledates = JSON.stringify(result.availability); vcavailabledates= vcavailabledates.replace(/['"]+/g, ''); vcavailabledates= vcavailabledates.replace('[', ''); vcavailabledates= vcavailabledates.replace(']', ''); //remove last commna from string vcavailabledates = vcavailabledates.replace(/,\s*$/, ""); console.log(result.availability); console.log(vcavailabledates); //remove first comma from string vcavailabledates = vcavailabledates.replace(/^,/, ''); vcavailabledates = vcavailabledates.replace(/^,/,''); //console.log(vcavailabledates); //find the first date let vcfirstdate = vcavailabledates.split(",")[0] //switch to mm/dd format for os btn vcfirstdateforosbtn = [moment(vcfirstdate).format('M/D')]; //console.log((availabledatessort.split(",").length - 1)); //find 1st and 2nd dates and combine into one const vccountdates = [...vcavailabledates].filter(l => l === ',').length; if (vccountdates == 0) { vcseconddateforosbtn = ""; } else { let vcseconddate = vcavailabledates.split(",")[1] vcseconddateforosbtn = [moment(vcseconddate).format('M/D')]; } let vcalldates = vcfirstdateforosbtn + ", " + vcseconddateforosbtn //remove last commna from string vcalldates = vcalldates.replace(/,\s*$/, ""); //remove first comma from string vcalldates = vcalldates.replace(/^,/, ''); vcalldates = vcalldates.replace(/^,/,''); //console.log(vcavailabledates); const vcdates = '

Virtual care
'+vcalldates+'

'; document.getElementById("response").insertAdjacentHTML("beforeend", vcdates); const vcdatesMobile = '

Virtual care
'+vcalldates+'

(Video) The Boo Boo Song Nursery Rhymes and Kids Songs | Peppa Pig Official Family Kids Cartoon

'; document.getElementById("response-date").insertAdjacentHTML("beforeend", vcdatesMobile);}});//vc end//check if inperson and vc is empty//const datanoempty = Object.values(data2).filter(availability2 => availability2.availability !== '')const dataall = Object.values(data).filter(name => name.nameLastFirst === 'Carr James')const mapByIdall = dataall.reduce((acc, { id, availability }) => { acc[id] = { id, availability: (acc[id] ? acc[id].availability + ",": "") + `${availability}`}return acc;}, {})//mapById = mapById.replace(/^,/, '');const resultArrayall = Object.values(mapByIdall); resultArrayall.forEach((result) => { //when no inperson and vc dates //if ((result.availability === '')) { console.log(result.availability); if ((result.availability !== '') && (result.availability !== null) && (result.availability.length > 0) && (result.availability !== ',') && (result.availability !== ',,') && (result.availability !== ',,,') && (result.availability !== ',,,,')) { console.log("yes date") } else { console.log("no date") $('.os-bar-wrap').hide(); $('.os-bar-sticky').hide(); $('.os-bar-wrap').addClass('nodates'); $('.os-bar-sticky').addClass('nodates'); $(".sticky-os-button-wrapper").css({"display":"none"}); $('#physican-search-banner-appointment-wrapper .physican-search-banner-appointment-button').css({"display":"none"}); $('#physican-search-banner-appointment-wrapper-mobile .physican-search-banner-appointment-button').css({"display":"none"}); } //wehn no inperson and vc dates end }); //check if inperson and vc is empty end }); //.catch(error => console.log('error', error)); } async function test() { //let token = await getToken(); getAvailabilityData(); } test();//if(hasClass(elementclass, 'Visb')) {//} else { // $(".sticky-os-button-wrapper").css({"display":"none"}); ///hide OS-BTN when there is no in-persoon or vc dates in 90 days //$('#physican-search-banner-appointment-wrapper .physican-search-banner-appointment-button').css({"display":"none"}); //$('#physican-search-banner-appointment-wrapper-mobile .physican-search-banner-appointment-button').css({"display":"none"});//}

Videos

1. FUN WAYS TO SNEAK ANYTHING ANYWHERE || DIY Crazy Sneaky Tricks And Tips By 123 GO Like!
(123 GO Like!)
2. Blaze and the Monster Machines | Gabby Fixes Blaze | Nick Jr. UK
(Nick Jr.)
3. Mom Installs Camera, Sees Why She’s Always Tired
(Facts World)
4. Kim Jong-Un brutally shoots an orchestra conductor 90 times in front of every artist in Pyongyang
(Voice of North Korea by Yeonmi Park)
5. Femoroacetabular Impingement (FAI)
(University of Iowa Health Care)
6. The Dub Episode 10
(the dub dfw high school sports)

Top Articles

Latest Posts

Article information

Author: Domingo Moore

Last Updated: 11/07/2022

Views: 6151

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.