changedOutput schema / properties / fieldStats / description
Previous value: -"One entry per requested field: canonical path, PascalCase piece name, data type, missing/unique counts, and top values with study counts (or trueCount/falseCount for BOOLEAN fields)."New value: +"One entry per requested field: canonical path, PascalCase piece name, data type, and the statistics variant that type carries — top values with study counts plus unique/longest for ENUM/STRING, trueCount/falseCount for BOOLEAN, min/max/avg for INTEGER/NUMBER, min/max/formats for DATE."
addedOutput schema / properties / fieldStats / items / properties / avg
Added value: +{
+ "description": "Mean of the recorded values. Present for INTEGER/NUMBER fields.",
+ "type": "number"
+}
addedOutput schema / properties / fieldStats / items / properties / formats
Added value: +{
+ "description": "Date patterns this field is recorded in. Present for DATE fields; more than one means the field mixes precisions across studies.",
+ "items": {
+ "description": "A date pattern, e.g. \"yyyy-MM-dd\".",
+ "type": "string"
+ },
+ "type": "array"
+}
addedOutput schema / properties / fieldStats / items / properties / longest
Added value: +{
+ "additionalProperties": false,
+ "description": "Longest recorded value with its length and a study carrying it. Present for STRING fields only.",
+ "properties": {
+ "length": {
+ "description": "Its length in characters.",
+ "type": "number"
+ },
+ "nctId": {
+ "description": "NCT ID of a study carrying it.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The longest recorded value.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "value",
+ "length",
+ "nctId"
+ ],
+ "type": "object"
+}
addedOutput schema / properties / fieldStats / items / properties / max
Added value: +{
+ "anyOf": [
+ {
+ "description": "Largest value of an INTEGER/NUMBER field.",
+ "type": "number"
+ },
+ {
+ "description": "Latest value of a DATE field, at the precision recorded.",
+ "type": "string"
+ }
+ ],
+ "description": "Largest recorded value — a number for INTEGER/NUMBER, a date string for DATE."
+}
addedOutput schema / properties / fieldStats / items / properties / min
Added value: +{
+ "anyOf": [
+ {
+ "description": "Smallest value of an INTEGER/NUMBER field.",
+ "type": "number"
+ },
+ {
+ "description": "Earliest value of a DATE field, at the precision recorded — a partial date such as \"1900-01\" stays partial.",
+ "type": "string"
+ }
+ ],
+ "description": "Smallest recorded value — a number for INTEGER/NUMBER, a date string for DATE."
+}
changedOutput schema / properties / fieldStats / items / properties / multiValued / description
Previous value: -"True when the field is array-typed (a study can carry several values, e.g. Phase, Condition), so the per-value studiesCount buckets sum above the study total. Use to avoid computing a percentage against the corpus."New value: +"True when the field is repeated — array-typed itself (Phase, Condition) or nested under a repeated object (LocationCountry, one per site) — so a study can carry several values and the per-value studiesCount buckets sum above the study total. Use to avoid computing a percentage against the corpus."