Class FhirR5Resource
java.lang.Object
org.apache.camel.quarkus.component.fhir.it.FhirR5Resource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.CamelContext(package private) jakarta.enterprise.inject.Instance<ca.uhn.fhir.context.FhirContext>(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapabilities(String encodeAs) jakarta.json.JsonObjectcreatePatient(String firstName, String lastName, String address) jakarta.json.JsonObjectcreatePatientAsStringResource(String firstName, String lastName, String address, String encodeAs) deletePatientByUrl(boolean noCache) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseintintintintintintloadPagePrevious(boolean encodeAsXml) intintmetaDelete(String id) intintintmetaGetFromType(boolean preferResponseType) booleanpatchByStringId(String id, boolean preferResponseTypes, String patch) patchByUrl(String id, String patch) jakarta.ws.rs.core.ResponsereadByUrlAndStringResource(String id, boolean prettyPrint) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsereadPatientByStringIdAndVersion(String id, String version) jakarta.ws.rs.core.ResponsereadPatientByStringIdAndVersionWithResourceClass(String id, String version) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsesearchByUrl(String id) inttransactionWithResources(boolean summaryEnum) voidupdateResource(String id) voidvoidvoidvoid
-
Field Details
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
context
@Inject org.apache.camel.CamelContext context -
fhirContextInstance
@Inject @Named("R5") jakarta.enterprise.inject.Instance<ca.uhn.fhir.context.FhirContext> fhirContextInstance
-
-
Constructor Details
-
FhirR5Resource
public FhirR5Resource()
-
-
Method Details
-
capabilities
-
createPatientAsStringResource
@Path("/createPatientAsStringResource") @POST @Produces("application/json") public jakarta.json.JsonObject createPatientAsStringResource(@QueryParam("firstName") String firstName, @QueryParam("lastName") String lastName, @QueryParam("address") String address, @QueryParam("encodeAs") String encodeAs) -
createPatient
-
fhir2json
@Path("/fhir2json") @GET @Produces("application/octet-stream") public jakarta.ws.rs.core.Response fhir2json(@QueryParam("firstName") String firstName, @QueryParam("lastName") String lastName, @QueryParam("address") String address) throws Exception - Throws:
Exception
-
fhir2xml
@Path("/fhir2xml") @GET @Produces("application/octet-stream") public jakarta.ws.rs.core.Response fhir2xml(@QueryParam("firstName") String firstName, @QueryParam("lastName") String lastName, @QueryParam("address") String address) throws Exception - Throws:
Exception
-
deletePatientByModel
-
deletePatientById
-
deletePatientByIdPart
-
deletePatientByUrl
@Path("/deletePatient/byUrl") @DELETE @Produces("text/plain") public String deletePatientByUrl(@QueryParam("cache") boolean noCache) -
historyOnInstance
@Path("/history/onInstance") @GET @Produces("text/plain") public int historyOnInstance(@QueryParam("id") String id) -
historyOnServer
@Path("/history/onServer") @GET @Produces("text/plain") public int historyOnServer() -
historyOnType
@Path("/history/onType") @GET @Produces("text/plain") public int historyOnType() -
loadPageByUrl
@Path("/load/page/byUrl") @GET @Produces("text/plain") public int loadPageByUrl() -
loadPageNext
@Path("/load/page/next") @GET @Produces("text/plain") public int loadPageNext() -
loadPagePrevious
@Path("/load/page/previous") @GET @Produces("text/plain") public int loadPagePrevious(@QueryParam("encodeAsXml") boolean encodeAsXml) -
metaAdd
-
metaDelete
-
metaGetFromResource
@Path("/meta/getFromResource") @GET @Produces("text/plain") public int metaGetFromResource(@QueryParam("id") String id) -
metaGetFromServer
@Path("/meta/getFromServer") @GET @Produces("text/plain") public int metaGetFromServer() -
metaGetFromType
@Path("/meta/getFromType") @GET @Produces("text/plain") public int metaGetFromType(@QueryParam("preferResponseType") boolean preferResponseType) -
operationOnInstance
-
operationOnInstanceVersion
-
operationOnServer
@Path("/operation/onServer") @GET @Produces("text/plain") public boolean operationOnServer() -
operationOnType
-
operationProcessMessage
@Path("/operation/processMessage") @GET @Produces("text/plain") public String operationProcessMessage() -
patchById
-
patchByStringId
-
patchByUrl
@Path("/patch/byUrl") @PATCH @Produces("text/plain") public String patchByUrl(@QueryParam("id") String id, String patch) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
readPatientById
@Path("/readPatient/byId") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientById(@QueryParam("id") String id) -
readPatientByLongId
@Path("/readPatient/byLongId") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByLongId(@QueryParam("id") String id) -
readPatientByStringId
@Path("/readPatient/byStringId") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByStringId(@QueryParam("id") String id) -
readPatientByIdAndStringResource
@Path("/readPatient/byIdAndStringResource") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByIdAndStringResource(@QueryParam("id") String id) -
readPatientByLongIdAndStringResource
@Path("/readPatient/byLongIdAndStringResource") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByLongIdAndStringResource(@QueryParam("id") String id) -
readPatientByStringIdAndStringResource
@Path("/readPatient/byStringIdAndStringResource") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByStringIdAndStringResource(@QueryParam("id") String id) -
readPatientByStringIdAndVersion
-
readPatientByStringIdAndVersionWithResourceClass
-
readPatientByIUrl
@Path("/readPatient/byIUrl") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByIUrl(@QueryParam("id") String id) -
readPatientByUrl
@Path("/readPatient/byUrl") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByUrl(@QueryParam("id") String id) -
readPatientByStringUrlAndStringResource
@Path("/readPatient/byStringUrlAndStringResource") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readPatientByStringUrlAndStringResource(@QueryParam("id") String id) -
readByUrlAndStringResource
@Path("/readPatient/byUrlAndStringResource") @GET @Produces("application/json") public jakarta.ws.rs.core.Response readByUrlAndStringResource(@QueryParam("id") String id, @QueryParam("prettyPrint") boolean prettyPrint) -
searchByUrl
@Path("/search/byUrl") @GET @Produces("application/json") public jakarta.ws.rs.core.Response searchByUrl(@QueryParam("id") String id) -
transactionWithBundle
-
transactionWithStringBundle
@Path("/transaction/withStringBundle") @GET @Produces("text/plain") public String transactionWithStringBundle() -
transactionWithResources
@Path("/transaction/withResources") @GET @Produces("text/plain") public int transactionWithResources(@QueryParam("summaryEnum") boolean summaryEnum) -
updateResource
@Path("/update/resource") @POST public void updateResource(@QueryParam("id") String id) throws ParseException - Throws:
ParseException
-
updateResourceWithoutId
@Path("/update/resource/withoutId") @POST public void updateResourceWithoutId(@QueryParam("id") String id) throws ParseException - Throws:
ParseException
-
updateResourceWithStringId
@Path("/update/resource/withStringId") @POST public void updateResourceWithStringId(@QueryParam("id") String id) throws ParseException - Throws:
ParseException
-
updateResourceAsString
@Path("/update/resource/asString") @POST public void updateResourceAsString(@QueryParam("id") String id) throws ParseException - Throws:
ParseException
-
updateResourceAsStringWithStringId
@Path("/update/resource/asStringWithStringId") @POST public void updateResourceAsStringWithStringId(@QueryParam("id") String id) throws ParseException - Throws:
ParseException
-
updateResourceBySearchUrl
@Path("/update/resource/bySearchUrl") @POST @Produces("text/plain") public String updateResourceBySearchUrl(@QueryParam("id") String id) throws Exception - Throws:
Exception
-
updateResourceByUrlAndResourceAsString
@Path("/update/resource/bySearchUrlAndResourceAsString") @POST @Produces("text/plain") public String updateResourceByUrlAndResourceAsString(@QueryParam("id") String id) throws Exception - Throws:
Exception
-
validateResource
-
validateResourceAsString
@Path("/validate/resourceAsString") @GET @Produces("text/plain") public String validateResourceAsString()
-