public class FhirPatch extends Object
| Constructor and Description |
|---|
FhirPatch(ca.uhn.fhir.rest.client.api.IGenericClient client) |
| Modifier and Type | Method and Description |
|---|---|
ca.uhn.fhir.rest.api.MethodOutcome |
patchById(String patchBody,
org.hl7.fhir.instance.model.api.IIdType id,
ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn,
Map<ExtraParameters,Object> extraParameters)
Applies the patch to the given resource ID
|
ca.uhn.fhir.rest.api.MethodOutcome |
patchById(String patchBody,
String stringId,
ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn,
Map<ExtraParameters,Object> extraParameters)
Applies the patch to the given resource ID
|
ca.uhn.fhir.rest.api.MethodOutcome |
patchByUrl(String patchBody,
String url,
ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn,
Map<ExtraParameters,Object> extraParameters)
Specifies that the update should be performed as a conditional create
against a given search URL.
|
public ca.uhn.fhir.rest.api.MethodOutcome patchByUrl(String patchBody, String url, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
url - 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%7C847366patchBody - The body of the patch document serialized in either XML or JSON which conforms to
http://jsonpatch.com/ or http://tools.ietf.org/html/rfc5261preferReturn - 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()extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLMethodOutcomepublic ca.uhn.fhir.rest.api.MethodOutcome patchById(String patchBody, org.hl7.fhir.instance.model.api.IIdType id, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
patchBody - The body of the patch document serialized in either XML or JSON which conforms to
http://jsonpatch.com/ or http://tools.ietf.org/html/rfc5261id - The resource ID to patchpreferReturn - 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()extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLMethodOutcomepublic ca.uhn.fhir.rest.api.MethodOutcome patchById(String patchBody, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, Map<ExtraParameters,Object> extraParameters)
patchBody - The body of the patch document serialized in either XML or JSON which conforms to
http://jsonpatch.com/ or http://tools.ietf.org/html/rfc5261stringId - The resource ID to patchpreferReturn - 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()extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULLMethodOutcomeApache Camel