PageSourceSearch

https://schedule.rothmanortho.com/assets/Account-02893037.js

js rothmanortho.com collected 2026-10-03 22:11:33 UTC 61,104 bytes, 3 lines download raw bytes

1import{h as l}from"./momenttz-2e60a0d5.js";import{n as v,o as L,b as T,J as y,K as w,L as st,N as it,O as j,Q as at,w as Y,R as F,q as U,S as nt,T as rt,U as ot,V as B,D as lt,f as W,W as ct,X as pt,Y as dt,d as G,Z as ut,$ as mt,a0 as ht,a1 as vt,c as ft,a2 as gt,a3 as _t,m as R}from"./index-affce793.js";import{c as bt}from"./misc-091d00d4.js";import{W as yt}from"./WaitlistRequestDialog-a91a9536.js";import{g as H}from"./vue-036c6a95.js";import{k as X,d as K,e as $t,f as Tt,s as wt,g as Dt,h as Ct,i as D,j as xt,l as At,m as Rt,n as Q,b as It,c as St,a as Mt}from"./_baseIteratee-34528d06.js";import{_ as kt,a as Pt}from"./_arrayIncludesWith-1e1e0700.js";import"./aws-b1e32208.js";const qt={data:()=>({loading:!1}),computed:{dialog(){return this.$store.state.patient.rescheduleDialog},patient(){return this.$store.state.patient.patient},appt(){return this.$store.state.patient.rescheduleAppt}},methods:{moment:l,formatDate(s){return l.tz(s,"America/New_York").format("MMM Do, YYYY h:mmA ")},closeDialog(){this.$store.commit("patient/setRescheduleDialog",!1),this.$store.commit("survey/setCodes",{activity:null,visit:null}),this.$store.commit("patient/setRescheduleAppt",null)},setInsurance(){this.patient.insurance.length>0&&L(this.$store.state.selectedRegion&&this.$store.state.selectedRegion.regionId).then(s=>{const e=s.concat([{insurance:"Other / My insurance is not here",isPublic:!1},{insurance:"Automotive insurance / Worker's Compensation / Self Pay",isPublic:!1}]).find(i=>this.patient.insurance[0].insuranceCompanyName===i.insurance);e?this.$store.commit("setSelectedInsurance",[e]):this.patient.insurance[0].insuranceCompanyName.startsWith("Insurance Registration Needed")?this.$store.commit("setSelectedInsurance",[{insurance:this.patient.insurance[0].subscriberNumber,isPublic:!0}]):this.$store.commit("setSelectedInsurance",[{insurance:this.patient.insurance[0].insuranceCompanyName,isPublic:!0}])})}
1,rescheduleProvider(){if(this.loading=!0,this.setAppointmentReason(),this.$store.commit("patient/setPreferredProviderOverride",!1),this.$store.commit("patient/setRescheduleDialog",!1),this.$store.commit("setField",{value:l().diff(this.patient.birthDate,"years"),field:"patientsAge",name:"Patient's Age"}),this.setInsurance(),this.appt.providerId){const s=this.appt.providerName.split(" ").join("-");this.$router.push(`/profile/${this.appt.providerId}/${s}`)}else this.$router.push("/"),this.$store.commit("toaster/info","Provider could not be found. Please start a new search.")},reuseTriage(){console.log("Reusing triage"),this.setAppointmentReason();const s=this.appt.triageQuery;console.log("query:",s),this.loading=!0,this.$store.commit("patient/setRescheduleAppt",this.appt),this.$store.commit("patient/setRescheduleDialog",!1),this.$store.commit("setTriageFilter",{val:s,termSearch:[]}),this.setInsurance(),this.$store.commit("setField",{field:"patientsAge",name:"Age",value:l().diff(this.patient.birthDate,"years")});const t=this.patient.locations[0];T(`${t.addressLine1} ${t.addressLine2}, ${t.city} ${t.state}`,this.$store.state.selectedRegion?this.$store.state.selectedRegion.regionId:0,this.$store.state.sessionId).then(e=>{this.$store.commit("setAddress",{address:e[0].address,placeId:e[0].placeId})}).then(()=>{var i,a,r;const e=(i=this.appt)!=null&&i.clinicalTerm?[{clinicalTerm:(a=this.appt)==null?void 0:a.clinicalTerm,clinicalTermId:(r=this.appt)==null?void 0:r.clincialTermId}]:this.$store.state.clinicalTerms;this.$store.dispatch("buildClinicalTerms",e).then(()=>{this.$store.dispatch("searchProviders"),this.loading=!1}).catch(n=>{console.error(n),this.loading=!1,this.$store.commit("setClinicalTerms",[]),this.$store.commit("toaster/info","Please re-enter your appointment reason to search for a new provider."),this.$router.push("/")})})},reTriage(){var e,i,a;this.setAppointmentReason(),this.loading=!0,this.$store.commit("patient/setRescheduleAppt",this.appt),this.$store.commit("setField",{value:l().diff(this.patient.birthDate,"years"),field:"patientsAge",name:"Patient's Age"}),this.setInsurance();const s=this.patient.locations[0];T(`${s.addressLine1} ${s.addressLine2}, ${s.city} ${s.state}`,this.$store.state.selectedRegion?this.$store.state.selectedRegion.regionId:0,this.$store.state.sessionId).then(r=>{this.$store.commit("setAddress",{address:r[0].address,placeId:r[0].placeId})});const t=(e=this.appt)!=null&&e.clinicalTerm?[{clinicalTerm:(i=this.appt)==null?void 0:i.clinicalTerm,clinicalTermId:(a=this.appt)==null?void 0:a.clincialTermId}]:this.$store.state.clinicalTerms;this.$store.dispatch("buildClinicalTerms",t).then(()=>{const r=this.$store.state.clinicalTerms.find(n=>n.hasTriage);r&&this.$store.commit("survey/showTriageDialog",{id:r.clinicalTermId,name:r.clinicalTerm}),this.$store.commit("patient/setRescheduleDialog",!1),this.loading=!1})},setAppointmentReason(){if(this.appt.clinicalTerm&&this.appt.clinicalTermId){let s=this.appt.appointmentReason.split(",").map(e=>({clinicalTerm:e.trim().replace(/(Left )|(Right )|(Bilateral )/,"")})),t=!1;for(const e of s)e.clinicalTerm.toLowerCase()===this.appt.clinicalTerm.toLowerCase()&&(e.clinicalTermId=this.appt.clinicalTermId,t=!0);t||(s=[{clinicalTerm:this.appt.clinicalTerm,clinicalTermId:this.appt.clinicalTermId},{clinicalTerm:this.appt.appointmentReason.replace(/(Left )|(Right )|(Bilateral )/,"")}]),this.$store.commit("setClinicalTerms",s)}else if(this.appt.appointmentReason){const s=this.appt.appointmentReason.replace(/(Left )|(Right )|(Bilateral )/,"");this.$store.commit("setClinicalTerms",[{clinicalTerm:s}])}else this.$store.commit("setClinicalTerms",[])}}};var Ot=function(){var i,a,r,n;var t=this,e=t._self._c;return e("v-dialog",{staticStyle:{"z-index":"999"},attrs:{width:"700px",fullscreen:t.$vuetify.breakpoint.smAndDown,value:!!t.dialog,"retain-focus":!1,persistent:""},on:{input:t.closeDialog}},[e("v-card",[e("v-card-title",[t._v(" Reschedule Appointment "),e("v-spacer"),e("v-btn",{attrs:{icon:""},on:{click:t.closeDialog}},[e("v-icon",[t._v("mdi-close")])],1)],1),t.appt?e("v-card-text",[e("div",{staticClass:"mb-2"},[t._v("Please select from the options below to reschedule this appointment:")]),e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatDate(t.appt.beginDateTime)))]),e("div",{staticClass:"font-weight-bold text-uppercase"},[t._v(t._s(t.appt.notes))]),e("br"),(i=t.appt.providerCustomFields)!=null&&i.find(o=>o.key==="public_display_name")?e("span",[t._v(" "+t._s((a=t.appt.providerCustomFields)==null?void 0:a.find(o=>o.key==="public_display_name").value)+" ")]):e("span",[t._v(" "+t._s(t.appt.providerName)+" ")]),e("br"),e("v-icon",{attrs:{small:""}},[t._v("mdi-map-marker")]),t._v(" "+t._s(t.appt.locationName)+" "),e("div",{staticClass:"mt-6"},[e("v-btn",{staticClass:"my-2",attrs:{block:"",color:"primary",loading:t.loading},on:{click:t.rescheduleProvider}},[t._v("Reschedule with the same provider")]),t.appt.visitType!=="FW"&&!t.appt.rescheduleSameProvider&&(!((r=t.appt.providerCustomFields)!=null&&r.find(o=>o.key==="prevent_public_retriage"))||((n=t.appt.providerCustomFields)==null?void 0:n.find(o=>o.key==="prevent_public_retriage").value)!=="true")?[t.appt.triageQuery?e("v-btn",{staticClass:"my-2",attrs:{block:"",color:"primary",loading:t.loading},on:{click:t.reuseTriage}},[t._v("Find a new Provider")]):t.appt.appointmentReason?e("v-btn",{staticClass:"my-2",attrs:{block:"",color:"primary",loading:t.loading},on:{click:t.reTriage}},[t._v("Find a new Provider")]):t._e()]:t._e(),e("v-btn",{staticClass:"my-2",attrs:{block:""},on:{click:t.closeDialog}},[t._v("Cancel")])],2)],1):t._e()],1)],1)},Et=[],Nt=v(qt,Ot,Et,!1,null,null,null,null);const Lt=Nt.exports;function jt(s,t){for(var e=-1,i=s==null?0:s.length;++e<i&&t(s[e],e,s)!==!1;);return s}var Yt=jt,Ft=y,Ut=X;function Bt(s,t){return s&&Ft(t,Ut(t),s)}var Wt=Bt,Gt=y,Ht=w;function Xt(s,t){return s&&Gt(t,Ht(t),s)}var Kt=Xt,b={exports:{}};b.exports;
vendor: 4,092 bytes, line 1
1(function(s,t){var e=st,i=t&&!t.nodeType&&t,a=i&&!0&&s&&!s.nodeType&&s,r=a&&a.exports===i,n=r?e.Buffer:void 0,o=n?n.allocUnsafe:void 0;function p(c,m){if(m)return c.slice();var u=c.length,h=o?o(u):new c.constructor(u);return c.copy(h),h}s.exports=p})(b,b.exports);var Qt=b.exports;function zt(s,t){var e=-1,i=s.length;for(t||(t=Array(i));++e<i;)t[e]=s[e];return t}var Vt=zt,Zt=y,Jt=K;function te(s,t){return Zt(s,Jt(s),t)}var ee=te,se=$t,ie=se(Object.getPrototypeOf,Object),z=ie,ae=Tt,ne=z,re=K,oe=wt,le=Object.getOwnPropertySymbols,ce=le?function(s){for(var t=[];s;)ae(t,re(s)),s=ne(s);return t}:oe,V=ce,pe=y,de=V;function ue(s,t){return pe(s,de(s),t)}var me=ue,he=Dt,ve=V,fe=w;function ge(s){return he(s,fe,ve)}var _e=ge,be=Object.prototype,ye=be.hasOwnProperty;function $e(s){var t=s.length,e=new s.constructor(t);return t&&typeof s[0]=="string"&&ye.call(s,"index")&&(e.index=s.index,e.input=s.input),e}var Te=$e,I=Ct;function we(s){var t=new s.constructor(s.byteLength);return new I(t).set(new I(s)),t}var C=we,De=C;function Ce(s,t){var e=t?De(s.buffer):s.buffer;return new s.constructor(e,s.byteOffset,s.byteLength)}var xe=Ce,Ae=/\w*$/;function Re(s){var t=new s.constructor(s.source,Ae.exec(s));return t.lastIndex=s.lastIndex,t}var Ie=Re,S=it,M=S?S.prototype:void 0,k=M?M.valueOf:void 0;function Se(s){return k?Object(k.call(s)):{}}var Me=Se,ke=C;function Pe(s,t){var e=t?ke(s.buffer):s.buffer;return new s.constructor(e,s.byteOffset,s.length)}var qe=Pe,Oe=C,Ee=xe,Ne=Ie,Le=Me,je=qe,Ye="[object Boolean]",Fe="[object Date]",Ue="[object Map]",Be="[object Number]",We="[object RegExp]",Ge="[object Set]",He="[object String]",Xe="[object Symbol]",Ke="[object ArrayBuffer]",Qe="[object DataView]",ze="[object Float32Array]",Ve="[object Float64Array]",Ze="[object Int8Array]",Je="[object Int16Array]",ts="[object Int32Array]",es="[object Uint8Array]",ss="[object Uint8ClampedArray]",is="[object Uint16Array]",as="[object Uint32Array]";function ns(s,t,e){var i=s.constructor;switch(t){case Ke:return Oe(s);case Ye:case Fe:return new i(+s);case Qe:return Ee(s,e);case ze:case Ve:case Ze:case Je:case ts:case es:case ss:case is:case as:return je(s,e);case Ue:return new i;case Be:case He:return new i(s);case We:return Ne(s);case Ge:return new i;case Xe:return Le(s)}}var rs=ns,os=j,P=Object.create,ls=function(){function s(){}return function(t){if(!os(t))return{};if(P)return P(t);s.prototype=t;var e=new s;return s.prototype=void 0,e}}(),cs=ls,ps=cs,ds=z,us=at;function ms(s){return typeof s.constructor=="function"&&!us(s)?ps(ds(s)):{}}var hs=ms,vs=D,fs=Y,gs="[object Map]";function _s(s){return fs(s)&&vs(s)==gs}var bs=_s,ys=bs,$s=U,q=F,O=q&&q.isMap,Ts=O?$s(O):ys,ws=Ts,Ds=D,Cs=Y,xs="[object Set]";function As(s){return Cs(s)&&Ds(s)==xs}var Rs=As,Is=Rs,Ss=U,E=F,N=E&&E.isSet,Ms=N?Ss(N):Is,ks=Ms,Ps=xt,qs=Yt,Os=ot,Es=Wt,Ns=Kt,Ls=Qt,js=Vt,Ys=ee,Fs=me,Us=At,Bs=_e,Ws=D,Gs=Te,Hs=rs,Xs=hs,Ks=rt,Qs=nt,zs=ws,Vs=j,Zs=ks,Js=X,ti=w,ei=1,si=2,ii=4,Z="[object Arguments]",ai="[object Array]",ni="[object Boolean]",ri="[object Date]",oi="[object Error]",J="[object Function]",li="[object GeneratorFunction]",ci="[object Map]",pi="[object Number]",tt="[object Object]",di="[object RegExp]",ui="[object Set]",mi="[object String]",hi="[object Symbol]",vi="[object WeakMap]",fi="[object ArrayBuffer]",gi="[object DataView]",_i="[object Float32Array]",bi="[object Float64Array]",yi="[object Int8Array]",$i="[object Int16Array]",Ti="[object Int32Array]",wi="[object Uint8Array]",Di="[object Uint8ClampedArray]",Ci="[object Uint16Array]",xi="[object Uint32Array]",d={};d[Z]=d[ai]=d[fi]=d[gi]=d[ni]=d[ri]=d[_i]=d[bi]=d[yi]=d[$i]=d[Ti]=d[ci]=d[pi]=d[tt]=d[di]=d[ui]=d[mi]=d[hi]=d[wi]=d[Di]=d[Ci]=d[xi]=!0;d[oi]=d[J]=d[vi]=!1;function _(s,t,e,i,a,r){var n,o=t&ei,p=t&si,c=t&ii;if(e&&(n=a?e(s,i,a,r):e(s)),n!==void 0)return n;if(!Vs(s))return s;var m=Ks(s);if(m){if(n=Gs(s),!o)return js(s,n)}else{var u=Ws(s),h=u==J||u==li;if(Qs(s))return Ls(s,o);if(u==tt||u==Z||h&&!a){if(n=p||h?{}:Xs(s),!o)return p?Fs(s,Ns(n,s)):Ys(s,Es(n,s))}else{if(!d[u])return a?s:{};n=Hs(s,u,o)}}r||(r=new Ps);var x=r.get(s);if(x)return x;
1r.set(s,n),Zs(s)?s.forEach(function(f){n.add(_(f,t,e,f,s,r))}):zs(s)&&s.forEach(function(f,g){n.set(g,_(f,t,e,g,s,r))});var et=c?p?Bs:Us:p?ti:Js,A=m?void 0:et(s);return qs(A||s,function(f,g){A&&(g=f,f=s[g]),Os(n,g,_(f,t,e,g,s,r))}),n}var Ai=_,Ri=Ai,Ii=1,Si=4;function Mi(s){return Ri(s,Ii|Si)}var ki=Mi;const Pi=H(ki),qi={props:{value:{type:Boolean,default:!1},waitlistRequest:{type:Object,required:!0},patientId:{type:String,required:!0},appointment:{type:Object,required:!0},allLocations:{type:Array,required:!0}},data(){return{loading:!1,selectedLocations:[],selectedDays:{},startTime:{beginDateTime:null},endTime:{beginDateTime:null},communicationPreference:null}},computed:{formattedApptDateTime(){return l(this.appointment.beginDateTime).format("ddd MMM Do, h:mm A")},invalidEndDate(){return this.startTime.beginDateTime&&this.endTime.beginDateTime&&l(this.endTime.beginDateTime)<=l(this.startTime.beginDateTime)},disableEmailOpt(){var s;return((s=this.$store.state.login.config)==null?void 0:s.tenant)==="ROTH"}},watch:{value:{immediate:!0,handler(s){s?this.initializeForm():this.resetForm()}}},methods:{initializeForm(){var s;this.waitlistRequest&&(this.selectedLocations=((s=this.waitlistRequest.locations)==null?void 0:s.map(t=>t.locationId))||[],this.selectedDays=Pi(this.waitlistRequest.datetimePreferences||{MONAM:!1,MONPM:!1,TUEAM:!1,TUEPM:!1,WEDAM:!1,WEDPM:!1,THUAM:!1,THUPM:!1,FRIAM:!1,FRIPM:!1}),this.startTime={beginDateTime:l(this.waitlistRequest.beginDateTime).format("YYYY-MM-DD")},this.endTime={beginDateTime:l(this.waitlistRequest.endDateTime).format("YYYY-MM-DD")},this.communicationPreference=this.waitlistRequest.communicationPreference)},resetForm(){this.$refs.form&&this.$refs.form.resetValidation(),this.selectedLocations=[],this.selectedDays={},this.startTime={beginDateTime:null},this.endTime={beginDateTime:null},this.communicationPreference=null},validateDates(){return!this.invalidEndDate&&!!this.startTime.beginDateTime&&!!this.endTime.beginDateTime},submit(){const s=this.$refs.form.validate(),t=this.validateDates();if(!s||!t)return;this.loading=!0;const e={status:this.waitlistRequest.status,providerId:this.waitlistRequest.providerId,providerName:this.waitlistRequest.providerName,originalAppointmentId:this.appointment.appointmentId,activityCode:this.waitlistRequest.activityCode,beginDateTime:this.startTime.beginDateTime,endDateTime:this.endTime.beginDateTime,datetimePreferences:this.selectedDays,communicationPreference:this.communicationPreference,locations:this.allLocations.filter(i=>this.selectedLocations.includes(i.locationId)).map(i=>({locationId:i.locationId,externalLocationId:i.sourceId}))};B(this.patientId,this.waitlistRequest.waitlistId,e).then(()=>{this.$store.commit("toaster/success","Patient's Waitlist request has updated"),this.$emit("requestUpdated"),this.$emit("input",!1)}).catch(i=>{console.error("Error updating waitlist request:",i),this.$store.commit("toaster/error","Failed to update waitlist request.")}).finally(()=>{this.loading=!1})}},components:{DateTimeEditor:lt}};var Oi=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{value:t.value,width:"1000px",persistent:"",fullscreen:"$vuetify.breakpoint.mdAndDown"},on:{input:function(i){return t.$emit("input",i)}}},[t.waitlistRequest?e("v-card",[e("v-card-title",{staticClass:"d-flex text-wrap",staticStyle:{"white-space":"break-spaces"}},[t._v(" Editing Waitlist Request: "),e("span",{staticClass:"font-weight-bold ml-1"},[t._v(" "+t._s(t.formattedApptDateTime)+" | "+t._s(t.waitlistRequest.providerName)+" | "+t._s(t.appointment.appointmentType)+" ")]),e("v-spacer"),e("v-btn",{attrs:{icon:"",disabled:t.loading},on:{click:function(i){return t.$emit("input",!1)}}},[e("v-icon",[t._v("mdi-close")])],1)],1),e("v-card-text",{staticClass:"body-1 black--text"},[e("v-form",{ref:"form"},[e("div",[t._v("Communication Preference")]),e("v-radio-group",{attrs:{row:"",rules:[i=>!!i||"Communication Preference is required."],disabled:t.loading},model:{value:t.communicationPreference,callback:function(i){t.communicationPreference=i},expression:"communicationPreference"}},[e("v-radio",{staticClass:"mr-16 mb-2",attrs:{value:"SMS"},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"black--text"},[t._v("SMS / Text Message")])]},proxy:!0}],null,!1,2555099720)}),t.disableEmailOpt?t._e():e("v-radio",{attrs:{value:"Email"},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"black--text"},[t._v("Email")])]},proxy:!0}],null,!1,1018602640)})],1),e("v-expansion-panels",{attrs:{flat:""}},[e("v-expansion-panel",[e("v-expansion-panel-header",{staticClass:"font-weight-bold",attrs:{color:"#f2f2f2"}},[t._v(" Additional Options ")]),e("v-expansion-panel-content",{staticClass:"mt-4"},[t.allLocations&&t.allLocations.length>0?[e("div",{staticStyle:{"margin-left":"-20px"}},[t._v(" Location Preference "),e("span",{staticClass:"font-italic"},[t._v("(leave unchecked if no preference)")])]),e("v-row",{staticClass:"mb-6",attrs:{"no-gutters":""}},t._l(t.allLocations,function(i){return e("v-col",{key:i.locationId,attrs:{cols:"12",md:"4"}},[e("v-checkbox",{attrs:{color:"primary",value:i.locationId,disabled:t.loading},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticClass:"body-1 black--text"},[e("div",{staticClass:"font-weight-bold"},[t._v(t._s(i.locationName))]),e("div",[t._v(t._s(i.addressLine1))]),e("div",[t._v(t._s(i.addressLine2))]),e("div",[t._v(t._s(i.addressLine3))]),e("div",[t._v(t._s(i.city)+", "+t._s(i.state)+" "+t._s(i.zip))])])]},proxy:!0}],null,!0),model:{value:t.selectedLocations,callback:function(a){t.selectedLocations=a},expression:"selectedLocations"}})],1)}),1)]:t._e(),e("div",{staticStyle:{"margin-left":"-20px"}},[t._v(" Day / Time Preference "),e("span",{staticClass:"font-italic"},[t._v("(leave unselected if no preference)")])]),e("div",{staticClass:"mt-2 mb-10 d-flex",staticStyle:{"justify-content":"space-evenly","margin-left":"-20px","margin-right":"-20px"}},t._l(["MON","TUE","WED","THU","FRI"],function(i){return e("div",{key:i,attrs:{cols:"1"}},[e("div",{staticClass:"text-center mb-2"},[t._v(t._s(i))]),e("v-row",{staticStyle:{"justify-content":"center"},attrs:{"no-gutters":""}},[e("v-btn",{staticClass:"mr-1 px-0",staticStyle:{"min-width":"24px"},attrs:{"x-small":"",color:t.selectedDays[i+"AM"]?"primary":null,disabled:t.loading}
1,on:{click:function(a){return t.$set(t.selectedDays,i+"AM",!t.selectedDays[i+"AM"])}}},[t._v("AM")]),e("v-btn",{staticClass:"px-0",staticStyle:{"min-width":"24px"},attrs:{"x-small":"",color:t.selectedDays[i+"PM"]?"primary":null,disabled:t.loading},on:{click:function(a){return t.$set(t.selectedDays,i+"PM",!t.selectedDays[i+"PM"])}}},[t._v("PM")])],1)],1)}),0),e("div",{staticStyle:{"margin-left":"-20px"}},[t._v("Date Range")]),e("v-row",{staticStyle:{"margin-right":"-20px","margin-left":"-20px"},attrs:{"no-gutters":""}},[e("v-col",{staticClass:"pr-2"},[e("div",{staticClass:"caption font-weight-light"},[t._v("Start Date")]),e("DateTimeEditor",{attrs:{label:"Start Date",disabled:t.loading,required:"","hide-details":"auto"},model:{value:t.startTime,callback:function(i){t.startTime=i},expression:"startTime"}})],1),e("v-col",{staticClass:"pl-2"},[e("div",{staticClass:"caption font-weight-light"},[t._v("End Date")]),e("DateTimeEditor",{attrs:{label:"End Date",disabled:t.loading,"is-future":"",required:"","hide-details":"auto"},model:{value:t.endTime,callback:function(i){t.endTime=i},expression:"endTime"}}),t.invalidEndDate?e("div",{staticClass:"caption error--text"},[t._v("End Date must be after Start Date")]):t._e()],1)],1)],2)],1)],1)],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{attrs:{disabled:t.loading},on:{click:function(i){return t.$emit("input",!1)}}},[t._v("CANCEL")]),e("v-btn",{attrs:{color:"primary",loading:t.loading},on:{click:t.submit}},[t._v("SUBMIT")])],1)],1):t._e()],1)},Ei=[],Ni=v(qi,Oi,Ei,!1,null,null,null,null);const Li=Ni.exports,ji={props:{value:{type:Boolean,default:!1},waitlistRequest:{type:Object,required:!0},patientId:{type:String,required:!0},appointment:{type:Object,required:!1}},data:()=>({loading:!1}),computed:{formattedApptDateTime(){var t;const s=(t=this.appointment)==null?void 0:t.beginDateTime;return s?l(s).format("ddd MMM Do, h:mm A"):"Unknown Appointment"}},methods:{confirmCancel(){this.loading=!0,B(this.patientId,this.waitlistRequest.waitlistId,{status:"cancelled"}).then(()=>{this.$store.commit("toaster/success","Patient's Waitlist request has been cancelled"),this.$emit("requestCancelled")}).catch(s=>{console.error("Error cancelling waitlist request:",s),this.$store.commit("toaster/error","Failed to cancel waitlist request.")}).finally(()=>{this.loading=!1})}}};var Yi=function(){var i;var t=this,e=t._self._c;return e("v-dialog",{attrs:{value:t.value,width:"500px",persistent:""},on:{input:function(a){return t.$emit("input",a)}}},[t.waitlistRequest?e("v-card",[e("v-card-title",[t._v(" Cancel Waitlist Request "),e("v-spacer"),e("v-btn",{attrs:{icon:"",disabled:t.loading},on:{click:function(a){return t.$emit("input",!1)}}},[e("v-icon",[t._v("mdi-close")])],1)],1),e("v-card-text",{staticClass:"body-1 black--text pt-4"},[t._v(" Are you sure you want to cancel this request? "),e("div",{staticClass:"font-weight-bold mt-4"},[t._v(" "+t._s(t.formattedApptDateTime)+" | "+t._s(t.waitlistRequest.providerName)+" | "+t._s(((i=t.appointment)==null?void 0:i.appointmentType)||t.waitlistRequest.activityCode)+" ")])]),e("v-card-actions",{staticClass:"pb-4"},[e("v-btn",{attrs:{text:"",rounded:"",disabled:t.loading},on:{click:function(a){return t.$emit("input",!1)}}},[t._v("NO, GO BACK")]),e("v-btn",{attrs:{color:"primary",rounded:"",loading:t.loading},on:{click:t.confirmCancel}},[t._v("YES, CANCEL")])],1)],1):t._e()],1)},Fi=[],Ui=v(ji,Yi,Fi,!1,null,null,null,null);const Bi=Ui.exports,Wi={components:{WaitlistEditDialog:Li,WaitlistCancelConfirmDialog:Bi},props:{value:{type:Boolean,default:!1},waitlistRequest:{type:Object,required:!0},patientId:{type:String,required:!0},appointment:{type:Object,required:!1}},data:()=>({loading:!1,editDialogOpen:!1,cancelDialogOpen:!1,allLocations:[]}),mounted(){this.fetchProviderLocations()},computed:{formattedApptDateTime(){var t;const s=(t=this.appointment)==null?void 0:t.beginDateTime;return s?l(s).format("ddd MMM Do, h:mm A"):"Unknown Appointment"},statusColor(){var s,t;switch((t=(s=this.waitlistRequest)==null?void 0:s.status)==null?void 0:t.toLowerCase()){case"submitted":return"purple";
1case"pending":return"blue";case"completed":return"success";case"cancelled":return"error";case"expired":return"warning";default:return"grey"}},formattedDayPreferences(){var e;if(!((e=this.waitlistRequest)!=null&&e.datetimePreferences))return null;const s=[];return["MON","TUE","WED","THU","FRI"].forEach(i=>{this.waitlistRequest.datetimePreferences[`${i}AM`]&&s.push(`${i} AM`),this.waitlistRequest.datetimePreferences[`${i}PM`]&&s.push(`${i} PM`)}),s.join(", ")},formattedDateRange(){var e,i;if(!((e=this.waitlistRequest)!=null&&e.beginDateTime)||!((i=this.waitlistRequest)!=null&&i.endDateTime))return"N/A";const s=l(this.waitlistRequest.beginDateTime).format("MM/DD/YYYY"),t=l(this.waitlistRequest.endDateTime).format("MM/DD/YYYY");return`${s} - ${t}`}},methods:{openEditDialog(){this.editDialogOpen=!0},openCancelConfirmDialog(){this.cancelDialogOpen=!0},handleRequestUpdated(){this.$emit("requestUpdated"),this.$emit("input",!1)},handleRequestCancelled(){this.$emit("requestCancelled"),this.$emit("input",!1)},formattedLocation(s){const t=this.allLocations.find(e=>e.locationId===s);return t?t.locationName||t.officeName:s},async fetchProviderLocations(){var s;if((s=this.waitlistRequest)!=null&&s.providerId)try{const t=await W(this.waitlistRequest.providerId);this.allLocations=t.locations}catch(t){console.error("Error fetching provider locations:",t),this.$store.commit("toaster/error","Failed to load provider locations."),this.allLocations=[]}}}};var Gi=function(){var i;var t=this,e=t._self._c;return e("v-dialog",{attrs:{value:t.value,width:"800px",persistent:""},on:{input:function(a){return t.$emit("input",a)}}},[t.waitlistRequest?e("v-card",[e("v-card-title",[e("span",{staticClass:"font-weight-regular"},[t._v("Waitlist Request:")]),e("span",{staticClass:"font-weight-bold ml-1"},[t._v(" "+t._s(t.formattedApptDateTime)+" | "+t._s(t.waitlistRequest.providerName)+" | "+t._s(((i=t.appointment)==null?void 0:i.appointmentType)||t.waitlistRequest.activityCode)+" ")]),e("v-spacer"),e("v-btn",{attrs:{icon:"",disabled:t.loading},on:{click:function(a){return t.$emit("input",!1)}}},[e("v-icon",[t._v("mdi-close")])],1)],1),e("v-card-text",{staticClass:"body-1 black--text pt-4"},[e("v-row",[e("v-col",{attrs:{cols:"6"}},[e("div",[e("span",{staticClass:"font-weight-light"},[t._v("Status:")])]),e("v-chip",{staticClass:"white--text text-uppercase",attrs:{color:t.statusColor,small:"",label:""}},[t._v(" "+t._s(t.waitlistRequest.status)+" ")])],1),e("v-col",{attrs:{cols:"6"}},[e("div",[e("span",{staticClass:"font-weight-light"},[t._v("Location Preference:")])]),!t.waitlistRequest.locations||!t.waitlistRequest.locations.length?e("div",[t._v("Any")]):e("div",t._l(t.waitlistRequest.locations,function(a){return e("div",{key:a.locationId||a.externalLocationId},[t._v(" "+t._s(t.formattedLocation(a.locationId))+" ")])}),0)])],1),e("v-row",[e("v-col",{attrs:{cols:"6"}},[e("div",[e("span",{staticClass:"font-weight-light"},[t._v("Day Preference:")])]),e("div",[t._v(t._s(t.formattedDayPreferences||"Any"))])]),e("v-col",{attrs:{cols:"6"}},[e("div",[e("span",{staticClass:"font-weight-light"},[t._v("Date Range:")])]),e("div",[t._v(t._s(t.formattedDateRange))])])],1),e("v-row",[e("v-col",{attrs:{cols:"12"}},[e("div",[e("span",{staticClass:"font-weight-light"},[t._v("Communication Preference:")])]),e("div",[t._v(t._s(t.waitlistRequest.communicationPreference))])])],1)],1),e("v-card-actions",[e("v-btn",{attrs:{text:"",color:"primary",disabled:t.loading},on:{click:t.openEditDialog}},[t._v("EDIT REQUEST")]),e("v-btn",{attrs:{text:"",color:"error",loading:t.loading},on:{click:t.openCancelConfirmDialog}},[t._v("CANCEL REQUEST")])],1)],1):t._e(),e("WaitlistEditDialog",{attrs:{"waitlist-request":t.waitlistRequest,"patient-id":t.patientId,appointment:t.appointment,"all-locations":t.allLocations},on:{requestUpdated:t.handleRequestUpdated},model:{value:t.editDialogOpen,callback:function(a){t.editDialogOpen=a},expression:"editDialogOpen"}}),e("WaitlistCancelConfirmDialog",{attrs:{"waitlist-request":t.waitlistRequest,"patient-id":t.patientId,appointment:t.appointment},on:{requestCancelled:t.handleRequestCancelled},model:{value:t.cancelDialogOpen,callback:function(a){t.cancelDialogOpen=a},expression:"cancelDialogOpen"}})],1)},Hi=[],Xi=v(Wi,Gi,Hi,!1,null,null,null,null);const Ki=Xi.exports;const Qi={props:{appointment:{type:Object,required:!0},showOptions:{type:Boolean,required:!1,default:!1}},data:()=>({waitlistDialog:!1,fetchingWaitlistProvider:!1,provider:null,waitlistDetailsDialog:!1,waitlistProviderEnabled:!1}),mounted(){this.getWaitlistProvider()},computed:{canceled(){return this.appointment.canceled}
1,showRescheduleButton(){return!!this.appointment.isReschedulable},phone(){return this.$store.getters.phoneInfo},patient(){return this.$store.state.patient.patient},waitlistEnabled(){var s,t;return!!((t=(s=this.$store.state.login.config)==null?void 0:s.features)!=null&&t.waitlist)}},methods:{formatDate(s){return["SX","SXO","SXI"].includes(this.appointment.visitType)?l(s).format("MMM Do, YYYY"):l.tz(s,"America/New_York").format("MMM Do, YYYY h:mm A")},startReschedule(){this.$store.commit("patient/setRescheduleAppt",this.appointment),this.$store.commit("survey/setCodes",{activity:this.appointment.appointmentType,visit:this.appointment.visitType}),this.$store.commit("patient/setRescheduleDialog",!0)},getWaitlistProvider(){this.fetchingWaitlistProvider=!0,W(this.appointment.providerId).then(s=>{var t;this.provider=s,this.waitlistProviderEnabled=((t=s.miscBookingRules)==null?void 0:t.waitlistEnabledPublic)??!0}).finally(()=>{this.fetchingWaitlistProvider=!1})},viewWaitlistDetails(){this.waitlistDetailsDialog=!0}},components:{RescheduleDialog:Lt,WaitlistRequestDialog:yt,WaitlistDetailsDialog:Ki}};var zi=function(){var i,a,r;var t=this,e=t._self._c;return e("v-card",[e("v-card-text",{staticClass:"apptDetails"},[e("v-row",{attrs:{justify:"space-between"}},[e("v-col",{attrs:{cols:"12"}},[e("p",[e("strong",[e("v-icon",[t._v("mdi-calendar-clock")]),t._v(" "+t._s(t.formatDate(t.appointment.beginDateTime))+" ")],1)]),e("div",[e("strong",[e("v-icon",[t._v("mdi-map-marker")]),t._v(" Location: ")],1),e("div",{staticStyle:{"margin-left":"24px"}},[e("div",[t._v(t._s(t.appointment.locationName))]),e("div",[t._v(t._s(t.appointment.addressLine1))]),e("div",[t._v(t._s(t.appointment.addressLine2||""))]),e("div",[t._v(t._s(t.appointment.city)+", "+t._s(t.appointment.state)+" "+t._s(t.appointment.zip))])])]),e("p",[e("strong",[e("v-icon",[t._v("mdi-account")]),t._v(" Provider: ")],1),(i=t.appointment.providerCustomFields)!=null&&i.find(n=>n.key==="public_display_name")?e("span",[t._v(" "+t._s((a=t.appointment.providerCustomFields)==null?void 0:a.find(n=>n.key==="public_display_name").value)+" ")]):e("span",[t._v(" "+t._s(t.appointment.providerName)+" ")])]),e("p",[e("strong",[e("v-icon",[t._v("mdi-comment-text")]),t._v(" Reason: ")],1),t._v(" "+t._s(t.appointment.appointmentReason)+" ")]),t.appointment.waitlistRequest?e("div",{staticClass:"mt-2 mb-4 body-2 waitlist-banner",attrs:{dense:"",text:"",prominent:"",color:"warning"}},[e("v-icon",{staticClass:"waitlist-banner-icon",attrs:{left:"",color:"black"}},[t._v("mdi-account-details")]),e("b",[t._v("Waitlist: ")]),t._v(" You are currently on a waitlist for this appointment. We will contact you if an earlier appoointment becomes available. "),e("a",{staticClass:"waitlist-banner-link",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.viewWaitlistDetails()}}},[t._v(" Click here to view the details of your request ")])],1):t._e(),t.appointment.appointmentType&&t.appointment.isReschedulable&&t.waitlistEnabled&&!t.appointment.waitlistRequest&&t.waitlistProviderEnabled&&t.showOptions?e("div",{staticClass:"mt-2 mb-4 body-2 waitlist-banner",attrs:{dense:"",text:"",prominent:"",color:"warning"}},[e("v-icon",{staticClass:"waitlist-banner-icon",attrs:{left:"",color:"black"}},[t._v("mdi-account-details")]),e("b",[t._v("Waitlist: ")]),t._v(" If you would like to be put on a waitlist for a sooner appointment, "),e("waitlist-request-dialog",{attrs:{appointment:t.appointment,patientId:t.patient.patientId,provider:t.provider||t.appointment,locations:t.provider?t.provider.locations:[t.appointment]},scopedSlots:t._u([{key:"activator",fn:function({attrs:n}){return[e("v-btn",t._b({attrs:{rounded:"",color:"primary",loading:t.fetchingWaitlistProvider},on:{click:function(o){t.waitlistDialog=!0}}},"v-btn",n,!1),[t._v("Click here")])]}}],null,!1,4230041014),model:{value:t.waitlistDialog,callback:function(n){t.waitlistDialog=n},expression:"waitlistDialog"}}),t._v(" to fill out a request form. ")],1):t._e()]),t.showOptions&&t.showRescheduleButton?e("div",{staticStyle:{"text-align":"right",display:"flex",padding:"20px"}}
1,[e("v-tooltip",{attrs:{bottom:"",disabled:t.showRescheduleButton},scopedSlots:t._u([{key:"activator",fn:function({on:n}){return[e("span",t._g({},n),[e("v-btn",{attrs:{disabled:!t.showRescheduleButton,text:"",color:"info"},on:{click:t.startReschedule}},[t._v(" Reschedule ")])],1)]}}],null,!1,1382370282)},[e("span",[t._v("This appointment cannot be rescheduled online, please call "+t._s(t.phone.text)+" to reschedule.")])]),e("v-tooltip",{attrs:{bottom:"",disabled:!!(!t.canceled&&t.appointment.isCancelable)},scopedSlots:t._u([{key:"activator",fn:function({on:n}){return[e("span",t._g({},n),[e("v-btn",{attrs:{disabled:t.canceled||!t.appointment.isCancelable,text:"",color:"error"},on:{click:function(o){return t.$emit("cancel",t.appointment)}}},[t._v("Cancel ")])],1)]}}],null,!1,772325823)},[e("span",[t._v("This appointment cannot be canceled online, please call "+t._s(t.phone.text)+" to cancel.")])])],1):t._e()],1)],1),e("RescheduleDialog"),(r=t.appointment)!=null&&r.waitlistRequest?e("WaitlistDetailsDialog",{attrs:{"waitlist-request":t.appointment.waitlistRequest,"patient-id":t.patient.patientId,appointment:t.appointment},on:{requestCancelled:function(n){t.waitlistDetailsDialog=!1,t.$store.dispatch("patient/refreshPatient")},requestUpdated:function(n){t.waitlistDetailsDialog=!1,t.$store.dispatch("patient/refreshPatient")}},model:{value:t.waitlistDetailsDialog,callback:function(n){t.waitlistDetailsDialog=n},expression:"waitlistDetailsDialog"}}):t._e()],1)},Vi=[],Zi=v(Qi,zi,Vi,!1,null,null,null,null);const Ji=Zi.exports,ta={props:{patient:{type:Object,required:!0}},data(){return{cancelDialog:!1,selected:{},canceling:!1,scheduleDialog:!1,loadingSearch:!1}},computed:{phone(){return this.$store.getters.phoneInfo},patientAppointments(){return this.$store.state.patient.patient.upcomingAppointments},pastAppointments(){return this.$store.state.patient.patient.pastAppointments},clinicalTerms(){return this.$store.state.clinicalTerms},isXSmall(){return this.$vuetify.breakpoint.smAndDown},triageOpen(){return this.$store.state.survey.triageDialog},noShow(){const{sameDayNoShow:s,noShowHoursLimit:t,beginDateTime:e}=this.selected,i=+t,a=l(e),r=l(a).startOf("day");return!!(s&&+r==+l().startOf("day")||i&&!Number.isNaN(i)&&l().diff(a,"hours")<i)}},watch:{pastAppointments(s){const t=s.find(e=>e.sourceSystemAppointmentId===this.selected.sourceSystemAppointmentId);this.canceling&&t&&t.canceled&&(this.loading=!1,this.stopCanceling(),this.cancelDialog=!1,this.$store.commit("toaster/success","Appointment cancelled"))},scheduleDialog(s){s&&(this.$store.commit("setClinicalTerms",[]),this.$store.commit("setSpecialties",[]),this.$store.commit("setProviderNames",[]))},triageOpen(s){s===!1&&this.$store.dispatch("searchProviders",{loading:!0})}},unmounted(){this.stopCanceling()},methods:{reschedule(s){const[t,e]=s.providerName.split(" ");this.$store.commit("patient/setRescheduleAppt",s),this.$router.push(`/profile/${s.providerId}/${t}-${e}`)},cancel(s){const{patientId:t}=this.patient;this.canceling=!0,ct(t,s).then(()=>{this.$store.commit("patient/setFullPolling",!0)}).catch(e=>{console.error(e),this.canceling=!1,this.$store.commit("toaster/error","Error cancelling appointment")})},stopCanceling(){this.canceling=!1,this.$store.commit("patient/setFullPolling",!1)},handleCancel(s){this.selected=s,this.cancelDialog=!0},selectAppt(s){this.selected=s,this.cancelDialog=!0},async startSearch(){if(this.$refs.quickSearch.validate()){this.loadingSearch=!0;try{this.$store.commit("setField",{value:l().diff(this.patient.birthDate,"years"),field:"patientsAge",name:"Patient's Age"}),this.setInsurance();const t=this.patient.locations[0];try{const i=await T(`${t.addressLine1} ${t.addressLine2}, ${t.city} ${t.state}`,this.$store.state.selectedRegion?this.$store.state.selectedRegion.regionId:0,this.$store.state.sessionId);this.$store.commit("setAddress",{address:i[0].address,placeId:i[0].placeId})}catch(i){console.warn(i),console.warn("Unable to lookup patient address from maps.")}const e=this.clinicalTerms.find(i=>i.hasTriage);e?this.$store.commit("survey/showTriageDialog",{id:e.clinicalTermId,name:e.clinicalTerm}):(this.$router.push("/search"),this.$store.dispatch("searchProviders").catch(i=>{console.error(i),this.$store.commit("toaster/error",i)}))}finally{this.loadingSearch=!1}}},setInsurance(){this.patient.insurance.length>0&&L(this.$store.state.selectedRegion&&this.$store.state.selectedRegion.regionId).then(s=>{const e=s.concat([{insurance:"Other / My insurance is not here",isPublic:!1},{insurance:"Automotive insurance / Worker's Compensation / Self Pay",isPublic:!1}]).find(i=>this.patient.insurance[0].insuranceCompanyName===i.insurance);e?this.$store.commit("setSelectedInsurance",[e]):this.patient.insurance[0].insuranceCompanyName.startsWith("Insurance Registration Needed")?this.$store.commit("setSelectedInsurance",[{insurance:this.patient.insurance[0].subscriberNumber,isPublic:!0}]):this.$store.commit("setSelectedInsurance",[{insurance:this.patient.insurance[0].insuranceCompanyName,isPublic:!0}])})}
1,downloadCalendar(){const s=this.patient.upcomingAppointments.map(t=>({start:l.tz(t.beginDateTime,"America/New_York").format("YYYY-M-D-H-m").split("-").map(Number),end:l.tz(t.endDateTime,"America/New_York").format("YYYY-M-D-H-m").split("-").map(Number),title:`${t.visitType} with ${t.providerName}`,location:t.locationName}));bt(s,(t,e)=>{if(t){console.log(t);return}const i=new Blob([e],{type:"text/calendar"}),a=URL.createObjectURL(i),r=document.createElement("a");r.href=a,r.download="MyAppointments.ics",r.click()})}},components:{Appt:Ji,QuickSearch:pt}};var ea=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("v-divider"),e("v-container",[e("v-row",{staticClass:"my-1 d-flex align-center"},[e("h3",{staticClass:"pr-2 pl-5"},[t._v(" Upcoming Appointments ")]),e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(i){return[e("v-btn",t._g({ref:"activator",attrs:{icon:"",color:"primary"},on:{click:t.downloadCalendar}},i),[e("v-icon",{attrs:{large:""}},[t._v("mdi-calendar-export")])],1)]}}])},[e("span",[t._v("Add My Appointments to My Calendar")])])],1),t.patient.upcomingAppointments.length===0?e("v-container",[e("p",[t._v("You have no upcoming appointments.")])]):t._e(),t._l(t.patient.upcomingAppointments,function(i){return e("v-container",{key:i.sourceSystemAppointmentId},[e("Appt",{attrs:{appointment:i,showOptions:""},on:{cancel:t.handleCancel}})],1)}),e("v-container",[e("p",[t._v("If unable to view an upcoming appointment, please contact the Office at "),e("a",{attrs:{href:t.phone.link}},[t._v(t._s(t.phone.text))])])]),e("div",{class:t.isXSmall?"d-flex justify-center":"d-flex justify-end"},[e("v-btn",{staticClass:"ma-2",attrs:{color:"primary",text:""},on:{click:function(i){t.scheduleDialog=!0}}},[t._v(" Need to schedule a new appointment? ")])],1)],2)],1),e("v-dialog",{attrs:{"max-width":"800px",persistent:""},model:{value:t.cancelDialog,callback:function(i){t.cancelDialog=i},expression:"cancelDialog"}},[e("v-card",[e("v-toolbar",{attrs:{color:"primary mb-4",dark:""}},[e("v-toolbar-title",[t._v(" Cancel this appointment? ")]),e("v-spacer"),e("v-btn",{attrs:{icon:""},on:{click:function(i){t.cancelDialog=!1,t.stopCanceling()}}},[e("v-icon",[t._v("mdi-close")])],1)],1),e("div",{staticClass:"px-4"},[e("Appt",{attrs:{appointment:t.selected}})],1),t.selected?e("v-card-actions",[e("v-card-text",[e("p",{staticClass:"mt-4"},[t._v(" You will cancel your appointment with "+t._s(t.selected.providerName)+" ")]),t.noShow?e("div",{staticClass:"red--text font-weight-bold"},[t._v(" A $50 late cancellation fee applies for changes made after midnight on the day of the appointment. Would you still like to proceed? ")]):t._e()]),e("v-spacer"),e("v-btn",{attrs:{color:"error",loading:t.canceling},on:{click:function(i){return t.cancel(t.selected)}}},[t._v("Cancel Appointment")])],1):t._e()],1)],1),e("v-dialog",{attrs:{"max-width":"800px",persistent:""},model:{value:t.scheduleDialog,callback:function(i){t.scheduleDialog=i},expression:"scheduleDialog"}},[e("v-card",[e("v-toolbar",{attrs:{color:"primary mb-4",dark:""}},[e("v-toolbar-title",[t._v(" Schedule A New Appointment ")]),e("v-spacer"),e("v-btn",{attrs:{icon:""},on:{click:function(i){t.scheduleDialog=!1}}},[e("v-icon",[t._v("mdi-close")])],1)],1),e("v-card-text",[e("p",{staticClass:"mt-4"},[t._v(" Please select a condition or a provider from the search below to begin. ")]),e("v-form",{ref:"quickSearch"},[e("QuickSearch")],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"black--text",attrs:{color:"secondary",loading:t.loadingSearch},on:{click:t.startSearch}},[t._v("Search")])],1)],1)],1)],1)},sa=[],ia=v(ta,ea,sa,!1,null,null,null,null);const aa=ia.exports;function na(){}var ra=na,$=Rt,oa=ra,la=Q,ca=1/0,pa=$&&1/la(new $([,-0]))[1]==ca?function(s){return new $(s)}:oa,da=pa,ua=It,ma=kt,ha=Pt,va=St,fa=da,ga=Q,_a=200;function ba(s,t,e){var i=-1,a=ma,r=s.length,n=!0,o=[],p=o;if(e)n=!1,a=ha;else if(r>=_a){var c=t?null:fa(s);if(c)return ga(c);n=!1,a=va,p=new ua}else p=t?[]:o;t:for(;++i<r;){var m=s[i],u=t?t(m):m;if(m=e||m!==0?m:0,n&&u===u){for(var h=p.length;h--;)if(p[h]===u)continue t;t&&p.push(u),o.push(m)}else a(p,u,e)||(p!==o&&p.push(u),o.push(m))}return o}var ya=ba,$a=Mt,Ta=ya;function wa(s,t){return s&&s.length?Ta(s,$a(t)):[]}var Da=wa;const Ca=H(Da),xa={props:{questionGraph:{type:Array,required:!1},showDialog:{type:Boolean,default:!1},provider:{type:Object,default:()=>({})},messageId:{type:Number,required:!1}},data:()=>({questions:[],answers:[],loading:!1}),computed:{patient(){return this.$store.state.patient.patient}}
1,mounted(){this.answers=[],this.questions=[],this.questionGraph&&this.questionGraph.length>0&&(this.questions=[this.questionGraph[0]]),this.$store.commit("survey/setCodes",{activity:null,visit:null}),this.$store.commit("survey/setShowTriage",!0),this.$store.commit("setClinicalTerms",[])},watch:{questionGraph(){this.answers=[],this.questions=[],this.questionGraph&&this.questionGraph.length>0&&(this.questions=[this.questionGraph[0]])}},methods:{selectAnswer(s,t){const e=this.questionGraph.find(i=>i.id===t);this.questions=this.questions.slice(0,s+1),this.answers=this.answers.slice(0,s),this.answers.push(t),e&&this.questions.push(e)},goToProvider(s){if(this.checkScheduleStatus(s.action),(s.visitType||s.apptType)&&this.$store.commit("survey/setCodes",{activity:s.apptType,visit:s.visitType}),s.triage){const e=s.triage.toLowerCase()==="true";this.$store.commit("survey/setShowTriage",e)}s.term&&this.$store.commit("setClinicalTerms",[{clinicalTerm:s.term}]);const t=this.provider.providerName.split(" ").join("-");this.$router.push(`/profile/${this.provider.providerId}/${t}`)},checkScheduleStatus(s,t){s==="goToProvider"&&(this.loading=!0,dt(this.messageId,{shouldSchedule:!0,patientId:this.patient.patientId}).then(()=>{this.loading=!1}).catch(e=>{this.loading=!1,this.$store.commit("toaster/error",e)})),t&&this.$emit("close")}}};var Aa=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{value:t.showDialog,"max-width":"600px",persistent:""}},[e("v-card",[e("v-toolbar",{staticClass:"white--text",attrs:{color:"primary"}},[e("v-toolbar-title",[t._v(" Message Questionnaire ")])],1),e("v-card-text",{staticClass:"mt-6"},t._l(t.questions,function(i,a){var r;return e("div",{key:i.id},[e("div",{class:{"font-weight-bold":i.choices.length===0,"text-h5":i.choices.length===0}},[t._v(t._s(i.label))]),e("v-radio-group",{attrs:{value:t.answers[a]},on:{change:function(n){return t.selectAnswer(a,n)}}},t._l(i.choices,function(n){return e("v-radio",{key:n.to,attrs:{value:n.to,label:n.label}})}),1),i.choices.length===0?e("v-card-actions",{staticClass:"pa-0"},[i.action==="goToProvider"&&((r=t.provider)!=null&&r.providerId)?e("v-btn",{staticClass:"mr-2",attrs:{color:"primary"},on:{click:function(n){return t.goToProvider(i)}}},[t._v("Go to provider profile")]):t._e(),e("v-btn",{on:{click:function(n){return t.checkScheduleStatus(i.action,!0)}}},[t._v("Close")])],1):t._e()],1)}),0)],1)],1)},Ra=[],Ia=v(xa,Aa,Ra,!1,null,null,null,null);const Sa=Ia.exports;const Ma=["ATT","APPTDONE","ARR","ATKIOSK","CHK","FDRDY","FDRDYCELL","IN ORTH","IN XRAY","ORTH READY","PT IN ROOM","QR_ARR","RDY TREAT","XRAY RDY","DISP","DPRT","OITH","ISX","REDY","ROOM","ROTH","RSX","RXRY"],ka={data(){return{options:{},sending:!1,assignedTo:null,caller:"",parsedTemplate:[],openScript:!1,requester:["Patient","Parent","Legal Guardian","Partner"],commonMedications:[],medsLoading:!1,medSearch:null,questionDialog:!1,questionGraph:null,provider:{},lastMsgId:null}},computed:{phone(){return this.$store.getters.phoneInfo},messagingTemplate(){return this.$store.state.electronicMessaging.selectedTemplate},dialogOpen(){return this.$store.state.electronicMessaging.dialogOpen},pastAppointments(){return this.$store.state.patient.patient.pastAppointments},patientProviders(){const s=this.pastAppointments.filter(t=>(t.attended||Ma.includes(t.status))&&t.providerId&&t.accessStatus!=="Inactive"&&t.acceptsPatientMessages!==!1).map(t=>({providerName:t.providerName,providerId:t.providerId}));return Ca(s,t=>`${t.providerId}`)}},created(){this.searchCommonMedications=G(this.searchCommonMedications,500)},mounted(){this.initializeModal()},watch:{dialogOpen(s){s?this.initializeModal():this.closeDialog()},medSearch(){var s;((s=this.medSearch)==null?void 0:s.length)>0?(this.medsLoading=!0,this.searchCommonMedications()):this.commonMedications=[]}},methods:{sendMessage(){var s,t,e,i,a;if(this.$refs.newForm.validate()){const r=this.parsedTemplate.map(o=>o.type==="string"?o.text:o.type==="textArea"?`
2${this.options[o.text]}`:this.options[o.text]||"").join("");this.sending=!0;const n=(s=this.$store.state.patient.patient.externalIds.find(o=>
2o.name.startsWith("ecw_appointments")||o.name.startsWith("hl7_adt")))==null?void 0:s.value;this.provider={providerName:(t=this.assignedTo)==null?void 0:t.providerName,providerId:(e=this.assignedTo)==null?void 0:e.providerId},ut({patientMessage:r,ecwId:n,reason:this.messagingTemplate.messagingTemplateName,caller:this.caller,assignedTo:(i=this.assignedTo)==null?void 0:i.providerName,providerId:(a=this.assignedTo)==null?void 0:a.providerId}).then(o=>{var p,c;this.sending=!1,this.$store.commit("toaster/success","Successfully sent message."),this.$store.commit("patient/addPatientMessage",{message:r,reason:this.messagingTemplate.messagingTemplateName,caller:this.caller,assignedTo:(p=this.assignedTo)==null?void 0:p.providerName,providerId:(c=this.assignedTo)==null?void 0:c.providerId,new:!0}),this.lastMsgId=o.insertId,this.messagingTemplate.questionnaire?mt(this.messagingTemplate.questionnaire).then(m=>{this.questionGraph=m,this.questionDialog=!0}).catch(m=>{this.$store.commit("toaster/error",m)}):this.openScript=!0,this.closeDialog()}).catch(o=>{this.sending=!1,this.$store.commit("toaster/error",o)})}},initializeModal(){let s=this.messagingTemplate.messagingTemplate;const t=/\[\[[\w|\s.,!?'"_-]*\]\]/g,e=(s.match(t)||[]).map(c=>({type:"select",text:c,options:c.replace(/[[\]]/g,"").split("|")})),i=/\{\{[\w\s.,!?'"_-]*\}\}/g,a=(s.match(i)||[]).map(c=>({type:"freeText",text:c,placeholder:c.replace(/[{}]/g,"")})),r=/\|\|[\w\s.,!?'"_-]*\|\|/g,n=(s.match(r)||[]).map(c=>({type:"textArea",text:c,placeholder:c.replace(/[||]/g,"")})),o=e.concat(a).concat(n);o.sort((c,m)=>{const u=s.indexOf(c.text),h=s.indexOf(m.text);return h===-1?1:u===-1?-1:u-h}),o.forEach(c=>{this.$set(this.options,c.text,null)});const p=[];o.forEach(c=>{let m=s.indexOf(c.text),u=s.indexOf("//");for(;u!==-1&&u<m;)p.push({type:"string",text:s.substring(0,u)}),p.push({type:"lineBreak",text:"//"}),s=s.substring(u+2),u=s.indexOf("//"),m=s.indexOf(c.text);p.push({type:"string",text:s.substring(0,m)}),p.push(c),s=s.substring(m+c.text.length)}),s.length&&p.push({type:"string",text:s}),this.parsedTemplate=p},closeDialog(){this.options={},this.$refs.newForm.reset(),this.$store.commit("electronicMessaging/toggleDialog",!1)},searchCommonMedications(){this.medsLoading=!0,ht({search:this.medSearch||"",limit:25,offset:0}).then(s=>{this.commonMedications=s,this.medsLoading=!1}).catch(s=>{this.medsLoading=!1,this.$store.commit("toaster/error",s)})}},components:{MsgQuestionnaire:Sa}};var Pa=function(){var t=this,e=t._self._c;return e("div",[e("v-card",{staticClass:"messaging-details"},[e("v-toolbar",{attrs:{dark:"",color:"primary"}},[e("v-icon",{staticClass:"pr-2"},[t._v("fa fa-users")]),e("v-toolbar-title",[t._v(t._s(t.messagingTemplate.messagingTemplateName))]),e("v-spacer"),e("v-btn",{attrs:{icon:""},on:{click:t.closeDialog}},[e("v-icon",[t._v("fa fa-times")])],1)],1),e("v-card-text",{staticClass:"mt-3"},[e("v-form",{ref:"newForm",staticClass:"pt-2"},[t._l(t.parsedTemplate,function(i,a,r){return[i.type==="string"?e("span",{key:a},[t._v(t._s(i.text))]):i.type==="select"?e("span",{key:r},[i.options.length===1&&i.options[0]==="medication"?e("v-combobox",{staticClass:"mx-3",staticStyle:{display:"inline-block",width:"250px"},attrs:{items:t.commonMedications,"search-input":t.medSearch,placeholder:"Medication",rules:[n=>!!n||"This field is required."],loading:t.medsLoading,"hide-no-data":""},on:{"update:searchInput":function(n){t.medSearch=n},"update:search-input":function(n){t.medSearch=n}},model:{value:t.options[i.text],callback:function(n){t.$set(t.options,i.text,n)},expression:"options[segment.text]"}}):e("v-select",{staticClass:"mx-3",staticStyle:{display:"inline-block",width:"250px"},attrs:{items:i.options,placeholder:"Select One",rules:[n=>!!n||"This field is required."]},model:{value:t.options[i.text],callback:function(n){t.$set(t.options,i.text,n)},expression:"options[segment.text]"}})],1):t._e(),i.type==="freeText"?e("v-text-field",{key:a,staticClass:"mx-3",staticStyle:{display:"inline-block",width:"250px"},attrs:{label:i.placeholder,rules:[n=>!!n||"This field is required."]},model:{value:t.options[i.text],callback:function(n){t.$set(t.options,i.text,n)},expression:"options[segment.text]"}}):t._e(),i.type==="textArea"?e("v-col",{key:a},[e("span",[t._v(t._s(i.placeholder))]),e("v-textarea",{attrs:{placeholder:"Type here",outlined:""},model:{value:t.options[i.text],callback:function(n){t.$set(t.options,i.text,n)},expression:"options[segment.text]"}})],1):t._e(),i.type==="lineBreak"?e("br",{key:a}):t._e()]}),e("v-container",[e("v-row",[e("v-select",{staticClass:"pa-2",attrs:{items:t.patientProviders,"item-text":"providerName","item-value":"providerId","return-object":"",label:"Provider",rules:[i=>!!i||`This field is required. If you do not see your provider listed from the drop down,
3								please call ${t.phone.text} for further assistance.`],outlined:""},model:{value:t.assignedTo,callback:function(i){t.assignedTo=i},expression:"assignedTo"}}),e("v-select",{staticClass:"pa-2",attrs:{items:t.requester,label:"Requester",rules:[i=>!!i||"This field is required."],outlined:""},model:{value:t.caller,callback:function(i){t.caller=i},expression:"caller"}})],1)],1),e("div",{staticClass:"pa-2"},[e("v-btn",{attrs:{color:"primary",loading:t.sending},on:{click:t.sendMessage}},[t._v(" Send Message ")])],1)],2)],1)],1),e("v-dialog",{attrs:{"max-width":"800px",persistent:""},model:{value:t.openScript,callback:function(i){t.openScript=i},expression:"openScript"}},[e("v-card",[e("v-card-title",[e("v-icon",{staticClass:"pr-2"},[t._v("fa fa-envelope")]),t._v(" Message Sent ")],1),e("v-card-text",{staticClass:"mt-3 text-center black--text"}
3,[t._v(" Thank you for your message. Your healthcare team will be contacting you within 24 hours during the hours of Mon-Friday 8-4:30 PM. All communication from your provider will be by phone call. ")]),e("v-card-actions",[e("v-btn",{staticClass:"ml-auto",attrs:{color:"primary"},on:{click:function(i){t.openScript=!1}}},[t._v("Close")])],1)],1)],1),e("MsgQuestionnaire",{attrs:{questionGraph:t.questionGraph,provider:t.provider,showDialog:t.questionDialog,messageId:t.lastMsgId},on:{close:function(i){t.questionDialog=!1}}})],1)},qa=[],Oa=v(ka,Pa,qa,!1,null,null,null,null);const Ea=Oa.exports,Na={created(){this.searchTemplates(),this.searchTemplates=G(this.searchTemplates,500)},data(){return{loading:!1,pageSize:25,offset:0,messagingTemplates:null,searchText:null,templateCount:0}},computed:{phone(){return this.$store.getters.phoneInfo},dialogOpen(){return this.$store.state.electronicMessaging.dialogOpen}},methods:{searchTemplates(){this.loading=!0,vt({search:this.searchText,limit:this.pageSize,offset:this.offset}).then(s=>{this.messagingTemplates=s.rows,this.templateCount=s.count,this.loading=!1}).catch(s=>{this.loading=!1,this.$store.commit("toaster/error",s)})},selectTemplate(s){this.$store.dispatch("electronicMessaging/selectMessagingTemplate",s)},toggleDialog(s){this.$store.commit("electronicMessaging/toggleDialog",s)}},components:{ElectronicMessagingEditor:Ea}};var La=function(){var t=this,e=t._self._c;return e("v-container",[e("v-card-title",{staticClass:"normal-break"},[t._v(" Send a secure message to your provider ")]),e("v-card-text",[e("div",{staticClass:"mb-4 font-weight-bold"},[t._v(" Please use messages for non-urgent communication only. If this is an emergency or urgent patient care issue, please call 911 and do not leave a message here. ")]),e("div",[t._v(" Please contact "),e("a",{attrs:{href:t.phone.link}},[t._v(t._s(t.phone.text))]),t._v(" if you need to send a message that is not available from the options below. ")])]),e("v-card-text",[t.loading?e("v-progress-circular",{attrs:{color:"primary",indeterminate:""}}):e("v-list",t._l(t.messagingTemplates,function(i){return e("v-list-item",{key:i.messagingTemplateId,on:{click:function(a){return t.selectTemplate(i)}}},[e("v-list-item-content",[e("v-list-item-title",[e("v-icon",[t._v("mdi-message")]),t._v(" "+t._s(i.messagingTemplateName)+" ")],1)],1)],1)}),1),e("v-dialog",{attrs:{value:t.dialogOpen,"max-width":"1200",persistent:""},on:{input:t.toggleDialog}},[e("electronic-messaging-editor")],1)],1)],1)},ja=[],Ya=v(Na,La,ja,!1,null,null,null,null);const Fa=Ya.exports;const Ua={computed:{allMessages(){return this.$store.state.patient.patient.messages},recentMessages(){const s=l().subtract(1,"day");return this.allMessages.filter(t=>l(t.createTime).isAfter(s))},patientPortalUrl(){var t;const s=(t=this.$store.state.selectedRegion)==null?void 0:t.region;return s!=null&&s.startsWith("Southeast")?"https://mycw146.ecwcloud.com/portal20558/jsp/100mp/login_otp.jsp":"https://mycw80.ecwcloud.com/portal10539/jsp/100mp/login_otp.jsp"},messages(){return this.showAll?this.allMessages:this.recentMessages}},data(){return{showAll:!1,moment:l,openedPanel:0}},methods:{formatDate(s){const t=l(),e=l(s);return t.diff(e,"days")>6?e.format("MMM D, YYYY h:mm A"):e.fromNow()},getDate(s){return l(s).format("MM/DD/YYYY")},getTime(s){return l(s).format("h:mm A")}}};var Ba=function(){var t=this,e=t._self._c;return e("v-container",[e("v-row",[e("v-col",{attrs:{cols:"12"}},[e("v-card",{staticClass:"elevation-0"},[e("v-card-title",[t._v(" Messages Sent Within Past 24 Hours: ")]),e("v-card-subtitle",[t._v(" To view all message history with your provider, please "),e("a",{attrs:{href:t.patientPortalUrl,rel:"noopener noreferrer",target:"_blank"}},[t._v(" login to your patient portal. ")])]),e("v-card-subtitle",[t._v(" "+t._s(t.messages.length)+" sent messages ")]),e("v-card-text",[t.messages.length===0?e("v-alert",{attrs:{dense:"",icon:"mdi-information"}},[t._v(" No messages found ")]):t._e(),e("v-expansion-panels",{model:{value:t.openedPanel,callback:function(i){t.openedPanel=i},expression:"openedPanel"}},t._l(t.messages,function(i,a){return e("v-expansion-panel",{key:a,class:{"new-message":i.new}},[e("v-expansion-panel-header",[e("div",[t._v(" Message to "+t._s(i.assignedTo)+" - "),e("span",{staticClass:"caption mb-2"},[t._v(" Message sent "+t._s(t.getDate(i.createTime))+" at "+t._s(t.getTime(i.createTime))+". Your healthcare team will be contacting you within 24 hours during the hours of Mon-Friday 8-4:30 PM. All communication from your provider will be by phone call. ")])])]),e("v-expansion-panel-content",[e("div",{staticClass:"mb-2"},[t._v(" "+t._s(i.message)+" ")]),e("div",{staticClass:"text-caption"},[t._v(" Requester: "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(i.caller))])]),e("div",{staticClass:"text-caption"},[t._v(" Reason: "),e("span",{staticClass:"font-weight-bold"}
3,[t._v(t._s(i.reason))])])])],1)}),1),t.showAll?t._e():e("v-btn",{staticClass:"mt-4",on:{click:function(i){t.showAll=!t.showAll}}},[t._v(" Display All Past Messages ")])],1)],1)],1)],1)],1)},Wa=[],Ga=v(Ua,Ba,Wa,!1,null,"518a7f56",null,null);const Ha=Ga.exports,Xa=["ATT","APPTDONE","ARR","ATKIOSK","CHK","FDRDY","FDRDYCELL","IN ORTH","IN XRAY","ORTH READY","PT IN ROOM","QR_ARR","RDY TREAT","XRAY RDY","DISP","DPRT","OITH","ISX","REDY","ROOM","ROTH","RSX","RXRY"],Ka={data:()=>({loading:!1,tab:null,logoutLoading:!1}),computed:{patient(){return this.$store.state.patient.patient},showElectronicMessaging(){var t,e,i;return((t=this.$store.state.login.config)==null?void 0:t.tenant)==="ADVENT"?!1:(this.$store.state.showTemplateMessaging||["1acc3f317827414d9777035d60","574d9ea3f3c14579803632c60b","a184cc150641445cba734b09f4","486eff4188e845aea83190e4fd","2b9d2b07aca241eaaa3e697faa"].find(a=>a===this.patient.patientId))&&((i=(e=this.patient)==null?void 0:e.pastAppointments)==null?void 0:i.filter(a=>(a.attended||Xa.includes(a.status))&&a.providerId).length)}},created(){let s=2e3;window.location.hostname==="localhost"&&(s=2e4),this.refreshId=setInterval(()=>{this.patient&&this.$store.dispatch("patient/refreshPatient")},s)},mounted(){this.getPatient()},methods:{moment:l,getPatient(s=!1){if(!this.patient||s){const t=+ft("public_patient_expires_at")*1e3;t&&+t<=Date.now()?this.$router.push("/patientPortal/login"):(this.loading=!0,gt().then(e=>{this.$store.commit("patient/setPatient",e)}).catch(e=>{console.error(e),this.$router.push("/patientPortal/login")}).finally(()=>{this.loading=!1}))}},logout(){this.logoutLoading=!0,_t(this.patient.patientId).then(()=>{R("public_patient_access_token"),R("public_patient_expires_at"),this.$store.commit("patient/setPatient",null),this.$router.push("/")}).catch(s=>{console.error(s),this.$store.commit("toaster/error",s)}).finally(()=>{this.logoutLoading=!1})}},components:{Appointments:aa,ElectronicMessaging:Fa,MessageHistory:Ha}};var Qa=function(){var t=this,e=t._self._c;return e("v-sheet",{staticClass:"pb-8",attrs:{color:"#f2f2f2"}},[e("v-row",{staticClass:"mt-4"},[e("v-col",{attrs:{cols:"12",lg:"8","offset-lg":"2",xl:"6","offset-xl":"3"}},[t.loading?e("div",{staticStyle:{width:"100%",display:"block"}},[e("v-progress-circular",{staticStyle:{margin:"auto",padding:"20px"},attrs:{color:"primary",indeterminate:""}})],1):t._e(),t.patient&&!t.loading?e("v-card",[e("v-toolbar",{attrs:{color:"primary",dark:""}},[e("v-toolbar-title",[t._v(" Welcome, "+t._s(t.patient.firstName)+" ")]),e("v-spacer"),e("v-btn",{staticClass:"black--text",attrs:{color:"secondary",loading:t.logoutLoading},on:{click:t.logout}},[t._v("Logout")])],1),e("v-card",{attrs:{flat:""}},[e("v-card-text",[e("v-container",[e("v-row",{staticClass:"d-flex align-center"},[e("v-col",{attrs:{cols:"12",sm:"6"}},[e("div",[e("span",{staticClass:"font-weight-bold"},[t._v(" Name:  ")]),e("span",[t._v(" "+t._s(t.patient.firstName)+" "+t._s(t.patient.middleName)+" "+t._s(t.patient.lastName)+" ")])])]),e("v-col",{attrs:{cols:"12",sm:"6"}},[e("div",[e("span",{staticClass:"font-weight-bold"},[t._v(" Gender:  ")]),e("span",[t._v(" "+t._s(t.patient.gender)+" ")])])]),e("v-col",{attrs:{cols:"12",sm:"6"}},[e("span",{staticClass:"font-weight-bold"},[t._v(" DOB:  ")]),e("span",[t._v(" "+t._s(t.moment(t.patient.birthDate).format("MM/DD/YYYY"))+" ")])]),e("v-col",{attrs:{cols:"12",sm:"6"}},[e("span",{staticClass:"font-weight-bold"},[t._v(" Age:  ")]),e("span",[t._v(" "+t._s(t.moment().diff(t.patient.birthDate,"years"))+"yo ")])])],1),e("v-row",[e("v-col",{attrs:{cols:"12",sm:"6"}},[e("div",{staticClass:"font-weight-bold"},[t._v(" Address: ")]),t._l(t.patient.locations,function(i,a){return e("div",{key:a},[e("div",[t._v(t._s(i.addressLine1))]),e("div",[t._v(t._s(i.addressLine2))]),e("div",[t._v(t._s(i.city)),i.city&&i.state?e("span",[t._v(",")]):t._e(),t._v(" "+t._s(i.state)+" "+t._s(i.zip))])])})],2),e("v-col",{attrs:{cols:"12",sm:"6"}},[e("div",{staticClass:"font-weight-bold"},[t._v(" Contact: ")]),t._l(t.patient.contacts,function(i,a){return e("div",{key:a},[e("span",{staticClass:"caption"},[t._v(t._s(i.contactLabel))]),t._v(": "+t._s(i.contactInfo)+" ")])})],2)],1),e("v-row",[t._l(t.patient.insurance,function(i,a){var r;return e("v-col",{key:a,attrs:{cols:"6"}},[e("div",{staticClass:"font-weight-bold"},[a===0?e("span",[t._v("Primary")]):a===1?e("span",[t._v("Secondary")]):e("span",[t._v("Tertiary")]),t._v(" Insurance: ")]),(r=i==null?void 0:i.insuranceCompanyName)!=null&&r.startsWith("Insurance Registration Needed")?e("div",[t._v(" "+t._s(i.subscriberNumber)+" ")]):e("div",[i.insuranceCompanyName?e("div",[e("span",{staticClass:"caption"},[t._v("Name:")]),t._v(" "+t._s(i.insuranceCompanyName)+" ")]):t._e(),i.subscriberNumber?e("div",[e("span",{staticClass:"caption"},[t._v("Subscriber Number:")]),t._v(" "+t._s(i.subscriberNumber)+" ")]):t._e()])])}),t.patient.language?e("v-col",{attrs:{cols:"6"}},[e("div",{staticClass:"font-weight-bold"},[t._v(" Preferred Language: ")]),e("div",[t._v(" "+t._s(t.patient.language)+" ")])]):t._e()],2)],1)],1)],1),t.loading?e("v-progress-linear",{attrs:{indeterminate:"",color:"primary"}}):e("Appointments",{attrs:{patient:t.patient},on:{getPatient:t.getPatient}}),e("v-divider"),t.showElectronicMessaging?e("ElectronicMessaging"):t._e(),e("v-divider",{staticClass:"mx-5",attrs:{horizontal:""}}),t.showElectronicMessaging?e("MessageHistory"):t._e()],1):t.loading?t._e():e("v-card",[e("v-card-text",[t._v(" Account not found ")])],1)],1)],1)],1)},za=[],Va=v(Ka,Qa,za,!1,null,null,null,null);const on=Va.exports;export{on as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.