AccidentDetail: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
No edit summary
 
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"
"type": "object"
        },
},
        "vehicles": {
"vehicles": {
            "x-layout": "tabs",
"x-layout": "tabs",
            "title": "vehicles",
"title": "vehicles",
            "type": "array",
"type": "array",
            "items": {
"items": {
                "$ref": "#\/definitions\/vehicle",
"$ref": "#/definitions/vehicle",
                "type": "object"
"type": "object"
            }
}
        },
},
        "people": {
"people": {
            "x-layout": "tabs",
"x-layout": "tabs",
            "type": "array",
"type": "array",
            "title": "people",
"title": "people",
            "items": {
"items": {
                "$ref": "#\/definitions\/person",
"$ref": "#/definitions/person",
                "type": "object"
"type": "object"
            }
}
        }
}
    },
},
    "definitions": {
"definitions": {
        "person": {
"person": {
            "type": "object",
"type": "object",
            "title": "Person",
"title": "Person",
            "required": [
"required": [
                "_localId",
"_localId",
                "Injury",
"Injury",
                "vehicle"
"vehicle"
            ],
],
            "properties": {
"properties": {
                "Age": {
"Age": {
                    "type": "integer"
"type": "integer"
                },
},
                "Sex": {
"Sex": {
                    "enum": [
"enum": [
                        "Male",
"Male",
                        "Female"
"Female"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Name": {
"Name": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "Injury": {
"Injury": {
                    "enum": [
"enum": [
                        "Fatal",
"Fatal",
                        "Serious",
"Serious",
                        "Minor",
"Minor",
                        "Not injured"
"Not injured"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Address": {
"Address": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "vehicle": {
"vehicle": {
                    "type": "string",
"type": "string",
                    "x-watch": {
"x-watch": {
                        "target": "vehicles"
"target": "vehicles"
                    },
},
                    "x-enum-source": {
"x-enum-source": {
                        "title": "{{item.Vehicle type}} {{item.Make}} {{item.Model}}",
"title": "{{item.Vehicle type}} {{item.Make}} {{item.Model}}",
                        "value": "{{item._localId}}",
"value": "{{item._localId}}",
                        "source": "target"
"source": "target"
                    }
}
                },
},
                "Hospital": {
"Hospital": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "_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}$"
                },
},
                "Involvment": {
"Involvment": {
                    "enum": [
"enum": [
                        "Pedestrian",
"Pedestrian",
                        "Witness",
"Witness",
                        "Passenger",
"Passenger",
                        "Driver"
"Driver"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Driver error": {
"Driver error": {
                    "enum": [
"enum": [
                        "Fatigued\/asleep",
"Fatigued/asleep",
                        "Inattentive",
"Inattentive",
                        "Too fast",
"Too fast",
                        "Too close",
"Too close",
                        "No signal",
"No signal",
                        "Bad overtaking",
"Bad overtaking",
                        "Bad turning",
"Bad turning",
                        "Using cell phone"
"Using cell phone"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Alcohol\/drugs": {
"Alcohol/drugs": {
                    "enum": [
"enum": [
                        "Alcohol suspected",
"Alcohol suspected",
                        "Drugs suspected"
"Drugs suspected"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "License number": {
"License number": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "Seat belt\/helmet": {
"Seat belt/helmet": {
                    "enum": [
"enum": [
                        "Seat belt\/helmet worn",
"Seat belt/helmet worn",
                        "Not worn",
"Not worn",
                        "Not worn correctly"
"Not worn correctly"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                }
}
            },
},
            "description": "A person involved in the accident"
"description": "A person involved in the accident"
        },
},
        "vehicle": {
"vehicle": {
            "type": "object",
"type": "object",
            "title": "Vehicle",
"title": "Vehicle",
            "required": [
"required": [
                "_localId",
"_localId",
                "Vehicle type"
"Vehicle type"
            ],
],
            "properties": {
"properties": {
                "Make": {
"Make": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "Model": {
"Model": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "Damage": {
"Damage": {
                    "enum": [
"enum": [
                        "None",
"None",
                        "Front",
"Front",
                        "Rear",
"Rear",
                        "Right",
"Right",
                        "Left",
"Left",
                        "Roof",
"Roof",
                        "Multiple"
"Multiple"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Defect": {
"Defect": {
                    "enum": [
"enum": [
                        "None",
"None",
                        "Lights",
"Lights",
                        "Brakes",
"Brakes",
                        "Steering",
"Steering",
                        "Tires",
"Tires",
                        "Multiple"
"Multiple"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Loading": {
"Loading": {
                    "enum": [
"enum": [
                        "Legal",
"Legal",
                        "Over loaded",
"Over loaded",
                        "Unsafe load"
"Unsafe load"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Maneuver": {
"Maneuver": {
                    "enum": [
"enum": [
                        "Left turn",
"Left turn",
                        "Right turn",
"Right turn",
                        "\"U\" turn",
"\"U\" turn",
                        "Cross traffic",
"Cross traffic",
                        "Merging",
"Merging",
                        "Diverging",
"Diverging",
                        "Overtaking",
"Overtaking",
                        "Going ahead",
"Going ahead",
                        "Reversing",
"Reversing",
                        "Sudden start",
"Sudden start",
                        "Sudden stop",
"Sudden stop",
                        "Parked off road",
"Parked off road",
                        "Parked on road"
"Parked on road"
                    ],
],
                    "type": "string",
"type": "string",
                    "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}$"
                },
},
                "Direction": {
"Direction": {
                    "enum": [
"enum": [
                        "North",
"North",
                        "South",
"South",
                        "East",
"East",
                        "West"
"West"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Plate number": {
"Plate number": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "Vehicle type": {
"Vehicle type": {
                    "enum": [
"enum": [
                        "Bicycle",
"Bicycle",
                        "Pedicab",
"Pedicab",
                        "Motorcycle",
"Motorcycle",
                        "Tricycle",
"Tricycle",
                        "Car",
"Car",
                        "Jeepney",
"Jeepney",
                        "Bus",
"Bus",
                        "Truck (Rigid)",
"Truck (Rigid)",
                        "Truck (Artic)",
"Truck (Artic)",
                        "Van",
"Van",
                        "Animal"
"Animal"
                    ],
],
                    "type": "string",
"type": "string",
                    "default": ""
"default": ""
                },
},
                "Engine number": {
"Engine number": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "Chassis number": {
"Chassis number": {
                    "type": "string",
"type": "string",
                    "x-format": "text"
"x-format": "text"
                },
},
                "Insurance details": {
"Insurance details": {
                    "type": "string",
"type": "string",
                    "x-format": "textarea"
"x-format": "textarea"
                }
}
            },
},
            "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",
                    "x-format": "textarea"
"x-format": "textarea"
                },
},
                "Num vehicles": {
"Num vehicles": {
                    "type": "string",
"type": "integer"
                    "x-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": "integer"
},
                },
"Num passenger casualties": {
                "Num passenger casualties": {
"type": "integer"
                    "type": "integer"
},
                },
"Num pedestrian casualties": {
                "Num pedestrian casualties": {
"type": "integer"
                    "type": "integer"
}
                }
},
            },
"description": "Details for Accident"
            "description": "Details for Accident"
}
        }
},
    },
"description": ""
    "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""