Project

General

Profile

Actions

Feature #1526

closed

Feature #1039: Feature - Visits screen

Feature #1254: Req. - show visit status icon

Req. - show visit status icon - back-end part

Added by Artem Bakhmat almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Alice Gor
Category:
-
Target version:
-
Start date:
02/03/2020
Due date:
% Done:

100%


Description

In the visit list on each visit should be an icon that indicates visit status

Back-end should return one of the following action statuses:
- 0: "ActionStatus.NoImagesExists" - Status is returned if there are no images saved for this visits. - Visit should be marked by Red color in the list.Visit can be edited but only owned physician.
- 1: "AssignedToRequisition" - Status is returned if visit is assigned to requisition (there is related record in the table tblordervisits) - Visit should be marked by Black color. Visit is readonly in this case.
- 2: "ActionStatus.CanBeEditedByOwner" - Status is returned if both above acondition are false and visit is owned by logged-in physician - Visit should be marked by Green color and can be edited only by owned physician
- 3: "ActionStatus.Readonly" - Status is returned if all above conditions are false. - Visit should be marked by Blue color. Visit is readonly.
- 4 - Undefined - returned when data about visit status is unavailable


Files

VisitStatus.png (124 KB) VisitStatus.png Artem Bakhmat, 02/06/2020 03:30 PM
Actions #1

Updated by Artem Bakhmat almost 6 years ago

  • Description updated (diff)
Actions #2

Updated by Artem Bakhmat almost 6 years ago

  • Status changed from New issue to Needs Testing
  • Assignee changed from Artem Bakhmat to Alice Gor
  • % Done changed from 0 to 100

Summary: new response data field was added to return information(status) about possible visits actions (see file attached)
API GET /api/Patient/SearchPatientVisits

Please test
Swagger: https://develop_feature_ironjab-api.gbglis.xyz/swagger/index.html

Actions #3

Updated by Artem Bakhmat almost 6 years ago

Actions #4

Updated by Artem Bakhmat almost 6 years ago

  • Description updated (diff)
Actions #5

Updated by Alice Gor almost 6 years ago

  • Status changed from Needs Testing to In Progress

Its verified in DEV with No image exist scenario alone

Actions #6

Updated by Alice Gor almost 6 years ago

  • Assignee changed from Alice Gor to Artem Bakhmat

Please see the response

Kindly note all Visit Action is 0, Data used : visit i d: 194, Physician : 66525, Client 10560 {
"currentPage": 1,
"pageCount": 1,
"pageSize": 10,
"rowCount": 5,
"results": [ {
"id": 283,
"dateCreated": "2020-03-03T14:28:07",
"dateModified": null,
"visitActionStatus": 0,
"visitImages": [],
"physicianId": 66525,
"transitionPatientId": 11,
"clientId": 10560,
"notes": "",
"dateExam": "2020-03-03T00:00:00",
"timeExam": "08:14:00"
}, {
"id": 194,
"dateCreated": "2020-02-26T23:01:32",
"dateModified": null,
"visitActionStatus": 0,
"visitImages": [],
"physicianId": 66699,
"transitionPatientId": 11,
"clientId": 10560,
"notes": "sdfsdf",
"dateExam": "2020-03-08T00:00:00",
"timeExam": "23:01:32"
}, {
"id": 350,
"dateCreated": "2020-03-11T17:44:14",
"dateModified": null,
"visitActionStatus": 0,
"visitImages": [],
"physicianId": 66525,
"transitionPatientId": 65,
"clientId": 10560,
"notes": "Old visit",
"dateExam": "2020-03-09T00:00:00",
"timeExam": "05:00:00"
}, {
"id": 24,
"dateCreated": "2020-02-08T01:01:32",
"dateModified": "2020-02-26T15:09:24",
"visitActionStatus": 0,
"visitImages": [],
"physicianId": 60876,
"transitionPatientId": 11,
"clientId": 10560,
"notes": "test notes 25678",
"dateExam": "2020-03-10T00:00:00",
"timeExam": "01:01:32"
}, {
"id": 349,
"dateCreated": "2020-03-11T17:03:31",
"dateModified": "2020-03-11T17:26:03",
"visitActionStatus": 0,
"visitImages": [],
"physicianId": 66525,
"transitionPatientId": 65,
"clientId": 10560,
"notes": "Appointment1",
"dateExam": "2020-03-11T00:00:00",
"timeExam": "09:30:00"
}
]
}

Actions #7

Updated by Artem Bakhmat over 5 years ago

  • Assignee changed from Artem Bakhmat to Alice Gor

Please describe what is the issue - Actual and expected result

Actions #8

Updated by Alice Gor over 5 years ago

  • Status changed from In Progress to Closed

Steps :
Create a order > Associate a Visit
Data Used:
Order Id : 10004167
Visit : 388

The Api : /api/Patient/GetPatientVisitData/{visitId}
Returns the Response as {
"id": 388,
"dateCreated": "2020-03-18T13:28:48",
"dateModified": null,
"visitActionStatus": 4,
"visitImages": [],
"orderId": 10004167,
"physicianId": 66525,
"transitionPatientId": 9,
"clientId": 10560,
"notes": "No image ",
"dateExam": "2020-03-17T00:00:00",
"timeExam": "06:00:00"
}

Issue : Visit with no image should not be allowed to Requisition

AR: Visitaction status is returning Status 4 instead of 0,
ER: Visitaction status is returning Status 0

Based on Artem Comment use : search Patient visit API

{
"currentPage": 1,
"pageCount": 1,
"pageSize": 10,
"rowCount": 1,
"results": [ {
"id": 388,
"dateCreated": "2020-03-18T13:28:48",
"dateModified": null,
"visitActionStatus": 0,
"visitImages": [],
"orderId": 10004167,
"physicianId": 66525,
"transitionPatientId": 9,
"clientId": 10560,
"notes": "No image ",
"dateExam": "2020-03-17T00:00:00",
"timeExam": "06:00:00"
}
]
}

Then this is displaying correctly

Actions

Also available in: Atom PDF