diff options
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthistory.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthistory.scala | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthistory.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthistory.scala deleted file mode 100644 index c9cdc63..0000000 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/patienthistory.scala +++ /dev/null @@ -1,30 +0,0 @@ -package xyz.driver.pdsuidomain.formats.json - -import spray.json._ -import xyz.driver.core.json._ -import xyz.driver.pdsuidomain.entities._ - -object patienthistory { - import DefaultJsonProtocol._ - import PatientHistory._ - import common._ - - implicit val patientStateFormat: RootJsonFormat[State] = new EnumJsonFormat[State]( - "Verify" -> State.Verify, - "Curate" -> State.Curate, - "Review" -> State.Review, - "Flag" -> State.Flag - ) - - implicit val patientActionFormat: RootJsonFormat[Action] = new EnumJsonFormat[Action]( - "Start" -> Action.Start, - "Submit" -> Action.Submit, - "Unassign" -> Action.Unassign, - "Resolve" -> Action.Resolve, - "Flag" -> Action.Flag, - "Archive" -> Action.Archive - ) - - implicit val patientHistoryFormat: RootJsonFormat[PatientHistory] = jsonFormat6(PatientHistory.apply) - -} |