Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Healthcare Backend] The appointment does not get confirmed even after the payment is settled. #74

Closed
isuruuy429 opened this issue Jun 21, 2019 · 0 comments · Fixed by #96
Assignees
Labels

Comments

@isuruuy429
Copy link
Contributor

Description:
Once the payment is settled and confirmed through the payload, the appointment does not get confirmed when it is retrieved through getAppointment.

Suggested Labels:
type/bug
severity/critical
priority/high

OS, DB, other environment details and versions:
Tested through Postman.

Steps to reproduce:

  1. Start the backend service.
  2. Reserve an appointment as below.
    http://localhost:9090/clemency/categories/surgery/reserve
{  
	"patient":
	{  
        "name":"K Winslet",
        "dob":"1970-03-19",
        "ssn":"234-987-175",
        "address":"Canada",
        "phone":"32456789765",
        "email":"kwinslet@gmail.com"
    },
	"doctor":"anne clement",
	"hospital":"clemency medical center",
	"appointmentDate":"2020-01-22"
}
  1. Settle the payment for the particular appointment by confirming it.
    http://localhost:9090/healthcare/payments
{
    "appointmentNumber":1,
    "doctor":
    {
        "category": "surgery",
        "name": "anne clement",
        "hospital": "clemency medical center",
        "availability": "10am - 6pm",
        "fee": 10000.00
    },
    "patient":
    {  
        "name":"Kate Winslet",
        "dob":"1970-03-19",
        "ssn":"234-987-175",
        "address":"Canada",
        "phone":"32456789765",
        "email":"kwinslet@gmail.com"
    },
    "fee":1800.0,
    "confirmed":true,
    "cardNumber":"3456812345"
}
  1. Retrieve the appointment details by getAppointment.
    http://localhost:9090/healthcare/appointments/1

Expected:
Following payload is expected to be received with confirming the appointment.

{
    "appointmentNumber": 1,
    "doctor": {
        "name": "anne clement",
        "hospital": "clemency medical center",
        "category": "surgery",
        "availability": "8.00 a.m - 10.00 a.m",
        "fee": 12000
    },
    "patient": {
        "name": "Kate Winslet",
        "dob": "1970-03-19",
        "ssn": "234-987-175",
        "address": "Canada",
        "phone": "32456789765",
        "email": "kwinslet@gmail.com"
    },
    "fee": 12000,
    "confirmed": true,
    "appointmentDate": "2020-01-22"
}

Actual payload:

{
    "appointmentNumber": 1,
    "doctor": {
        "name": "anne clement",
        "hospital": "clemency medical center",
        "category": "surgery",
        "availability": "8.00 a.m - 10.00 a.m",
        "fee": 12000
    },
    "patient": {
        "name": "Kate Winslet",
        "dob": "1970-03-19",
        "ssn": "234-987-175",
        "address": "Canada",
        "phone": "32456789765",
        "email": "kwinslet@gmail.com"
    },
    "fee": 12000,
    "confirmed": false,
    "appointmentDate": "2020-01-22"
}

Related Issues:

@Asitha Asitha added bug Something isn't working Priority/High Severity/Major labels Jun 28, 2019
@pramodya1994 pramodya1994 self-assigned this Jun 28, 2019
pramodya1994 added a commit to pramodya1994/ballerina-integrator that referenced this issue Jul 1, 2019
Once the payment is settled and confirmed through the payload, the
appointment does not get confirmed when it is retrieved through
getAppointment. So make appointment confirmed to true after the
payment is settled.

Fixes; wso2#74
@Asitha Asitha added this to the Milestone 5 milestone Jul 1, 2019
pramodya1994 added a commit to pramodya1994/ballerina-integrator that referenced this issue Jul 2, 2019
Once the payment is settled and confirmed through the payload, the
appointment does not get confirmed when it is retrieved through
getAppointment. So make appointment confirmed to true after the
payment is settled.

Fixes; wso2#74
@Asitha Asitha closed this as completed in #96 Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants