ID: #2593 Cannot Assign Documents to Patient Charts in Doc Previewer
https://sourceforge.net/p/oscarmcmaster/bugs/2593/
ID: 3509465 - Auto Archive Previous Medication on RePrescribe.

Some changes to review:
I moved the logging for "prescribe", until the script is written since
even though the action is the user clicking on ReRx the drug is not
represcribed until the script is written. So if a user accidentally
clicks on ReRx or changes their mind we are still logging that the
script as “represcribe”.

Now when a drug is represcribed you will see in the log that the
medication and drugid was represcribed by a provider, the medication was
discontinued by the system and a new script was added by the provider.

The auto archive will happen when a user clicks on the ReRx link,
RePrescribe button and the RePrescribe Longterm Meds link from the
prescriptions module as well as the long term med feature from the
medication box on the encounter. But on all not until the save or save &
print buttons are selected.

For more description please review:

https://sourceforge.net/tracker/?func=detail&aid=3509465&group_id=66701&atid=515435

There are some images here as well to review.

Change-Id: Idde6b9c770facaf248aa5a1b077019e4e9f89f6b
2947 HRM error with DOCUMENT_DIR not being read
#2917 - Billing Invoice displays message “Document expired”
ID:#2924 Billing Numbers that are Less than Six Digits Break Billing Generation

https://sourceforge.net/p/oscarmcmaster/bugs/2924/
Merge "ID: 3509465 - Auto Archive Previous Medication on RePrescribe." into RELEASE_12_1
#2956 BC Billing - Historical diagnostic codes are not listed in reverse chronological order
Merge "ID: #2593 Cannot Assign Documents to Patient Charts in Doc Previewer https://sourceforge.net/p/oscarmcmaster/bugs/2593/" into RELEASE_12_1
Merge "2947 HRM error with DOCUMENT_DIR not being read" into RELEASE_12_1
Merge "#2917 - Billing Invoice displays message “Document expired” " into RELEASE_12_1
Merge "ID:#2924 Billing Numbers that are Less than Six Digits Break Billing Generation" into RELEASE_12_1
Merge "#2956 BC Billing - Historical diagnostic codes are not listed in reverse chronological order" into RELEASE_12_1