use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-spring-boot by apache.
the class FhirMetaTest method testGetFromResource.
@Test
public void testGetFromResource() throws Exception {
final Map<String, Object> headers = new HashMap<>();
// parameter type is Class
headers.put("CamelFhir.metaType", Meta.class);
// parameter type is org.hl7.fhir.instance.model.api.IIdType
headers.put("CamelFhir.id", this.patient.getIdElement());
IBaseMetaType result = requestBodyAndHeaders("direct://GET_FROM_RESOURCE", null, headers);
LOG.debug("getFromResource: " + result);
assertNotNull(result, "getFromResource result");
assertEquals(0, result.getTag().size());
}
use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-spring-boot by apache.
the class FhirMetaTest method testGetFromType.
@Test
public void testGetFromType() throws Exception {
final Map<String, Object> headers = new HashMap<>();
// parameter type is Class
headers.put("CamelFhir.metaType", Meta.class);
// parameter type is String
headers.put("CamelFhir.resourceType", "Patient");
IBaseMetaType result = requestBodyAndHeaders("direct://GET_FROM_TYPE", null, headers);
LOG.debug("getFromType: " + result);
assertNotNull(result, "getFromType result");
}
use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-spring-boot by apache.
the class FhirMetaIT method testGetFromType.
@Test
public void testGetFromType() throws Exception {
final Map<String, Object> headers = new HashMap<>();
// parameter type is Class
headers.put("CamelFhir.metaType", Meta.class);
// parameter type is String
headers.put("CamelFhir.resourceType", "Patient");
IBaseMetaType result = requestBodyAndHeaders("direct://GET_FROM_TYPE", null, headers);
LOG.debug("getFromType: " + result);
assertNotNull(result, "getFromType result");
}
use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-spring-boot by apache.
the class FhirMetaIT method testGetFromServer.
@Test
public void testGetFromServer() throws Exception {
// using Class message body for single parameter "metaType"
IBaseMetaType result = requestBody("direct://GET_FROM_SERVER", Meta.class);
assertNotNull(result, "getFromServer result");
LOG.debug("getFromServer: " + result);
}
Aggregations