Skip to main content

Requirements for a Subject Area Class

Provides basic information on Business Intelligence subject area classes.

Details

To define a subject area, create a class that meets the following requirements:

  • It must extend %DeepSee.SubjectAreaOpens in a new tab.

  • It must contain an XData block named SubjectArea

  • For this XData block, XMLNamespace must be specified as follows:

    XMLNamespace = "http://www.intersystems.com/subjectarea"
    
  • The root element within the XData block must be <subjectArea> and this element must follow the requirements described in the rest of this page.

  • It is useful, but not required, for the class to specify the DependsOn keyword so that this class is compiled only after the cube class is compiled and can be used.

  • The class can define the DOMAIN parameter, which specifies the domain to which any localized strings belong. For example:

    Parameter DOMAIN = "PATIENTSAMPLE";

    For details, see Performing Localization.

You must recompile a subject area class after making any change.

Also see Accessing the Business Intelligence Samples.

Example

For example:

Class BI.Model.SubjectAreas.AsthmaPatients Extends %DeepSee.SubjectArea [DependsOn=Cubes.StudyPatients]
{

/// This XData definition defines the SubjectArea.
XData SubjectArea [ XMLNamespace = "http://www.intersystems.com/deepsee/subjectarea" ]
{
<subjectArea name="AsthmaPatients" 
    displayName="Asthma Patients"
    baseCube="Patients" filterSpec="diagd.h1.diagnoses.asthma" >
    </subjectArea>
}

}
FeedbackOpens in a new tab