From 7885b14165518cac2a9742f2d45285328d27114f Mon Sep 17 00:00:00 2001 From: cfapress Date: Mon, 5 May 2008 16:00:40 +0000 Subject: [PATCH] changed insert-into back to replace-into --- library/patient.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/patient.inc b/library/patient.inc index 5ef17731c..fc7f087cc 100644 --- a/library/patient.inc +++ b/library/patient.inc @@ -507,9 +507,7 @@ function newPatientData( $db_id="", "list_id = 'pricelevel' ORDER BY is_default DESC, seq ASC LIMIT 1"); $pricelevel = empty($lrow['option_id']) ? '' : $lrow['option_id']; - // this was a 'replace into' statement but that would overwrite data - // seems like a HIPAA violation of some sort to me -- JRM Apr 2008 - $query = ("insert into patient_data set + $query = ("replace into patient_data set id='$db_id', title='$title', fname='$fname', -- 2.11.4.GIT