How to finding the latest Encounter

Introduction

This sample will demonstrate how to issue a a FHIR query for encounter that finds the latest encounter based on date.

FHIR RESTful API

Use _sort and _count to find the one encounter for the patient that is the latest