Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Staff Collection
- {
- "_id": ObjectId(),
- "photo":any || binary,
- "firstName": "",
- "middleName": "",
- "lastName": "",
- "bloodGroup": "",
- "addresses": [
- {
- "addressLine1":"",
- "addressLine2":"",
- "state": "", //datalist from external api
- "city": "", //datalist from external api
- "country": "", //datalist form external api
- "pincode":""
- },
- {
- //secondary if applicable
- }
- ],
- "email": "",
- "phones": [
- "+389123918",
- "+19381930" //secondary if applicable
- ],
- "role": "doctor"|| "nurse" || "receptionist" || "peon",
- "shifts": [ //will be updated alongside the shift collection if shift is changed
- {
- "shiftId": ObjectId(),
- "startTime": ISODate(),
- "endTime": ISODate()
- }
- ]
- }
- // Shift Collection
- {
- "_id": ObjectId(),
- "name":"morning"|| etc....,
- "startTime": ISODate(),
- "endTime": ISODate(),
- "receptionists": [
- ObjectId("..."),
- ObjectId("...")
- ],
- "nurses": [
- ObjectId("..."),
- ObjectId("..."),
- ObjectId("..."),
- ObjectId("...")
- ],
- "doctors": [
- ObjectId("..."),
- ObjectId("...")
- ],
- "triageDoctor": ObjectId("...")
- }
- // Patient Collection
- {
- "_id": ObjectId(),
- "photo":any || binary,
- "firstName": "",
- "middleName": "",
- "lastName": "",
- "addresses": [
- {
- "addressLine1":"",
- "addressLine2":"",
- "state": "",//datalist form external api
- "city": "",//datalist form external api
- "country": "",//datalist form external api
- "pincode":""
- },
- {
- //secondary if applicable
- }
- ],
- "emails": "" || null,
- "phones": [
- "+2987654321",
- "+1021231230" //secondary if applicable
- ],
- "gaudian": [
- {
- "name": "",
- "relation": "",
- "mobileNo": ""
- }
- ],
- "bloodGroup": "",
- "admittedBy": ObjectId(), // reference to the receptionist
- "triageDoctor": ObjectId(), // reference to the triage doctor
- "caseDoctors": [
- {
- "id":ObjectId(), // only if admitted
- "name": "" //
- }
- ],
- "bedAssigned": {
- "bedId": ObjectId(), // only if admitted
- "nurse": ObjectId() // only if admitted
- },
- "medications": [ //nullable depends on situation
- {
- "medicationName": "",
- "prescribedBy": ObjectId(), //doctor reference
- "administeredBy": [
- {
- "nurseId": ObjectId(),
- "shiftId": ObjectId()
- }
- ]
- }
- ],
- "type": "regular"||"staff",
- "staffRole": "doctor"||"peon"||"nurse"||"receptionist",
- "status": "admitted" || "sent home"
- }
- //Bed Collection
- {
- "_id": ObjectId(),
- "bedNumber": "",
- "location": "floors no.",
- "type": "regular"||"deluxe"...,
- "status": "available"|| "occupied",
- "patient": {
- "patientId": ObjectId(), // only if assigned
- "admittedDate": ISODate() // only if assigned
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement