I'm trying to find out if there is a supported or suggested method of using citations within a flow diagram. By citations I mean a reference to a published article.
Here is an 'example' flow diagram like I might want to create. I'm abusing the "Class" to do it but I think it works for me! I'm expecting to have several pages of much more complex diagrams with numerous references to published works. They could be links, but links wont work in a "paper" version.
This will likely be joined together in markup or something similar so the 'References' may well simply be to the end of the document rather than a note in the UML.
Here is an example of what I'm thinking it *might* look like:
https://liveuml.com/view/5dd90899663178088afee793
title World Health Organisation Pain Ladder\n
class "Step 1" << (1,green) >> {
Treat with simple
analgesics first
..
+ Paracetamol
+ Ibuprofen
}
class "Step 2" << (2,orange) >> {
Treat with weak
opiates [@PrescrireInt2004]
..
# [[http://bnf.org?search=codeine Codeine]]
# [[http://bnf.org?search=dihydrocodeine Dihydrocodeine]]
- [[http://bnf.org?search=tramadol Tramadol]]
}
class "Step 3" << (3,red) >>{
Treat with strong
opiates
..
- Morphine
- Fentanyl
}
"Step 1" --|> "Step 2" : uncontrolled\npain
"Step 2" --|> "Step 3" : uncontrolled\npain
class "Key" << (-,black) >> {
+ Available over the counter from pharmacy
# Available only on prescription
- Controlled drug
}
note as References
@PrescrireInt2004
Which obviously actually gives this:
But I'd rather have something like this:
i.e. replace the [@...] with a superscript number and then insert the full reference in the reference box. It can possibly be done using a citation manager in the whole document before generating the diagram from the code but looking for the 'best' way to do it.
Also curious if its even possible to insert superscript numbers as couldn't find it and had to cheat a bit to generate my example.