We are using a field PrescriptionGUID, obtained from NewCrop, to check if the prescription pulled from NewCrop already exist in OpenEMR and decide whether to perform updation or insertion to OpenEMR. But in NewCrop, while editing a prescription, the PrescriptionGUID changes each time it is saved. To solve the issue, we have another field OriginalPrescriptionGUID, which is set when the prescription is created for the first time and remains the same even after editing. We can use this field OriginalPrescriptionGUID to check the existence of a prescription, pulled from NewCrop, in OpenEMR.
Signed-off-by: vinish <vinish@zhservices.com>