Using Hapi to call syntheticmass

43 views
Skip to first unread message

Travis Frazier

unread,
Aug 28, 2020, 11:14:38 AM8/28/20
to HAPI FHIR

Hello, I'm new to HAPI and looking to create some tests/demos. I've made a call to syntheticmass to retrieve some patient data (https://syntheticmass.mitre.org/v1/fhir/Patient?_count=100&apikey=<APIKEY>)

In java I can make this call using standard HTTPClient but I'm not sure how to convert the json using HAPI. Should i be using IGenericClient that I see in some examples and if so how would make the above GET call to syntheticmass using it?

Thanks, Travis Frazier

Juan Alberto Acebes

unread,
Sep 21, 2021, 9:26:26 AM9/21/21
to HAPI FHIR

Take a look under  ca.uhn.fhir.rest.client.interceptor.... AdditionalRequestHeadersInterceptor?
Reply all
Reply to author
Forward
0 new messages