Helpful resources
FHIR
FHIR implementations
FHIR implementations are available in several languages. For more information, see link, and go to Reference Implementations. These implementations contain the server code, but several have client libraries as well.
OAuth 2 implementations
OAuth 2 implementations are available in several languages. For more information, see link. Some of these implementations contain the server code, but several have client libraries as well.
There are several tools you can use to test and explore Web Services and REST, including SoapUI. SoapUI allows you to setup OAuth 2 authorization.