def METHOD_NAME(cox):
    date = cox.get("DA")
    time = cox.get("TI")
    effort_zone_exit_datetime_utc = make_datetime_json_serializable(date, time)
    children = tagged_children(cox)
    value = {
        "effortZoneExitDatetimeUtc": effort_zone_exit_datetime_utc,
        "targetSpeciesOnExit": cox.get("TS"),
    }
    if "RAS" in children:
        assert len(children["RAS"]) == 1
        ras = children["RAS"][0]
        ras_data = parse_ras(ras)
        value["faoZoneExited"] = ras_data["faoZone"]
        value["economicZoneExited"] = ras_data["economicZone"]
        value["statisticalRectangleExited"] = ras_data["statisticalRectangle"]
        value["effortZoneExited"] = ras_data["effortZone"]
    if "POS" in children:
        assert len(children["POS"]) == 1
        pos = children["POS"][0]
        lat, lon = parse_pos(pos)
        value["latitudeExited"] = try_float(lat)
        value["longitudeExited"] = try_float(lon)
    data = {"log_type": "COX", "value": value}
    return data