FHIR API to get list of all active inpatients

Can someone advise how to get a list of all active inpatients through FHIR API? Thanks