mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 16:33:11 +08:00
1 line
5.3 KiB
JavaScript
1 line
5.3 KiB
JavaScript
import{d as P,N as k,n as j,s as C,m as _,z as D,e as d,o as n,c as i,f as e,g as c,b as t,t as o,aG as I,P as x,B as N,F as S,E,j as B,_ as R,k as T}from"./index-e62f5c21.js";import{h as A,o as M,a as O}from"./constants-02c93bfe.js";const U={class:"bg-white rounded-sm shadow-sm hover:shadow-lg duration-500 px-4 sm:px-6 md:px-2 py-4"},F={key:0,class:"py-4 text-center"},L={key:1,class:"grid grid-cols-12 gap-3"},V={class:"sm:col-span-2 text-center hidden sm:block"},Y={class:"inline-block font-bold text-medium mb-2"},z={class:"flex flex-col items-center justify-center mx-auto py-2 w-4/5 2lg:w-3/5 rounded-sm bg-sky-800"},G={class:"inline-block font-semibold text-white text-sm lg:text-md"},$={class:"inline-block font-bold text-2xl text-white my-2"},q=t("div",{class:"inline-block font-semibold text-white text-sm lg:text-md"}," Yrs Old ",-1),H={class:"col-span-12 sm:col-start-3 sm:col-end-13 px-3 sm:px-0"},J={class:"flex justify-between sm:text-sm md:text-md lg:text-lg"},K={class:"font-bold text-gray-800"},Q={class:"font-medium text-md"},W=t("hr",null,null,-1),X={class:"grid grid-cols-3 gap-x-8 mt-2"},Z={class:"col-span-1"},tt=t("h1",{class:"uppercase text-sm font-semibold"},"patient Origin",-1),et=t("hr",{class:"my-1"},null,-1),st={class:"flex justify-between items-center mt-2"},ot=t("span",{class:"text-gray-800 text-sm font-semibold"},"Country",-1),nt={class:"text-gray-600 text-sm md:text-md"},it={class:"flex justify-between items-center mt-2"},at=t("span",{class:"text-gray-800 text-sm font-semibold"},"District:",-1),ct={class:"text-gray-600 text-sm md:text-md"},dt={class:"flex justify-between items-center mt-2"},lt=t("span",{class:"text-gray-800 text-sm font-semibold"},"Province: ",-1),mt={class:"text-gray-600 text-sm md:text-md"},rt={class:"col-span-1"},_t=t("h1",{class:"uppercase text-sm font-semibold"},"Primary Referrer",-1),xt=t("hr",{class:"my-1"},null,-1),pt={class:"flex justify-between items-center mt-2"},ht=t("span",{class:"text-gray-800 text-sm font-semibold"},"Client",-1),ft={class:"text-gray-600 text-sm md:text-md"},ut={class:"flex justify-between items-center mt-2"},yt=t("span",{class:"text-gray-800 text-sm font-semibold"},"District:",-1),gt={class:"text-gray-600 text-sm md:text-md"},bt={class:"flex justify-between items-center mt-2"},vt=t("span",{class:"text-gray-800 text-sm font-semibold"},"Province: ",-1),wt={class:"text-gray-600 text-sm md:text-md"},Pt={class:"col-span-1 mr-2"},kt={class:"flex justify-between items-center mt-2"},jt=t("span",{class:"text-gray-800 whitespace-nowrap text-sm font-semibold"},"Client Patient ID: ",-1),Ct={class:"text-gray-600 text-sm md:text-md"},Dt={class:"flex justify-between items-center mt-2"},It=t("span",{class:"text-gray-800 whitespace-nowrap text-sm font-semibold"},"Mobile: ",-1),Nt={class:"text-gray-600 text-sm md:text-md"},St={class:"flex justify-between items-center mt-2"},Et=t("span",{class:"text-gray-800 whitespace-nowrap text-sm font-semibold"},"Consent SMS: ",-1),Bt={class:"text-gray-600 text-sm md:text-md"},Rt={class:"text-gray-800 whitespace-nowrap text-sm font-semibold"},Tt={class:"text-gray-600 text-sm md:text-md"},At=P({__name:"PatientInfo",emits:["editPatient"],setup(Mt,{emit:p}){const h=B(()=>R(()=>import("./FelLoadingMessage-b4229f94.js"),["assets/FelLoadingMessage-b4229f94.js","assets/index-e62f5c21.js","assets/index-332ec99e.css"])),f=k(),u=j(),{patient:s,fetchingPatient:y}=C(u),g=p,b=l=>{g("editPatient",l)};return(l,m)=>{const r=_("font-awesome-icon"),v=_("router-link"),w=D("motion-slide-top");return d((n(),i("div",U,[e(y)?(n(),i("div",F,[c(e(h),{message:"Fetching patient details ..."})])):(n(),i("div",L,[t("div",V,[t("div",Y,o(e(s)?.patientId),1),t("div",z,[t("div",G,o(e(s)?.gender),1),t("div",$,o(e(s)?.age),1),q])]),t("div",H,[t("div",J,[t("span",K,o(e(s)?.firstName?.toUpperCase())+" "+o(e(s)?.lastName?.toUpperCase()),1),t("div",null,[t("span",Q,o(e(I)(e(s)?.dateOfBirth,!1)),1),d(t("button",{onClick:m[0]||(m[0]=a=>b(e(s))),class:"p-1 ml-2 border-white border text-gray-500 text-md rounded-sm transition duration-300 hover:text-sky-800 focus:outline-none"},[c(r,{icon:"fa-edit"})],512),[[x,A(O.UPDATE,M.PATIENT)]]),d(c(v,{to:{name:"patient-detail",params:{patientUid:e(s)?.uid}},class:"p-1 ml-2 border-white border text-gray-500 rounded-sm transition duration-300 hover:text-sky-800 focus:outline-none"},{default:N(()=>[c(r,{icon:"fa-left-right"})]),_:1},8,["to"]),[[x,e(f).fullPath.includes("patients-compact")]])])]),W,t("div",X,[t("div",Z,[tt,et,t("div",st,[ot,t("span",nt,o(e(s)?.country?.name),1)]),t("div",it,[at,t("span",ct,o(e(s)?.district?.name),1)]),t("div",dt,[lt,t("span",mt,o(e(s)?.province?.name),1)])]),t("div",rt,[_t,xt,t("div",pt,[ht,t("span",ft,o(e(s)?.client?.name),1)]),t("div",ut,[yt,t("span",gt,o(e(s)?.client?.district?.name),1)]),t("div",bt,[vt,t("span",wt,o(e(s)?.client?.district?.province?.name),1)])]),t("div",Pt,[t("div",kt,[jt,t("span",Ct,o(e(s)?.clientPatientId),1)]),t("div",Dt,[It,t("span",Nt,o(e(s)?.phoneMobile),1)]),t("div",St,[Et,t("span",Bt,o(e(s)?.consentSms?"Yes":"No"),1)]),(n(!0),i(S,null,E(e(s)?.identifications,a=>(n(),i("div",{class:"flex justify-between items-center mt-2",key:a.uid},[t("span",Rt,o(a?.identification?.name)+": ",1),t("span",Tt,o(a?.value),1)]))),128))])])])]))])),[[w]])}}}),Ft=T(At,[["__file","/home/aurthurm/Documents/Development/felicity/felicity-lims/webapp/components/person/PatientInfo.vue"]]);export{Ft as default};
|