fix: correct MassHealth date format and update procedure combo labels
- Fix Selenium using today's date instead of selected service date; convert YYYY-MM-DD from frontend to MM/DD/YYYY for MassHealth input - Rename "New Patient (Limited exam+Pano)" → "Patient (Limited exam+Pano)" - Rename "New Adult Patient (Limited exam+1PA)" → "Patient (Limited exam+1PA)" - Add "Patient (D9110+1PA)" combo with codes D9110, D0220 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -128,14 +128,19 @@ export const PROCEDURE_COMBOS: Record<
|
|||||||
},
|
},
|
||||||
newPatientLimitedPano: {
|
newPatientLimitedPano: {
|
||||||
id: "newPatientLimitedPano",
|
id: "newPatientLimitedPano",
|
||||||
label: "New Patient (Limited exam+Pano)",
|
label: "Patient (Limited exam+Pano)",
|
||||||
codes: ["D0140", "D0330"],
|
codes: ["D0140", "D0330"],
|
||||||
},
|
},
|
||||||
newAdultPatientLimited1PA: {
|
newAdultPatientLimited1PA: {
|
||||||
id: "newAdultPatientLimited1PA",
|
id: "newAdultPatientLimited1PA",
|
||||||
label: "New Adult Patient (Limited exam+1PA)",
|
label: "Patient (Limited exam+1PA)",
|
||||||
codes: ["D0140", "D0220"],
|
codes: ["D0140", "D0220"],
|
||||||
},
|
},
|
||||||
|
patientD9110_1PA: {
|
||||||
|
id: "patientD9110_1PA",
|
||||||
|
label: "Patient (D9110+1PA)",
|
||||||
|
codes: ["D9110", "D0220"],
|
||||||
|
},
|
||||||
|
|
||||||
//Compostie
|
//Compostie
|
||||||
oneSurfCompFront: {
|
oneSurfCompFront: {
|
||||||
@@ -324,6 +329,7 @@ export const COMBO_CATEGORIES: Record<
|
|||||||
"newAdultPatientFMX",
|
"newAdultPatientFMX",
|
||||||
"newPatientLimitedPano",
|
"newPatientLimitedPano",
|
||||||
"newAdultPatientLimited1PA",
|
"newAdultPatientLimited1PA",
|
||||||
|
"patientD9110_1PA",
|
||||||
],
|
],
|
||||||
"Composite Fillings (Front)": [
|
"Composite Fillings (Front)": [
|
||||||
"oneSurfCompFront",
|
"oneSurfCompFront",
|
||||||
|
|||||||
@@ -214,9 +214,12 @@ class AutomationMassHealthClaimsLogin:
|
|||||||
wait = WebDriverWait(self.driver, 30)
|
wait = WebDriverWait(self.driver, 30)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# For now, just use today's date to avoid parsing issues
|
raw_date = self.submissionDate if self.submissionDate else datetime.now().strftime("%Y-%m-%d")
|
||||||
formatted_date = datetime.now().strftime("%m/%d/%Y")
|
try:
|
||||||
print(f"DEBUG: Using today's date = '{formatted_date}'")
|
formatted_date = datetime.strptime(raw_date.strip(), "%Y-%m-%d").strftime("%m/%d/%Y")
|
||||||
|
except ValueError:
|
||||||
|
formatted_date = raw_date # already in another format, use as-is
|
||||||
|
print(f"DEBUG: Using service date = '{formatted_date}'")
|
||||||
|
|
||||||
# Step 1: Wait for the Date of Service input to be visible
|
# Step 1: Wait for the Date of Service input to be visible
|
||||||
date_input = wait.until(
|
date_input = wait.until(
|
||||||
|
|||||||
Reference in New Issue
Block a user