PageSourceSearch

https://my.murj.com/static/BridgeAppInOfficeSummary-CQn63Xy8.js

js murj.com collected 2026-10-03 20:58:17 UTC 4,881 bytes, 1 lines download raw bytes

1var x=Object.defineProperty;var v=(d,o,e)=>o in d?x(d,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):d[o]=e;var p=(d,o,e)=>v(d,typeof o!="symbol"?o+"":o,e);import{a2 as g,aR as t,aW as f}from"./vendor-mui-core-Vmx-GxmF.js";import{ba as j,az as _,aO as y,aF as A,af as l,aT as b,i as h,l as S,aj as D,aM as u}from"./index-DZgP9rhy.js";import{P as T}from"./PageTitle-D6bZQ1JB.js";import{M as m}from"./UserDropdown-MuWHZUxG.js";import{R as M}from"./RemoteBatteryState-B26nHWOt.js";import{_ as N}from"./vendor-lodash-D1Md9Yly.js";import"./vendor-okta-vjTDL4qy.js";import"./vendor-amplitude-DzNlQvQy.js";import"./vendor-mui-icons-fX7Hb4RG.js";class I extends g.Component{constructor(e){super(e);p(this,"patient");p(this,"itemsWithAdvisories");A(this,{patient:u,itemsWithAdvisories:u,getItemsWithAdvisories:l,getAdvisories:l})}componentDidMount(){this._load()}componentDidUpdate(e){N.isEqual(this.props.match,e.match)||this._load()}_load(){const{murjAppStore:e,patientStore:a,inOfficeUploadStore:n}=this.props,i=this.props.match.params.patientId,r=parseInt(this.props.match.params.transId,10);e.setBusy(!0),n.init(),a.getBridgeAppPatient(i,r).then(l(s=>{this.patient=s,Promise.all([this.getItemsWithAdvisories(s,"device"),this.getItemsWithAdvisories(s,"lead")]).then(c=>{this.itemsWithAdvisories=c.filter(Boolean).flat()}).catch(c=>e.reportError({message:"Unable to retrieve devices or leads with advisories for this patient.",title:"Data Retrieval Error",code:"ba-ioc-sum-001",error:c}))})).catch(s=>e.reportError({message:`An error occurred while retrieving the patient with id '${i}'. Please try again.`,title:"Data Retrieval Error",code:"ba-ioc-sum-002",error:s})).finally(()=>e.setBusy(!1))}_returnToSmartSync(){const{history:e}=this.props;b(h.bridgeAppMessages.RETURN_TO_SMART_SYNC),e.push(S.routePaths.BRIDGE_APP_IOC_UPLOAD)}getItemsWithAdvisories(e,a){return new Promise((n,i)=>{Promise.all(this.getAdvisories(e.patientData,a)).then(r=>{r.includes(void 0)?n():n(r)}).catch(i)})}getAdvisories(e,a){return e[a==="device"?"patient_devices":"patient_leads"].map(i=>this.getAdvisoryData(i,a).then(r=>{if(r.some(s=>!s.current_status||s.current_status==="no_decision")){const s=i.advisories||[];return s.push(...r),i.advisories=s,i}}).catch(r=>this.props.murjAppStore.reportError({code:"ba-ioc-sum-003",error:r})))}getAdvisoryData(e,a){return new Promise((n,i)=>{const{advisoryStore:r}=this.props,s=e[a==="device"?"murj_device_id":"patient_lead_id"];s?r.getDeviceAdvisories(s,a).then(c=>n(c.matches)).catch(i):n()})}render(){const e=this.patient;if(!e)return t.jsx("div",{className:"row summary-line-item",style:{padding:"20px"},children:t.jsx(T,{showLoading:!0})});const{patientData:a}=e,n=this.props.match.params.state===h.patientStates.EXISTING;return t.jsxs("div",{className:"row summary-line-item",style:{padding:"20px"},children:[t.jsxs("div",{children:[t.jsx("i",{className:D("fa",{"fa-check-circle":n,"fa-user-plus":!n}),style:{color:"#5bb057"}})," Record added to an ",`${n?"existing":"new"}`," patient:"]}),t.jsx("div",{style:{marginTop:"4px"},children:t.jsxs("span",{className:"text-bold",children:[e.first_name," ",e.last_name]})}),t.jsxs("div",{style:{marginTop:"4px"},children:[t.jsx("span",{className:"text-bold",children:"DOB: "}),t.jsx(m,{format:"MM/DD/YYYY",children:a.birth_date})]}),t.jsxs("div",{style:{marginTop:"4px"},children:[t.jsx("span",{className:"text-bold",children:"Device: "}),e.manufacturer," ",e.deviceModel]}),t.jsx("div",{style:{marginTop:"4px"},children:t.jsx(M,{patient:e,bridgeapp:!0})}),t.jsxs("div",{style:{marginTop:"4px"},children:[t.jsx("span",{className:"text-bold",children:"Encounter date: "}),t.jsx(m,{format:"MMM DD, YYYY",children:e.cur_transmission.encounter_date})]}),!!(this.itemsWithAdvisories||[]).length&&t.jsx("div",{className:"alert-block alert-warning padding-10",style:{marginTop:"20px"},children:t.jsxs("span",{children:[t.jsx("i",{className:"ti-alert margin-right-10"}),this.itemsWithAdvisories.map((i,r)=>t.jsx(f.Fragment,{children:i.advisories.filter(s=>!s.current_status).map(s=>t.jsxs("div",{children:[t.jsxs("span",{children:['Advisory: "',s.title,", ",t.jsx(m,{format:"MM/DD/YYYY",children:s.advisory_date}),'"']}),t.jsxs("span",{children:[" for ",i.manufacturer," ",i.model_number,"."]})]},s.murj_advisory_id))},r))]})}),t.jsx("div",{className:"summary-callout",style:{marginTop:"20px"},children:t.jsxs("span",{children:[t.jsx("i",{className:"fa fa-info-circle"})," ... to complete the check: on your workstation, go to Murj, OnTap and click the in-office record for ",e.first_name," ",e.last_name]})}),t.jsx("div",{style:{marginTop:"20px"},children:t.jsx("button",{type:"button",className:"btn btn-primary pull-right",onClick:this._returnToSmartSync.bind(this),children:"Done"})})]})}}const U=j(_("murjAppStore","patientStore","userStore","inOfficeUploadStore","advisoryStore")(y(I)));export{U 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.