diff options
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) |