diff options
author | vlad <vlad@driver.xyz> | 2017-11-15 15:15:49 -0800 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-11-15 15:15:49 -0800 |
commit | 4c02a377d04b459bd2699b5f42c8fa5301dd72d0 (patch) | |
tree | 670484bb99182b5e2fdbfb3095edf102ca71cdb2 /src/main/scala/xyz/driver/pdsuidomain/formats/json/recordhistory.scala | |
parent | 3e03db00fd3854930ae8daf19bd1504ea2a5bf7a (diff) | |
parent | 80e0f6e5db7f54e35551c4bf312abb58524b4003 (diff) | |
download | rest-query-4c02a377d04b459bd2699b5f42c8fa5301dd72d0.tar.gz rest-query-4c02a377d04b459bd2699b5f42c8fa5301dd72d0.tar.bz2 rest-query-4c02a377d04b459bd2699b5f42c8fa5301dd72d0.zip |
Merge remote-tracking branch 'origin/master' into master5v0.14.13
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/recordhistory.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/recordhistory.scala | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/recordhistory.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/recordhistory.scala index 8341f97..be9dae9 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/recordhistory.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/recordhistory.scala @@ -10,19 +10,32 @@ object recordhistory { import common._ implicit val recordStateFormat = new EnumJsonFormat[State]( + "New" -> State.New, "Clean" -> State.Clean, "Organize" -> State.Organize, "Review" -> State.Review, - "Flag" -> State.Flag + "Done" -> State.Done, + "Flag" -> State.Flag, + "Archive" -> State.Archive ) implicit val recordActionFormat = new EnumJsonFormat[Action]( - "Start" -> Action.Start, - "Submit" -> Action.Submit, - "Unassign" -> Action.Unassign, - "Resolve" -> Action.Resolve, - "Flag" -> Action.Flag, - "Archive" -> Action.Archive + "Start" -> Action.Start, + "Submit" -> Action.Submit, + "Unassign" -> Action.Unassign, + "Resolve" -> Action.Resolve, + "Flag" -> Action.Flag, + "Archive" -> Action.Archive, + "SaveDuplicate" -> Action.SaveDuplicate, + "SaveReorder" -> Action.SaveReorder, + "SaveRotation" -> Action.SaveRotation, + "DeleteDuplicate" -> Action.DeleteDuplicate, + "DeleteReorder" -> Action.DeleteReorder, + "DeleteRotation" -> Action.DeleteRotation, + "CreateDocument" -> Action.CreateDocument, + "DeleteDocument" -> Action.DeleteDocument, + "CreateRecord" -> Action.CreateRecord, + "ReadRecord" -> Action.ReadRecord ) implicit val recordHistoryFormat: RootJsonFormat[MedicalRecordHistory] = jsonFormat6(MedicalRecordHistory.apply) |