AccidentDetail: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{
{
    "type": "object",
"type": "object",
    "x-layout": "paged",
"x-layout": "paged",
    "title": "AccidentDetail",
"title": "AccidentDetail",
    "$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
    "properties": {
"properties": {
        "accidentDetails": {
"accidentDetails": {
            "$ref": "#\/definitions\/accidentDetails"
"$ref": "#/definitions/accidentDetails",
        },
"type": "object"
        "vehicles": {
},
            "x-layout": "tabs",
"vehicles": {
            "title": "vehicles",
"x-layout": "tabs",
            "type": "array",
"title": "vehicles",
            "items": {
"type": "array",
                "$ref": "#\/definitions\/vehicle"
"items": {
            }
"$ref": "#/definitions/vehicle",
        },
"type": "object"
        "people": {
}
            "x-layout": "tabs",
},
            "type": "array",
"people": {
            "title": "people",
"x-layout": "tabs",
            "items": {
"type": "array",
                "$ref": "#\/definitions\/person"
"title": "people",
            }
"items": {
        }
"$ref": "#/definitions/person",
    },
"type": "object"
    "definitions": {
}
        "person": {
}
            "type": "object",
},
            "title": "Person",
"definitions": {
            "required": [
"person": {
                "_localId",
"type": "object",
                "Injury",
"title": "Person",
                "vehicle"
"required": [
            ],
"_localId",
            "properties": {
"Injury",
                "Age": {
"vehicle"
                    "type": "string",
],
                    "format": "number"
"properties": {
                },
"Age": {
                "Sex": {
"type": "integer"
                    "enum": [
},
                        "Male",
"Sex": {
                        "Female"
"enum": [
                    ],
"Male",
                    "type": "string",
"Female"
                    "default": ""
],
                },
"type": "string",
                "Name": {
"default": ""
                    "type": "string",
},
                    "format": "text"
"Name": {
                },
"type": "string",
                "Injury": {
"x-format": "text"
                    "enum": [
},
                        "Fatal",
"Injury": {
                        "Serious",
"enum": [
                        "Minor",
"Fatal",
                        "Not injured"
"Serious",
                    ],
"Minor",
                    "type": "string",
"Not injured"
                    "default": ""
],
                },
"type": "string",
                "Address": {
"default": ""
                    "type": "string",
},
                    "format": "text"
"Address": {
                },
"type": "string",
                "vehicle": {
"x-format": "text"
                    "type": "string",
},
                    "x-watch": {
"vehicle": {
                        "target": "vehicles"
"type": "string",
                    },
"x-watch": {
                    "x-enum-source": {
"target": "vehicles"
                        "title": "{{item.Vehicle type}} {{item.Make}} {{item.Model}}",
},
                        "value": "{{item._localId}}",
"x-enum-source": {
                        "source": "target"
"title": "{{item.Vehicle type}} {{item.Make}} {{item.Model}}",
                    }
"value": "{{item._localId}}",
                },
"source": "target"
                "Hospital": {
}
                    "type": "string",
},
                    "format": "text"
"Hospital": {
                },
"type": "string",
                "_localId": {
"x-format": "text"
                    "type": "string",
},
                    "x-format": "uuid",
"_localId": {
                    "x-hidden": true,
"type": "string",
                    "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
"x-format": "uuid",
                },
"x-hidden": true,
                "Involvment": {
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
                    "enum": [
},
                        "Pedestrian",
"Involvment": {
                        "Witness",
"enum": [
                        "Passenger",
"Pedestrian",
                        "Driver"
"Witness",
                    ],
"Passenger",
                    "type": "string",
"Driver"
                    "default": ""
],
                },
"type": "string",
                "Driver error": {
"default": ""
                    "enum": [
},
                        "Fatigued\/asleep",
"Driver error": {
                        "Inattentive",
"enum": [
                        "Too fast",
"Fatigued/asleep",
                        "Too close",
"Inattentive",
                        "No signal",
"Too fast",
                        "Bad overtaking",
"Too close",
                        "Bad turning",
"No signal",
                        "Using cell phone"
"Bad overtaking",
                    ],
"Bad turning",
                    "type": "string",
"Using cell phone"
                    "default": ""
],
                },
"type": "string",
                "Alcohol\/drugs": {
"default": ""
                    "enum": [
},
                        "Alcohol suspected",
"Alcohol/drugs": {
                        "Drugs suspected"
"enum": [
                    ],
"Alcohol suspected",
                    "type": "string",
"Drugs suspected"
                    "default": ""
],
                },
"type": "string",
                "License number": {
"default": ""
                    "type": "string",
},
                    "format": "text"
"License number": {
                },
"type": "string",
                "Seat belt\/helmet": {
"x-format": "text"
                    "enum": [
},
                        "Seat belt\/helmet worn",
"Seat belt/helmet": {
                        "Not worn",
"enum": [
                        "Not worn correctly"
"Seat belt/helmet worn",
                    ],
"Not worn",
                    "type": "string",
"Not worn correctly"
                    "default": ""
],
                }
"type": "string",
            },
"default": ""
            "definitions": [],
}
            "description": "A person involved in the accident"
},
        },
"description": "A person involved in the accident"
        "vehicle": {
},
            "type": "object",
"vehicle": {
            "title": "Vehicle",
"type": "object",
            "required": [
"title": "Vehicle",
                "_localId",
"required": [
                "Vehicle type"
"_localId",
            ],
"Vehicle type"
            "properties": {
],
                "Make": {
"properties": {
                    "type": "string",
"Make": {
                    "format": "text"
"type": "string",
                },
"x-format": "text"
                "Model": {
},
                    "type": "string",
"Model": {
                    "format": "text"
"type": "string",
                },
"x-format": "text"
                "Damage": {
},
                    "enum": [
"Damage": {
                        "None",
"enum": [
                        "Front",
"None",
                        "Rear",
"Front",
                        "Right",
"Rear",
                        "Left",
"Right",
                        "Roof",
"Left",
                        "Multiple"
"Roof",
                    ],
"Multiple"
                    "type": "string",
],
                    "default": ""
"type": "string",
                },
"default": ""
                "Defect": {
},
                    "enum": [
"Defect": {
                        "None",
"enum": [
                        "Lights",
"None",
                        "Brakes",
"Lights",
                        "Steering",
"Brakes",
                        "Tires",
"Steering",
                        "Multiple"
"Tires",
                    ],
"Multiple"
                    "type": "string",
],
                    "default": ""
"type": "string",
                },
"default": ""
                "Loading": {
},
                    "enum": [
"Loading": {
                        "Legal",
"enum": [
                        "Over loaded",
"Legal",
                        "Unsafe load"
"Over loaded",
                    ],
"Unsafe load"
                    "type": "string",
],
                    "default": ""
"type": "string",
                },
"default": ""
                "Maneuver": {
},
                    "enum": [
"Maneuver": {
                        "Left turn",
"enum": [
                        "Right turn",
"Left turn",
                        "\"U\" turn",
"Right turn",
                        "Cross traffic",
"\"U\" turn",
                        "Merging",
"Cross traffic",
                        "Diverging",
"Merging",
                        "Overtaking",
"Diverging",
                        "Going ahead",
"Overtaking",
                        "Reversing",
"Going ahead",
                        "Sudden start",
"Reversing",
                        "Sudden stop",
"Sudden start",
                        "Parked off road",
"Sudden stop",
                        "Parked on road"
"Parked off road",
                    ],
"Parked on road"
                    "type": "string",
],
                    "default": ""
"type": "string",
                },
"default": ""
                "_localId": {
},
                    "type": "string",
"_localId": {
                    "x-format": "uuid",
"type": "string",
                    "x-hidden": true,
"x-format": "uuid",
                    "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
"x-hidden": true,
                },
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
                "Direction": {
},
                    "enum": [
"Direction": {
                        "North",
"enum": [
                        "South",
"North",
                        "East",
"South",
                        "West"
"East",
                    ],
"West"
                    "type": "string",
],
                    "default": ""
"type": "string",
                },
"default": ""
                "Plate number": {
},
                    "type": "string",
"Plate number": {
                    "format": "text"
"type": "string",
                },
"x-format": "text"
                "Vehicle type": {
},
                    "enum": [
"Vehicle type": {
                        "Bicycle",
"enum": [
                        "Pedicab",
"Bicycle",
                        "Motorcycle",
"Pedicab",
                        "Tricycle",
"Motorcycle",
                        "Car",
"Tricycle",
                        "Jeepney",
"Car",
                        "Bus",
"Jeepney",
                        "Truck (Rigid)",
"Bus",
                        "Truck (Artic)",
"Truck (Rigid)",
                        "Van",
"Truck (Artic)",
                        "Animal"
"Van",
                    ],
"Animal"
                    "type": "string",
],
                    "default": ""
"type": "string",
                },
"default": ""
                "Engine number": {
},
                    "type": "string",
"Engine number": {
                    "format": "text"
"type": "string",
                },
"x-format": "text"
                "Chassis number": {
},
                    "type": "string",
"Chassis number": {
                    "format": "text"
"type": "string",
                },
"x-format": "text"
                "Insurance details": {
},
                    "type": "string",
"Insurance details": {
                    "format": "textarea"
"type": "string",
                }
"x-format": "textarea"
            },
}
            "definitions": [],
},
            "description": "A vehicle involved in the accident"
"description": "A vehicle involved in the accident"
        },
},
        "accidentDetails": {
"accidentDetails": {
            "type": "object",
"type": "object",
            "title": "Accident Details",
"title": "Accident Details",
            "details": true,
"details": true,
            "required": [
"required": [
                "_localId",
"_localId",
                "Severity"
"Severity"
            ],
],
            "properties": {
"properties": {
                "Severity": {
"Severity": {
                    "enum": [
"enum": [
                        "Fatal",
"Fatal",
                        "Injury",
"Injury",
                        "Property"
"Property"
                    ],
],
                    "type": "string",
"type": "string",
                    "isSearchable": true,
"isSearchable": true,
                    "default": ""
"default": ""
                },
},
                "_localId": {
"_localId": {
                    "type": "string",
"type": "string",
                    "x-format": "uuid",
"x-format": "uuid",
                    "x-hidden": true,
"x-hidden": true,
                    "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
                },
},
                "Main cause": {
"Main cause": {
                    "enum": [
"enum": [
                        "Vehicle defect",
"Vehicle defect",
                        "Road defect",
"Road defect",
                        "Human error"
"Human error"
                    ],
],
                    "type": "string",
"type": "string",
                    "isSearchable": true,
"isSearchable": true,
                    "default": ""
"default": ""
                },
},
                "Description": {
"Description": {
                    "type": "string",
"type": "string",
                    "format": "textarea"
"x-format": "textarea"
                },
},
                "Num vehicles": {
"Num vehicles": {
                    "type": "string",
"type": "integer"
                    "format": "number"
},
                },
"Surface type": {
                "Surface type": {
"enum": [
                    "enum": [
"Concrete",
                        "Concrete",
"Asphalt",
                        "Asphalt",
"Gravel",
                        "Gravel",
"Earth"
                        "Earth"
],
                    ],
"type": "string",
                    "type": "string",
"default": ""
                    "default": ""
},
                },
"Street lights": {
                "Street lights": {
"enum": [
                    "enum": [
"Lit",
                        "Lit",
"Unlit"
                        "Unlit"
],
                    ],
"type": "string"
                    "type": "string"
},
                },
"Collision type": {
                "Collision type": {
"enum": [
                    "enum": [
"Head on",
                        "Head on",
"Rear end",
                        "Rear end",
"Right angle",
                        "Right angle",
"Side swipe",
                        "Side swipe",
"Overturned vehicle",
                        "Overturned vehicle",
"Hit object in road",
                        "Hit object in road",
"Hit object off road",
                        "Hit object off road",
"Hit parked vehicle",
                        "Hit parked vehicle",
"Hit pedestrian",
                        "Hit pedestrian",
"Hit animal"
                        "Hit animal"
],
                    ],
"type": "string",
                    "type": "string",
"isSearchable": true,
                    "isSearchable": true,
"default": ""
                    "default": ""
},
                },
"Traffic control": {
                "Traffic control": {
"enum": [
                    "enum": [
"None",
                        "None",
"Centerline",
                        "Centerline",
"Pedestrian crossing",
                        "Pedestrian crossing",
"School crossing",
                        "School crossing",
"Police controlled",
                        "Police controlled",
"Traffic lights",
                        "Traffic lights",
"Stop sign",
                        "Stop sign",
"Give way"
                        "Give way"
],
                    ],
"type": "string",
                    "type": "string",
"default": ""
                    "default": ""
},
                },
"Surface condition": {
                "Surface condition": {
"enum": [
                    "enum": [
"Dry",
                        "Dry",
"Wet",
                        "Wet",
"Muddy",
                        "Muddy",
"Flooded"
                        "Flooded"
],
                    ],
"type": "string",
                    "type": "string",
"default": ""
                    "default": ""
},
                },
"Num driver casualties": {
                "Num driver casualties": {
"type": "integer"
                    "type": "string",
},
                    "format": "number",
"Num passenger casualties": {
                    "isSearchable": true
"type": "integer"
                },
},
                "Num passenger casualties": {
"Num pedestrian casualties": {
                    "type": "string",
"type": "integer"
                    "format": "number"
}
                },
},
                "Num pedestrian casualties": {
"description": "Details for Accident"
                    "type": "string",
}
                    "format": "number"
},
                }
"description": ""
            },
            "definitions": [],
            "description": "Details for Accident"
        }
    },
    "description": ""
}
}

Latest revision as of 12:54, 6 May 2026

type"object"
x-layout"paged"
title"AccidentDetail"
$schema"http://json-schema.org/draft-04/schema#"
properties
accidentDetails
$ref"#/definitions/accidentDetails"
type"object"
vehicles
x-layout"tabs"
title"vehicles"
type"array"
items
$ref"#/definitions/vehicle"
type"object"
people
x-layout"tabs"
type"array"
title"people"
items
$ref"#/definitions/person"
type"object"
definitions
person
type"object"
title"Person"
required
"_localId"
"Injury"
"vehicle"
properties
Age
type"integer"
Sex
enum
"Male"
"Female"
type"string"
default""
Name
type"string"
x-format"text"
Injury
enum
"Fatal"
"Serious"
"Minor"
"Not injured"
type"string"
default""
Address
type"string"
x-format"text"
vehicle
type"string"
x-watch
target"vehicles"
x-enum-source
title"{{item.Vehicle type}} {{item.Make}} {{item.Model}}"
value"{{item._localId}}"
source"target"
Hospital
type"string"
x-format"text"
_localId
type"string"
x-format"uuid"
x-hiddentrue
pattern"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
Involvment
enum
"Pedestrian"
"Witness"
"Passenger"
"Driver"
type"string"
default""
Driver error
enum
"Fatigued/asleep"
"Inattentive"
"Too fast"
"Too close"
"No signal"
"Bad overtaking"
"Bad turning"
"Using cell phone"
type"string"
default""
Alcohol/drugs
enum
"Alcohol suspected"
"Drugs suspected"
type"string"
default""
License number
type"string"
x-format"text"
Seat belt/helmet
enum
"Seat belt/helmet worn"
"Not worn"
"Not worn correctly"
type"string"
default""
description"A person involved in the accident"
vehicle
type"object"
title"Vehicle"
required
"_localId"
"Vehicle type"
properties
Make
type"string"
x-format"text"
Model
type"string"
x-format"text"
Damage
enum
"None"
"Front"
"Rear"
"Right"
"Left"
"Roof"
"Multiple"
type"string"
default""
Defect
enum
"None"
"Lights"
"Brakes"
"Steering"
"Tires"
"Multiple"
type"string"
default""
Loading
enum
"Legal"
"Over loaded"
"Unsafe load"
type"string"
default""
Maneuver
enum
"Left turn"
"Right turn"
""U" turn"
"Cross traffic"
"Merging"
"Diverging"
"Overtaking"
"Going ahead"
"Reversing"
"Sudden start"
"Sudden stop"
"Parked off road"
"Parked on road"
type"string"
default""
_localId
type"string"
x-format"uuid"
x-hiddentrue
pattern"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
Direction
enum
"North"
"South"
"East"
"West"
type"string"
default""
Plate number
type"string"
x-format"text"
Vehicle type
enum
"Bicycle"
"Pedicab"
"Motorcycle"
"Tricycle"
"Car"
"Jeepney"
"Bus"
"Truck (Rigid)"
"Truck (Artic)"
"Van"
"Animal"
type"string"
default""
Engine number
type"string"
x-format"text"
Chassis number
type"string"
x-format"text"
Insurance details
type"string"
x-format"textarea"
description"A vehicle involved in the accident"
accidentDetails
type"object"
title"Accident Details"
detailstrue
required
"_localId"
"Severity"
properties
Severity
enum
"Fatal"
"Injury"
"Property"
type"string"
isSearchabletrue
default""
_localId
type"string"
x-format"uuid"
x-hiddentrue
pattern"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
Main cause
enum
"Vehicle defect"
"Road defect"
"Human error"
type"string"
isSearchabletrue
default""
Description
type"string"
x-format"textarea"
Num vehicles
type"integer"
Surface type
enum
"Concrete"
"Asphalt"
"Gravel"
"Earth"
type"string"
default""
Street lights
enum
"Lit"
"Unlit"
type"string"
Collision type
enum
"Head on"
"Rear end"
"Right angle"
"Side swipe"
"Overturned vehicle"
"Hit object in road"
"Hit object off road"
"Hit parked vehicle"
"Hit pedestrian"
"Hit animal"
type"string"
isSearchabletrue
default""
Traffic control
enum
"None"
"Centerline"
"Pedestrian crossing"
"School crossing"
"Police controlled"
"Traffic lights"
"Stop sign"
"Give way"
type"string"
default""
Surface condition
enum
"Dry"
"Wet"
"Muddy"
"Flooded"
type"string"
default""
Num driver casualties
type"integer"
Num passenger casualties
type"integer"
Num pedestrian casualties
type"integer"
description"Details for Accident"
description""