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 Details

    • FhirCreate

      public FhirCreate(ca.uhn.fhir.rest.client.api.IGenericClient client)
  • Method Details

    • 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 a IBaseResource on the server
      Parameters:
      resource - The resource to create
      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%7C847366, may be null
      preferReturn - 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 null
      extraParameters - see ExtraParameters for 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 a IBaseResource on the server
      Parameters:
      resourceAsString - The resource to create
      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%7C847366, may be null
      preferReturn - 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 null
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
      Returns:
      The MethodOutcome