NB: At any point, clicking on <Find Patient> (cmdClose,
#16 of blueprint) will close this form and return the user to the browser front end.
Form_Open, line 513, p. 10 of module) [EncID
and MRUN fields are set to empty, non-NULL values. All boxes are hidden except for the
prompt and the box for the unit number and date at top.]
MRUN_BeforeUpdate (line 532, p. 10) procedure, which calls CheckDemographics
procedure (line 16, p. 1 of module). If a patient is found, demographics are shown, age is
calculated, and a new prompt is shown to determine if we have the correct patient. In
addition, the program opens a recordset to run the SortForms query to find the
first form whose maximum age is greater than the patient's age. This will be used to
generate the default form in the cboForm box. It does this by stuffing the query
results into a module-global variable called PatientFormName.
cmdYes_Click, line 300, p. 6 of module) will show the bottom
set of boxes, stuff the PatientFormName variable into the cboForm
picklist box (#6 on blueprint), and prompt for entry of measurement information.
<Print Form>
button (cmdPrint, #12 on blueprint). At that point, the Sub cmdPrint_Click
procedure starts (line 232, p. 5 of module). cmdPrint_Click activates the CreateNewEncounter function (line
452, p. 9 of module), which generates a new encounter record in the Encounter table. It
then reads the EncID value which is generated by the Encounter table and stuffs it in the
invisible [EncID] field. cmdPrint_Click then activates the CreateMeasEvt function (line
337, p. 7), which creates all appropriate measurement events in association with this
EncID. (Records are all written with the abstracted RecordMeasurement
function (line 567, p. 11.) cmdPrint_Click then stuffs some demographic information into global
variables to pass on to the growth chart. Header1_Format procedure, and
format the growth chart using the Detail_Format procedure.