Search in sources :

Example 1 with MyPatientSpecification

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();
}
Also used : MyPatientSpecification(io.syndesis.qe.util.fhir.MyPatientSpecification) Then(io.cucumber.java.en.Then)

Example 2 with MyPatientSpecification

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();
}
Also used : MyPatientSpecification(io.syndesis.qe.util.fhir.MyPatientSpecification) Then(io.cucumber.java.en.Then)

Example 3 with MyPatientSpecification

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();
}
Also used : MyPatientSpecification(io.syndesis.qe.util.fhir.MyPatientSpecification) Then(io.cucumber.java.en.Then)

Example 4 with MyPatientSpecification

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);
}
Also used : MyPatientSpecification(io.syndesis.qe.util.fhir.MyPatientSpecification) DataTable(io.cucumber.datatable.DataTable) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)4 MyPatientSpecification (io.syndesis.qe.util.fhir.MyPatientSpecification)4 DataTable (io.cucumber.datatable.DataTable)1