1import{bc as z,y as B,bY as J,b_ as Q,e as K,x as w,a3 as Y,ak as X,q as Z,A as M,co as ee,p as ae,bu as te,b$ as a,B as ne,c as s,o,a as r,b as p,w as I,d as E,F as ie,f as n,H as D,S as y,T as f,t as U,g as R,M as v,ab as V,V as oe,J as N,fs as le}from"#entry";import{_ as se}from"./DlP9uqBQ.js";import{_ as re}from"./DnZ_rPm1.js";import{C as F}from"./DBr935Js.js";import{_ as ce}from"./j33zdX0X.js";import{_ as de}from"./C8rJVANA.js";import{u as me}from"./D_Qo2lJz.js";import{u as pe}from"./Ce9YkjM_.js";import{_ as ue}from"./DlAUqK2U.js";import"./kC3kxybx.js";import"./D5Td5aVQ.js";import"./CvtDo0MO.js";import"./Dmhids7v.js";import"./BBoVSIOO.js";import"./Ltqd2rAr.js";import"./DippbqLN.js";import"./C3DONDKa.js";import"./DC66rAUS.js";import"./DcGhxoNh.js";import"./8sjTgCsn.js";const ye=z("pediatrics-examination",()=>{const x={generalAppearance:"",inspection:"",mouthAndThroat:"",neck:"",heartSounds:"",peripheralCirculation:"",chestInspection:"",palpationAuscultation:"",inspectionAbdomen:"",palpationAbdomen:"",percurssionAuscultation:"",jointRangeMotion:"",spine:"",reflexesCoordination:"",cranial_nerve_examination:"",rash_lesions_birthmarks:"",external_genitalia_examination:"",urinarySigns:"",motorSkill:"",speech_and_language:"",cognitiveDevelopment:"",social_and_emotional_development:"",diagnosis:[],managementPlan:"",investigationName:[],developmental_screening_tools:"",medications:[],lifestyle_care_recommendations:"",followUpPlan:"",parentEducation:"",referral:"",attendingPhysician:"",dateOfDocumentation:""},c=B({...x}),A=B({generalAppearance:[{label:"Alert",value:"alert"},{label:"Lethargic",value:"lethargic"},{label:"Well-nourished",value:"well_nourished"},{label:"Pale",value:"pale"},{label:"Jaundiced",value:"jaundiced"}],icdCategories:[{id:"448895267",label:"ICD Entity"},{id:"455013390",label:"ICD Category"},{id:"1920852714",label:"ICD Extension Code"}],icdItemsByCategory:{448895267:[{code:"1168452782",name:"Malaria without parasitological confirmation"},{code:"1318266453",name:"Other congenital malaria"},{code:"1390000001",name:"Antimalarial"},{code:"1390000002",name:"Plasmodium malariae"},{code:"1390000003",name:"Malaria due to Plasmodium ovale"},{code:"1390000004",name:"Personal history of malaria"},{code:"1390000005",name:"Malaria due to simian plasmodia"},{code:"1390000006",name:"Congenital falciparum malaria"}],455013390:[{code:"2100000001",name:"Infectious diseases"},{code:"2100000002",name:"Endocrine, nutritional or metabolic diseases"}],1920852714:[{code:"9900000001",name:"Extension modifier example A"},{code:"9900000002",name:"Extension modifier example B"}]},investigationTabs:[{id:"haematology",label:"Haematology"},{id:"biochemistry",label:"Biochemistry & Endocrinology"},{id:"immunology",label:"Immunology"},{id:"microbiology",label:"Microbiology"},{id:"histology",label:"Histology"}],investigationTestOptions:{haematology:["Hemoglobin","White Cell Differential Count","Platelet Count","Red Blood Cell Count","Mean Corpuscular Volume","Mean Corpuscular Hemoglobin","Mean Corpuscular Hemoglobin Concentration","Red Cell Distribution Width","Hematocrit","Erythrocyte Sedimentation Rate"],biochemistry:["Blood Glucose","Urea","Creatinine","Sodium","Potassium","Chloride","Bicarbonate","Total Protein","Albumin","Bilirubin","Alkaline Phosphatase","Alanine Aminotransferase","Aspartate Aminotransferase","Gamma-Glutamyl Transferase","Cholesterol","Triglycerides"],immunology:["C-Reactive Protein","Rheumatoid Factor","Anti-Nuclear Antibody","Complement C3","Complement C4","Immunoglobulin G","Immunoglobulin A","Immunoglobulin M","Immunoglobulin E"],microbiology:["Blood Culture","Urine Culture","Sputum Culture","Stool Culture","Throat Swab Culture","Wound Culture","Cerebrospinal Fluid Culture"],histology:["Tissue Biopsy","Fine Needle Aspiration","Bone Marrow Biopsy","Liver Biopsy","Kidney Biopsy","Lung Biopsy","Skin Biopsy"]},medicationGroups:["Analgesics","Antibiotics","Antimalarials","Antihypertensives","Antidiabetics","Antidepressants","Antipsychotics","Anticonvulsants"],medicationsByGroup:{Analgesics:["Paracetamol","Ibuprofen","Diclofenac"],Antibiotics:["Amoxicillin","Ciprofloxacin","Cefuroxime"],Antimalarials:["Artemether/Lumefantrine","Quinine"],Antihypertensives:["Amlodipine","Lisinopril","Losartan"],Antidiabetics:["Metformin","Glimepiride","Insulin"],Antidepressants:["Fluoxetine","Sertraline"],Antipsychotics:["Haloperidol","Olanzapine","Risperidone"],Anticonvulsants:["Carbamazepine","Sodium Valproate"]},doseUnits:["mg","g","mcg","mL","IU"],quantityForms:["Tablet","Capsule","Syrup","Vial","Ampoule","Sachet"],durationUnits:["Days","Weeks","Months"],medicationFrequencies:["Once daily","Twice daily","Three times daily","Every 6 hours","Every 8 hours","Weekly","PRN"],routes:["Oral","Intravenous","Intramuscular","Subcutaneous","Topical","Inhalation","Sublingual","Rectal"],deliveryTypes:["Routine","STAT","PRN"]}),C=()=>{},k=()=>{Object.assign(c,J(x))};function g(h,S){c.generalAppearance=S?h:""}return{form:c,saveForm:C,resetForm:k,options:A,handleCheckboxChange:g}},{persist:{storage:Q()}}),ge={class:"space-y-3.5 mx-auto"},he={class:"flex items-center gap-2"},_e={class:"list-disc pl-5 text-[#767676]"},be={class:"text-lg lg:text-xl font-bold mt-16"},fe={key:0,class:"font-[500] my-8 text-lg text-[#1A1A1A]"},ve={key:0,class:"flex gap-[23px]"},xe={class:"py-6 flex justify-end gap-4"},Ae=K({__name:"pediatrics-examination",setup(x){const c=w(!1),{createCustomBreadcrumbs:A,setBreadcrumbs:C}=Y(),{selectedUser:k}=X(me()),g=Z(),h=M(()=>g.params.patientId??k.value?.user?.patient?.id??null),S=M(()=>[{to:"/emr/dashboard",label:"Home",order:0},{to:`/emr/${h.value}/pediatrics-examination`,label:"Medical Record",order:1}]),P=w(!1),u=w(!1),m=ye(),e=m.form,{generalAppearance:H}=ee(m.options),{user:T}=ae();te(()=>{T.value&&(e.attendingPhysician=T.value.name,e.dateOfDocumentation=new Date().toISOString().split("T")[0])});const O=[{id:1,title:"General Appearance",sections:[{fields:[{type:"generalAppearance",model:a(e,"generalAppearance")}]}]},{id:2,title:"Systemic Examination",sections:[{title:"Head and Neck",fields:[{type:"textarea",label:"Inspection of the head, face, and neck (fontanelles in infants, lymphadenopathy, cranial symmetry)",model:a(e,"inspection")},{type:"textarea",label:"Mouth and throat (oral hygiene, tonsils, teeth eruption)",model:a(e,"mouthAndThroat")},{type:"textarea",label:"Neck (thyroid enlargement, masses)",model:a(e,"neck")}]},{title:"Cardiovscular",fields:[{type:"textarea",label:"Heart sounds, murmurs, pulses, capillary refill time",model:a(e,"heartSounds")},{type:"textarea",label:"Peripheral circulation",model:a(e,"peripheralCir
1culation")}]},{title:"Respiratory",fields:[{type:"textarea",label:"Chest inspection (use of accessory muscles, chest shape)",model:a(e,"chestInspection")},{type:"textarea",label:"Palpation and auscultation (wheezing, crackles, breathing pattern)",model:a(e,"palpationAuscultation")}]},{title:"Abdomen",fields:[{type:"textarea",label:"Inspection (distention, scars)",model:a(e,"inspectionAbdomen")},{type:"textarea",label:"Palpation (tenderness, organomegaly, masses)",model:a(e,"palpationAbdomen")},{type:"textarea",label:"Percussion and auscultation (bowel sounds)",model:a(e,"percurssionAuscultation")}]},{title:"Musculoskeletal",fields:[{type:"textarea",label:"Joint range of motion, muscle strength",model:a(e,"jointRangeMotion")},{type:"textarea",label:"Spine (posture, scoliosis)",model:a(e,"spine")}]},{title:"Neurological",fields:[{type:"textarea",label:"Reflexes, coordination, motor and sensory function",model:a(e,"reflexesCoordination")},{type:"textarea",label:"Cranial nerve examination (for infants and older children)",model:a(e,"cranial_nerve_examination")}]},{title:"Skin",fields:[{type:"textarea",label:"Rash, lesions, birthmarks, bruising, signs of abuse",model:a(e,"rash_lesions_birthmarks")}]},{title:"Genitourinary",fields:[{type:"textarea",label:"External genitalia examination (if indicated)",model:a(e,"external_genitalia_examination")},{type:"textarea",label:"Urinary signs (e.g., wet diapers in infants, dysuria)",model:a(e,"urinarySigns")}]}]},{id:3,title:"Developmental Screening (if applicable)",sections:[{fields:[{type:"textarea",label:"Motor skills (gross and fine motor milestones)",model:a(e,"motorSkill")},{type:"textarea",label:"Cognitive development (problem-solving, memory)",model:a(e,"cognitiveDevelopment")},{type:"textarea",label:"Social and emotional development (interaction, attachment)",model:a(e,"social_and_emotional_development")}]}]},{id:4,title:"Diagnosis / Impression",sections:[{fields:[{key:"diagnosis",label:"Diagnosis",type:"diagnosis"},{key:"managementPlan",label:"Management Plan",type:"textarea",model:a(e,"managementPlan")}]}]},{id:5,title:"Laboratory Tests",sections:[{fields:[{key:"investigationName",label:"Laboratory Tests",type:"laboratory-tests"},{label:"Developmental screening tools (e.g., Ages & Stages Questionnaire, M-CHAT)",type:"textarea",model:a(e,"developmental_screening_tools")}]}]},{id:6,title:"Treatment Plan",sections:[{fields:[{key:"medications",label:"Medications",type:"medications"},{label:"Lifestyle and Care Recommendations (nutrition, sleep hygiene, activity levels)",type:"textarea",model:a(e,"lifestyle_care_recommendations")},{label:"Follow-up Plan (next visit, referral to specialists if needed)",type:"textarea",model:a(e,"followUpPlan")},{label:"Parent Education (disease process, medication administration, home care advice)",type:"textarea",model:a(e,"parentEducation")},{label:"Referral to other specialists",type:"textarea",model:a(e,"referral")}]}]},{id:7,title:"Healthcare Providerâs Signature and Stamp",sections:[{fields:[{key:"attendingPhysician",label:"Name and designation of the attending physician",placeholder:"Enter physician full name",type:"text",model:a(e,"attendingPhysician")},{label:"Date of Documentation",type:"date",model:a(e,"dateOfDocumentation"),disabled:!0}]}]}],{mutate:G}=pe(le),L=async()=>{const _={patient_id:h.value,general_appearance:e.generalAppearance,inspection_of_the_head_face_and_neck:e.inspection,mouth_and_throat:e.mouthAndThroat,neck:e.neck,heart_sounds_murmurs_pulses_capillary_refill_time:e.heartSounds,peripheral_circulation:e.peripheralCirculation,chest_inspection:e.chestInspection,palpation_and_auscultation:e.palpationAuscultation,inspection:e.inspectionAbdomen,palpation:e.palpationAbdomen,percussion_and_auscultation:e.percurssionAuscultation,joint_range_of_motion_muscle_strength:e.jointRangeMotion,spine:e.spine,reflexes_coordination_motor_and_sensory_function:e.reflexesCoordination,cranial_nerve_examination:e.cranial_nerve_examination,rash_lesions_birthmarks_bruising_signs_of_abuse:e.rash_lesions_birthmarks,external_genitalia_examination:e.external_genitalia_examination,urinary_signs:e.urinarySigns,motor_skills:e.motorSkill,speech_and_language_development:e.speech_and_language,cognitive_development:e.cognitiveDevelopment,social_and_emotional_development:e.social_and_emotional_development,diagnosis:e.diagnosis,management_plan:e.managementPlan,developmental_screening_tools:e.developmental_screening_tools,lifestyle_and_care_recommendations:e.lifestyle_care_recommendations,follow_up_plan:e.followUpPlan,parent_education:e.parentEducation,referral_to_other_specialists:e.referral,name_and_designation_of_the_attending_physician:e.attendingPhysician};try{if((await G({input:_}))?.queued){N({title:"Saved offline",description:"No connection - this note is saved on this device and will sync automatically once you're back online",color:"warning",icon:"i-lucide-wifi-off"});return}u.value=!0}catch{N({title:"Error",description:"Failed to create note",color:"error",icon:"i-heroicons-x-circle"}),u.value=!1}finally{P.value=!1,m.resetForm()}};return ne(()=>{const _=A(S.value,g.path);C(_)}),(_,i)=>{const $=ie,j=se,W=re;return o(),s(y,null,[r("div",ge,[r("div",he,[i[5]||(i[5]=r("h1",{class:"text-[#1A1A1A] text-[28px] leading-[100%] font-extrabold"},"Pediatrics",-1)),p(n(D),{type:"button",variant:"link",class:"!p-0 underline hover:no-underline font-medium text-xs shrink-0",onClick:i[0]||(i[0]=d=>c.value=!0)},{leading:I(()=>[p($,{name:"i-heroicons-information-circle",class:"w-5 h-5 shrink-0"})]),default:I(()=>[i[4]||(i[4]=E(" Info ",-1))]),_:1})]),i[7]||(i[7]=r("h1",{class:"text-primary font-[500] text-[24px] leading-[100%]"},[E(" Physical Examination "),r("span",{class:"text-lg text-[#1A1A1A]"},"(General Examination)")],-1)),r("form",null,[(o(),s(y,null,f(O,d=>r("div",{key:d.id,class:"space-y-6"},[r("ul",_e,[r("li",be,U(d.title),1)]),(o(!0),s(y,null,f(d.sections,b=>(o(),s("div",{key:b.title,class:"space-y-4"}
1,[b.title?(o(),s("p",fe,U(b.title),1)):R("",!0),(o(!0),s(y,null,f(b.fields,t=>(o(),s("div",{key:t.key||t.type,class:"space-y-6"},[t.type==="generalAppearance"?(o(),s("div",ve,[(o(!0),s(y,null,f(n(H),l=>(o(),s("div",{key:l.value},[p(j,{"model-value":n(e).generalAppearance===l.value,label:l.label,color:"primary","onUpdate:modelValue":q=>n(m).handleCheckboxChange(l.value,!!q)},null,8,["model-value","label","onUpdate:modelValue"])]))),128))])):t.type==="textarea"?(o(),v(n(ce),{key:1,"model-value":t.model?.value||"",label:t.label,rows:6,"show-voice-to-text":"","onUpdate:modelValue":l=>t.model.value=l},null,8,["model-value","label","onUpdate:modelValue"])):t.type==="text"?(o(),v(n(F),{key:2,"model-value":t.model?.value||"",placeholder:t.placeholder,type:t.type,label:t.label,disabled:"",class:"w-full","onUpdate:modelValue":l=>t.model.value=l},null,8,["model-value","placeholder","type","label","onUpdate:modelValue"])):t.type==="date"?(o(),v(n(F),{key:3,"model-value":t.model?.value||"",placeholder:t.placeholder,type:t.type,label:t.label,disabled:t.disabled,class:"w-full","onUpdate:modelValue":l=>t.model.value=l},null,8,["model-value","placeholder","type","label","disabled","onUpdate:modelValue"])):R("",!0),t.type==="diagnosis"?(o(),v(W,{key:4,modelValue:n(e).diagnosis,"onUpdate:modelValue":i[1]||(i[1]=l=>n(e).diagnosis=l),categories:n(m).options.icdCategories,"items-by-category":n(m).options.icdItemsByCategory,"show-selected-section":!0},null,8,["modelValue","categories","items-by-category"])):R("",!0)]))),128))]))),128))])),64)),r("div",xe,[p(n(D),{color:"primary",size:"lg",class:"px-6",disabled:n(P),loading:n(P),onClick:L},{default:I(()=>[...i[6]||(i[6]=[E(" Save ",-1)])]),_:1},8,["disabled","loading"])])]),p(n(oe),{"custom-modal":n(u),"onUpdate:customModal":i[2]||(i[2]=d=>V(u)?u.value=d:null),status:"success","cancel-text":"Close","hide-submit":!0,title:"Pediatrics Examination Note Saved!",description:"Pediatrics examination note created has been saved. Would you like to proceed to treatment plan?"},null,8,["custom-modal"])]),p(n(de),{open:n(c),"onUpdate:open":i[3]||(i[3]=d=>V(c)?c.value=d:null),title:"Physical Examination (General Examination)",overview:"The Physical Examination section allows clinicians to document the patient's general physical condition and key examination findings observed during the consultation. These findings support clinical assessment, diagnosis, and treatment planning.","what-you-can-do":["Record the patient's general appearance and level of consciousness.","Document vital signs such as temperature, pulse, blood pressure, respiratory rate, and oxygen saturation.","Assess nutritional status, hydration, and mobility.","Note abnormalities observed during the general examination.","Record relevant clinical findings to support diagnosis and ongoing care."],"why-it-matters":"A well-documented physical examination provides objective clinical evidence, supports accurate diagnosis, monitors changes in a patient's condition, and ensures continuity of care across healthcare providers.","helpful-tip":"Record only findings observed during the examination. If a body system was not examined or has no significant findings, document it appropriately according to your facility's clinical documentation standards."},null,8,["open"])],64)}}}),$e=ue(Ae,[["__scopeId","data-v-8256709e"]]);export{$e 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.