changedOutput schema / properties / data / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
- "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_resolution": {
- "additionalProperties": {},
- "description": "Which company family the summary covers and how it was matched",
- "properties": {
- "aliases": {
- "description": "Alias list; empty unless verbose=true",
- "items": {},
- "type": "array"
- },
- "company_id": {
- "description": "Resolved family ID; counts cover this whole family",
- "type": "string"
- },
- "confidence": {
- "description": "Resolution confidence from 0 to 1",
- "type": "number"
- },
- "input_company": {
- "description": "Company name as asked",
- "type": "string"
- },
- "input_normalized": {
- "type": "string"
- },
- "matched_family_member": {
- "additionalProperties": {},
- "description": "The linked family member the input names",
- "properties": {
- "child_company_id": {
- "type": "string"
- },
- "relationship_type": {
- "description": "Relationship to the parent",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "description": "Where the relationship comes from",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "child_company_id"
- ],
- "type": "object"
- },
- "resolved_via": {
- "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
- "type": "string"
- },
- "scope_note": {
- "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
- "type": "string"
- }
- },
- "required": [
- "company_id",
- "input_company",
- "input_normalized",
- "resolved_via",
- "confidence",
- "aliases"
- ],
- "type": "object"
- },
- "coverage": {
- "description": "complete, low_confidence, no_alias_pack or possible_split",
- "type": "string"
- },
- "data_freshness": {
- "additionalProperties": {
- "additionalProperties": {},
- "properties": {
- "as_of_date": {
- "type": "string"
- },
- "executed_at": {
- "type": "string"
- }
- },
- "required": [
- "executed_at",
- "as_of_date"
- ],
- "type": "object"
- },
- "description": "Per-dataset freshness; only when verbose=true",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "document_text_coverage": {
- "additionalProperties": {},
- "description": "How many returned letters and 483s carry extracted text",
- "properties": {},
- "type": "object"
- },
- "facility_footprint": {
- "additionalProperties": {},
- "description": "Sites in the family; group findings by these",
- "properties": {
- "results": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "fei_number": {
- "type": [
- "string",
- "null"
- ]
- },
- "firm_profile_url": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "scope_note": {
- "type": "string"
- },
- "see_also": {
- "additionalProperties": {},
- "properties": {
- "call": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "tool",
- "reason",
- "call"
- ],
- "type": "object"
- },
- "total_count": {
- "description": "Facilities registered or inspected under the family's names",
- "type": "number"
- }
- },
- "required": [
- "total_count",
- "results"
- ],
- "type": "object"
- },
- "family_context": {
- "additionalProperties": {},
- "description": "Linked family members included in the counts",
- "properties": {
- "child_company_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "family_members": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "alias_count": {
- "description": "Aliases for this member (alias lists only when verbose=true)",
- "type": "number"
- },
- "child_company_id": {
- "type": "string"
- },
- "relationship_type": {
- "description": "subsidiary, division or another relationship",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "child_company_id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "fuzzy_expanded_names": {
- "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "note": {
- "type": "string"
- },
- "search_name_count": {
- "type": "number"
- }
- },
- "required": [
- "child_company_ids",
- "family_members"
- ],
- "type": "object"
- },
- "former_subsidiaries": {
- "additionalProperties": {},
- "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
- "properties": {
- "counted_in_parent_totals": {
- "const": false,
- "type": "boolean"
- },
- "note": {
- "type": "string"
- },
- "results": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "counted_in_parent_totals",
- "note",
- "results"
- ],
- "type": "object"
- },
- "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"
- },
- "highest_severity_signals": {
- "description": "Most serious findings first, each dated; lead answers with these",
- "items": {
- "additionalProperties": {},
- "properties": {
- "count": {
- "description": "Matching records of this type",
- "type": "number"
- },
- "last_5_years_count": {
- "description": "Records inside the recent window",
- "type": "number"
- },
- "most_recent_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "recent_window_start": {
- "type": "string"
- },
- "recommended_tool": {
- "description": "Tool that returns the underlying records",
- "type": "string"
- },
- "severity": {
- "description": "critical, high or medium",
- "type": "string"
- },
- "signal_type": {
- "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
- "type": "string"
- },
- "summary": {
- "description": "One-line reading of this signal, including its age",
- "type": "string"
- }
- },
- "required": [
- "signal_type",
- "severity",
- "count",
- "last_5_years_count",
- "recent_window_start",
- "summary",
- "recommended_tool"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "import_risk": {
- "additionalProperties": {},
- "properties": {
- "footprint_linked_refusal_count": {
- "type": "number"
- },
- "green_list_count": {
- "type": "number"
- },
- "import_alert_count": {
- "type": "number"
- },
- "import_refusal_count": {
- "type": "number"
- },
- "last_alert_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "last_refusal_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "name_match_only_refusal_count": {
- "type": "number"
- },
- "recent_import_alerts": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- },
- "recent_import_refusals": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "site_link": {
- "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "red_list_count": {
- "description": "Red-list (detention without physical examination) entries",
- "type": "number"
- },
- "refusal_site_link_note": {
- "type": "string"
- }
- },
- "required": [
- "import_alert_count",
- "red_list_count",
- "green_list_count",
- "recent_import_alerts",
- "import_refusal_count",
- "recent_import_refusals",
- "footprint_linked_refusal_count",
- "name_match_only_refusal_count"
- ],
- "type": "object"
- },
- "inspection_summary": {
- "additionalProperties": {},
- "properties": {
- "last_inspection_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "nai": {
- "type": "number"
- },
- "oai": {
- "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
- "type": "number"
- },
- "total_inspections": {
- "type": "number"
- },
- "vai": {
- "type": "number"
- }
- },
- "required": [
- "total_inspections",
- "nai",
- "vai",
- "oai"
- ],
- "type": "object"
- },
- "integrity_signals": {
- "additionalProperties": {},
- "properties": {
- "debarment_count": {
- "type": "number"
- },
- "debarments": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "debarment_count",
- "debarments"
- ],
- "type": "object"
- },
- "matching_notes": {
- "description": "How names were matched",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "near_name_candidates": {
- "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- },
- "near_name_note": {
- "type": "string"
- },
- "newest_as_of": {
- "description": "Newest source date (default compact freshness)",
- "type": [
- "string",
- "null"
- ]
- },
- "next_step": {
- "additionalProperties": {},
- "description": "Present when nothing matched",
- "properties": {
- "call": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "tool",
- "reason",
- "call"
- ],
- "type": "object"
- },
- "no_records_note": {
- "description": "Present when nothing matched: no matching records does not establish safety",
- "type": "string"
- },
- "notable_gaps": {
- "description": "Missing data, matching limits and stale sources; state these",
- "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"
- },
- "oii_records_note": {
- "type": "string"
- },
- "older_warning_letters": {
- "additionalProperties": {},
- "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
- "properties": {
- "letter_index_earliest_issue_date": {
- "description": "First issue date in the letter index",
- "type": [
- "string",
- "null"
- ]
- },
- "note": {
- "type": "string"
- },
- "results": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "action_taken_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "case_injunction_id": {
- "description": "FDA Data Dashboard case ID",
- "type": [
- "string",
- "null"
- ]
- },
- "fei_number": {
- "type": [
- "string",
- "null"
- ]
- },
- "firm_profile_url": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "total_count": {
- "description": "Warning letters before the letter index begins",
- "type": "number"
- }
- },
- "required": [
- "total_count",
- "results",
- "note"
- ],
- "type": "object"
- },
- "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"
- },
- "possible_split_with": {
- "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "recall_signals": {
- "additionalProperties": {},
- "properties": {
- "count_note": {
- "type": "string"
- },
- "ires_count": {
- "description": "Recalls in FDA iRES enforcement reports",
- "type": "number"
- },
- "last_ires_report_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "last_openfda_report_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "openfda_enforcement_count": {
- "description": "Recalls in openFDA enforcement data; overlaps ires_count",
- "type": "number"
- },
- "recent_ires_enforcement": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- },
- "recent_openfda_enforcement": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- },
- "recent_recalls": {
- "description": "One entry per recall number, merged across both sources",
- "items": {
- "additionalProperties": {},
- "properties": {
- "recall_number": {
- "type": [
- "string",
- "null"
- ]
- },
- "report_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "sources": {
- "description": "ires, openfda or both",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "recent_recalls_note": {
- "type": "string"
- },
- "unique_recall_count": {
- "description": "Distinct recall numbers across both sources",
- "type": "number"
- }
- },
- "required": [
- "ires_count",
- "recent_ires_enforcement",
- "openfda_enforcement_count",
- "recent_openfda_enforcement",
- "unique_recall_count",
- "count_note",
- "recent_recalls",
- "recent_recalls_note"
- ],
- "type": "object"
- },
- "recent_inspections": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "classification_code": {
- "description": "NAI, VAI or OAI",
- "type": [
- "string",
- "null"
- ]
- },
- "fei_number": {
- "type": [
- "string",
- "null"
- ]
- },
- "firm_profile_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "inspection_end_date": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "recent_oii_records": {
- "description": "Form 483s and other OII reading-room documents",
- "items": {
- "additionalProperties": {},
- "properties": {
- "date_conflict_note": {
- "description": "Present when record_date disagrees with the dates printed on the Form 483",
- "type": [
- "string",
- "null"
- ]
- },
- "document_text_excerpt": {
- "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
- "type": [
- "string",
- "null"
- ]
- },
- "document_text_status": {
- "description": "extracted, or why document text is missing",
- "type": [
- "string",
- "null"
- ]
- },
- "fei_number": {
- "type": [
- "string",
- "null"
- ]
- },
- "form_483_dates": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "inspection_end": {
- "description": "Last inspection date printed on the Form 483",
- "type": [
- "string",
- "null"
- ]
- },
- "inspection_start": {
- "description": "First inspection date printed on the Form 483",
- "type": [
- "string",
- "null"
- ]
- },
- "issued_date": {
- "description": "Date the Form 483 was issued",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date"
- },
- "oii_record_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "record_date": {
- "description": "FDA listing record date; listing metadata, not the inspection date",
- "type": [
- "string",
- "null"
- ]
- },
- "record_url": {
- "description": "Official FDA document; cite it",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "recent_warning_letters": {
- "description": "Warning letters from the letter index",
- "items": {
- "additionalProperties": {},
- "properties": {
- "letter_excerpt": {
- "description": "Start of the letter text",
- "type": [
- "string",
- "null"
- ]
- },
- "letter_issue_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "letter_text_status": {
- "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
- "type": [
- "string",
- "null"
- ]
- },
- "letter_url": {
- "description": "Official FDA letter; cite it",
- "type": [
- "string",
- "null"
- ]
- },
- "warning_letter_id": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "recommend_subsidiary_search": {
- "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
- "type": "boolean"
- },
- "recommended_follow_ups": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "reason": {
- "description": "Why the follow-up matters",
- "type": "string"
- },
- "tool": {
- "description": "Tool to call next",
- "type": "string"
- }
- },
- "required": [
- "tool",
- "reason"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "regdatalab_page": {
- "additionalProperties": {},
- "description": "The RegDataLab page for this company or site, for the reader to open, share or bookmark; give it next to the fda.gov sources, never in place of them",
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "title",
- "url"
- ],
- "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"
- },
- "unresolved_entities": {
- "additionalProperties": {},
- "description": "Related entities with no recorded ownership change; not in the totals above",
- "properties": {
- "counted_in_parent_totals": {
- "const": false,
- "type": "boolean"
- },
- "note": {
- "type": "string"
- },
- "results": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "counted_in_parent_totals",
- "note",
- "results"
- ],
- "type": "object"
- }
- },
- "required": [
- "company_resolution",
- "coverage",
- "recommend_subsidiary_search",
- "matching_notes",
- "family_context",
- "freshness_summary",
- "facility_footprint",
- "inspection_summary",
- "recent_inspections",
- "document_text_coverage",
- "recent_warning_letters",
- "recent_oii_records",
- "import_risk",
- "integrity_signals",
- "recall_signals",
- "highest_severity_signals",
- "recommended_follow_ups",
- "notable_gaps"
- ],
- "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": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
+ "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_resolution": {
+ "additionalProperties": {},
+ "description": "Which company family the summary covers and how it was matched",
+ "properties": {
+ "aliases": {
+ "description": "Alias list; empty unless verbose=true",
+ "items": {},
+ "type": "array"
+ },
+ "company_id": {
+ "description": "Resolved family ID; counts cover this whole family",
+ "type": "string"
+ },
+ "confidence": {
+ "description": "Resolution confidence from 0 to 1",
+ "type": "number"
+ },
+ "input_company": {
+ "description": "Company name as asked",
+ "type": "string"
+ },
+ "input_normalized": {
+ "type": "string"
+ },
+ "matched_family_member": {
+ "additionalProperties": {},
+ "description": "The linked family member the input names",
+ "properties": {
+ "child_company_id": {
+ "type": "string"
+ },
+ "relationship_type": {
+ "description": "Relationship to the parent",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "description": "Where the relationship comes from",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "child_company_id"
+ ],
+ "type": "object"
+ },
+ "resolved_via": {
+ "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
+ "type": "string"
+ },
+ "scope_note": {
+ "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
+ "type": "string"
+ }
+ },
+ "required": [
+ "company_id",
+ "input_company",
+ "input_normalized",
+ "resolved_via",
+ "confidence",
+ "aliases"
+ ],
+ "type": "object"
+ },
+ "coverage": {
+ "description": "complete, low_confidence, no_alias_pack or possible_split",
+ "type": "string"
+ },
+ "data_freshness": {
+ "additionalProperties": {
+ "additionalProperties": {},
+ "properties": {
+ "as_of_date": {
+ "type": "string"
+ },
+ "executed_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "executed_at",
+ "as_of_date"
+ ],
+ "type": "object"
+ },
+ "description": "Per-dataset freshness; only when verbose=true",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "document_text_coverage": {
+ "additionalProperties": {},
+ "description": "How many returned letters and 483s carry extracted text",
+ "properties": {},
+ "type": "object"
+ },
+ "facility_footprint": {
+ "additionalProperties": {},
+ "description": "Sites in the family; group findings by these",
+ "properties": {
+ "results": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "fei_number": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "firm_profile_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "scope_note": {
+ "type": "string"
+ },
+ "see_also": {
+ "additionalProperties": {},
+ "properties": {
+ "call": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool",
+ "reason",
+ "call"
+ ],
+ "type": "object"
+ },
+ "total_count": {
+ "description": "Facilities registered or inspected under the family's names",
+ "type": "number"
+ }
+ },
+ "required": [
+ "total_count",
+ "results"
+ ],
+ "type": "object"
+ },
+ "family_context": {
+ "additionalProperties": {},
+ "description": "Linked family members included in the counts",
+ "properties": {
+ "child_company_ids": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "family_members": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "alias_count": {
+ "description": "Aliases for this member (alias lists only when verbose=true)",
+ "type": "number"
+ },
+ "child_company_id": {
+ "type": "string"
+ },
+ "relationship_type": {
+ "description": "subsidiary, division or another relationship",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "child_company_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "fuzzy_expanded_names": {
+ "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "note": {
+ "type": "string"
+ },
+ "search_name_count": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "child_company_ids",
+ "family_members"
+ ],
+ "type": "object"
+ },
+ "former_subsidiaries": {
+ "additionalProperties": {},
+ "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
+ "properties": {
+ "counted_in_parent_totals": {
+ "const": false,
+ "type": "boolean"
+ },
+ "note": {
+ "type": "string"
+ },
+ "results": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "counted_in_parent_totals",
+ "note",
+ "results"
+ ],
+ "type": "object"
+ },
+ "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"
+ },
+ "highest_severity_signals": {
+ "description": "Most serious findings first, each dated; lead answers with these",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "count": {
+ "description": "Matching records of this type",
+ "type": "number"
+ },
+ "last_5_years_count": {
+ "description": "Records inside the recent window",
+ "type": "number"
+ },
+ "most_recent_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "recent_window_start": {
+ "type": "string"
+ },
+ "recommended_tool": {
+ "description": "Tool that returns the underlying records",
+ "type": "string"
+ },
+ "severity": {
+ "description": "critical, high or medium",
+ "type": "string"
+ },
+ "signal_type": {
+ "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
+ "type": "string"
+ },
+ "summary": {
+ "description": "One-line reading of this signal, including its age",
+ "type": "string"
+ }
+ },
+ "required": [
+ "signal_type",
+ "severity",
+ "count",
+ "last_5_years_count",
+ "recent_window_start",
+ "summary",
+ "recommended_tool"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "import_risk": {
+ "additionalProperties": {},
+ "properties": {
+ "footprint_linked_refusal_count": {
+ "type": "number"
+ },
+ "green_list_count": {
+ "type": "number"
+ },
+ "import_alert_count": {
+ "type": "number"
+ },
+ "import_refusal_count": {
+ "type": "number"
+ },
+ "last_alert_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "last_refusal_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name_match_only_refusal_count": {
+ "type": "number"
+ },
+ "recent_import_alerts": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recent_import_refusals": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "site_link": {
+ "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "red_list_count": {
+ "description": "Red-list (detention without physical examination) entries",
+ "type": "number"
+ },
+ "refusal_site_link_note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "import_alert_count",
+ "red_list_count",
+ "green_list_count",
+ "recent_import_alerts",
+ "import_refusal_count",
+ "recent_import_refusals",
+ "footprint_linked_refusal_count",
+ "name_match_only_refusal_count"
+ ],
+ "type": "object"
+ },
+ "inspection_summary": {
+ "additionalProperties": {},
+ "properties": {
+ "last_inspection_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nai": {
+ "type": "number"
+ },
+ "oai": {
+ "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
+ "type": "number"
+ },
+ "total_inspections": {
+ "type": "number"
+ },
+ "vai": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "total_inspections",
+ "nai",
+ "vai",
+ "oai"
+ ],
+ "type": "object"
+ },
+ "integrity_signals": {
+ "additionalProperties": {},
+ "properties": {
+ "debarment_count": {
+ "type": "number"
+ },
+ "debarments": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "debarment_count",
+ "debarments"
+ ],
+ "type": "object"
+ },
+ "matching_notes": {
+ "description": "How names were matched",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "near_name_candidates": {
+ "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "near_name_note": {
+ "type": "string"
+ },
+ "newest_as_of": {
+ "description": "Newest source date (default compact freshness)",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "next_step": {
+ "additionalProperties": {},
+ "description": "Present when nothing matched",
+ "properties": {
+ "call": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool",
+ "reason",
+ "call"
+ ],
+ "type": "object"
+ },
+ "no_records_note": {
+ "description": "Present when nothing matched: no matching records does not establish safety",
+ "type": "string"
+ },
+ "notable_gaps": {
+ "description": "Missing data, matching limits and stale sources; state these",
+ "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"
+ },
+ "oii_records_note": {
+ "type": "string"
+ },
+ "older_warning_letters": {
+ "additionalProperties": {},
+ "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
+ "properties": {
+ "letter_index_earliest_issue_date": {
+ "description": "First issue date in the letter index",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "note": {
+ "type": "string"
+ },
+ "results": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "action_taken_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "case_injunction_id": {
+ "description": "FDA Data Dashboard case ID",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fei_number": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "firm_profile_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "total_count": {
+ "description": "Warning letters before the letter index begins",
+ "type": "number"
+ }
+ },
+ "required": [
+ "total_count",
+ "results",
+ "note"
+ ],
+ "type": "object"
+ },
+ "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"
+ },
+ "possible_split_with": {
+ "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "recall_signals": {
+ "additionalProperties": {},
+ "properties": {
+ "count_note": {
+ "type": "string"
+ },
+ "ires_count": {
+ "description": "Recalls in FDA iRES enforcement reports",
+ "type": "number"
+ },
+ "last_ires_report_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "last_openfda_report_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "openfda_enforcement_count": {
+ "description": "Recalls in openFDA enforcement data; overlaps ires_count",
+ "type": "number"
+ },
+ "recent_ires_enforcement": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recent_openfda_enforcement": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recent_recalls": {
+ "description": "One entry per recall number, merged across both sources",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "event_id": {
+ "description": "Event id, set when the recall number is not assigned yet",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "recall_number": {
+ "description": "FDA recall number. Null when FDA has not assigned one yet",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "recall_number_note": {
+ "description": "Present when FDA has not assigned a recall number yet",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "report_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sources": {
+ "description": "ires, openfda or both",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recent_recalls_note": {
+ "type": "string"
+ },
+ "unique_recall_count": {
+ "description": "Distinct recall numbers across both sources",
+ "type": "number"
+ }
+ },
+ "required": [
+ "ires_count",
+ "recent_ires_enforcement",
+ "openfda_enforcement_count",
+ "recent_openfda_enforcement",
+ "unique_recall_count",
+ "count_note",
+ "recent_recalls",
+ "recent_recalls_note"
+ ],
+ "type": "object"
+ },
+ "recent_inspections": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "classification_code": {
+ "description": "NAI, VAI or OAI",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fei_number": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "firm_profile_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "inspection_end_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recent_oii_records": {
+ "description": "Form 483s and other OII reading-room documents",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "date_conflict_note": {
+ "description": "Present when record_date disagrees with the dates printed on the Form 483",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "document_text_excerpt": {
+ "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "document_text_status": {
+ "description": "extracted, or why document text is missing",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fei_number": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "form_483_dates": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "inspection_end": {
+ "description": "Last inspection date printed on the Form 483",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "inspection_start": {
+ "description": "First inspection date printed on the Form 483",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "issued_date": {
+ "description": "Date the Form 483 was issued",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date"
+ },
+ "oii_record_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "record_date": {
+ "description": "FDA listing record date; listing metadata, not the inspection date",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "record_url": {
+ "description": "Official FDA document; cite it",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recent_warning_letters": {
+ "description": "Warning letters from the letter index",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "letter_excerpt": {
+ "description": "Start of the letter text",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "letter_issue_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "letter_text_status": {
+ "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "letter_url": {
+ "description": "Official FDA letter; cite it",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "warning_letter_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recommend_subsidiary_search": {
+ "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
+ "type": "boolean"
+ },
+ "recommended_follow_ups": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "reason": {
+ "description": "Why the follow-up matters",
+ "type": "string"
+ },
+ "tool": {
+ "description": "Tool to call next",
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "regdatalab_page": {
+ "additionalProperties": {},
+ "description": "The RegDataLab page for this company or site, for the reader to open, share or bookmark; give it next to the fda.gov sources, never in place of them",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "title",
+ "url"
+ ],
+ "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"
+ },
+ "unresolved_entities": {
+ "additionalProperties": {},
+ "description": "Related entities with no recorded ownership change; not in the totals above",
+ "properties": {
+ "counted_in_parent_totals": {
+ "const": false,
+ "type": "boolean"
+ },
+ "note": {
+ "type": "string"
+ },
+ "results": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "counted_in_parent_totals",
+ "note",
+ "results"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "company_resolution",
+ "coverage",
+ "recommend_subsidiary_search",
+ "matching_notes",
+ "family_context",
+ "freshness_summary",
+ "facility_footprint",
+ "inspection_summary",
+ "recent_inspections",
+ "document_text_coverage",
+ "recent_warning_letters",
+ "recent_oii_records",
+ "import_risk",
+ "integrity_signals",
+ "recall_signals",
+ "highest_severity_signals",
+ "recommended_follow_ups",
+ "notable_gaps"
+ ],
+ "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"
+ }
+]