Skip to content

Commit

Permalink
Merge branch 'develop' into rithviknishad/feat/improved-global-error-…
Browse files Browse the repository at this point in the history
…handler
  • Loading branch information
Jacobjeevan committed Feb 19, 2025
2 parents c4c4fb0 + fa57650 commit 5314af3
Show file tree
Hide file tree
Showing 195 changed files with 6,884 additions and 10,357 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ REACT_APP_META_DESCRIPTION="Revolutionizing EMR with AI: Open Healthcare Network
REACT_APP_COVER_IMAGE=https://cdn.ohc.network/care_logo.svg
REACT_APP_COVER_IMAGE_ALT=https://cdn.ohc.network/care_logo.svg
REACT_PUBLIC_URL=https://care.ohc.network
HEADERS="/*\n Strict-Transport-Security: max-age=63072000; includeSubDomains; preload\n X-XSS-Protection: 1; mode=block\n X-Frame-Options: SAMEORIGIN\n X-Content-Type-Options: nosniff\n Referrer-Policy: strict-origin-when-cross-origin\n Permissions-Policy: geolocation=(self), microphone=()"
REACT_RECAPTCHA_SITE_KEY=6LcedK8qAAAAAM2PpuqlqhZUxQpmIqHqluL74dDs

# Care API URL without the /api prefix
REACT_CARE_API_URL=https://careapi.ohc.network
Expand Down
10 changes: 0 additions & 10 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ REACT_CUSTOM_DESCRIPTION=
# Google Maps API key
REACT_GMAPS_API_KEY=

# Government data API key
REACT_GOV_DATA_API_KEY=

# reCAPTCHA site key
REACT_RECAPTCHA_SITE_KEY=

Expand All @@ -47,16 +44,9 @@ REACT_SENTRY_DSN=
# Sentry environment (default: staging)
REACT_SENTRY_ENVIRONMENT=

# Camera feed, still watching idle timeout (in seconds; default: 180)
REACT_STILL_WATCHING_IDLE_TIMEOUT=

# Camera feed, still watching prompt duration (in seconds; default: 30)
REACT_STILL_WATCHING_PROMPT_DURATION=

# Feature flags
REACT_ENABLE_HCX=true
REACT_ENABLE_ABDM=true
REACT_WARTIME_SHIFTING=true

# JWT token refresh interval (in milliseconds) (default: 5 minutes)
REACT_JWT_TOKEN_REFRESH_INTERVAL=
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ src/pluginMap.ts
# Federation Temp files
/.__mf__temp
public/sbom/*
public/_headers
17 changes: 1 addition & 16 deletions care.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,7 @@ const careConfig = {
gmapsApiKey:
env.REACT_GMAPS_API_KEY || "AIzaSyDsBAc3y7deI5ZO3NtK5GuzKwtUzQNJNUk",

govDataApiKey:
env.REACT_GOV_DATA_API_KEY ||
"579b464db66ec23bdd000001cdd3946e44ce4aad7209ff7b23ac571b",
reCaptchaSiteKey:
env.REACT_RECAPTCHA_SITE_KEY || "6LdvxuQUAAAAADDWVflgBqyHGfq-xmvNJaToM0pN",

wartimeShifting: boolean("REACT_WARTIME_SHIFTING"),

stillWatching: {
idleTimeout: env.REACT_STILL_WATCHING_IDLE_TIMEOUT
? parseInt(env.REACT_STILL_WATCHING_IDLE_TIMEOUT)
: 3 * 60,
promptDuration: env.REACT_STILL_WATCHING_PROMPT_DURATION
? parseInt(env.REACT_STILL_WATCHING_PROMPT_DURATION)
: 30,
},
reCaptchaSiteKey: env.REACT_RECAPTCHA_SITE_KEY,

auth: {
tokenRefreshInterval: env.REACT_JWT_TOKEN_REFRESH_INTERVAL
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/patient_spec/patient_creation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe("Patient Management", () => {

patientTestCases.forEach(({ description, data }) => {
it(`creates a new ${description} and verifies registration`, () => {
facilityCreation.selectFacility("GHC Trikaripur");
facilityCreation.selectFacility("GHC payyanur");
patientCreation
.clickSearchPatients()
.clickCreateNewPatient()
Expand Down Expand Up @@ -134,7 +134,7 @@ describe("Patient Management", () => {
});

it("Search patient with phone number and create a new encounter", () => {
facilityCreation.selectFacility("GHC Trikaripur");
facilityCreation.selectFacility("GHC payyanur");
patientCreation
.clickSearchPatients()
.searchPatient(TEST_PHONE)
Expand Down Expand Up @@ -167,7 +167,7 @@ describe("Patient Management", () => {
address: generateAddress(true),
};

facilityCreation.selectFacility("GHC Trikaripur");
facilityCreation.selectFacility("GHC payyanur");
patientEncounter
.navigateToEncounters()
.openFirstEncounterDetails()
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/patient_spec/patient_details.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("Patient Management", () => {
it("Assign users to a patient", () => {
const userName = "nihal-nurse";
const userRole = "Nurse";
facilityCreation.selectFacility("GHC Trikaripur");
facilityCreation.selectFacility("GHC payyanur");
patientEncounter
.navigateToEncounters()
.openFirstEncounterDetails()
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/patient_spec/patient_encounter.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("Patient Encounter Questionnaire", () => {
pco2: "120",
po2: "80",
};
facilityCreation.selectFacility("GHC Trikaripur");
facilityCreation.selectFacility("GHC payyanur");

// Chain the methods instead of multiple separate calls
patientEncounter
Expand Down
9 changes: 4 additions & 5 deletions cypress/pageObject/Patients/PatientEncounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class PatientEncounter {
}

clickUpdateEncounter() {
cy.verifyAndClickElement('[data-cy="update-encounter-button"]', "Update");
cy.verifyAndClickElement(
'[data-cy="update-encounter-option"]',
"Update Encounter",
Expand Down Expand Up @@ -76,10 +75,10 @@ export class PatientEncounter {
}

clickPatientDetailsButton() {
cy.verifyAndClickElement(
'[data-cy="patient-details-button"]',
"Patient Details",
);
cy.get('[data-cy="patient-details-button"]')
.filter(":visible")
.first()
.click();
return this;
}

Expand Down
2 changes: 1 addition & 1 deletion cypress/pageObject/Users/UserCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class UserCreation {
{ label: "Confirm Password", message: "Required" },
{
label: "Phone Number",
message: "Invalid input",
message: "This field is required",
},
{ label: "State", message: "Required" },
]);
Expand Down
2 changes: 1 addition & 1 deletion cypress/pageObject/facility/FacilityCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class FacilityCreation {
{ label: "Address", message: "Address is required" },
{
label: "Phone Number",
message: "Invalid input",
message: "This field is required",
},
{ label: "Pincode", message: "Invalid Pincode" },
]);
Expand Down
Loading

0 comments on commit 5314af3

Please sign in to comment.