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.PatientEncounter

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

SQL Table Name: DeepSee_Study.PatientEncounter

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

A patient can have multiple encounters (interactions with a medical professional). The encounter data here is minimal, but you can create dimensions/levels based on the number of encounters a patient has, as well as on the attending physician for those encounters.

This table is populated only if you use the E option when running the GenerateData() method in DeepSee.Populate. You can also use the AddEncounters() method of this class to add encounters to existing patients.

Property Inventory

Method Inventory

Properties

property EncounterNumber as %String;
Property methods: EncounterNumberDisplayToLogical(), EncounterNumberGet(), EncounterNumberGetStored(), EncounterNumberIsValid(), EncounterNumberLogicalToDisplay(), EncounterNumberLogicalToOdbc(), EncounterNumberNormalize(), EncounterNumberSet()
property EncounterType as %String;
Property methods: EncounterTypeDisplayToLogical(), EncounterTypeGet(), EncounterTypeGetStored(), EncounterTypeIsValid(), EncounterTypeLogicalToDisplay(), EncounterTypeLogicalToOdbc(), EncounterTypeNormalize(), EncounterTypeSet()
property Patient as DeepSee.Study.Patient;
Property methods: PatientGet(), PatientGetObject(), PatientGetObjectId(), PatientGetStored(), PatientGetSwizzled(), PatientIsValid(), PatientNewObject(), PatientSet(), PatientSetObject(), PatientSetObjectId(), PatientUnSwizzle()
property PrimaryDoctor as DeepSee.Study.Doctor;
Property methods: PrimaryDoctorGet(), PrimaryDoctorGetObject(), PrimaryDoctorGetObjectId(), PrimaryDoctorGetStored(), PrimaryDoctorGetSwizzled(), PrimaryDoctorIsValid(), PrimaryDoctorNewObject(), PrimaryDoctorSet(), PrimaryDoctorSetObject(), PrimaryDoctorSetObjectId(), PrimaryDoctorUnSwizzle()

Methods

classmethod AddEncounters(percent As %Numeric = 20, rebuild As %Boolean = 1) as %Status
Iterate through patients and add encounters randomly to some percentage. If rebuild is 1, this method updates the DeepSee indices (I and II) for each patient affectedby these changes. For DeepSee I, use this option only if you have enabled incremental updates (otherwise, you needlessly slow down the method).
classmethod CreateEncounters(pat As DeepSee.Study.Patient) as %Status
Called by DeepSee.Study.Patient:AddPatients().
classmethod DeleteEncounters(pat As DeepSee.Study.Patient) as %Status
Clear out records in PatientEncounter; called when you delete patients.
classmethod GetRandomEncounterCount(age As %Numeric) as %Integer
classmethod GetRandomEncounterType() as %String

Indexes

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

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (DeepSee.Study.PatientEncounter)

^DeepSee.Study.PatientEncoB0D9D(ID)
=
%%CLASSNAME
Patient
EncounterNumber
PrimaryDoctor
EncounterType
FeedbackOpens in a new tab