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

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

SQL Table Name: DeepSee_Study.Diagnosis

This class is part of the DeepSee Patients sample, whose purpose is to provide sample data for use with DeepSee. This class contains the diagnosis code lookup table, with a small set of possible diagnoses. It also defines the incidence rates for these diagnoses, by age and gender.

You can extend or modify the data contained here by editing the XData block in this class.

Use the GetPercentChance() method to retrieve the chance of having a specific diagnosis, given an age and gender.

Property Inventory

Method Inventory

Properties

property Code as %String;
Unique code for the diagnosis;
Property methods: CodeDisplayToLogical(), CodeGet(), CodeGetStored(), CodeIsValid(), CodeLogicalToDisplay(), CodeLogicalToOdbc(), CodeNormalize(), CodeSet()
property Description as %String;
Unique description (user-visible name) for the diagnosis
Property methods: DescriptionDisplayToLogical(), DescriptionGet(), DescriptionGetStored(), DescriptionIsValid(), DescriptionLogicalToDisplay(), DescriptionLogicalToOdbc(), DescriptionNormalize(), DescriptionSet()

Methods

classmethod GetPercentChance(code As %String, gender As %String, age As %Numeric) as %Numeric
For use when generating data; called by Setup method. Can also use this at the command line for testing purposes.
classmethod Setup() 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(). It also writes related data to a global for use when creating patients. The diagnosis incidence rates are deliberately NOT put into a table where DeepSee can access them. The idea of the sample is to simulate real-life patterns.

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.Diagnosis)

^DeepSee.Study.DiagnosisD(ID)
=
%%CLASSNAME
Code
Description
FeedbackOpens in a new tab