PageSourceSearch

https://pocketdocapp.com/uncharged-visits.58e365a5.js

js pocketdocapp.com collected 2026-10-02 00:54:42 UTC 17,664 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpocketdoc_web=self.webpackChunkpocketdoc_web||[]).push([[6807],{29711:function(e,t,r){var n=r(80296),a=r(67881),o=r(96540),i=r(59399),l=r.n(i),c=r(52594),p=r(76273),m=(0,a.i7)(["from{opacity:0}to{opacity:1}"]),s=a.Ay.div.withConfig({componentId:"sc-o7bcyw-0"})(["",";animation:"," 250ms linear;& > div{",";}"],{position:"fixed",bottom:"0",left:"0",zIndex:"50",marginBottom:"1rem",display:"flex",width:"100%",justifyContent:"flex-end",paddingRight:"1rem"},m,{borderRadius:"0.25rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(17 24 39 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(31 41 55 / var(--tw-bg-opacity, 1))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"});t.A=function(e){var t=e.text,r=e.onClick,a=e.children,i=(0,o.useState)(!1),m=(0,n.A)(i,2),u=m[0],d=m[1];(0,o.useEffect)(function(){if(u){r&&r();var e=setTimeout(function(){d(!1)},2500);return function(){clearTimeout(e)}}},[u]);var g=(0,o.useCallback)(function(){d(!0)},[]);return o.createElement(o.Fragment,null,o.createElement(p.wY,null,o.createElement(c.zW,{timeout:250,key:u?"visible":"invisible"},u?o.createElement(s,null,o.createElement("div",null,o.createElement("p",null,'Copied "',t,'" to clipboard.'))):o.createElement(o.Fragment,null))),t&&t.length>0?o.createElement(l(),{onCopy:g,text:t},a):o.createElement(o.Fragment,null,a))}},40300:function(e,t,r){r.r(t),r.d(t,{default:function(){return le}});var n=r(64467),a=r(80296),o=r(67881),i=r(96540),l=r(81306),c=r(91319),p=r(52594),m=r(33876),s=r(54625),u=r(90380),d=r(10467),g=r(54756),y=r.n(g),f=r(98765),h=r(20151);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var w=function(e){var t=new Date(e.when);return v(v({},e),{},{when:t,duration:e.duration?h._J.formatDuration(e.duration/1e3):0,isUpdating:!1})},A=function(){var e=(0,d.A)(y().mark(function e(){var t,r,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,f.Ay.get("/api/employee/uncharged-visits",{timeout:45e3});case 1:if(t=e.sent,(r=t.data).visits){e.next=2;break}return e.abrupt("return",[]);case 2:return n=r.visits.map(w),e.abrupt("return",n);case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),E=A,x=r(75859),C=function(){var e=(0,d.A)(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,f.Ay.put("/api/employee/sessions/".concat(t,"/mark-failed"),{},{timeout:1e4});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),I=r(95533),k=r(64263),S=r(39023),O=r(25381),P=r(15031),j=r(36451),T=(0,O.Ik)().shape({employeeId:(0,O.Yj)().required("The provider who completed this visit must be selected."),chargeAmount:(0,O.Yj)().required("Please select a valid charge amount for this visit.")}),D=(0,k.AC)()(function(e){var t=e.sessionDetails,r=e.onConfirmCharge,n=e.chargeSuccess,a=e.chargeError;if(null===t)return null;if(n)return i.createElement(z,null,"Success. Please verify any charges in Authorize.net.");var o=(0,P.A)(!0).data,l=t.patientFirstName,c=t.patientLastName,m=t.employeeId,s=t.employeeFirstName,u=t.employeeLastName,d=t.providerTag,g=t.when,y=t.paymentLast4,f=(0,x.GPZ)(g,"MMM d, yyyy p");return i.createElement(S.l1,{initialValues:{employeeId:m,chargeAmount:""},validationSchema:T,onSubmit:r},function(e){var r=e.isSubmitting,n=e.isValid,m=e.errors;return i.createElement(S.lV,null,i.createElement(F,null,i.createElement(p.y$.Overlay,{visible:r&&n}),o?i.createElement(i.Fragment,null,i.createElement("div",null,i.createElement(R,null,"Charge ",i.createElement(L,null,l," ",c),"?"),i.createElement(H,null,i.createElement(B,null,i.createElement(W,null,"Session Date:")," ",f),i.createElement(M,null,i.createElement(V,null,"Provider:")," ",d),"legacy"===t.type&&i.createElement(X,null,i.createElement($,null,"Calling Employee:")," ",s," ",u),i.createElement(_,null,i.createElement(U,null,"Payment method:")," **** **** **** ",y))),i.createElement(p.ar,{name:"employeeId",label:"Provider",description:"Select the provider who completed this visit."},i.createElement(S.D0,{name:"employeeId",as:p.l6},i.createElement("option",{value:"",disabled:!0}),o.providers.sort(function(e,t){return e.lastName.toLowerCase().localeCompare(t.lastName.toLowerCase())}).map(function(e){return i.createElement("option",{key:e.id,value:e.id},e.lastName,", ",e.firstName,e.providerTitle&&" (".concat(e.providerTitle,")"))}))),i.createElement(Y,{name:"chargeAmount",label:"Charge Amount",description:"Select the amount to charge the patient for this visit."},i.createElement(j.h,{name:"chargeAmount",providers:o.providers,visitTypes:o.area.visitTypes})),i.createElement(q,null,i.createElement(G,{type:"submit"},"Charge Card"))):i.createElement(N,null),m.employeeId&&i.createElement(Z,null,m.employeeId),m.chargeAmount&&i.createElement(J,null,m.chargeAmount),a&&i.createElement(K,null,a)))})}),z=(0,o.Ay)("p")({borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(51 170 133 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(235 249 246 / var(--tw-bg-opacity, 1))",padding:"1rem","--tw-text-opacity":"1",color:"rgb(5 150 105 / var(--tw-text-opacity, 1))"}),F=(0,o.Ay)("div")({display:"flex",flexDirection:"column",alignItems:"stretch"}),N=(0,o.Ay)(p.y$)({marginTop:"1rem",marginBottom:"1rem",alignSelf:"center"}),R=(0,o.Ay)("h1")({fontSize:"1.5rem",lineHeight:"2rem"}),L=(0,o.Ay)("span")({fontWeight:"700"}),H=(0,o.Ay)("div")({marginTop:"1rem",marginBottom:"1rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))",padding:"1rem"}),B=(0,o.Ay)("p")({marginBottom:"0.25rem",fontSize:"1.25rem",lineHeight:"1.75rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),W=(0,o.Ay)("span")({fontWeight:"600"}),M=(0,o.Ay)("p")({marginBottom:"0.25rem",fontSize:"1.25rem",lineHeight:"1.75rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),V=(0,o.Ay)("span")({fontWeight:"600"}),X=(0,o.Ay)("p")({marginBottom:"0.25rem",fontSize:"1.25rem",lineHeight:"1.75rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),$=(0,o.Ay)("span")({fontWeight:"600"}),_=(0,o.Ay)("p")({marginBottom:"0.25rem",fontSize:"1.25rem",lineHeight:"1.75rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),U=(0,o.Ay)("span")({fontWeight:"600"}),Y=(0,o.Ay)(p.ar)({marginTop:"1.5rem"}),q=(0,o.Ay)("div")({marginTop:"1.5rem"}),G=(0,o.Ay)(k.$n)({width:"100%"}),Z=(0,o.Ay)("p")({marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"}),J=(0,o.Ay)("p")({marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"}),K=(0,o.Ay)("p").withConfig({componentId:"sc-1gbxpq0-0"})({marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"}),Q=function(){var e=(0,d.A)(y().mark(function e(t){var r,n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.sessionId,n=t.employeeId,a=t.chargeAmount,e.next=1,f.Ay.put("/api/employee/sessions/".concat(r,"/charge-card-for-session"),{employeeId:n,chargeAmount:a});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ee=r(30115),te=r.n(ee),re=function(){var e=(0,d.A)(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,f.Ay.put("/api/employee/visit/sign",{videoAppointmentId:t},{timeout:1e4});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ne=r(53353);function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?ae(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ie=function(e){var t=e.visitDetails,r=e.onMarkFailed,n=e.onChargeCard,a=t.patientId,o=t.patientFirstName,l=t.patientLastName,c=t.employeeFirstName,p=t.employeeLastName,m=t.when,s=t.paymentLast4,d=t.isUpdating,g=t.duration,y=(0,x.GPZ)(m,"MMM d, yyyy p"),f=I.A.now().add(-5,"day").isBefore((0,I.A)(m));return i.createElement(ce,null,i.createElement(pe,null,i.createElement(me,{to:"".concat(u.RN,"/").concat(a)},"".concat(o," ").concat(l))),i.createElement(se,null,"".concat(c," ").concat(p)),i.createElement(ue,null,y),i.createElement(de,null,s),i.createElement(ge,null,g),i.createElement(ye,null,i.createElement(fe,{secondary:!0,disabled:d,onClick:function(){return r(t)}},d?i.createElement(he,{size:"small"}):"Mark Failed")),i.createElement(be,null,f&&i.createElement(ve,{disabled:d,onClick:function(){return n(t)}},"Charge Card")))},le=function(){var e=(0,i.useState)(!0),t=(0,a.A)(e,2),r=t[0],n=t[1],o=(0,i.useState)(""),p=(0,a.A)(o,2),m=p[0],s=p[1],u=(0,i.useState)([]),d=(0,a.A)(u,2),g=d[0],y=d[1],f=(0,i.useState)(!1),h=(0,a.A)(f,2),b=h[0],v=h[1],w=(0,i.useState)(""),A=(0,a.A)(w,2),x=A[0],I=A[1],k=(0,i.useState)(null),S=(0,a.A)(k,2),O=S[0],P=S[1];(0,i.useEffect)(function(){E().then(function(e){return y(e)}).catch(function(e){return s((0,c.getErrorFromResponse)(e))}).finally(function(){return n(!1)})},[]);var j=function(e,t){var r=g.map(function(r){return te()(r,e)?oe(oe({},r),{},{isUpdating:t}):r});y(r)},T=function(e){var t=g.filter(function(t){return!te()(t,e)});y(t)},z=function(e){j(e,!0),("legacy"===e.type?function(){return C(e.sessionId)}:function(){return re(e.videoAppointmentId)})().then(function(){return T(e)}).catch(function(t){s((0,c.getErrorFromResponse)(t)),j(e,!1)})};return i.createElement(i.Fragment,null,i.createElement(D,{visible:null!==O,sessionDetails:O,onModalDismissed:function(){P(null),v(!1)},onConfirmCharge:function(e,t){var r=t.setSubmitting,n=t.validateForm;if(null!==O){n();var a=e.chargeAmount.split("_")[1]||"0";("legacy"===O.type?function(){return Q({sessionId:O.sessionId,employeeId:e.employeeId,chargeAmount:Number(a||0)})}:function(){return(0,ne.A)({videoAppointmentId:O.videoAppointmentId,employeeId:O.employeeId,chargeAmount:Number(a||0)})})().then(function(){v(!0),T(O)}
1).catch(function(e){I((0,c.getErrorFromResponse)(e))}).finally(function(){r(!1)})}},chargeSuccess:b,chargeError:x}),i.createElement(l.A,null),i.createElement(we,null,i.createElement(Ae,null,i.createElement(Ee,null,"Uncharged Visits"),i.createElement(xe,null,"This is a list of video visits where the payment method was a credit card, but the visit was not marked as charged. This should be double-checked against authorize to make sure the patient was not charged for this visit already.",i.createElement("br",null),i.createElement("br",null),'Clicking "Mark Failed" will just mark the session as failed and remove it from this list without attempting to charge the card.',i.createElement("br",null),i.createElement("br",null),'Clicking "Charge Card" will allow you to charge the patient\'s card for the visit by selecting the appropriate amount to charge. This will open a modal to allow you to review the details before charging. Note: visits that are more than ',5," days old do not have the option to be charged.")),i.createElement(Ce,null,i.createElement(Ie,null,"Patient"),i.createElement(ke,null,"Provider"),i.createElement(Se,null,"Started At"),i.createElement(Oe,null,"Card Last 4"),i.createElement(Pe,null,"Duration"),i.createElement(je,null)),r&&i.createElement(Te,null),m&&i.createElement(De,null,i.createElement(ze,null,i.createElement(Fe,null,"An error occurred: "),m)),!r&&!m&&g.length>0?g.map(function(e){return i.createElement(ie,{key:"legacy"===e.type?e.sessionId:e.videoAppointmentId,visitDetails:e,onMarkFailed:z,onChargeCard:function(){return P(e)}})}):null))},ce=(0,o.Ay)("div")({display:"grid",gridTemplateColumns:"repeat(12, minmax(0, 1fr))",alignItems:"center",gap:"1rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(243 244 246 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"1.125rem",lineHeight:"1.75rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),pe=(0,o.Ay)("div")({gridColumn:"span 2 / span 2"}),me=(0,o.Ay)(s.N_)({paddingTop:"0.25rem",paddingBottom:"0.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))",transitionProperty:"background-color, border-color, color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"75ms","&:hover":{"--tw-text-opacity":"1",color:"rgb(5 150 105 / var(--tw-text-opacity, 1))"}}),se=(0,o.Ay)("div")({gridColumn:"span 2 / span 2"}),ue=(0,o.Ay)("div")({gridColumn:"span 2 / span 2"}),de=(0,o.Ay)("div")({gridColumn:"span 1 / span 1"}),ge=(0,o.Ay)("div")({gridColumn:"span 1 / span 1"}),ye=(0,o.Ay)("div")({gridColumn:"span 2 / span 2",display:"flex",alignItems:"center",justifyContent:"flex-end"}),fe=(0,o.Ay)(m.$)({paddingLeft:"0.5rem",paddingRight:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity, 1))","&:hover":{"--tw-border-opacity":"1 !important",borderColor:"rgb(220 38 38 / var(--tw-border-opacity, 1)) !important","--tw-text-opacity":"1 !important",color:"rgb(220 38 38 / var(--tw-text-opacity, 1)) !important"}}),he=(0,o.Ay)(p.y$)({marginLeft:"1.5rem",marginRight:"1.5rem"}),be=(0,o.Ay)("div")({gridColumn:"span 2 / span 2",display:"flex",alignItems:"center",justifyContent:"flex-end"}),ve=(0,o.Ay)(m.$)({paddingLeft:"0.5rem",paddingRight:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem"}),we=(0,o.Ay)("div")({display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start"}),Ae=(0,o.Ay)("div")({borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"1.5rem"}),Ee=(0,o.Ay)("h2")({fontSize:"1.5rem",fontWeight:"500",lineHeight:"2rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))"}),xe=(0,o.Ay)("p")({marginTop:"0.5rem",fontSize:"1.125rem",lineHeight:"1.75rem","--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity, 1))"}),Ce=(0,o.Ay)("div")({display:"grid",gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gap:"1rem",borderBottomWidth:"2px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity, 1))",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),Ie=(0,o.Ay)("p")({gridColumn:"span 2 / span 2","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),ke=(0,o.Ay)("p")({gridColumn:"span 2 / span 2","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),Se=(0,o.Ay)("p")({gridColumn:"span 2 / span 2","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),Oe=(0,o.Ay)("p")({gridColumn:"span 1 / span 1","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),Pe=(0,o.Ay)("p")({gridColumn:"span 1 / span 1","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),je=(0,o.Ay)("p")({gridColumn:"span 3 / span 3","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),Te=(0,o.Ay)(p.y$)({marginTop:"2rem",alignSelf:"center"}),De=(0,o.Ay)("div")({width:"100%",padding:"1.5rem"}),ze=(0,o.Ay)("p")({textAlign:"center",fontSize:"1.125rem",lineHeight:"1.75rem","--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity, 1))"}),Fe=(0,o.Ay)("span").withConfig({componentId:"sc-yyn2ar-0"})({fontWeight:"500","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"})},95661:function(e,t,r){r.d(t,{v:function(){return i}});var n=r(61849),a=r(21966),o={data:null,epicDemographics:null,hasPocketDocAccount:!0,isEstablished:null,sessions:null,isInVideoCall:!1,setPatient:(0,n.XI)(function(e,t){!e.data||t&&e.data.id===t.id||(e.sessions=null),e.data=t}),setEpicDemographics:(0,n.XI)(function(e,t){e.epicDemographics=t}),setHasPocketDocAccount:(0,n.XI)(function(e,t){e.hasPocketDocAccount=t}),setIsEstablished:(0,n.XI)(function(e,t){e.isEstablished=t}),setSessions:(0,n.XI)(function(e,t){e.sessions=t}),updatePatient:(0,n.XI)(function(e,t){e.data=t(e.data)}),setIsInVideoCall:(0,n.XI)(function(e,t){e.isInVideoCall=t})},i=(0,n.rn)(o,{compose:(0,a.tY)({name:"PatientStore"})})}}]);

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.