aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/services
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-11-02 14:11:14 -0700
committervlad <vlad@driver.xyz>2017-11-02 14:11:14 -0700
commit4583af5213b9f7b1e8a06f58321813556763f2d1 (patch)
treeb2951e3745e22f671d14977dfc30b2e1567d4bdc /src/main/scala/xyz/driver/pdsuidomain/services
parent144d8da225d18584dbc19589ba735b84cf3b6637 (diff)
downloadrest-query-4583af5213b9f7b1e8a06f58321813556763f2d1.tar.gz
rest-query-4583af5213b9f7b1e8a06f58321813556763f2d1.tar.bz2
rest-query-4583af5213b9f7b1e8a06f58321813556763f2d1.zip
Rolling back `eligibilityStatus` value typev0.12.4
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/services')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
index f2b4434..bec0c65 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/services/PatientCriterionService.scala
@@ -15,11 +15,11 @@ import scala.concurrent.Future
object PatientCriterionService {
final case class DraftPatientCriterion(id: LongId[PatientCriterion],
- eligibilityStatus: Option[Option[LabelValue]],
+ eligibilityStatus: Option[LabelValue],
isVerified: Option[Boolean]) {
def applyTo(orig: PatientCriterion) = {
orig.copy(
- eligibilityStatus = eligibilityStatus.getOrElse(orig.eligibilityStatus),
+ eligibilityStatus = eligibilityStatus.orElse(orig.eligibilityStatus),
isVerified = isVerified.getOrElse(orig.isVerified)
)
}