PageSourceSearch

https://medrechner.com/assets/Saps2Calculator.js

js medrechner.com collected 2026-09-25 05:56:17 UTC 7,274 bytes, 1 lines download raw bytes

1import{u as re,r as t,j as e,C as B,L as l,e as a,S as H,h as T,i as G,k as O,l as n,A as ne,$ as ce,b as oe,m as de}from"./index.js";import{D as he}from"./DocumentationHelper.js";const xe=()=>{const{addToHistory:R}=re(),[x,E]=t.useState(""),[p,K]=t.useState(""),[j,U]=t.useState(""),[g,$]=t.useState(""),[A,J]=t.useState(""),[P,W]=t.useState(""),[z,q]=t.useState(""),[M,Q]=t.useState(""),[V,X]=t.useState(""),[k,Y]=t.useState(""),[w,Z]=t.useState(""),[L,_]=t.useState(""),[f,ee]=t.useState(""),[o,se]=t.useState(""),[d,te]=t.useState(""),le=()=>{let s=0;const i=parseFloat(x),r=parseFloat(p),u=parseFloat(j),D=parseFloat(g),m=parseFloat(A),v=parseFloat(P),S=parseFloat(z),N=parseFloat(M),y=parseFloat(V),F=parseFloat(k),C=parseFloat(w),I=parseFloat(L),c=parseFloat(f);return isNaN(i)||(i<40?s+=0:i<60?s+=7:i<70?s+=12:i<75?s+=15:i<80?s+=16:s+=18),isNaN(r)||(r<40?s+=11:r<70?s+=2:r<120?s+=0:r<160?s+=4:s+=7),isNaN(u)||(u<70?s+=13:u<100?s+=5:u<200?s+=0:s+=2),isNaN(D)||(D<39?s+=0:s+=3),!isNaN(m)&&m>0&&(m<100?s+=11:m<200?s+=9:s+=6),isNaN(v)||(v<.5?s+=11:v<1?s+=4:s+=0),isNaN(S)||(S<28?s+=0:S<84?s+=6:s+=10),isNaN(N)||(N<1?s+=12:N<20?s+=0:s+=3),isNaN(y)||(y<3?s+=3:y<5?s+=0:s+=3),isNaN(F)||(F<125?s+=5:F<145?s+=0:s+=1),isNaN(C)||(C<15?s+=6:C<20?s+=3:s+=0),isNaN(I)||(I<4?s+=0:I<6?s+=4:s+=9),isNaN(c)||(c<6?s+=26:c<9?s+=13:c<11?s+=7:c<14?s+=5:s+=0),o==="metastatic"?s+=9:o==="hematologic"?s+=10:o==="aids"&&(s+=17),d==="scheduled"?s+=0:d==="medical"?s+=6:d==="unscheduled"&&(s+=8),s},ae=s=>{const i=-7.7631+.0737*s+.9971*Math.log(s+1),r=Math.exp(i)/(1+Math.exp(i));return Math.round(r*1e3)/10},h=le(),b=ae(h),ie=()=>{R({calculatorId:"saps2",calculatorName:"SAPS-II-Score",result:`${h} Punkte (${b}% Mortalität)`,inputs:{age:x,heartRate:p,systolicBP:j,temperature:g,gcs:f}})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs(B,{className:"p-6 bg-card border-border",children:[e.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Über SAPS II"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Der Simplified Acute Physiology Score II (SAPS II) wurde 1993 von Le Gall et al. entwickelt und dient der Mortalitätsabschätzung auf Intensivstationen. Er verwendet die schlechtesten Werte der ersten 24 Stunden nach ICU-Aufnahme."})]}),e.jsxs(B,{className:"p-6 bg-card border-border",children:[e.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Patientendaten"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(l,{htmlFor:"age",children:"Alter (Jahre)"}),e.jsx(a,{id:"age",type:"number",value:x,onChange:s=>E(s.target.value),placeholder:"z.B. 65"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"gcs",children:"Glasgow Coma Scale (3-15)"}),e.jsx(a,{id:"gcs",type:"number",min:"3",max:"15",value:f,onChange:s=>ee(s.target.value),placeholder:"z.B. 15"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"heartRate",children:"Herzfrequenz (/min)"}),e.jsx(a,{id:"heartRate",type:"number",value:p,onChange:s=>K(s.target.value),placeholder:"z.B. 80"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"systolicBP",children:"Systolischer BD (mmHg)"}),e.jsx(a,{id:"systolicBP",type:"number",value:j,onChange:s=>U(s.target.value),placeholder:"z.B. 120"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"temperature",children:"Temperatur (°C)"}),e.jsx(a,{id:"temperature",type:"number",step:"0.1",value:g,onChange:s=>$(s.target.value),placeholder:"z.B. 37.5"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"pao2fio2",children:"PaO₂/FiO₂ (wenn beatmet)"}),e.jsx(a,{id:"pao2fio2",type:"number",value:A,onChange:s=>J(s.target.value),placeholder:"z.B. 300"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"urineOutput",children:"Urinausscheidung (L/24h)"}),e.jsx(a,{id:"urineOutput",type:"number",step:"0.1",value:P,onChange:s=>W(s.target.value),placeholder:"z.B. 1.5"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"bun",children:"Harnstoff-N (mg/dL)"}),e.jsx(a,{id:"bun",type:"number",value:z,onChange:s=>q(s.target.value),placeholder:"z.B. 20"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"wbc",children:"Leukozyten (×10³/µL)"}),e.jsx(a,{id:"wbc",type:"number",step:"0.1",value:M,onChange:s=>Q(s.target.value),placeholder:"z.B. 8"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"potassium",children:"Kalium (mmol/L)"}),e.jsx(a,{id:"potassium",type:"number",step:"0.1",value:V,onChange:s=>X(s.target.value),placeholder:"z.B. 4.0"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"sodium",children:"Natrium (mmol/L)"}),e.jsx(a,{id:"sodium",type:"number",value:k,onChange:s=>Y(s.target.value),placeholder:"z.B. 140"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"bicarbonate",children:"Bikarbonat (mmol/L)"}),e.jsx(a,{id:"bicarbonate",type:"number",value:w,onChange:s=>Z(s.target.value),placeholder:"z.B. 24"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"bilirubin",children:"Bilirubin (mg/dL)"}),e.jsx(a,{id:"bilirubin",type:"number",step:"0.1",value:L,onChange:s=>_(s.target.value),placeholder:"z.B. 1.0"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"chronicDisease",children:"Chronische Erkrankung"}),e.jsxs(H,{value:o,onValueChange:se,children:[e.jsx(T,{children:e.jsx(G,{placeholder:"Auswählen"})}),e.jsxs(O,{children:[e.jsx(n,{value:"none",children:"Keine"}),e.jsx(n,{value:"metastatic",children:"Metastasiertes Karzinom"}),e.jsx(n,{value:"hematologic",children:"Hämatologische Malignität"}),e.jsx(n,{value:"aids",children:"AIDS"})]})]})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"admissionType",children:"Aufnahmeart"}),e.jsxs(H,{value:d,onValueChange:te,children:[e.jsx(T,{children:e.jsx(G,{placeholder:"Auswählen"})}),e.jsxs(O,{children:[e.jsx(n,{value:"scheduled",children:"Geplant chirurgisch"}),e.jsx(n,{value:"medical",children:"Medizinisch"}),e.jsx(n,{value:"unscheduled",children:"Ungeplant chirurgisch"})]})]})]})]})]}),e.jsx(B,{className:"p-6 bg-medical-gradient text-primary-foreground",children:e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-sm opacity-90 mb-2",children:"SAPS II Score"}),e.jsx("p",{className:"text-5xl font-bold mb-2",children:h}),e.jsxs("p",{className:"text-lg",children:["Geschätzte Mortalität: ",b,"%"]})]})}),e.jsxs(ne,{children:[e.jsx(ce,{className:"text-lg font-semibold",children:"Interpretation"}),e.jsxs(oe,{className:"mt-2 space-y-2",children:[e.jsx("p",{children:"Der SAPS II Score korreliert mit der Krankenhausmortalität auf Intensivstationen."}),e.jsxs("div",{className:"mt-3 text-sm space-y-1",children:[e.jsx("p",{children:e.jsx("strong",{children:"Orientierungswerte:"})}),e.jsxs("ul",{className:"list-disc list-inside",children:[e.jsx("li",{children:"0-29 Punkte: Niedrige Mortalität (<10%)"}),e.jsx("li",{children:"30-39 Punkte: Moderate Mortalität (10-25%)"}),e.jsx("li",{children:"40-59 Punkte: Erhöhte Mortalität (25-50%)"}),e.jsx("li",{children:"60-79 Punkte: Hohe Mortalität (50-75%)"}
1),e.jsx("li",{children:"≥80 Punkte: Sehr hohe Mortalität (>75%)"})]})]}),e.jsx("p",{className:"text-xs mt-3 opacity-75",children:"Quelle: Le Gall JR, et al. JAMA. 1993;270(24):2957-2963"})]})]}),e.jsx(he,{scoreName:"SAPS II",scoreValue:h,riskCategory:`${b}% Mortalität`,guideline:"SAPS II (Le Gall 1993)"}),e.jsx(de,{onClick:ie,className:"w-full",children:"Im Verlauf speichern"})]})};export{xe as Saps2Calculator};

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.