changedOutput schema / properties / data / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "description": "Side-by-side manufacturing and compliance counts for 2 to 5 company families, each with its most recent dates, severity signals, freshness and matching limits",
- "properties": {
- "companies_compared": {
- "description": "Companies with counts",
- "type": "number"
- },
- "comparison": {
- "description": "One row per company, in the order asked",
- "items": {
- "additionalProperties": {},
- "properties": {
- "better_match_candidates": {
- "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
- "items": {
- "additionalProperties": {},
- "properties": {
- "call": {
- "type": "string"
- },
- "company_id": {
- "type": "string"
- },
- "matched_alias": {
- "type": "string"
- }
- },
- "required": [
- "company_id",
- "matched_alias",
- "call"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "company_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Resolved family ID; counts cover this whole family"
- },
- "coverage": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "complete, low_confidence, no_alias_pack or possible_split"
- },
- "debarment_count": {
- "type": "number"
- },
- "details_call": {
- "description": "fda_manufacturing_risk_summary call for this company's records",
- "type": "string"
- },
- "error": {
- "type": "string"
- },
- "facility_count": {
- "description": "Facilities registered or inspected under the family's names",
- "type": "number"
- },
- "highest_severity_signals": {
- "description": "Severity-ranked signals with dates",
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- },
- "import_alerts": {
- "additionalProperties": {},
- "properties": {
- "count": {
- "type": "number"
- },
- "last_alert_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "red_list_count": {
- "type": "number"
- }
- },
- "required": [
- "count",
- "red_list_count"
- ],
- "type": "object"
- },
- "import_refusals": {
- "additionalProperties": {},
- "properties": {
- "count": {
- "type": "number"
- },
- "footprint_linked_count": {
- "type": "number"
- },
- "last_refusal_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "count",
- "footprint_linked_count"
- ],
- "type": "object"
- },
- "input_company": {
- "description": "Company name as asked",
- "type": "string"
- },
- "inspections": {
- "additionalProperties": {},
- "properties": {
- "last_inspection_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "nai": {
- "type": "number"
- },
- "oai": {
- "type": "number"
- },
- "oai_share": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "OAI inspections as a share of all inspections, 0 to 1; null with no inspections"
- },
- "total": {
- "type": "number"
- },
- "vai": {
- "type": "number"
- }
- },
- "required": [
- "total",
- "nai",
- "vai",
- "oai",
- "oai_share"
- ],
- "type": "object"
- },
- "latest_oii_record": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "record_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "FDA listing date"
- },
- "record_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "record_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Official FDA document; cite it"
- }
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Newest Form 483 or other OII reading-room record"
- },
- "near_name_candidates": {
- "description": "Present with no_matching_records: name-similarity suggestions, not verified identities",
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- },
- "notable_gaps": {
- "description": "This company's caveats from the risk summary; state them with its counts",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "recalls": {
- "additionalProperties": {},
- "properties": {
- "most_recent_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "unique_count": {
- "type": "number"
- }
- },
- "required": [
- "unique_count"
- ],
- "type": "object"
- },
- "scope_note": {
- "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
- "type": "string"
- },
- "status": {
- "description": "resolved; no_matching_records when nothing matched the name (zeros, check near_name_candidates); not_resolved when the name could not be read (no counts)",
- "type": "string"
- },
- "warning_letters": {
- "additionalProperties": {},
- "description": "Warning letters, including older ones from FDA compliance actions",
- "properties": {
- "count": {
- "description": "Warning letters, including older ones from FDA compliance actions",
- "type": "number"
- },
- "most_recent_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "count"
- ],
- "type": "object"
- }
- },
- "required": [
- "input_company",
- "status",
- "company_id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "comparison_note": {
- "description": "How to read the rows; counts grow with company size",
- "type": "string"
- },
- "freshness_summary": {
- "additionalProperties": {},
- "description": "Dataset freshness; state it in answers",
- "properties": {
- "covered_dataset_count": {
- "type": "number"
- },
- "expected_dataset_count": {
- "type": "number"
- },
- "freshest_as_of_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "missing_dataset_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "newest_as_of_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "older_datasets": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "as_of_date": {
- "type": "string"
- },
- "dataset_id": {
- "type": "string"
- }
- },
- "required": [
- "dataset_id",
- "as_of_date"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "oldest_as_of_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "stalest_as_of_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "covered_dataset_count",
- "expected_dataset_count",
- "older_datasets",
- "missing_dataset_ids"
- ],
- "type": "object"
- },
- "newest_as_of": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Newest source date (default compact freshness)"
- },
- "no_records_note": {
- "type": "string"
- },
- "notable_gaps": {
- "description": "Caveats shared by every company (freshness, period), plus matching limits and unresolved names; state them",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "notices": {
- "description": "Account notices about this key, such as a low balance; show them to the user",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "period": {
- "additionalProperties": {},
- "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "First day counted (YYYY-MM-DD), or null"
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Last day counted (YYYY-MM-DD), or null"
- },
- "label": {
- "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
- "type": "string"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "date_from",
- "date_to",
- "label",
- "note"
- ],
- "type": "object"
- },
- "sources": {
- "description": "fda.gov pages behind this result (letters, 483s, import alerts, firm profiles, FDA search pages), documents first; cite these links in the answer",
- "items": {
- "additionalProperties": {},
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "title",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "companies_compared",
- "comparison_note",
- "comparison",
- "notable_gaps",
- "no_records_note"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "description": "Returned instead of records when the session has no API key: how to sign up and connect",
- "properties": {
- "attempted_tool": {
- "type": "string"
- },
- "auth_required": {
- "const": true,
- "type": "boolean"
- },
- "message": {
- "type": "string"
- },
- "signup_url": {
- "type": "string"
- }
- },
- "required": [
- "auth_required",
- "attempted_tool",
- "message",
- "signup_url"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": {},
+ "description": "Side-by-side manufacturing and compliance counts for 2 to 5 company families, each with its most recent dates, severity signals, freshness and matching limits",
+ "properties": {
+ "companies_compared": {
+ "description": "Companies with counts",
+ "type": "number"
+ },
+ "comparison": {
+ "description": "One row per company, in the order asked",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "better_match_candidates": {
+ "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "call": {
+ "type": "string"
+ },
+ "company_id": {
+ "type": "string"
+ },
+ "matched_alias": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "company_id",
+ "matched_alias",
+ "call"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "company_id": {
+ "description": "Resolved family ID; counts cover this whole family",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "coverage": {
+ "description": "complete, low_confidence, no_alias_pack or possible_split",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "debarment_count": {
+ "type": "number"
+ },
+ "details_call": {
+ "description": "fda_manufacturing_risk_summary call for this company's records",
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "facility_count": {
+ "description": "Facilities registered or inspected under the family's names",
+ "type": "number"
+ },
+ "highest_severity_signals": {
+ "description": "Severity-ranked signals with dates",
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "import_alerts": {
+ "additionalProperties": {},
+ "properties": {
+ "count": {
+ "type": "number"
+ },
+ "last_alert_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "red_list_count": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "count",
+ "red_list_count"
+ ],
+ "type": "object"
+ },
+ "import_refusals": {
+ "additionalProperties": {},
+ "properties": {
+ "count": {
+ "type": "number"
+ },
+ "footprint_linked_count": {
+ "type": "number"
+ },
+ "last_refusal_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "count",
+ "footprint_linked_count"
+ ],
+ "type": "object"
+ },
+ "input_company": {
+ "description": "Company name as asked",
+ "type": "string"
+ },
+ "inspections": {
+ "additionalProperties": {},
+ "properties": {
+ "last_inspection_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nai": {
+ "type": "number"
+ },
+ "oai": {
+ "type": "number"
+ },
+ "oai_share": {
+ "description": "OAI inspections as a share of all inspections, 0 to 1; null with no inspections",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "total": {
+ "type": "number"
+ },
+ "vai": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "total",
+ "nai",
+ "vai",
+ "oai",
+ "oai_share"
+ ],
+ "type": "object"
+ },
+ "latest_oii_record": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "record_date": {
+ "description": "FDA listing date",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "record_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "record_url": {
+ "description": "Official FDA document; cite it",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Newest Form 483 or other OII reading-room record"
+ },
+ "near_name_candidates": {
+ "description": "Present with no_matching_records: name-similarity suggestions, not verified identities",
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "notable_gaps": {
+ "description": "This company's caveats from the risk summary; state them with its counts",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "recalls": {
+ "additionalProperties": {},
+ "properties": {
+ "most_recent_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "unique_count": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "unique_count"
+ ],
+ "type": "object"
+ },
+ "scope_note": {
+ "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
+ "type": "string"
+ },
+ "status": {
+ "description": "resolved; no_matching_records when nothing matched the name (zeros, check near_name_candidates); not_resolved when the name could not be read (no counts)",
+ "type": "string"
+ },
+ "warning_letters": {
+ "additionalProperties": {},
+ "description": "Warning letters, including older ones from FDA compliance actions",
+ "properties": {
+ "count": {
+ "description": "Warning letters, including older ones from FDA compliance actions",
+ "type": "number"
+ },
+ "most_recent_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "count"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "input_company",
+ "status",
+ "company_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "comparison_note": {
+ "description": "How to read the rows; counts grow with company size",
+ "type": "string"
+ },
+ "freshness_summary": {
+ "additionalProperties": {},
+ "description": "Dataset freshness; state it in answers",
+ "properties": {
+ "covered_dataset_count": {
+ "type": "number"
+ },
+ "expected_dataset_count": {
+ "type": "number"
+ },
+ "freshest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "missing_dataset_ids": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "newest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "older_datasets": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "as_of_date": {
+ "type": "string"
+ },
+ "dataset_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dataset_id",
+ "as_of_date"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "oldest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "stalest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "covered_dataset_count",
+ "expected_dataset_count",
+ "older_datasets",
+ "missing_dataset_ids"
+ ],
+ "type": "object"
+ },
+ "newest_as_of": {
+ "description": "Newest source date (default compact freshness)",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "no_records_note": {
+ "type": "string"
+ },
+ "notable_gaps": {
+ "description": "Caveats shared by every company (freshness, period), plus matching limits and unresolved names; state them",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "notices": {
+ "description": "Account notices about this key, such as a low balance; show them to the user",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "period": {
+ "additionalProperties": {},
+ "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
+ "properties": {
+ "date_from": {
+ "description": "First day counted (YYYY-MM-DD), or null",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date_to": {
+ "description": "Last day counted (YYYY-MM-DD), or null",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "label": {
+ "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "date_from",
+ "date_to",
+ "label",
+ "note"
+ ],
+ "type": "object"
+ },
+ "sources": {
+ "description": "fda.gov pages behind this result (letters, 483s, import alerts, firm profiles, FDA search pages), documents first; cite these links in the answer",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "title",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "companies_compared",
+ "comparison_note",
+ "comparison",
+ "notable_gaps",
+ "no_records_note"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "description": "Returned instead of records when the session has no API key: how to sign up and connect",
+ "properties": {
+ "attempted_tool": {
+ "type": "string"
+ },
+ "auth_required": {
+ "const": true,
+ "type": "boolean"
+ },
+ "message": {
+ "type": "string"
+ },
+ "signup_url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "auth_required",
+ "attempted_tool",
+ "message",
+ "signup_url"
+ ],
+ "type": "object"
+ }
+]