This commit adds function setGpRelByName to make calls more readable. Mapping array includes multiple common names for same table.
setGpRelByName("documents", $newid, "pnotes", $noteid);
Current setGpRelation calls are not affected.
Also added a placeholder for procedure_orders since a single encounter can (and in many cases does have) multiple orders. Relation (1->9) provides accurate capture of order specific information.
Rev 1 based on comments.
Added some comments to Rev 1.
Rev 2 & Rev 3 incorporate changes based on comments.
Sorry. Need to figure steps for squashing the 4 commits.
Note also my comment on Rev 1 line 36. Pretty sure that's a bug.
To squash the last 4 commits to 1, do this:
git rebase -i HEAD~4
You'll need to edit the metadata as indicated. Also that will keep you from pushing the same branch again to github, so you'll need to either delete the current one there or make a new one.
The developer had changed line 36 after Rev 1. So Rev 2 commit fixed line 36 from
to