You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/aggregations.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,11 @@ parameters for which the aggregation is provided
30
30
- a distribution of all distinct values/combinations with the count of their occurrence
31
31
* an optional `scope` parameter to indicate the entity the results refer to (usually the current entry type but might be variable for collection and overview aggregations)
32
32
33
-
### Examples
34
-
35
33
The following examples display different aggregation objects (which would be items in the `responseAggregation` array). Note that **id values are for demonstration only** and do not have a normative function.
36
34
37
35
**Aggregations and Queries:** For most of the example cases one can envision both a use in "data overview context" (e.g. to profile the content of a resource or collection) and in "query context" (e.g. to profile the response for a specific query).
38
36
39
-
####Minimal Representation of Distinct Values Count `distinctValuesCount`
37
+
###Example: Minimal Representation of Distinct Values Count `distinctValuesCount`
40
38
41
39
How many different diseases are represented in the data?
42
40
@@ -49,7 +47,7 @@ How many different diseases are represented in the data?
49
47
}
50
48
```
51
49
52
-
####Informative Values `anyValueCount`
50
+
###Example: Informative Values `anyValueCount`
53
51
54
52
How many individuals in the data have a follow-up time?
55
53
@@ -63,7 +61,7 @@ How many individuals in the data have a follow-up time?
63
61
}
64
62
```
65
63
66
-
####Value Distribution `distribution`, Single Concept
64
+
###Example: Value Distribution `distribution`, Single Concept
67
65
68
66
What is the distribution of diseases in the samples?
69
67
@@ -100,10 +98,11 @@ What is the distribution of diseases in the samples?
100
98
}
101
99
```
102
100
103
-
####Value Distribution `distribution`, Intersecting Concepts
101
+
###Example: Value Distribution `distribution`, Intersecting Concepts
104
102
105
103
What is the distribution of diseases in the samples, separately by sex?
106
104
Please note:
105
+
107
106
* there are now 2 concepts in the `concepts` list and the `conceptValues` in the distribution are observed combinations of values for both concepts, in the same order
108
107
* the `count` indicates the number of times this combination was observed (e.g. 426 cases of "male" & "Prostate Adenocarcinoma" but 0 cases for "female" & "Prostate Adenocarcinoma")
0 commit comments