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
281 stars 201 forks source link

[FE][CHIP] Add CVT, VVC appointment Types #72948

Closed lee-delarm6 closed 8 months ago

lee-delarm6 commented 9 months ago

Add filtering to set appointment types on CHIP, render differently based on appointment types on FE

Tasks

Data

VVC Stop Codes to Exclude:
Credit stop code
179
648
Primary stop code
674
CVT Stop Codes to Exclude:
Credit stop code
690
692
693
Store-and-Forward Telehealth to Exclude:
Credit stop code
189
648
698
Primary stop code
674
Phone stop codes
Primary stop code
 103, 147, 148, 169, 178, 181, 182, 199,
 216, 221, 224, 229,  324, 325, 326, 338,
  424, 425, 428, 441,  527, 528, 530, 536,
  542, 545, 546, 579,  584, 597, 611, 683,
  685, 686, 718, 901,
Credit stop code
136, 137, 179, 371, 440, 444, 445, 446, 447,
490, 491, 644, 645, 646, 647, 648,
 679, 684, 690, 692, 693, 699, 674685, 685
brianseek commented 8 months ago

@lee-delarm6 for validation on this one, I would add your final breakdown of stop codes and ping Kay in slack to validate. If you have already done that, you can close this one.

lee-delarm6 commented 8 months ago

Kay approved the final list, closing this up

// All other stop codes are for clinics
const PRIMARY_PHONE_STOP_CODES = [
  '103', '147', '148', '169',
  '178', '181', '182', '199',
  '216', '221', '224', '229',
  '324', '325', '326', '338',
  '424', '425', '428', '441',
  '527', '528', '530', '536',
  '542', '545', '546', '579',
  '584', '597', '611', '683',
  '685', '686', '718', '901',
];

// All other stop codes are for clinics
const SECONDARY_PHONE_STOP_CODES = [
  '136', '137', '371',
  '440', '444', '445', '446',
  '447', '490', '491', '644',
  '645', '646', '647',
  '679', '684',
  '699', '674685', '685',
];

const VVC_SECONDARY_STOP_CODES = [
  '179',
];

const CVT_SECONDARY_STOP_CODES = [
  '690',
];

// These stop codes are for providers and are not for CLIENT check-in at clinics.
// We still need to check for them because they are used for PROVIDER CVT and VVC appointments
// but they will not display. This records the patient at the clinic
// for administrative purposes
const PROVIDER_CHECKIN_STOP_CODES = [
  '674', '189', '648',
  '692', '693', '698',
];