Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

DeepSee.Study.Doctor

persistent class DeepSee.Study.Doctor extends %Library.Persistent

SQL Table Name: DeepSee_Study.Doctor

This class is part of the DeepSee Patients sample, whose purpose is to provide sample data for use with DeepSee.

This class contains the doctors.

Property Inventory

Method Inventory

Properties

property DoctorGroup as %String;
Group into which this "study" places this doctor
Property methods: DoctorGroupDisplayToLogical(), DoctorGroupGet(), DoctorGroupGetStored(), DoctorGroupIsValid(), DoctorGroupLogicalToDisplay(), DoctorGroupLogicalToOdbc(), DoctorGroupNormalize(), DoctorGroupSet()
property DoctorType as %String;
Primary focus of this doctor's work;
Property methods: DoctorTypeDisplayToLogical(), DoctorTypeGet(), DoctorTypeGetStored(), DoctorTypeIsValid(), DoctorTypeLogicalToDisplay(), DoctorTypeLogicalToOdbc(), DoctorTypeNormalize(), DoctorTypeSet()
property FirstName as %String (MAXLEN = 100);
Property methods: FirstNameDisplayToLogical(), FirstNameGet(), FirstNameGetStored(), FirstNameIsValid(), FirstNameLogicalToDisplay(), FirstNameLogicalToOdbc(), FirstNameNormalize(), FirstNameSet()
property LastName as %String (MAXLEN = 100);
Property methods: LastNameDisplayToLogical(), LastNameGet(), LastNameGetStored(), LastNameIsValid(), LastNameLogicalToDisplay(), LastNameLogicalToOdbc(), LastNameNormalize(), LastNameSet()
property MainCity as DeepSee.Study.City;
City where this doctor primarily works;
Property methods: MainCityGet(), MainCityGetObject(), MainCityGetObjectId(), MainCityGetStored(), MainCityGetSwizzled(), MainCityIsValid(), MainCityNewObject(), MainCitySet(), MainCitySetObject(), MainCitySetObjectId(), MainCityUnSwizzle()
property PatientsPerWeek as %Numeric;
Average number of patients that this doctor sees per week (included to provide a numeric value in this table)
Property methods: PatientsPerWeekDisplayToLogical(), PatientsPerWeekGet(), PatientsPerWeekGetStored(), PatientsPerWeekIsValid(), PatientsPerWeekLogicalToDisplay(), PatientsPerWeekNormalize(), PatientsPerWeekSet()

Methods

classmethod ChangeSomeDoctors(percent As %Numeric = 20, rebuild As %Boolean = 1)
Randomly change doctor group and patients per week for some doctors. If rebuild is 1, this method updates the DeepSee indices for each patient affected by these changes. For DeepSee I, use this option only if you have enabled incremental updates (otherwise, you needlessly slow down the method).
classmethod GenerateData(count As %Integer = 100, genNulls=1) as %Status
This method reads the XData block in this class and uses it to populate the table. This method is called by DeepSee.Populate:GenerateData().
classmethod GetDoctorId(patientAge As %Integer = "", patientGender As %String = "") as %Integer
Based on patient age (in years) and gender ("F" or "M"), return the ID of a suitable doctor
classmethod GetRandomOBGYN()
classmethod GetRandomOtherDoctor()
classmethod GetRandomPediatrician() as %Integer

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (DeepSee.Study.Doctor)

^DeepSee.Study.DoctorD(ID)
=
%%CLASSNAME
FirstName
LastName
MainCity
DoctorGroup
DoctorType
PatientsPerWeek
FeedbackOpens in a new tab