EnrollPatient

Enrolls a patient in the current study.

Syntax

short int EnrollPatient(double pat_pos_id,
    PatientRecord *pat_rec);

Parameters

pat_pos_id (in) The PATIENT_POSITION_ID for the patient you want to enroll. This parameter is the unique identifier in the database.

pat_rec (in) A structure of type PatientRecord.

Return Value

SUCCESS or FAILURE or WARNING.

Comments

This function performs a database commit.

Error Messages

Table 7-7 Error Messages for EnrollPatient

Number Severity Message

285000

ERR

Function called out of sequence.

285900

ERR

No current OCL database connection open. Use ConnectOCL to connect to OCL database.

288900

ERR

Cannot enroll a patient when RDCI is locked.

297000

ERR

Null or invalid input pointers provided.

302400

WRN

Zero rows being updated

303600

ERR

Invalid patient.

304800

ERR

User is not authorized to call this function.

Related Functions

None.