Class FhirCreate
- java.lang.Object
-
- org.apache.camel.component.fhir.api.FhirCreate
-
public class FhirCreate extends Object
API for the "create" operation, which creates a new resource instance on the server
-
-
Constructor Summary
Constructors Constructor Description FhirCreate(ca.uhn.fhir.rest.client.api.IGenericClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uhn.fhir.rest.api.MethodOutcomeresource(String resourceAsString, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)Creates aIBaseResourceon the serverca.uhn.fhir.rest.api.MethodOutcomeresource(org.hl7.fhir.instance.model.api.IBaseResource resource, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)Creates aIBaseResourceon the server
-
-
-
Method Detail
-
resource
public ca.uhn.fhir.rest.api.MethodOutcome resource(org.hl7.fhir.instance.model.api.IBaseResource resource, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)Creates aIBaseResourceon the server- Parameters:
resource- The resource to createurl- The search URL to use. The format of this URL should be of the form[ResourceType]?[Parameters], for example:Patient?name=Smith&identifier=13.2.4.11.4%7C847366, may be nullpreferReturn- Add aPreferheader to the request, which requests that the server include or suppress the resource body as a part of the result. If a resource is returned by the server it will be parsed an accessible to the client viaMethodOutcome.getResource(), may be nullextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- The
MethodOutcome
-
resource
public ca.uhn.fhir.rest.api.MethodOutcome resource(String resourceAsString, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
Creates aIBaseResourceon the server- Parameters:
resourceAsString- The resource to createurl- The search URL to use. The format of this URL should be of the form[ResourceType]?[Parameters], for example:Patient?name=Smith&identifier=13.2.4.11.4%7C847366, may be nullpreferReturn- Add aPreferheader to the request, which requests that the server include or suppress the resource body as a part of the result. If a resource is returned by the server it will be parsed an accessible to the client viaMethodOutcome.getResource(), may be nullextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- The
MethodOutcome
-
-