use of org.hl7.fhir.dstu3.model.Basic in project syndesis-qe by syndesisio.
the class FhirUtils method deleteOneBasic.
public void deleteOneBasic(Basic basic) {
IdType idtp = new IdType(extractSimpleId(basic.getId(), FhirEntity.BASIC.getName()));
checkConnection();
fhirClient.deleteBasicById(idtp);
}
use of org.hl7.fhir.dstu3.model.Basic in project syndesis-qe by syndesisio.
the class FhirUtils method insertBasicToFhir.
// entity: BASIC
public String insertBasicToFhir(String language) {
Basic basic = new Basic();
basic.setLanguage(language);
checkConnection();
MethodOutcome outcome = fhirClient.createBasic(basic);
lastBasicId = this.extractSimpleId(outcome.getId().getValue(), FhirEntity.BASIC.getName());
log.info("Basic with language *{}* has been inserted with id:*{}*", language, lastBasicId);
return lastBasicId;
}
Aggregations