aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-10-01 13:07:43 -0700
committervlad <vlad@driver.xyz>2017-10-01 13:07:43 -0700
commitc5b7f009479930b82f0fb839971eeb2c457dcef0 (patch)
tree462c3cfd84cc75c158c0a27c7dea4a32f2ed2981
parentfb9b25e867287c485b1b3e97352d9d816147df36 (diff)
downloadrest-query-0.5.2.tar.gz
rest-query-0.5.2.tar.bz2
rest-query-0.5.2.zip
Slight changes in namingv0.5.2
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/eligibility.scala4
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/fakes/entities/eligibility.scala10
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/eligibility.scala2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/eligibility.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/eligibility.scala
index 0d0965b..1a900ac 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/eligibility.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/entities/eligibility.scala
@@ -54,8 +54,8 @@ object eligibility {
evidence: Seq[Evidence])
final case class MismatchRankedLabels(data: Seq[LabelMismatchRank], labelVersion: Int)
- final case class MatchedPatient(patientId: Id[Patient],
- name: FullName[Patient],
+ final case class MatchedPatient(patientId: Id[xyz.driver.entities.patient.Patient],
+ name: FullName[xyz.driver.entities.patient.Patient],
birthDate: Date,
orderId: Id[TestOrder],
disease: CancerType,
diff --git a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/eligibility.scala b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/eligibility.scala
index 7dc50be..5f3321c 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/eligibility.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/eligibility.scala
@@ -2,7 +2,7 @@ package xyz.driver.pdsuidomain.fakes.entities
import xyz.driver.core.generators
import xyz.driver.entities.clinic.{ClinicalRecord, TestOrder}
-import xyz.driver.entities.patient.CancerType
+import xyz.driver.entities.patient.{CancerType, Patient}
import xyz.driver.entities.report.Report
import xyz.driver.fakes
import xyz.driver.pdsuidomain.entities.eligibility._
@@ -46,8 +46,8 @@ object eligibility {
isPrimaryValue = nextOption(nextBoolean())
)
- def nextLabelWithEvidence(): LabelWithEvidence =
- LabelWithEvidence(label = fakes.entities.labels.nextLabel(), evidence = Seq.empty)
+ def nextLabelEvidence(): LabelEvidence =
+ LabelEvidence(label = fakes.entities.labels.nextLabel(), evidence = Seq.empty)
def nextLabelMismatchRank(): LabelMismatchRank =
LabelMismatchRank(
@@ -62,8 +62,8 @@ object eligibility {
def nextMatchedPatient(): MatchedPatient =
MatchedPatient(
- patientId = nextId[MatchedPatient](),
- name = fakes.entities.common.nextFullName[MatchedPatient](),
+ patientId = nextId[Patient](),
+ name = fakes.entities.common.nextFullName[Patient](),
birthDate = nextDate(),
orderId = nextId[TestOrder](),
disease = generators.oneOf[CancerType](CancerType.Breast, CancerType.Lung, CancerType.Prostate),
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/eligibility.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/eligibility.scala
index 30ceae2..b836e1c 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/eligibility.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/eligibility.scala
@@ -92,7 +92,7 @@ object eligibility {
}
}
- implicit def labelWithEvidenceJsonFormat: RootJsonFormat[LabelWithEvidence] = jsonFormat2(LabelWithEvidence)
+ implicit def labelWithEvidenceJsonFormat: RootJsonFormat[LabelEvidence] = jsonFormat2(LabelEvidence)
implicit def labelRankingFormat: RootJsonFormat[LabelMismatchRank] = jsonFormat4(LabelMismatchRank)
implicit def labelRankingsFormat: RootJsonFormat[MismatchRankedLabels] = jsonFormat2(MismatchRankedLabels)