607 B
607 B
<%* const fm = tp.frontmatter; const created = fm.created || tp.file.creation_date("YYYY-MM-DD[T]HH:mm:ss");
let title = fm.title if (!title){ title = await tp.system.prompt("Enter name"); }
let first = fm.first if (!first){ first = await tp.system.prompt("Enter fist date", String(created).substring(0,10)); }
datePart = String(first).substring(0,10);
await tp.file.rename(${title} ${datePart});
-%>
created: <% created %> category:
- "People" type:
- "Patients" title: <% title %> first: <% first %> location:
- "Harplands Hospital Ward 1" memory-trigger: archived: false