use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-quarkus by apache.
the class FhirR4Resource method metaDelete.
@Path("/meta")
@DELETE
@Produces(MediaType.TEXT_PLAIN)
public int metaDelete(@QueryParam("id") String id) {
IdType iIdType = new IdType(id);
Meta inMeta = new Meta();
inMeta.addTag().setSystem("urn:system1").setCode("urn:code1");
Map<String, Object> headers = new HashMap<>();
headers.put("CamelFhir.meta", inMeta);
headers.put("CamelFhir.id", iIdType);
IBaseMetaType result = producerTemplate.requestBodyAndHeaders("direct:metaDelete-r4", null, headers, IBaseMetaType.class);
return result.getTag().size();
}
use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-quarkus by apache.
the class FhirDstu3Resource method metaAdd.
// ///////////////////
// Meta
// ///////////////////
@Path("/meta")
@POST
@Produces(MediaType.TEXT_PLAIN)
public int metaAdd(@QueryParam("id") String id) {
IdType iIdType = new IdType(id);
Meta inMeta = new Meta();
inMeta.addTag().setSystem("urn:system1").setCode("urn:code1");
Map<String, Object> headers = new HashMap<>();
headers.put("CamelFhir.meta", inMeta);
headers.put("CamelFhir.id", iIdType);
IBaseMetaType result = producerTemplate.requestBodyAndHeaders("direct:metaAdd-dstu3", null, headers, IBaseMetaType.class);
return result.getTag().size();
}
use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-quarkus by apache.
the class FhirDstu2_1Resource method metaGetFromResource.
@Path("/meta/getFromResource")
@GET
@Produces(MediaType.TEXT_PLAIN)
public int metaGetFromResource(@QueryParam("id") String id) {
IdType iIdType = new IdType(id);
final Map<String, Object> headers = new HashMap<>();
headers.put("CamelFhir.metaType", Meta.class);
headers.put("CamelFhir.id", iIdType);
IBaseMetaType result = producerTemplate.requestBodyAndHeaders("direct:metaGetFromResource-dstu2-1", null, headers, IBaseMetaType.class);
return result.getTag().size();
}
use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-quarkus by apache.
the class FhirDstu3Resource method metaGetFromResource.
@Path("/meta/getFromResource")
@GET
@Produces(MediaType.TEXT_PLAIN)
public int metaGetFromResource(@QueryParam("id") String id) {
IdType iIdType = new IdType(id);
final Map<String, Object> headers = new HashMap<>();
headers.put("CamelFhir.metaType", Meta.class);
headers.put("CamelFhir.id", iIdType);
IBaseMetaType result = producerTemplate.requestBodyAndHeaders("direct:metaGetFromResource-dstu3", null, headers, IBaseMetaType.class);
return result.getTag().size();
}
use of org.hl7.fhir.instance.model.api.IBaseMetaType in project camel-quarkus by apache.
the class FhirR5Resource method metaDelete.
@Path("/meta")
@DELETE
@Produces(MediaType.TEXT_PLAIN)
public int metaDelete(@QueryParam("id") String id) {
IdType iIdType = new IdType(id);
Meta inMeta = new Meta();
inMeta.addTag().setSystem("urn:system1").setCode("urn:code1");
Map<String, Object> headers = new HashMap<>();
headers.put("CamelFhir.meta", inMeta);
headers.put("CamelFhir.id", iIdType);
IBaseMetaType result = producerTemplate.requestBodyAndHeaders("direct:metaDelete-r5", null, headers, IBaseMetaType.class);
return result.getTag().size();
}
Aggregations