Added bookmark and past used in /calculators

This commit is contained in:
2026-04-02 13:17:36 +05:30
parent f6b0f12762
commit f8d0f5fd79
7 changed files with 173 additions and 15 deletions

View File

@@ -48,7 +48,7 @@ const parameters:Input[] = [
export const TIMI:Calculator = {
id:"timi-score",
name:"Thrombolysis in Myocardial Infarction (TIMI) Score for UA and NSTEMI",
name:"Thrombolysis in Myocardial Infarction (TIMI) Score",
desc:"TIMI (Thrombolysis in Myocardial Infarction) Score is a validated, 7-point clinical tool used to predict the 14-day mortality and ischemic events in patients with unstable angina or NSTEMI",
inputs:parameters,
calc_func:(values : Values):number => {

View File

@@ -39,5 +39,15 @@ export interface Section {
svg:string,
calculators:Calculator[]
}
export interface pastUsed {
calcInfo : {
section: string,
id: string,
name: string
},
value: string | number,
interpretation: Interpretation,
formData: object,
unit: string | undefined
}
export type Values = Record<string, string | number | boolean >;