Search in sources :

Example 1 with Basic

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);
}
Also used : IdType(org.hl7.fhir.dstu3.model.IdType)

Example 2 with Basic

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;
}
Also used : Basic(org.hl7.fhir.dstu3.model.Basic) MethodOutcome(ca.uhn.fhir.rest.api.MethodOutcome)

Aggregations

MethodOutcome (ca.uhn.fhir.rest.api.MethodOutcome)1 Basic (org.hl7.fhir.dstu3.model.Basic)1 IdType (org.hl7.fhir.dstu3.model.IdType)1