-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: weskubo-cgi <Wesley.Kubo@gov.bc.ca>
- Loading branch information
1 parent
2dabea6
commit 20b813b
Showing
6 changed files
with
165 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
backend/src/main/java/ca/bc/gov/hlth/hnweb/service/RegistrationResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package ca.bc.gov.hlth.hnweb.service; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import ca.bc.gov.hlth.hnweb.persistence.entity.pbf.PatientRegister; | ||
|
||
public class RegistrationResult { | ||
private List<PatientRegister> patientRegisters = new ArrayList<>(); | ||
|
||
private String registrationMessage; | ||
|
||
public List<PatientRegister> getPatientRegisters() { | ||
return patientRegisters; | ||
} | ||
|
||
public void setPatientRegisters(List<PatientRegister> patientRegisters) { | ||
this.patientRegisters = patientRegisters; | ||
} | ||
|
||
public String getRegistrationMessage() { | ||
return registrationMessage; | ||
} | ||
|
||
public void setRegistrationMessage(String registrationMessage) { | ||
this.registrationMessage = registrationMessage; | ||
} | ||
|
||
public Boolean exists() { | ||
return !patientRegisters.isEmpty() || StringUtils.isNotEmpty(registrationMessage); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters