Skip to content

Commit

Permalink
patients data populate
Browse files Browse the repository at this point in the history
  • Loading branch information
parvg555 committed Oct 28, 2022
1 parent 7e9645b commit fd70586
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion backend/routes/patients.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ const patientsData = Router();
patientsData.get('/:id',async (req,res) => {
let patient = await Patients.findOne(
{id:req.params.id}
).populate(["encounters","immunizations"]);
).populate([
"encounters",
"immunizations",
"conditions",
"allergies",
"devices",
"imagingStudies",
"observations",
"supplies",
"medications",
"procedures"
]);
return res.send(patient);
})

Expand Down

0 comments on commit fd70586

Please sign in to comment.