use of io.syndesis.qe.util.fhir.MyPatientSpecification in project syndesis-qe by syndesisio.
the class FhirValidationSteps method validateFhirDelete.
// entity PATIENT:
@Then("validate that patient with name {string} is not in FHIR")
public void validateFhirDelete(String fullName) {
MyPatientSpecification ps = splitName(fullName);
assertThat(fhirUtils.isPatientInFhir(ps)).isFalse();
}
use of io.syndesis.qe.util.fhir.MyPatientSpecification in project syndesis-qe by syndesisio.
the class FhirValidationSteps method validateThatPatientIsInFHIR.
@Then("validate that patient with name {string} is in FHIR")
public void validateThatPatientIsInFHIR(String name) {
MyPatientSpecification ps = splitName(name);
assertThat(fhirUtils.isPatientInFhir(ps)).isTrue();
}
use of io.syndesis.qe.util.fhir.MyPatientSpecification in project syndesis-qe by syndesisio.
the class FhirValidationSteps method validateThatLastInsertPatientNameHasBeenChangedToInFHIR.
@Then("validate that last inserted patients name has been changed to {string} in FHIR")
public void validateThatLastInsertPatientNameHasBeenChangedToInFHIR(String newName) {
MyPatientSpecification newPs = splitName(newName);
newPs.setId(fhirUtils.getLastPatientId());
assertThat(fhirUtils.isPatientInFhir(newPs)).isTrue();
}
use of io.syndesis.qe.util.fhir.MyPatientSpecification in project syndesis-qe by syndesisio.
the class FhirValidationSteps method createPatientWithNameOnFHIRServerAndDb.
@Then("create patient with name {string} on FHIR and put it into DB")
public void createPatientWithNameOnFHIRServerAndDb(String name) {
MyPatientSpecification ps = splitName(name);
ps.setId(fhirUtils.insertPatientToFhir(ps));
DataTable dt = prepareDataTable(ps);
dbValidationSteps.insertsIntoTable("CONTACT", dt);
}
Aggregations