$$PATITER |
Creates an iterator of patients in the specified
registry.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
IDESC |
Both |
A local variable, passed in by reference, where the
iterator descriptor will be created and returned.
|
REGNAME |
Input |
Registry Name.
|
MODE |
Input |
Bit flag to determine iteration mode, where 1 =
Active patients or 2 = Inactive patients (default = both active and inactive
if null).
|
RESULT |
Output |
RESULT=$$PATITER^RORAPI01(.IDESC,REGNAME,MODE) where
RESULT is 0 if the iterator was successfully created, or <0 if an error
occurred.
|
|
$$NEXTPAT |
Returns the next patient in the registry.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
IDESC |
Both |
Reference to the patient iterator descriptor created
by $$PATITER.
|
RESULT |
Output |
RESULT=$$NEXTPAT^RORAPI01(.IDESC) where RESULT is
PatientIEN^InactiveDate, or "" if there are no more patients or <0 if an error
occurred.
|
|
$$REGITER |
Creates an iterator of the patient registries.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
IDESC |
Both |
A local variable, passed in by reference, where the
iterator descriptor will be created and returned.
|
PATIEN |
Input |
Patient IEN
|
MODE |
Input |
Bit flag to determine iteration mode, where 1 =
Active patients or 2 = Inactive patients (default = both active and inactive
if null)
|
RESULT |
Output |
RESULT=$$REGITER^RORAPI01(.IDESC,PATIEN,MODE) where
RESULT is 0 if the iterator was successfully created, or <0 if an error
occurred.
|
|
$$NEXTREG |
Returns the next registry for the patient.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
IDESC |
Both |
Reference to the patient iterator descriptor created
by $$REGITER.
|
RESULT |
Output |
RESULT=$$NEXTREG^RORAPI01(.IDESC) where RESULT is
RegistryIEN^Inactive Date, or "" if there are no more registries for the
patient or <0 if an error occurred.
|
|