demo-process-models/playground/dan/bug-tracker/bug-details-schema.json

68 lines
1.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Emergency Room Intake Form",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"age": {
"type": "integer",
"minimum": 0,
"maximum": 120
},
"gender": {
"type": "string",
"enum": ["Male", "Female", "Other"]
},
"dateOfBirth": {
"type": "string",
"format": "date"
},
"address": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"phone": {
"type": "string",
"format": "phone"
},
"emergencyContactName": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"emergencyContactPhone": {
"type": "string",
"format": "phone"
},
"symptoms": {
"type": "array",
"items": {
"type": "string"
}
},
"allergies": {
"type": "array",
"items": {
"type": "string"
}
},
"medications": {
"type": "array",
"items": {
"type": "string"
}
},
"medicalHistory": {
"type": "string"
},
"socialHistory": {
"type": "string"
}
}
}