• warning: DOMXPath::query(): Invalid expression in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/stylesheet.cls.php on line 573.
  • warning: DOMXPath::query(): Invalid expression in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/stylesheet.cls.php on line 573.
  • warning: Invalid argument supplied for foreach() in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/stylesheet.cls.php on line 575.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_cache.cls.php on line 113.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_cache.cls.php on line 113.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_cache.cls.php on line 113.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_cache.cls.php on line 113.
  • warning: getimagesize(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_frame_reflower.cls.php on line 70.
  • warning: getimagesize(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_frame_reflower.cls.php on line 70.
  • warning: getimagesize(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_frame_reflower.cls.php on line 70.
  • warning: getimagesize(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/image_frame_reflower.cls.php on line 70.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/class.pdf.php on line 4334.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/class.pdf.php on line 4334.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/class.pdf.php on line 4334.
  • warning: file_get_contents(/var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/res/broken_image.png): failed to open stream: No such file or directory in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/lib/class.pdf.php on line 4334.

Class Description

ImportFeedAction imports a feed based on the parameters sent in the request.

  • It opens a connection to the server it’s importing the files from and downloads the rss file and then checks when the patient was last updated, checking if the last_modified field in patient_status for each patient is equal to pubDate value in rss file.
  • Downloads the patient xml files for the patients that were recently updated.

XmlUtils.importPatientRecord imports the patient record.

PatientDAO.updateImportData updates the patient metadata if the import or update was successful.

  • Check for duplicate zeprs id’s (patient.district_id).. If duplicate, updatePatientRecord
    • updateEncounterValues - Loops through patient.getEncounterRecordChanges and processes all of the changes to the patient record.
  • If new patient:
    • Insert new record in patient table
    • Save Patient Registration encounter.
    • Create the entry in patient_status table
    • Be aware that the process of importing a mother differs slightly from importing a child.
    • Loop through each pregnancy and insert all encounters via PopulatePatientRecord.importForm.
    • Loop through the outcomes and insert new outcomes This also inserts any comments attached to each outcome.
    • Loop through the problems and insert new problems. This also inserts any comments attached to each problem.
    • Import the Partograph
    • Update patient_status table.

UpdateLogDAO.save logs the update.