Skip to content

Commit 1b6f379

Browse files
authored
Merge pull request #39 from sduncan01/master
provide a valid listing for compound cube
2 parents 543a2fd + 5e0a14a commit 1b6f379

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/cls/BI/Model/CompoundCube/CityRainfall.cls

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ displayName="CompoundCube/CityRainfall"
1212
owner="_SYSTEM"
1313
sourceClass="BI.Study.CityRainfall"
1414
countMeasureName="Rainfall Observation Count"
15+
defaultListing="CompoundListing"
1516
>
1617

1718
<dimension name="BirthD" displayName="DateD"
@@ -57,10 +58,14 @@ displayName="Avg Monthly Rainfall Inches"
5758
sourceProperty="InchesOfRain"
5859
aggregate="AVG"/>
5960

60-
<listing name="Details" displayName="Details"
61+
<listing name="RainfallDetailListing" displayName="RainfallDetails"
6162
fieldList='City->Name as "City",MonthAndYear as "Date",InchesOfRain as "Inches of Rain"'>
6263
</listing>
6364

65+
<listing name="CompoundListing"
66+
fieldList='City->%ID as "CityID",City->Name as "CityName",City->PostalCode as "PostalCode"'>
67+
</listing>
68+
6469
</cube>
6570
}
6671

src/cls/BI/Model/CompoundCube/Doctors.cls

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ sourceClass="BI.Study.Doctor"
1616
nullReplacement="None"
1717
disabled="false"
1818
countMeasureName="Doctor Count"
19+
defaultListing="CompoundListing"
1920
>
2021

2122
<dimension name="DocD" displayName="DocD"
@@ -74,10 +75,14 @@ displayName="Avg Patients Per Week"
7475
sourceProperty="PatientsPerWeek"
7576
aggregate="AVG"/>
7677

77-
<listing name="Details" displayName="Details"
78+
<listing name="DoctorDetailListing" displayName="DoctorDetails"
7879
fieldList='FirstName as "First Name",LastName as "Last Name",DoctorType as "Doctor Type",DoctorGroup as "Doctor Group",PatientsPerWeek as "Patients Per Week",MainCity->Name AS "Main City"'>
7980
</listing>
8081

82+
<listing name="CompoundListing"
83+
fieldList='MainCity->%ID as "CityID",MainCity->Name as "CityName",MainCity->PostalCode as "PostalCode"'>
84+
</listing>
85+
8186
</cube>
8287
}
8388

src/cls/BI/Model/CompoundCube/Patients.cls

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ sourceClass="BI.Study.Patient"
1616
nullReplacement="None"
1717
disabled="false"
1818
countMeasureName="Patient Count"
19+
defaultListing="CompoundListing"
1920
>
2021

2122
<dimension name="BirthD" displayName="BirthD" type="time"
@@ -88,10 +89,13 @@ sourceExpression='##class(BI.Model.PatientsCube).GetAllergyCount(%source.%ID)'
8889
sourceProperty="TestScore"
8990
aggregate="AVG"/>
9091

91-
<listing name="Details" displayName="Details"
92+
<listing name="PatientDetailListing" displayName="PatientDetails"
9293
fieldList='PatientID,Age,Gender,HomeCity->Name AS "Home City",TestScore AS "Test Score"'
9394
orderBy="Age,Gender" />
9495

96+
<listing name="CompoundListing"
97+
fieldList='HomeCity->%ID as "CityID",HomeCity->Name as "CityName",HomeCity->PostalCode as "PostalCode"' />
98+
9599
</cube>
96100
}
97101

0 commit comments

Comments
 (0)