FHIR/fhir.js — pull request #16 by jmandel (2014-09-03 13:57:14+00:00)
Title: Middlewares

This proposed an approach to wrapping middlewares that's consistent across `search` and `http`. As an example of one such search middleware, I've sketcehed out `searchByPatient`, which can automatically restrict search results based on the currently-configured in-context patient. I also refactored the `authentication` middleware to use this approach

Thoughts?