{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"dischargedCount": {
"type": "number"
},
"admissions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_id": {
"type": "string"
},
"hospitalId": {
"type": "string"
},
"assignmentId": {
"type": "string"
},
"disasterId": {
"type": "string"
},
"patientId": {
"type": "string"
},
"triageClassification": {
"type": "string"
},
"status": {
"type": "string"
},
"admittedAt": {
"type": "object"
},
"dischargedAt": {
"type": "object"
}
},
"required": [
"_id",
"hospitalId",
"assignmentId",
"disasterId",
"patientId",
"triageClassification",
"status",
"admittedAt"
]
}
}
},
"required": [
"dischargedCount",
"admissions"
]
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"hospitalId": {
"type": "string"
}
},
"required": [
"status",
"hospitalId"
]
}