Yes the function is sending push notifications to the user’s device using Apple Push Notification Server(APNS).
You can rename the current one to ‘Enable mobile device REST API server’. For the push notification control setting, we will add a global named ‘Enable Apple Push Notification Service’.
To keep things organized on the review end created a wiki page here. This is where I plan to place the review (I’ll let you know when and where I add something to it): http://www.open-emr.org/wiki/index.php/Medmasterpro_API_Review
(more than 100 scripts/functions, wow )
Hoping to begin reviewing it this week,
-brady OpenEMR
Got through 14 of 100 scripts. Gonna take awhile (on order of months), so I suggest starting to address the things I am bringing up as we go. Recommend using the wiki for discussion/questions/issues and to keep track of issues that have been addressed. If don’t have a wiki account yet, then request it here: http://www.open-emr.org/wiki/index.php/Special:RequestAccount
Thanks for review the code. We have checked your feedback on wiki and made changes in the code as you asked. We’ve posted comments on discussion page of wiki. Please review the changes and share your thoughts.
Sorry for the delay. Plan to look through it over the weekend; will hopefully have a create_document function ready by then that you can use in your functions that create patient documents. Also, rather than placing your review responses on a separate wiki page, place/integrate them into the original review comments (this way it will be much easier to communicate back and forth regarding issues etc.): http://www.open-emr.org/wiki/index.php/Medmasterpro_API_Review
Thank you to share your plan. We’d like to hear you on create_document() function and place our response/comments on the same wiki page for upcoming issues.
Thanks for being patient; committed the addNewDocument() function to the official codebase and began reviewing your new changes last weekend and integrated your review responses into the the original wiki page(for now on, use this page for the ongoing review). At this point , no feedback yet since just beginning to look through it. Will plan to do much more code reviewing over the next week.
Thanks for update on addNewDocument() function. We’ll try to use it where needed. Thank you for reviewing changes/issues and your feedback on wiki page. We’ve already used same wiki page for our response on one issue. We’ve removed $_SESSION[‘authGroup’] variable from rest of API’s and set session variables as set in library/auth.inc script where required. Please review these change as per your plan.
Check out the Review wiki page for some more comments (note that scripts that contain only COMPLETED are basically done with the review, while those with ACTIVE are still ongoing). Hopefully things are clear. Once these scripts are more solid (ie. get some of the fundamentals like creating documents and setting the session variables correctly), then will plan to push ahead and start going through the other scripts. Also plan to modularize things as we go, if can be done (one example of this that I have just done and committed to the codebase is the frontPayment() function; see review wiki page for details).
If you have responses to my responses on the wiki page, then make another MEDMASTERPRO RESPONSE section following mine(REVIEWER RESPONSE). I’ll be responsible for tracking/adding/modifying the action items with COMPLETED or ACTIVE.
We have made changes in the code as per REVIEWER RESPONSE on wiki page and committed changes to repo. We’ve added MEDMASTERPRO RESPONSE under REVIEWER RESPONSE as you asked in your last comments.
Please review the changes and share your thoughts.
This is going to be a bit slow going for next month or so as majority of my resources will be going towards the next OpenEMR release. I am still a bit confused on the documents issue. It looks like you do have the mimetype, size, and filename coming through as parameters which you are inserting into the documents table entry. Why can’t you feed these into the following function:
I’m getting some issue while accessing the API
When I’m not logged in into the openEmr admin the API responds with “Site ID is missing from session data!”.
Do you have any solution to it, I’ve tried setting $_GET[‘site’] to ‘default’ in globals.php file to but this just opens the full site in the browser instead of API response.