Метод |
Описание |
|
__get ( string $prop ) : mixed | null |
I think this override is here to enforce the override of the medications relation
and merge in the prescription items as appropriate. |
|
__isset ( string $prop ) : boolean |
I think this override is here to enforce the override of the medications relation
and merge in the prescription items as appropriate. |
|
addAllergy ( Allergy $allergy, string $other = null, $comments = null, $startTransaction = true ) |
adds an allergy to the patient. |
|
addDiagnosis ( $disorder_id, $eye_id = false, $date = false ) |
|
|
addEpisode ( $firm ) : Episode |
add an episode to the patient for the given Firm. |
|
addFamilyHistory ( $relative_id, $other_relative, $side_id, $condition_id, $other_condition, $comments ) |
Adds FamilyHistory entry to the patient if it's not a duplicate. |
|
addPreviousOperation ( $operation, $side_id, $date ) |
|
|
addRisk ( Risk $risk, string $other = null, $comments = null ) |
adds a risk to the patient. |
|
ageOn ( string $check_date ) : string |
Calculate the patient's age. |
|
attributeLabels ( ) : array |
|
|
audit ( $target, $action, $data = null, $log = false, $properties = [] ) |
|
|
beforeSave ( ) |
|
|
beforeValidate ( ) |
|
|
behaviors ( ) |
|
|
cmp ( $a, $b ) |
sort the remainder |
|
currentContactIDS ( ) |
|
|
editOphInfo ( PatientOphInfoCviStatus $cvi_status, string $cvi_status_date ) : true | array |
update the patient's ophthalmic information. |
|
getAge ( ) : string |
Get the patient's age. |
|
getAllDisorders ( $eye_id = null ) |
*
returns all disorders for the patient. |
|
getAllergiesString ( ) : string |
returns a standard allergy string for the patient. |
|
getBecomesAdultDate ( ) : null | string |
Returns the date on which the patient will become an adult. |
|
getCataractEpisodeId ( ) : mixed |
Get the episode ID of the patient's cataract if it exists. |
|
getChildPrefix ( ) |
|
|
getCommissioningBodyOfType ( CommissioningBodyType $type ) : CommissioningBody |
get the CommissioningBody of the CommissioningBodyType $type
currently assumes there would only ever be one commissioning body of a given type. |
|
getContactAddress ( $contact_id, $location_type = false, $location_id = false ) |
|
|
getCorrespondenceName ( ) : string |
|
|
getDiabetes ( ) : Disorder | null |
Get the patient diabetes type as Disorder instance - will return generic Diabetes
if no specific type available, but patient has diabetes. |
|
getDiabetesType ( ) : Disorder | null |
Get the Diabetes Type as a Disorder instance. |
|
getDisordersOfType ( int[] $snomeds ) : Disorder[] |
get the patient disorders that are of the type in the list of disorder ids provided. |
|
getDisplayName ( ) |
|
|
getDistinctCommissioningBodiesByType ( ) : array[string][CommissioningBody] |
get an associative array of CommissioningBody for this patient and the patient's practice
indexed by CommissioningBodyType id. |
|
getDmt ( ) : string |
Diabetes mellitus as a letter string. |
|
getEdl ( ) |
|
|
getEdr ( ) |
|
|
getEmail ( ) : mixed |
Returns the contact address email |
|
getEpc ( ) |
|
|
getEpd ( ) |
|
|
getEpisodeForCurrentSubspecialty ( ) : Episode |
Get the episode for the subspecialty of the firm (or no subspecialty when the firm doesn't have one). |
|
getEps ( ) |
|
|
getEpv ( ) |
|
|
getEthnicGroupString ( ) |
|
|
getFirst_name ( ) |
|
|
getFullName ( ) : string |
|
|
getGenderString ( ) |
|
|
getHSCICName ( $bold = false ) : string |
get the Patient name according to HSCIC guidelines. |
|
getLast_name ( ) |
|
|
getLatestEvent ( ) |
|
|
getLatestOperationNoteEventUniqueCode ( ) |
|
|
getNhsnum ( ) |
|
|
getNick_name ( ) |
|
|
getObj ( ) |
|
|
getOpenEpisodeOfSubspecialty ( $subspecialty_id ) : CActiveRecord | null |
return the open episode of the given subspecialty if there is one, null otherwise. |
|
getOphInfo ( ) : PatientOphInfo |
returns the ophthalmic information object for this patient (creates a default one if one does not exist - but does not save it). |
|
getOphthalmicDiagnoses ( ) |
|
|
getOrCreateEpisodeForFirm ( $firm, boolean $include_closed = false ) : CActiveRecord | Episode | null |
Get or create an episode for the patient under the given Firm (Note that an episode will be returned if there
is match on Firm Subspecialty rather than on Firm). |
|
getOrderedEpisodes ( ) |
*
will group episodes by specialty, ordered by the configuration key of specialty sort,
and alphanumeric for any specialties not configured. |
|
getPos ( ) |
|
|
getPrefix ( ) |
|
|
getPrimary_phone ( ) |
|
|
getPro ( ) |
|
|
getRisksString ( ) : string |
returns a standard risk string for the patient. |
|
getSalutationName ( ) : string |
|
|
getSdl ( ) |
|
|
getSpecialtyCodes ( ) |
*
returns the specialty codes that are relevant to the patient. Determined by looking at the diagnoses
related to the patient. |
|
getSub ( ) |
|
|
getSummaryAddress ( $delimiter = '<br/>' ) |
|
|
getSyd ( ) : string |
Systemic diagnoses shortcode. |
|
getSystemicDiagnoses ( ) |
|
|
getTitle ( ) |
|
|
getUniqueCodeForEvent ( $id ) |
|
|
getWarnings ( boolean $clinical = true ) : {'short_msg' |
return the patient warnings that have been defined for the patient. If $clinical is false
only non-clinical warnings will be returned. |
|
get_medications ( ) : array |
Gets the current medications linked with items from the prescription events. |
|
get_previous_medications ( ) : array |
Gets the previous medications linked with items from the prescription events. |
|
hasAllergy ( $allergy ) : boolean |
returns true if the patient has the allergy passed in. |
|
hasAllergyStatus ( ) : boolean |
returns true if the allergy status of the patient is known (has allergies, or no known allergies) false otherwise. |
|
hasDisorderTypeByIds ( $snomeds ) |
*
checks if the patient has a disorder that is defined as being within the SNOMED tree specified by the given $snomed id. |
|
hasDrugAllergy ( integer $drug_id = null ) : boolean |
|
|
hasLegacyLetters ( ) |
|
|
hasOpenEpisodeOfSubspecialty ( $subspecialty_id ) : boolean |
returns true if patient has an open episode for the given subspecialty id. |
|
hasRisk ( $riskCompare ) : boolean |
Check if the patient has a given risk. |
|
hasRiskStatus ( ) : boolean |
returns true if the risk status of the patient is known (has risks, or no known risks) false otherwise. |
|
isChild ( string $check_date = null ) : boolean |
|
|
isDeceased ( ) : boolean |
|
|
model ( $className = __CLASS__ ) : Patient |
Returns the static model of the specified AR class. |
|
noPas ( ) : Patient |
Suppress PAS integration. |
|
patientMedications ( $medicationCriteria ) : array |
|
|
prescriptionItems ( array $exclude ) : array | CActiveRecord[] | null |
|
|
prescriptionMedicationIds ( ) : mixed |
|
|
relations ( ) : array |
|
|
removeDiagnosis ( $diagnosis_id ) |
|
|
rules ( ) : array |
|
|
search ( array $params = [] ) : CActiveDataProvider |
Retrieves a list of models based on the current search/filter conditions. |
|
search_nr ( $params ) |
|
|
setNoAllergies ( ) |
marks the patient as having no allergies as of now. |
|
setNoFamilyHistory ( ) |
marks the patient as having no family history. |
|
setNoRisks ( ) |
marks the patient as having no allergies as of now. |
|
tableName ( ) : string |
|
|
validateDeceased ( $attribute, $params ) |
|
|