User talk:MedMaster

From OpenEMR Project Wiki

Welcome to OpenEMR Project Wiki! We hope you will contribute much and well. You will probably want to read the help pages. Again, welcome and have fun! Bradymiller 05:23, 20 March 2013 (UTC)

Global Issues

  • Changed the 'push_notification' global to 'device_push_notification_service'
  • Sample post data to add prescription:
    • token=63e4314441bb9bc7a417344a2ad52067&patientId=5&visit_id=280&startDate=2013-04-03&drug=Abraxane&dosage=one&quantity=1&provider_id=60&refill=01&medication=&note=Test notes.

functions.php

  • Wrapped add_escape_custom($userId) in the 2nd query of createToken() function with single quotes.
  • Applied binding in query of validateToken() function.
  • Removed getUserData() function.

addappointment.php

  • We don't need to check 'device_push_notification_service' on this page because it is applied in notification() function in functions.php script.
  • Removed query and use InsertEvent() function to add appointments.
  • Removed getUserData() function.
  • Removed $_SESSION['authGroup'] variable because we are not using it anymore.
  • Use the InsertEvent() function to create the appointment.

addcheckout.php

  • Set $_SESSION['authUser'] variable as set in library/auth.inc script.
  • Modified code as per changes made in checkout process of OpenEMR 4.1.1.

addcontactgeneral.php

  • Removed $_SESSION['authGroup'] variable.

addfacility.php

  • Removed $_SESSION['authGroup'] variable.
  • Removed duplicate getUsername($userId) function.

addfeesheet.php

  • Set $_SESSION['authProvider'] and $_SESSION['authId'] variables as set in library/auth.inc script.

addinsurancecompany.php

  • Removed $_SESSION['authGroup'] variable.

addlist.php

  • Removed $_SESSION['authGroup'] variable.
  • Add 'modifydate' column in insert query and set to NOW().

addonotes.php

  • Set $_SESSION['authUser'] variable as set in library/auth.inc script.

addpatientdocument.php

  • Removed $_SESSION['authGroup'] variable.
  • We can't use document class in api because we got data in base64_encoded format and then we decoded and create document.
  • We don't need to check 'device_push_notification_service' on this page because it is applied in notification() function in functions.php script.
    • Created new getIdByDocumentCatName() function in functions.php script and use name of the folder instead of hard-code 2.

addpatientdocumentwithlink.php

  • This is not same as addpatientdocument.php. In addpatientdocument.php file, we get base64_encoded data and in this file we get link/url of file.
  • Removed $_SESSION['authGroup'] variable.
  • We can't use document class in api because we got data in base64_encoded format and then we decoded and create document.
  • We don't need to check 'device_push_notification_service' on this page because it is applied in notification() function in functions.php script.
    • Created new getIdByDocumentCatName() function in functions.php script and use name of the folder instead of hard-code 2.

addpatientnotes.php

  • Removed $_SESSION['authGroup'] variable.
  • Used addPnote() function in library pnotes.inc script to add note.

addpatient.php

  • Removed $_SESSION['authGroup'] variable.
  • Added patient photo in 'Patient Photograph' document category.
  • We don't insert new category for patient photo.
  • We can't use document class in api because we got data in base64_encoded format and then we decoded and create document.

addpayment.php

  • Removed $_SESSION['authGroup'] variable.
  • Modified code to add copay in ar_activity and ar_session tables.