public class FhirCreate extends Object
| Constructor and Description |
|---|
FhirCreate(ca.uhn.fhir.rest.client.api.IGenericClient client) |
| Modifier and Type | Method and Description |
|---|---|
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 a
IBaseResource on the server |
ca.uhn.fhir.rest.api.MethodOutcome |
resource(String resourceAsString,
String url,
ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn,
Map<ExtraParameters,Object> extraParameters)
Creates a
IBaseResource on the server |
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)
IBaseResource on the serverresource - 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 a Prefer header 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 via MethodOutcome.getResource(), may be nullextraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLMethodOutcomepublic ca.uhn.fhir.rest.api.MethodOutcome resource(String resourceAsString, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
IBaseResource on the serverresourceAsString - 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 a Prefer header 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 via MethodOutcome.getResource(), may be nullextraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLMethodOutcomeApache Camel