patients.patientsRepo Class
Defined in:
Module: patients
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/patients/patientsRepo.js:6
Item Index
Methods
addUserPortalAccess
(
Undefined
-
options
Parameters:
-
optionsObjectSet of arguments
Returns:
Undefined:
destructor
()
Undefined
Calls all the destructor functions in patient.destructors
Returns:
Undefined:
fire
(
Undefined
-
name -
params
Parameters:
-
nameStringThe name of the event
-
paramsObjectOptional parameters
Returns:
Undefined:
getAge
()
String
Returns:
String:
The patients age as xx y.o. or xx m.o.
getLinkedPatients
(
Undefined
-
callback
Parameters:
-
callbackFunctionFunction to call when complete
Returns:
Undefined:
getName
()
String
Returns:
String:
The patient's name
init
()
Undefined
Calls all the initializer functions in patient.initializers
Returns:
Undefined:
olderThan
(
Boolean
-
years
Parameters:
-
yearsIntegerNumber of years old to test
Returns:
Boolean:
true if older than years old, false otherwise
youngerThan
(
Boolean
-
years
Parameters:
-
yearsIntegerNumber of years old to test
Returns:
Boolean:
true if younger than years old, false otherwise