aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
diff options
context:
space:
mode:
authorVlad Uspensky <v.uspenskiy@icloud.com>2017-11-02 20:40:31 -0700
committerGitHub <noreply@github.com>2017-11-02 20:40:31 -0700
commitaedb5274932db81a32f9d89938636df114dc9a44 (patch)
tree13a0a8a51f477a4fce2bb8f4d5cd8248de54a73b /src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
parent4583af5213b9f7b1e8a06f58321813556763f2d1 (diff)
parent5515c834853cbe3ce60460a4819a94805cfe24f7 (diff)
downloadrest-query-aedb5274932db81a32f9d89938636df114dc9a44.tar.gz
rest-query-aedb5274932db81a32f9d89938636df114dc9a44.tar.bz2
rest-query-aedb5274932db81a32f9d89938636df114dc9a44.zip
Merge pull request #59 from drivergroup/common-contextsv0.13.1
Using common request contexts and user objects
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala')
-rw-r--r--src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
index c296f84..6cddb45 100644
--- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
+++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
@@ -4,10 +4,12 @@ import java.time.{LocalDate, LocalDateTime}
import spray.json._
import org.scalatest.{FlatSpec, Matchers}
+import xyz.driver.core.Id
+import xyz.driver.entities.clinic.TestOrder
import xyz.driver.entities.common.FullName
import xyz.driver.entities.patient.CancerType
import xyz.driver.pdsuicommon.domain.UuidId
-import xyz.driver.pdsuidomain.entities.{Patient, PatientOrderId}
+import xyz.driver.pdsuidomain.entities.Patient
class PatientFormatSuite extends FlatSpec with Matchers {
import xyz.driver.pdsuidomain.formats.json.patient._
@@ -24,7 +26,7 @@ class PatientFormatSuite extends FlatSpec with Matchers {
lastActiveUserId = None,
isUpdateRequired = false,
disease = CancerType.Breast,
- orderId = PatientOrderId("7b54a75d-4197-4b27-9045-b9b6cb131be9"),
+ orderId = Id[TestOrder]("7b54a75d-4197-4b27-9045-b9b6cb131be9"),
lastUpdate = LocalDateTime.parse("2017-08-10T18:00:00")
)
val writtenJson = patientFormat.write(orig)