[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] find gnumed demographics in oscar, then inserts in oscar

From: Syan Tan
Subject: [Gnumed-devel] find gnumed demographics in oscar, then inserts in oscar
Date: Mon, 03 Jul 2006 18:51:53 +0800

this is patch (context) diff of the oscar cvs tree that has will insert a gnumed demographic view,

if the demographic_no key value which is pk_identity, isn't in the oscar demographic data.

there's a lot of checking for null values, for it to work;

it works by adding extra parameters to the _javascript_ addName() function in demographicsearch2apptresults.jsp

and this function sets the form's action url so it holds the retrieved row values as request parameters.

then , when page control returns to addappointment.jsp, the jsp script detects demographic_no request parameter

isn't null, so some extra queries are used to check if the demographic exists, and if it doesn't, then an

insert is done , which overrides all the null default values in fields where there is no data.

one single null value, can cause a null pointer exception later in appointmentproviderday.jsp, and truncate

the appointment columns.

The oscar appointment's gui is really quite adequate, wouldn't want to bother coding another one.



Attachment: oscarpostinsertdemogjun06.diff
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]