Supports Inserting the Reference Command into Any Note

The reference command (used to add lab results from the diagnostic theater to the note) will now follow the same command insertion logic as other commands. This will allow users to better specify which note the results should be added to.