felicity-lims/felicity/templates/static/assets/PatientInfo-7ec01bd5.js

2 lines
5.3 KiB
JavaScript
Raw Normal View History

2024-11-18 01:39:30 +08:00
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"},