Evening everyone,
Wondering if anyone has a solution to this problem. I’m looking to generate medication instructions for patients before procedures, using their medication list as the reference. These are manually reviewed but having them flagged and default instruction sentences to follow would be supremely helpful. I can get the med list into the system clipboard easily as a starting point. As a disclaimer, none of my example statements below should be followed or taken as medical advice.
Goal (all non-case sensitive):
1/ Analyze a text selection in the system clipboard
2/ Find any matches (regardless of case) to a hard coded reference list (easily user modifiable)
3/ Report matches by typing them each on their own separate line in caps, with a line between
4/ Allow for assigning of a trailing phrase at the end of the reported words
I remember figuring out how to do something like this in Excel (using a cell reference rather than system clipboard), but have no idea how to implement in KM. I provided a few possible text formats.
Example:
Text to be analyzed (Format A):
Tylenol
Advil
Clopidogrel
Apixaban
Metformin
Text to be analyzed (Format B):
Tylenol, Advil, Clopidogrel, Apixaban, Metformin
Text to be analyzed (Format C):
Tylenol; Advil; Clopidogrel; Apixaban; Metformin
Reference list / Reference phrase (Note this will be MUCH longer in actual use, probably a few hundred hard coded drug names, and sentences after. A lot of these sentences will be repetitive, so these could be given a separate reference list).
APIXABAN / Do not take this on the day of the procedure, or the two days before
RIVAROXABAN / Do not take this on the day of the procedure, or the two days before
WARFARIN / Do not take this on the day of the procedure, or the five days before
CLOPIDOGREL / Do not take this on the day of the procedure, or the five days before
PLAVIX / Do not take this on the day of the procedure, or the five days before
METFORMIN / Do not take this on the morning of the procedure
Result:
CLOPIDOGREL - Do not take this on the day of the procedure, or the five days before
APIXABAN - Do not take this on the day of the procedure, or the two days before
METFORMIN – Do not take this on the morning of the procedure