Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. {
  2. "_id": "58f9c87b5246af0aac145ew",
  3. "total": 2,
  4. "patientId": "xxxxxxx",
  5. "conditions": [
  6. {
  7. "verificationStatus": "confirmed",
  8. "dateRecorded": "2017-03-14",
  9. "clinicalStatus": "active",
  10. "description": "Afib"
  11. },
  12. {
  13. "verificationStatus": "confirmed",
  14. "dateRecorded": "2017-03-14",
  15. "clinicalStatus": "active",
  16. "description": "Arterial hypertension"
  17. }
  18. ]
  19. }
  20.  
  21. .find({
  22. "$and": [
  23. { "patientId": { $eq: pID } },
  24. { "conditions.description": { $text: { $search: "diabetes hypertension" }, $caseSensitive: false } }
  25. ]
  26. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement