...

  • Validate patient exists in MongoDB

    • In case of error return 404 not found

Validate encounter

  • Validate encounter exists in MongoDB

    • In case of error return 404 not found

  • Check encounter belongs to patient

    • In case of error return 404 not found

Processing

  1. Get encounter by ID

  2. Ensure that requested encounter relates to requested Patient

  3. Filter using Forbidden Groups

  4. Render a response according to specification

...