Closed CielitoBates closed 1 week ago
Test user was brienne.b.ferrara@id.me
Steps to reproduce:
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
@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"
]
}
}
}
}
@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"
]
}
}
}
}
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
Summary
When a community care appointment is cancelled, the preferred community care provider no longer shows up as selected.
Specs
Steps to Reproduce
Actual Result
Observe the Preferred community care provider field change from the selected provider name to "No provider selected". See attached screenshot.
Desired Result
Preferred provider appears.
Definition of Done
How to configure this issue
vaos
)backend
,frontend
,design
,product
)Bug