department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
278 stars 194 forks source link

Practitioner Name No Longer Shows for Comm Care Cancelled Appointment Request #83900

Closed CielitoBates closed 1 week ago

CielitoBates commented 1 month ago

Summary

When a community care appointment is cancelled, the preferred community care provider no longer shows up as selected.

Specs

Steps to Reproduce

  1. Create a CC request with a preferred provider selected.
  2. Cancel the CC request.

Actual Result

Observe the Preferred community care provider field change from the selected provider name to "No provider selected". See attached screenshot.

image (1)

Desired Result

Preferred provider appears.

Definition of Done


How to configure this issue

CielitoBates commented 1 month ago

Test user was brienne.b.ferrara@id.me

mshatalov-va commented 1 month ago

Steps to reproduce:

  1. Login as CC eligible user (we used brienne.b.ferrara@id.me)
  2. Navigate to https://staging.va.gov/my-health/appointments/?postLogin=true
  3. Select Start Scheduling
  4. Select Podiatry and click Continue
  5. Select desired date and time and click Continue
  6. Select Provider, by Location = Dayton, OH
  7. Select Preferred provider and click Continue
  8. Select preferred and enter comments if desired. click Continue
  9. Enter phone number, email and best time to call. click Continue
  10. on the Review Request summary screen validate the preferred provider info to compare to results later.
  11. Click submit
  12. Validate the results show the correct preferred provider
  13. Navigate back to Pending appointments and select the newly created request
  14. validate the preferred provider info
  15. Click cancel request and confirm
  16. Observe the preferred provider change to "No provider selected" image
simiadebowale commented 1 month ago

It looks likes we are not getting the preferredProviderName field on cancelled cc requests. Can we check to confirm if this assumption is accurate? cc: @cferris32 @ajmagdub @ldelacosta

jenniemc commented 1 week ago

@ldelacosta , this is the object returned from a CC request. FE relies on preferredProviderName to display the provider name. In this case, "WILLIAMS, CAROL" is the provider

{
    "id": "1a7918b7b7f1dceb5fcc2e149b2a578951bf2ea44e58338f2f9306c1793ad810",
    "type": "appointments",
    "attributes": {
        "id": "1a7918b7b7f1dceb5fcc2e149b2a578951bf2ea44e58338f2f9306c1793ad810",
        "identifier": [
            {
                "system": "http://med.va.gov/fhir/urn/vaos/hsrm/id",
                "value": "15884"
            }
        ],
        "kind": "cc",
        "status": "proposed",
        "serviceType": "foodAndNutrition",
        "serviceTypes": [
            {
                "text": "foodAndNutrition"
            }
        ],
        "reasonCode": {
            "text": "smoke test 2.39.2 fix"
        },
        "patientIcn": "1013124304V115761",
        "locationId": "984",
        "practitioners": [
            {
                "identifier": [
                    {
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "1487085270"
                    }
                ],
                "address": {
                    "type": "physical",
                    "line": [
                        "1960 N Ogden St Ste 460"
                    ],
                    "city": "Denver",
                    "state": "CO",
                    "postalCode": "80218",
                    "text": "1960 N Ogden St Ste 460,Denver,CO,80218"
                }
            }
        ],
        "created": "2024-04-02T15:30:00Z",
        "requestedPeriods": [
            {
                "start": "2024-04-26T16:00:00Z",
                "localStartTime": "2024-04-26T12:00:00.000-04:00"
            }
        ],
        "contact": {
            "telecom": [
                {
                    "type": "phone",
                    "value": "7036753607"
                },
                {
                    "type": "email",
                    "value": "marcy.nadedau@va.gov"
                }
            ]
        },
        "preferredTimesForPhoneCall": [
            "Evening"
        ],
        "preferredLocation": {
            "city": "Denver",
            "state": "CO"
        },
        "preferredLanguage": "French",
        "cancellable": false,
        "extension": {
            "ccLocation": {
                "address": {}
            },
            "ccRequestedCancellation": false,
            "hsrmTaskId": "15884"
        },
        "preferredProviderName": "WILLIAMS, CAROL",
        "location": {
            "id": "984",
            "type": "appointments",
            "attributes": {
                "id": "984",
                "vistaSite": "984",
                "vastParent": "984",
                "type": "va_health_facility",
                "name": "Dayton VA Medical Center",
                "classification": "VA Medical Center (VAMC)",
                "timezone": {
                    "timeZoneId": "America/New_York"
                },
                "lat": 39.74935,
                "long": -84.2532,
                "website": "https://www.dayton.va.gov/locations/directions.asp",
                "phone": {
                    "main": "937-268-6511"
                },
                "physicalAddress": {
                    "type": "physical",
                    "line": [
                        "4100 West Third Street"
                    ],
                    "city": "Dayton",
                    "state": "OH",
                    "postalCode": "45428-9000"
                },
                "healthService": [
                    "Audiology",
                    "Cardiology",
                    "DentalServices",
                    "Dermatology",
                    "Gastroenterology",
                    "Gynecology",
                    "MentalHealthCare",
                    "Nutrition",
                    "Ophthalmology",
                    "Optometry",
                    "Orthopedics",
                    "Podiatry",
                    "PrimaryCare",
                    "SpecialtyCare",
                    "Urology",
                    "WomensHealth"
                ]
            }
        }
    }
}
jenniemc commented 1 week ago

@ldelacosta Below is the object returned from the same CC request but is now cancelled. Notice the object is missing the preferredProviderName

{
    "id": null,
    "type": "appointments",
    "attributes": {
        "identifier": [
            {
                "system": "http://med.va.gov/fhir/urn/vaos/hsrm/id",
                "value": "15884"
            }
        ],
        "kind": "cc",
        "status": "cancelled",
        "serviceType": "foodAndNutrition",
        "serviceTypes": [
            {
                "text": "foodAndNutrition"
            }
        ],
        "reasonCode": {
            "text": "smoke test 2.39.2 fix"
        },
        "patientIcn": "1013124304V115761",
        "locationId": "984",
        "practitioners": [
            {
                "identifier": [
                    {
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "1487085270"
                    }
                ],
                "address": {
                    "type": "physical",
                    "line": [
                        "1960 N Ogden St Ste 460"
                    ],
                    "city": "Denver",
                    "state": "CO",
                    "postalCode": "80218",
                    "text": "1960 N Ogden St Ste 460,Denver,CO,80218"
                }
            }
        ],
        "created": "2024-04-02T15:30:00Z",
        "requestedPeriods": [
            {
                "start": "2024-04-26T16:00:00Z",
                "localStartTime": "2024-04-26T12:00:00.000-04:00"
            }
        ],
        "contact": {
            "telecom": [
                {
                    "type": "phone",
                    "value": "7036753607"
                },
                {
                    "type": "email",
                    "value": "marcy.nadedau@va.gov"
                }
            ]
        },
        "preferredTimesForPhoneCall": [
            "Evening"
        ],
        "preferredLocation": {
            "city": "Denver",
            "state": "CO"
        },
        "cancelationReason": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/appointment-cancellation-reason",
                    "code": "pat",
                    "display": "The appointment was cancelled by the patient"
                }
            ]
        },
        "preferredLanguage": "French",
        "cancellable": false,
        "extension": {
            "ccLocation": {
                "address": {}
            },
            "ccRequestedCancellation": true,
            "hsrmTaskId": "15884"
        },
        "location": {
            "id": "984",
            "type": "appointments",
            "attributes": {
                "id": "984",
                "vistaSite": "984",
                "vastParent": "984",
                "type": "va_health_facility",
                "name": "Dayton VA Medical Center",
                "classification": "VA Medical Center (VAMC)",
                "timezone": {
                    "timeZoneId": "America/New_York"
                },
                "lat": 39.74935,
                "long": -84.2532,
                "website": "https://www.dayton.va.gov/locations/directions.asp",
                "phone": {
                    "main": "937-268-6511"
                },
                "physicalAddress": {
                    "type": "physical",
                    "line": [
                        "4100 West Third Street"
                    ],
                    "city": "Dayton",
                    "state": "OH",
                    "postalCode": "45428-9000"
                },
                "healthService": [
                    "Audiology",
                    "Cardiology",
                    "DentalServices",
                    "Dermatology",
                    "Gastroenterology",
                    "Gynecology",
                    "MentalHealthCare",
                    "Nutrition",
                    "Ophthalmology",
                    "Optometry",
                    "Orthopedics",
                    "Podiatry",
                    "PrimaryCare",
                    "SpecialtyCare",
                    "Urology",
                    "WomensHealth"
                ]
            }
        }
    }
}
cferris32 commented 1 week ago

The above PR has been merged. We have validated the behavior and are now seeing cancelled cc appts with provider info showing up in staging. Closing this ticket