- What if we:
- forget about tables and html
- use directly Logseq’s outliner
- Steps:
- Setup Synthesis
- Paste the following markdown
- - Age: {{cell 1 years}} - Weight: {{cell weight from (Age) ) as kg}} - Energy: {{cell 4 * (Weight) ) as J}} - Tube - Internal Diameter: {{cell (Age) / 4 + 4 ) as cm}} - Length - oral: {{cell (Age) / 2 + 12 ) as cm}} - nasal: {{cell (Age) / 2 + 15 ) as cm}} - Fluids - Medical: {{cell 20 * (Weight) ) as mls}} - Trauma: {{cell 10 * (Weight) ) as mls}} - Lorazepam: {{cell 0.1 * (Weight) ) as mg}} - Adrenaline: {{cell 0.1 * (Weight) / 1 ) as mls}} - Glucose: {{cell 2 * (Weight) ) as mls}} - - Code collapsed:: true - some num some word: that num as that word - weight from some input-years: age= value of that input; age-1 - age-1: if (?age < 1.5) then (0.5 * ?age + 4) else age-2 - age-2: if (?age < 5.5) then (2 * ?age + 8) else age-3 - age-3: if (?age < 13.5 ) then (3 * ?age + 7) else age-4 - age-4: if (?age < 16.5) then (4 * ?age + 2) else 70 -
- Get live cell-blocks:
2 Likes