Tabnine Logo
IFetchConformanceTyped.execute
Code IndexAdd Tabnine to your IDE (free)

How to use
execute
method
in
ca.uhn.fhir.rest.gclient.IFetchConformanceTyped

Best Java code snippets using ca.uhn.fhir.rest.gclient.IFetchConformanceTyped.execute (Showing top 13 results out of 315)

origin: jamesagnew/hapi-fhir

  @Override
  public void run(String... args) throws Exception {
    fhirClient.capabilities()
        .ofType(CapabilityStatement.class)
        .execute();
  }
};
origin: jamesagnew/hapi-fhir

  @Override
  public void run(String... args) throws Exception {
    fhirClient.capabilities()
        .ofType(CapabilityStatement.class)
        .execute();
  }
};
origin: jamesagnew/hapi-fhir

  conformance = (IBaseResource) client.fetchConformance().ofType(implementingClass).execute();
} catch (FhirClientConnectionException e) {
  if (!myContext.getVersion().getVersion().isOlderThan(FhirVersionEnum.DSTU3) && e.getCause() instanceof DataFormatException) {
    capabilityStatementResourceName = "CapabilityStatement";
    implementingClass = myContext.getResourceDefinition(capabilityStatementResourceName).getImplementingClass();
    conformance = (IBaseResource) client.fetchConformance().ofType(implementingClass).execute();
  } else {
    throw e;
origin: org.apache.camel/camel-fhir-api

/**
 * Retrieve the conformance statement using the given model type
 * @param type the model type
 * @param extraParameters see {@link ExtraParameters} for a full list of parameters that can be passed, may be NULL
 * @param <T> extends {@link IBaseConformance}
 * @return the conformance statement
 */
public <T extends IBaseConformance> T ofType(Class<T> type, Map<ExtraParameters, Object> extraParameters) {
  IFetchConformanceTyped<T> fetchConformanceTyped = client.capabilities().ofType(type);
  ExtraParameters.process(extraParameters, fetchConformanceTyped);
  return fetchConformanceTyped.execute();
}
origin: org.openehealth.ipf.platform-camel/ipf-platform-camel-ihe-fhir-stu3-pixpdq

@Test
public void testGetConformance() {
  CapabilityStatement conf = client.capabilities().ofType(CapabilityStatement.class).execute();
  assertEquals(1, conf.getRest().size());
  CapabilityStatement.CapabilityStatementRestComponent component = conf.getRest().iterator().next();
  CapabilityStatement.CapabilityStatementRestOperationComponent operation = component.getOperation().iterator().next();
  assertEquals(Iti83Constants.PIXM_OPERATION_NAME.substring(1), operation.getName());
  // printAsXML(conf);
}
origin: org.openehealth.ipf.platform-camel/ipf-platform-camel-ihe-fhir-dstu2-pixpdq

@Test
public void testGetConformance() {
  Conformance conf = client.capabilities().ofType(Conformance.class).execute();
  assertEquals(1, conf.getRest().size());
  Conformance.ConformanceRestComponent component = conf.getRest().iterator().next();
  Conformance.ConformanceRestOperationComponent operation = component.getOperation().iterator().next();
  assertEquals(Iti83Constants.PIXM_OPERATION_NAME, operation.getName());
  // printAsXML(conf);
}
origin: org.openehealth.ipf.platform-camel/ipf-platform-camel-ihe-fhir-dstu2-mhd

@Test
public void testGetConformance() {
  Conformance conf = client.capabilities().ofType(Conformance.class).execute();
  Conformance.ConformanceRestComponent component = conf.getRest().iterator().next();
  assertEquals(Conformance.SystemRestfulInteraction.TRANSACTION, component.getInteraction().get(0).getCode());
}
origin: org.openehealth.ipf.platform-camel/ipf-platform-camel-ihe-fhir-stu3-mhd

@Test
public void testGetConformance() {
  CapabilityStatement conf = client.capabilities().ofType(CapabilityStatement.class).execute();
  CapabilityStatement.CapabilityStatementRestComponent component = conf.getRest().iterator().next();
  assertEquals(CapabilityStatement.SystemRestfulInteraction.TRANSACTION, component.getInteraction().get(0).getCode());
}
origin: org.hspconsortium.client/hspc-java-client

try {
  IGenericClient client = fhirContext.newRestfulGenericClient(fhirServiceUrl);
  conformance = client.fetchConformance().ofType(Conformance.class).execute();
} catch (FhirClientConnectionException e) {
  throw new FhirClientConnectionException(fhirContext.getLocalizer()
origin: org.hspconsortium.client/hspc-java-client

try {
  IGenericClient client = fhirContext.newRestfulGenericClient(fhirServiceUrl);
  capabilityStatement = client.fetchConformance().ofType(CapabilityStatement.class).execute();
} catch (FhirClientConnectionException e) {
  throw new FhirClientConnectionException(fhirContext.getLocalizer()
origin: org.hspconsortium/hsp-java-client

try {
  IGenericClient client = fhirContext.newRestfulGenericClient(fhirServiceUrl);
  conformance = client.fetchConformance().ofType(Conformance.class).execute();
} catch (FhirClientConnectionException e) {
  throw new FhirClientConnectionException(fhirContext.getLocalizer()
origin: jamesagnew/hapi-fhir

Conformance conf = client.fetchConformance().ofType(Conformance.class).execute();
System.out.println(conf.getDescriptionElement().getValue());
origin: ca.uhn.hapi.fhir/hapi-fhir-client

  conformance = (IBaseResource) client.fetchConformance().ofType(implementingClass).execute();
} catch (FhirClientConnectionException e) {
  if (!myContext.getVersion().getVersion().isOlderThan(FhirVersionEnum.DSTU3) && e.getCause() instanceof DataFormatException) {
    capabilityStatementResourceName = "CapabilityStatement";
    implementingClass = myContext.getResourceDefinition(capabilityStatementResourceName).getImplementingClass();
    conformance = (IBaseResource) client.fetchConformance().ofType(implementingClass).execute();
  } else {
    throw e;
ca.uhn.fhir.rest.gclientIFetchConformanceTypedexecute

Popular methods of IFetchConformanceTyped

    Popular in Java

    • Making http post requests using okhttp
    • startActivity (Activity)
    • setRequestProperty (URLConnection)
    • setContentView (Activity)
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • RandomAccessFile (java.io)
      Allows reading from and writing to a file in a random-access manner. This is different from the uni-
    • PriorityQueue (java.util)
      A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
    • Random (java.util)
      This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Top Sublime Text plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now