{
  "version": 1,
  "title": "The City of New York",
  "subtitle": "Notice of Civilian Complaint",
  "provenance": "SOURCE: NYC OPEN DATA. RECORDS ARE PUBLIC UNDER THE JUNE 2020 REPEAL OF NY CIVIL RIGHTS LAW 50-A.",
  "unidentified": {
    "test_column": "officer_identified",
    "banner": "NO OFFICER IDENTIFIED",
    "note": "The CCRB could not identify the officer. There is an accusation, an aggrieved person, a place and a date, and no one to serve."
  },
  "sections": [
    {
      "id": "charge",
      "title": "ALLEGATION",
      "fields": [
        { "key": "fado_type", "label": "CATEGORY", "source": ["fado_type"], "fallback": "—" },
        { "key": "allegation", "label": "CONDUCT", "source": ["allegation"], "fallback": "NOT SPECIFIED" }
      ]
    },
    {
      "id": "officer",
      "title": "OFFICER",
      "requires_identified": true,
      "fields": [
        { "key": "officer_name", "label": "NAME", "source": ["officer_first_name", "officer_last_name"], "join": " ", "fallback": "NOT IDENTIFIED" },
        { "key": "shield_no", "label": "SHIELD NO.", "source": ["shield_no"], "fallback": "—" },
        { "key": "rank", "label": "RANK AT INCIDENT", "source": ["rank_at_incident"], "fallback": "—" },
        { "key": "command", "label": "COMMAND", "source": ["command_at_incident"], "fallback": "—" },
        { "key": "days_on_force", "label": "DAYS ON FORCE", "source": ["days_on_force"], "fallback": "—" },
        { "key": "officer_active", "label": "STILL ON FORCE PER LAST REPORT", "source": ["officer_active"], "fallback": "—" }
      ]
    },
    {
      "id": "incident",
      "title": "INCIDENT",
      "fields": [
        { "key": "incident_date", "label": "DATE", "source": ["incident_date"], "fallback": "DATE NOT RECORDED" },
        { "key": "incident_hour", "label": "HOUR OF OCC.", "source": ["incident_hour"], "fallback": "—" },
        { "key": "borough", "label": "BOROUGH", "source": ["borough"], "fallback": "—" },
        { "key": "precinct", "label": "PRECINCT", "source": ["precinct"], "fallback": "—" },
        { "key": "location_type", "label": "LOCATION", "source": ["location_type"], "fallback": "—" },
        { "key": "reason_for_contact", "label": "REASON FOR CONTACT", "source": ["reason_for_contact"], "fallback": "—" },
        { "key": "outcome", "label": "OUTCOME OF ENCOUNTER", "source": ["outcome"], "fallback": "—" },
        { "key": "bwc_evidence", "label": "BODY CAMERA FOOTAGE", "source": ["bwc_evidence"], "fallback": "—" },
        { "key": "video_evidence", "label": "OTHER VIDEO EVIDENCE", "source": ["video_evidence"], "fallback": "—" }
      ]
    },
    {
      "id": "aggrieved",
      "title": "AGGRIEVED PERSON",
      "fields": [
        { "key": "victim_age_range", "label": "AGE", "source": ["victim_age_range"], "fallback": "—" },
        { "key": "victim_gender", "label": "GENDER", "source": ["victim_gender"], "fallback": "—" },
        { "key": "victim_race", "label": "RACE / ETHNICITY", "source": ["victim_race"], "fallback": "—" }
      ]
    },
    {
      "id": "finding",
      "title": "CCRB FINDING",
      "reveal": 1,
      "fields": [
        { "key": "ccrb_disposition", "label": "DISPOSITION", "source": ["ccrb_disposition"], "fallback": "NO FINDING REPORTED" }
      ]
    },
    {
      "id": "penalty",
      "title": "NYPD PENALTY",
      "reveal": 2,
      "fields": [
        {
          "key": "final_penalty",
          "label": "PENALTY",
          "rules": [
            { "when": { "column": "apu_case_status", "contains": "Pending" }, "text_from": "apu_case_status" },
            { "when": { "column": "has_penalty_record", "falsy": true }, "text": "No disciplinary record" },
            { "when": { "column": "final_penalty", "empty": true }, "text": "Penalty not reported" },
            { "text_from": "final_penalty" }
          ]
        }
      ]
    }
  ],
  "footer_fields": [
    { "key": "complaint_id", "label": "COMPLAINT NO.", "source": ["complaint_id"], "fallback": "—" },
    { "key": "as_of_date", "label": "RECORD AS OF", "source": ["as_of_date"], "fallback": "—" }
  ]
}
