diff --git a/.env b/.env index 528b49e2b8d..0496daa2587 100644 --- a/.env +++ b/.env @@ -2,9 +2,9 @@ REACT_APP_TITLE=CARE REACT_APP_META_DESCRIPTION=Revolutionizing EMR with AI: Open Healthcare Network develops free, open-source tools to enhance efficiency in global healthcare delivery. Our EMR system is recognized as a Digital Public Good by the United Nations. -REACT_APP_COVER_IMAGE=https://cdn.coronasafe.network/care_logo.svg -REACT_APP_COVER_IMAGE_ALT=https://cdn.coronasafe.network/care_logo.svg -REACT_PUBLIC_URL=https://care.coronasafe.in +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 # Dev envs ESLINT_NO_DEV_ERRORS=true diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cfb46e7c266..bacb0c8ed79 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @coronasafe/code-reviewers @coronasafe/care-fe-code-reviewers +* @ohcnetwork/care-fe-code-reviewers diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b67b01cc863..8e77009ccd4 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,12 +5,12 @@ - Change 2 - More? -@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers +@ohcnetwork/code-reviewers ## Merge Checklist - [ ] Add specs that demonstrate bug / test a new feature. -- [ ] Update [product documentation](https://docs.coronasafe.network/coronasafe-care-documentation/architecture/architecture-and-layering-of-care). +- [ ] Update [product documentation](https://docs.ohc.network). - [ ] Ensure that UI text is kept in I18n files. - [ ] Prep screenshot or demo video for changelog entry, and attach it to issue. - [ ] Request for Peer Reviews diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b91d810cadd..c9334ebd3e3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,7 +9,7 @@ on: jobs: CodeQL-Build: runs-on: ubuntu-latest - if: github.repository == 'coronasafe/care_fe' + if: github.repository == 'ohcnetwork/care_fe' permissions: security-events: write actions: read diff --git a/.github/workflows/comment-p1-issues.yml b/.github/workflows/comment-p1-issues.yml index 930b7d14c90..f82432f5c6f 100644 --- a/.github/workflows/comment-p1-issues.yml +++ b/.github/workflows/comment-p1-issues.yml @@ -7,7 +7,7 @@ on: jobs: add-comment: - if: github.event.label.name == 'P1' && github.repository == 'coronasafe/care_fe' + if: github.event.label.name == 'P1' && github.repository == 'ohcnetwork/care_fe' runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index f2f8fbd45cb..f5039548e76 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -12,7 +12,7 @@ on: jobs: cypress-run: permissions: write-all - if: github.repository == 'coronasafe/care_fe' + if: github.repository == 'ohcnetwork/care_fe' runs-on: ubuntu-latest strategy: fail-fast: false @@ -34,7 +34,7 @@ jobs: - name: Checkout care 📥 uses: actions/checkout@v3 with: - repository: coronasafe/care + repository: ohcnetwork/care path: care ref: ${{ steps.backend-branch.outputs.branch }} diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1dfea93482d..f2e0aa24c64 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,7 +27,7 @@ env: jobs: test: - if: github.repository == 'coronasafe/care_fe' + if: github.repository == 'ohcnetwork/care_fe' runs-on: ubuntu-latest name: Test steps: diff --git a/.github/workflows/issue-automation.yml b/.github/workflows/issue-automation.yml index 421243bf605..1767d0fd313 100644 --- a/.github/workflows/issue-automation.yml +++ b/.github/workflows/issue-automation.yml @@ -10,39 +10,39 @@ jobs: issue_opened_and_reopened: name: issue_opened_and_reopened runs-on: ubuntu-latest - if: github.repository == 'coronasafe/care_fe' && github.event_name == 'issues' && github.event.action == 'opened' || github.event.action == 'reopened' + if: github.repository == 'ohcnetwork/care_fe' && github.event_name == 'issues' && github.event.action == 'opened' || github.event.action == 'reopened' steps: - name: 'Move issue to "Triage"' uses: leonsteinhaeuser/project-beta-automations@v1.2.1 with: gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: coronasafe + organization: ohcnetwork project_id: 4 resource_node_id: ${{ github.event.issue.node_id }} status_value: "Triage" issue_closed: name: issue_closed runs-on: ubuntu-latest - if: github.repository == 'coronasafe/care_fe' && github.event_name == 'issues' && github.event.action == 'closed' + if: github.repository == 'ohcnetwork/care_fe' && github.event_name == 'issues' && github.event.action == 'closed' steps: - name: 'Moved issue to "Done"' uses: leonsteinhaeuser/project-beta-automations@v1.2.1 with: gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: coronasafe + organization: ohcnetwork project_id: 4 resource_node_id: ${{ github.event.issue.node_id }} status_value: "Done" issue_assigned: name: issue_assigned runs-on: ubuntu-latest - if: github.repository == 'coronasafe/care_fe' && github.event_name == 'issues' && github.event.action == 'assigned' + if: github.repository == 'ohcnetwork/care_fe' && github.event_name == 'issues' && github.event.action == 'assigned' steps: - name: 'Move issue to "In Progress"' uses: leonsteinhaeuser/project-beta-automations@v1.2.1 with: gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: coronasafe + organization: ohcnetwork project_id: 4 resource_node_id: ${{ github.event.issue.node_id }} status_value: "In Progress" diff --git a/.github/workflows/label-deploy-failed.yml b/.github/workflows/label-deploy-failed.yml index cbb6d269891..3137232f539 100644 --- a/.github/workflows/label-deploy-failed.yml +++ b/.github/workflows/label-deploy-failed.yml @@ -13,7 +13,7 @@ jobs: auto-label-deploy-failed: runs-on: ubuntu-latest if: | - github.repository == 'coronasafe/care_fe' && github.event.issue.pull_request && + github.repository == 'ohcnetwork/care_fe' && github.event.issue.pull_request && contains(github.event.comment.body, 'Deploy Preview') steps: - name: Add 'Deploy-Failed' diff --git a/.github/workflows/label-merge-conflict.yml b/.github/workflows/label-merge-conflict.yml index 5ae616effa7..0491a102b2c 100644 --- a/.github/workflows/label-merge-conflict.yml +++ b/.github/workflows/label-merge-conflict.yml @@ -12,7 +12,7 @@ on: jobs: auto-label: - if: github.repository == 'coronasafe/care_fe' + if: github.repository == 'ohcnetwork/care_fe' runs-on: ubuntu-latest steps: - uses: prince-chrismc/label-merge-conflicts-action@v2 diff --git a/.github/workflows/label-wip.yml b/.github/workflows/label-wip.yml index 15bd4994fa6..d99ba77a9a5 100644 --- a/.github/workflows/label-wip.yml +++ b/.github/workflows/label-wip.yml @@ -9,7 +9,7 @@ on: jobs: check-linked-issues: - if: github.repository == 'coronasafe/care_fe' + if: github.repository == 'ohcnetwork/care_fe' name: Check linked issues runs-on: ubuntu-latest outputs: @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-latest needs: check-linked-issues permissions: write-all - if: github.repository == 'coronasafe/care_fe' && join(needs.check-linked-issues.outputs.linked_issues) != '' + if: github.repository == 'ohcnetwork/care_fe' && join(needs.check-linked-issues.outputs.linked_issues) != '' steps: - name: Label uses: actions/github-script@v6 diff --git a/.github/workflows/ossar-analysis.yml b/.github/workflows/ossar-analysis.yml index 4e806124e77..46c0fb01c6b 100644 --- a/.github/workflows/ossar-analysis.yml +++ b/.github/workflows/ossar-analysis.yml @@ -9,7 +9,7 @@ on: jobs: OSSAR-Scan: - if: github.repository == 'coronasafe/care_fe' + if: github.repository == 'ohcnetwork/care_fe' # OSSAR runs on windows-latest. # ubuntu-latest and macos-latest support coming soon runs-on: windows-latest diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 287cd0ad76b..ba400a9c0d3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,7 +6,7 @@ on: jobs: stale: runs-on: ubuntu-latest - if: github.repository == 'coronasafe/care_fe' + if: github.repository == 'ohcnetwork/care_fe' steps: - uses: actions/stale@v6 with: diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 6469414aa5b..00e91dc5a4a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -55,7 +55,7 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at info@coronasafe.network. All +reported by contacting the project team at info@ohc.network. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. diff --git a/README.md b/README.md index de0b06bd63e..39a83172ddb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

- + CARE Logo

@@ -12,23 +12,23 @@

Auto deployed to care.ohc.network for develop branch. All pull requests have preview builds powered by Netlify.

-[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/0)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/0)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/1)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/1)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/2)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/2)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/3)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/3)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/4)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/4)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/5)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/5)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/6)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/6)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/images/7)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/care_fe/links/7) +[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/0)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/0)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/1)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/1)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/2)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/2)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/3)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/3)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/4)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/4)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/5)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/5)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/6)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/6)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/7)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/7) [![Storybook](https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg)](https://careui.coronasafe.in) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=coronasafe_care_fe&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=coronasafe_care_fe) -![Code scanning - action](https://github.com/coronasafe/care_fe/workflows/Code%20scanning%20-%20action/badge.svg) -![OSSAR](https://github.com/coronasafe/care_fe/workflows/OSSAR/badge.svg) +![Code scanning - action](https://github.com/ohcnetwork/care_fe/workflows/Code%20scanning%20-%20action/badge.svg) +![OSSAR](https://github.com/ohcnetwork/care_fe/workflows/OSSAR/badge.svg) [![Cypress Tests](https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/simple/wf7d2m/develop&style=flat&logo=cypress)](https://cloud.cypress.io/projects/wf7d2m/runs) -![Staging Release](https://github.com/coronasafe/care_fe/workflows/CARE%20Develop%20Registry/badge.svg) -![Production Release](https://github.com/coronasafe/care_fe/workflows/Production%20Release/badge.svg) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/200482ab117e4b5397ff3f5ae5719aa2)](https://www.codacy.com/gh/coronasafe/care_fe?utm_source=github.com&utm_medium=referral&utm_content=coronasafe/care_fe&utm_campaign=Badge_Grade) -[![CircleCI](https://circleci.com/gh/coronasafe/care_fe.svg?style=svg)](https://circleci.com/gh/coronasafe/care_fe) -[![Maintainability](https://api.codeclimate.com/v1/badges/f1438f693aa459805301/maintainability)](https://codeclimate.com/github/coronasafe/care_fe/maintainability) +![Staging Release](https://github.com/ohcnetwork/care_fe/workflows/CARE%20Develop%20Registry/badge.svg) +![Production Release](https://github.com/ohcnetwork/care_fe/workflows/Production%20Release/badge.svg) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/200482ab117e4b5397ff3f5ae5719aa2)](https://www.codacy.com/gh/ohcnetwork/care_fe?utm_source=github.com&utm_medium=referral&utm_content=ohcnetwork/care_fe&utm_campaign=Badge_Grade) +[![CircleCI](https://circleci.com/gh/ohcnetwork/care_fe.svg?style=svg)](https://circleci.com/gh/ohcnetwork/care_fe) +[![Maintainability](https://api.codeclimate.com/v1/badges/f1438f693aa459805301/maintainability)](https://codeclimate.com/github/ohcnetwork/care_fe/maintainability) ## Getting started - 💬 Comment on the issue if you are willing to take it up, and link the pull request with the issue. -- 🏷️ Tag `@coronasafe/code-reviewers` for faster resolution. +- 🏷️ Tag `@ohcnetwork/care-fe-code-reviewers` for faster resolution. - 📸 Attach screenshots in the pull requests showing the changes made in the UI. #### Install the required dependencies @@ -65,7 +65,7 @@ Authenticate to staging API with any of the following credentials #### Contributing to CARE -- Create a branch with branch name of the format `issues/{issue#}/{short-name}` (example `issues/7001/edit-prescriptions`) from the latest [`develop`](https://github.com/coronasafe/care_fe/tree/develop) branch when starting to work on an issue. +- Create a branch with branch name of the format `issues/{issue#}/{short-name}` (example `issues/7001/edit-prescriptions`) from the latest [`develop`](https://github.com/ohcnetwork/care_fe/tree/develop) branch when starting to work on an issue. - Once the changes are pushed to the branch, make a pull request with a meaningful title (example: "💊 Adds support for editing prescriptions" #6369) - Ensure the issue number is mentioned in the PR with a closing tag by following the PR body template. (Refer: [Linking a pull request to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)) - Once the code review is done, the PR will be marked with a "Needs Testing" label where it'll be queued for QA testing. @@ -80,7 +80,7 @@ To ensure the quality of our pull requests, we use a variety of tools: #### 🧪 Run cypress tests -To run cypress tests locally, you'll need to setup the backend to run locally and load dummy data required for cypress to the database. See [docs](https://github.com/coronasafe/care#self-hosting). +To run cypress tests locally, you'll need to setup the backend to run locally and load dummy data required for cypress to the database. See [docs](https://github.com/ohcnetwork/care#self-hosting). Once backend is running locally, you'll have to ensure your local front-end is connected to local backend, by setting the `CARE_API` env. @@ -114,7 +114,7 @@ npm run cypress:open # To debug and run tests individually. ## 📖 Documentations -- [CARE Documentation](https://docs.coronasafe.network/coronasafe-care-documentation/) +- [CARE Documentation](https://docs.ohc.network/docs/care) - [Swagger API Documentation](https://careapi.ohc.network/swagger/) - [Storybook component library](https://careui.coronasafe.in/) - [Testing Documentation](https://docs.coronasafe.network/care-testing-documentation/) diff --git a/SECURITY.md b/SECURITY.md index 03d8dec4837..abc222c1739 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -23,4 +23,4 @@ ## Reporting a Vulnerability -Please create an issue at https://github.com/coronasafe/care_fe/issues/new +Please create an issue at https://github.com/ohcnetwork/care_fe/issues/new diff --git a/UPGRADING.md b/UPGRADING.md index d1cbacc000e..29050e14f88 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -7,7 +7,7 @@ sidebar_label: Upgrading ## Breaking changes These are a list of changes that should be accounted for when upgrading an existing installation of Care. If you -encounter any problems while following these instructions, please [create a new issue](https://github.com/coronasafe/care_fe/issues/new/choose) +encounter any problems while following these instructions, please [create a new issue](https://github.com/ohcnetwork/care_fe/issues/new/choose) on our Github repo. Breaking Changes before **September Minor Release v11.2** are not yet documented diff --git a/cypress/e2e/patient_spec/patient_consultation.cy.ts b/cypress/e2e/patient_spec/patient_consultation.cy.ts index 9c9256e11ef..cf84b0db0d8 100644 --- a/cypress/e2e/patient_spec/patient_consultation.cy.ts +++ b/cypress/e2e/patient_spec/patient_consultation.cy.ts @@ -345,8 +345,8 @@ describe("Patient Consultation in multiple combination", () => { "Bleeding", ]); patientConsultationPage.clickAddSymptom(); - // Comfort Care category - patientConsultationPage.selectPatientCategory("Comfort Care"); + // Mild category + patientConsultationPage.selectPatientCategory("Mild"); // Date of symptoms // Decision after consultation - Referred to Facility patientConsultationPage.selectPatientSuggestion( diff --git a/index.html b/index.html index e366febadbb..8fea63f2bad 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -23,7 +23,10 @@ - + @@ -35,17 +38,27 @@ pointer-events: none; filter: brightness(80%); } - @media (prefers-reduced-motion: no-preference) { + @media (prefers-reduced-motion: no-preference) { .App-logo { animation: App-logo-blink 1s linear infinite; } } @keyframes App-logo-blink { - 0% { opacity: 0;} - 25% { opacity: 0.5;} - 50% {opacity: 1;} - 75% {opacity: 0.5;} - 100% {opacity: 0;} + 0% { + opacity: 0; + } + 25% { + opacity: 0.5; + } + 50% { + opacity: 1; + } + 75% { + opacity: 0.5; + } + 100% { + opacity: 0; + } } .temp-loading { display: grid; @@ -55,10 +68,10 @@ }
-
diff --git a/netlify.toml b/netlify.toml index 0b2f1efd031..f92f9feba29 100644 --- a/netlify.toml +++ b/netlify.toml @@ -29,7 +29,7 @@ status = 200 script-src 'self' 'nonce-f51b9742' https://plausible.10bedicu.in; style-src 'self' 'unsafe-inline'; connect-src 'self' https://plausible.10bedicu.in; - img-src 'self' https://cdn.coronasafe.network https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com; + img-src 'self' https://cdn.ohc.network https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com; object-src 'self' https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com; report-uri https://csp-logger.ohc.network/ ''' diff --git a/package.json b/package.json index eeb5d36bc22..d2de97bbb09 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,22 @@ { "name": "care_fe", "version": "2.5.4", - "description": "Care is a single point to link Hospitals,Corona Care Centers and Volunteers to the unified Corona Safe Network", + "description": "Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.", "private": true, "repository": { "type": "git", - "url": "git@github.com:coronasafe/care_fe.git" + "url": "git@github.com:ohcnetwork/care_fe.git" }, "bugs": { - "url": "https://support.coronasafe.network", - "email": "info@coronasafe.network" + "url": "https://github.com/ohcnetwork/care_fe/issues", + "email": "info@ohc.network" }, "contributors": [ - "coronasafe Contributors" + "Open Healthcare Network Contributors" ], - "homepage": "https://care.coronasafe.in", + "homepage": "https://care.ohc.network", "keywords": [ - "Coronasafe", + "ohcnetwork", "care", "react", "tailwind", @@ -24,7 +24,7 @@ "typescript", "vite" ], - "author": "Coronsafe Care Contributors", + "author": "Open Healthcare Network Contributors", "license": "MIT", "scripts": { "build:react": "cross-env NODE_ENV=production vite build", @@ -161,4 +161,4 @@ "node": ">=20.12.0" }, "packageManager": "npm@10.5.0" -} +} \ No newline at end of file diff --git a/public/config.json b/public/config.json index 88ad2cdf5c8..a0810dbbafc 100644 --- a/public/config.json +++ b/public/config.json @@ -1,15 +1,15 @@ { - "github_url": "https://github.com/coronasafe", - "coronasafe_url": "https://coronasafe.network?ref=care", - "site_url": "care.coronasafe.in", + "github_url": "https://github.com/ohcnetwork", + "ohcn_url": "https://ohc.network?ref=care", + "site_url": "care.ohc.network", "analytics_server_url": "https://plausible.10bedicu.in", "header_logo": { - "light": "https://cdn.coronasafe.network/header_logo.png", - "dark": "https://cdn.coronasafe.network/header_logo.png" + "light": "https://cdn.ohc.network/header_logo.png", + "dark": "https://cdn.ohc.network/header_logo.png" }, "main_logo": { - "light": "https://cdn.coronasafe.network/light-logo.svg", - "dark": "https://cdn.coronasafe.network/black-logo.svg" + "light": "https://cdn.ohc.network/light-logo.svg", + "dark": "https://cdn.ohc.network/black-logo.svg" }, "gmaps_api_key": "AIzaSyDsBAc3y7deI5ZO3NtK5GuzKwtUzQNJNUk", "gov_data_api_key": "579b464db66ec23bdd000001cdd3946e44ce4aad7209ff7b23ac571b", diff --git a/public/contribute.json b/public/contribute.json deleted file mode 100644 index c1e5c9480b7..00000000000 --- a/public/contribute.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "Care", - "description": "Care is a single point to link Hospitals,Corona Care Centers and Volunteers to the unified Corona Safe Network", - "repository": { - "url": "https://github.com/coronasafe/care_fe", - "license": "MIT" - }, - "participate": { - "home": "https://volunteer.coronasafe.network", - "docs": "https://knowledge.coronasafe.network" - }, - "bugs": { - "list": "https://github.com/coronasafe/care_fe/issues", - "report": "https://github.com/coronasafe/care_fe/issues/new/choose" - }, - "urls": { - "prod": "https://care.coronasafe.network", - "stage": "https://care.coronasafe.in" - }, - "keywords": [ - "javascript", - "typescript", - "reason-react", - "React", - "Docker" - ] -} \ No newline at end of file diff --git a/src/Common/constants.tsx b/src/Common/constants.tsx index 610309057d0..6e5a9e33e4e 100644 --- a/src/Common/constants.tsx +++ b/src/Common/constants.tsx @@ -441,17 +441,49 @@ export const INSULIN_INTAKE_FREQUENCY_OPTIONS = [ "TD", ] as const; -export type PatientCategoryID = "Comfort" | "Stable" | "Moderate" | "Critical"; +export type PatientCategoryID = + | "Comfort" + | "Stable" + | "Moderate" + | "Critical" + | "ActivelyDying"; export const PATIENT_CATEGORIES: { id: PatientCategoryID; text: PatientCategory; + description: string; twClass: string; }[] = [ - { id: "Comfort", text: "Comfort Care", twClass: "patient-comfort" }, - { id: "Stable", text: "Mild", twClass: "patient-stable" }, - { id: "Moderate", text: "Moderate", twClass: "patient-abnormal" }, - { id: "Critical", text: "Critical", twClass: "patient-critical" }, + { + id: "Comfort", // Comfort Care is discontinued + text: "Comfort Care", + twClass: "patient-comfort", + description: "End of life care", + }, + { + id: "Stable", + text: "Mild", + twClass: "patient-stable", + description: "Urgent: not life-threatening", + }, + { + id: "Moderate", + text: "Moderate", + twClass: "patient-abnormal", + description: "Emergency: could be life-threatening", + }, + { + id: "Critical", + text: "Critical", + twClass: "patient-critical", + description: "Immediate: life-threatening", + }, + { + id: "ActivelyDying", + text: "Actively Dying", + twClass: "patient-activelydying", + description: "", + }, ]; export const PATIENT_FILTER_CATEGORIES = PATIENT_CATEGORIES; diff --git a/src/Common/hooks/useConfig.ts b/src/Common/hooks/useConfig.ts index 0bb619296a3..38e2336d583 100644 --- a/src/Common/hooks/useConfig.ts +++ b/src/Common/hooks/useConfig.ts @@ -10,7 +10,7 @@ interface ILogo { export interface IConfig { dashboard_url?: string; github_url: string; - coronasafe_url: string; + ohcn_url: string; site_url: string; analytics_server_url: string; diff --git a/src/Components/Auth/Login.tsx b/src/Components/Auth/Login.tsx index 4d49c4458ed..d0d055413cb 100644 --- a/src/Components/Auth/Login.tsx +++ b/src/Components/Auth/Login.tsx @@ -21,7 +21,7 @@ export const Login = (props: { forgot?: boolean }) => { main_logo, recaptcha_site_key, github_url, - coronasafe_url, + ohcn_url, state_logo, custom_logo, custom_logo_alt, @@ -173,7 +173,7 @@ export const Login = (props: { forgot?: boolean }) => { )} { coronasafe logo @@ -214,26 +214,22 @@ export const Login = (props: { forgot?: boolean }) => { target="_blank" > Logo of Digital Public Goods Alliance
- + coronasafe logo
void; + allowNone?: boolean; } export const FacilitySelect = (props: FacilitySelectProps) => { @@ -39,6 +41,7 @@ export const FacilitySelect = (props: FacilitySelectProps) => { facilityType, district, state, + allowNone = false, freeText = false, errors = "", } = props; @@ -66,6 +69,12 @@ export const FacilitySelect = (props: FacilitySelectProps) => { name: text, }); + if (allowNone) + return [ + { name: t("no_home_facility"), id: "NONE" }, + ...(data?.results || []), + ]; + return data?.results; }, [searchAll, showAll, facilityType, district, exclude_user, freeText], diff --git a/src/Components/Common/Loading.tsx b/src/Components/Common/Loading.tsx index cffaffde974..ae9fdfd6df5 100644 --- a/src/Components/Common/Loading.tsx +++ b/src/Components/Common/Loading.tsx @@ -1,4 +1,4 @@ -const img = "https://cdn.coronasafe.network/light-logo.svg"; +const img = "https://cdn.ohc.network/light-logo.svg"; const Loading = () => { return ( diff --git a/src/Components/Facility/ConsultationForm.tsx b/src/Components/Facility/ConsultationForm.tsx index 8b946cf3cc6..1d498ea3d14 100644 --- a/src/Components/Facility/ConsultationForm.tsx +++ b/src/Components/Facility/ConsultationForm.tsx @@ -599,6 +599,9 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { } case "treating_physician": { + if (state.form.suggestion === "DC") { + break; + } if (state.form.suggestion !== "DD" && !state.form[field]) { errors[field] = t("field_required"); invalidForm = true; @@ -1123,22 +1126,6 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { /> - -
- - A daily round already exists. -

- ) - } - required - label="Category" - {...field("category")} - /> -
-
{
)} -
+
{ required={state.form.suggestion === "A"} />
+
+ + A daily round already exists. +

+ ) + } + required + label="Category" + {...field("category")} + /> +
@@ -1428,7 +1429,7 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { name={"treating_physician"} label={t("treating_doctor")} placeholder="Attending Doctors Name and Designation" - required + required={state.form.suggestion !== "DC"} value={ state.form.treating_physician_object ?? undefined } diff --git a/src/Components/Facility/models.tsx b/src/Components/Facility/models.tsx index fd04a024d22..159afbb886b 100644 --- a/src/Components/Facility/models.tsx +++ b/src/Components/Facility/models.tsx @@ -102,7 +102,12 @@ export interface OptionsType { disabled?: boolean; } -export type PatientCategory = "Comfort Care" | "Mild" | "Moderate" | "Critical"; +export type PatientCategory = + | "Comfort Care" // Discontinued + | "Mild" + | "Moderate" + | "Critical" + | "Actively Dying"; export interface PatientConsentModel { id: string; diff --git a/src/Components/LogUpdate/Sections/IOBalance.tsx b/src/Components/LogUpdate/Sections/IOBalance.tsx index 33cd6ea5c4f..ca0bd4867d2 100644 --- a/src/Components/LogUpdate/Sections/IOBalance.tsx +++ b/src/Components/LogUpdate/Sections/IOBalance.tsx @@ -38,7 +38,7 @@ export const IOBalanceSections = [ fields: [ { name: "Output", - options: ["Urine", "Rules Tube Aspiration", "ICD"], + options: ["Urine", "Ryles Tube Aspiration", "ICD", "Abdominal Drain"], key: "output", }, ], diff --git a/src/Components/Patient/ManagePatients.tsx b/src/Components/Patient/ManagePatients.tsx index 0320a4d1c95..ab570dd57b6 100644 --- a/src/Components/Patient/ManagePatients.tsx +++ b/src/Components/Patient/ManagePatients.tsx @@ -514,7 +514,9 @@ export const PatientManager = () => {
- + {category || "UNKNOWN"}
diff --git a/src/Components/Patient/PatientCategorySelect.tsx b/src/Components/Patient/PatientCategorySelect.tsx index 4d159529f45..17265a3940a 100644 --- a/src/Components/Patient/PatientCategorySelect.tsx +++ b/src/Components/Patient/PatientCategorySelect.tsx @@ -14,9 +14,14 @@ export default function PatientCategorySelect( c.id !== "Comfort") + } // Comfort Care is discontinued optionValue={(option) => option.id} optionLabel={(option) => option.text} + optionDescription={(option) => option.description} optionSelectedLabel={(option) => (
diff --git a/src/Components/Patient/SamplePreview.tsx b/src/Components/Patient/SamplePreview.tsx index 479b426c3f2..f56714f0c36 100644 --- a/src/Components/Patient/SamplePreview.tsx +++ b/src/Components/Patient/SamplePreview.tsx @@ -84,7 +84,7 @@ export default function SampleReport(props: ISamplePreviewProps) {
Open HealthCare Network diff --git a/src/Components/Scribe/formDetails.ts b/src/Components/Scribe/formDetails.ts index d085a72d331..736ab971744 100644 --- a/src/Components/Scribe/formDetails.ts +++ b/src/Components/Scribe/formDetails.ts @@ -68,13 +68,15 @@ const DAILY_ROUND_FORM_SCRIBE_DATA: Field[] = [ friendlyName: "Patient Category", id: "patient_category", type: "string", - example: "Comfort Care", + example: "Mild", default: "", description: "A string to categorize the patient.", - options: PATIENT_CATEGORIES.map((category) => ({ - id: category.id, - text: category.text, - })), + options: PATIENT_CATEGORIES.filter((c) => c.id !== "Comfort").map( + (category) => ({ + id: category.id, + text: category.text, + }), + ), validator: (value) => { return typeof value === "string"; }, diff --git a/src/Components/Users/ManageUsers.tsx b/src/Components/Users/ManageUsers.tsx index 5b78ddf9ac5..a3cb3063577 100644 --- a/src/Components/Users/ManageUsers.tsx +++ b/src/Components/Users/ManageUsers.tsx @@ -78,7 +78,7 @@ export default function ManageUsers() { const { data: homeFacilityData } = useQuery(routes.getAnyFacility, { pathParams: { id: qParams.home_facility }, - prefetch: !!qParams.home_facility, + prefetch: !!qParams.home_facility && qParams.home_facility !== "NONE", }); const { @@ -556,7 +556,11 @@ export default function ManageUsers() { value( "Home Facility", "home_facility", - qParams.home_facility ? homeFacilityData?.name || "" : "", + qParams.home_facility + ? qParams.home_facility === "NONE" + ? t("no_home_facility") + : homeFacilityData?.name || "" + : "", ), value( "Last Active", diff --git a/src/Components/Users/UserAdd.tsx b/src/Components/Users/UserAdd.tsx index 9b4d675c184..86d27bc84d7 100644 --- a/src/Components/Users/UserAdd.tsx +++ b/src/Components/Users/UserAdd.tsx @@ -606,7 +606,7 @@ export const UserAdd = (props: UserProps) => { title={headerText} options={ diff --git a/src/Components/Users/UserFilter.tsx b/src/Components/Users/UserFilter.tsx index f79968cef4f..ff2a81723cd 100644 --- a/src/Components/Users/UserFilter.tsx +++ b/src/Components/Users/UserFilter.tsx @@ -43,7 +43,7 @@ export default function UserFilter(props: any) { useQuery(routes.getAnyFacility, { pathParams: { id: filter.home_facility }, - prefetch: !!filter.home_facility, + prefetch: !!filter.home_facility && filter.home_facility !== "NONE", onResponse: ({ data }) => setFilterState({ home_facility_ref: data }), }); @@ -134,6 +134,7 @@ export default function UserFilter(props: any) {
Home Facility setFilterState({ @@ -142,7 +143,11 @@ export default function UserFilter(props: any) { home_facility_ref: selected, }) } - selected={filterState.home_facility_ref} + selected={ + filterState.home_facility === "NONE" + ? { name: t("no_home_facility"), id: "NONE" } + : filterState.home_facility_ref + } errors="" multiple={false} /> diff --git a/src/Locale/en/Common.json b/src/Locale/en/Common.json index b9d865bc13f..4d8e3d43711 100644 --- a/src/Locale/en/Common.json +++ b/src/Locale/en/Common.json @@ -1,5 +1,4 @@ { - "coronasafe_network": "CoronaSafe Network", "goal": "Our goal is to continuously improve the quality and accessibility of public healthcare services using digital tools.", "something_wrong": "Something went wrong! Try again later!", "try_again_later": "Try again later!", diff --git a/src/Locale/en/Users.json b/src/Locale/en/Users.json index 32c6ee209c3..01fe031c61a 100644 --- a/src/Locale/en/Users.json +++ b/src/Locale/en/Users.json @@ -4,6 +4,7 @@ "add_new_user": "Add New User", "no_users_found": "No Users Found", "home_facility": "Home Facility", + "no_home_facility" : "No home facility assigned", "clear_home_facility": "Clear Home Facility", "linked_facilities": "Linked Facilities", "no_linked_facilities": "No Linked Facilities", diff --git a/src/Locale/kn/Common.json b/src/Locale/kn/Common.json index 7b82b52d9e1..3ba378654e2 100644 --- a/src/Locale/kn/Common.json +++ b/src/Locale/kn/Common.json @@ -1,5 +1,4 @@ { - "coronasafe_network": "ಕೊರೊನಾಸೇಫ್ ನೆಟ್‌ವರ್ಕ್", "goal": "ಡಿಜಿಟಲ್ ಉಪಕರಣಗಳನ್ನು ಬಳಸಿಕೊಂಡು ಸಾರ್ವಜನಿಕ ಆರೋಗ್ಯ ಸೇವೆಗಳ ಗುಣಮಟ್ಟ ಮತ್ತು ಪ್ರವೇಶವನ್ನು ನಿರಂತರವಾಗಿ ಸುಧಾರಿಸುವುದು ನಮ್ಮ ಗುರಿಯಾಗಿದೆ", "something_wrong": "ಏನೋ ತಪ್ಪಾಗಿದೆ! ನಂತರ ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ!", "contribute_github": "GitHub ನಲ್ಲಿ ಕೊಡುಗೆ ನೀಡಿ", @@ -15,4 +14,4 @@ "Notice Board": "ಸೂಚನಾ ಫಲಕ", "Assets": "ಸ್ವತ್ತುಗಳು", "Notifications": "ಅಧಿಸೂಚನೆಗಳು" -} +} \ No newline at end of file diff --git a/src/Locale/ml/Common.json b/src/Locale/ml/Common.json index 430305a6a54..3ab266fdb63 100644 --- a/src/Locale/ml/Common.json +++ b/src/Locale/ml/Common.json @@ -1,5 +1,4 @@ { - "coronasafe_network": "കൊറോണ സേഫ് നെറ്റ്വർക്ക്", "goal": "ഡിജിറ്റൽ ടൂളുകൾ ഉപയോഗിച്ച് പൊതുജനാരോഗ്യ സേവനങ്ങളുടെ ഗുണനിലവാരവും പ്രവേശനക്ഷമതയും തുടർച്ചയായി മെച്ചപ്പെടുത്തുകയാണ് ഞങ്ങളുടെ ലക്ഷ്യം.", "something_wrong": "എന്തോ കുഴപ്പം സംഭവിച്ചു! കുറച്ചു കഴിഞ്ഞു വീണ്ടും ശ്രമിക്കുക!", "contribute_github": "GitHubൽ സംഭാവന ചെയ്യുക", @@ -15,4 +14,4 @@ "Notice Board": "നോട്ടീസ് ബോർഡ്", "Assets": "ആസ്തികൾ", "Notifications": "അറിയിപ്പുകൾ" -} +} \ No newline at end of file diff --git a/src/Locale/mr/Common.json b/src/Locale/mr/Common.json index d164745bcf3..8e0fd7ae47e 100644 --- a/src/Locale/mr/Common.json +++ b/src/Locale/mr/Common.json @@ -1,5 +1,4 @@ { - "coronasafe_network": "कोरोनासेफ नेटवर्क", "goal": "डिजिटल साधनांचा वापर करून सार्वजनिक आरोग्य सेवांची गुणवत्ता आणि सुलभता सतत सुधारणे हे आमचे ध्येय आहे.", "something_wrong": "काहीतरी चूक झाली! पुन्हा प्रयत्न करा", "contribute_github": "Github वर योगदान द्या", @@ -15,4 +14,4 @@ "Notice Board": "सूचना फलक", "Assets": "मालमत्ता", "Notifications": "अधिसूचना" -} +} \ No newline at end of file diff --git a/src/Locale/ta/Common.json b/src/Locale/ta/Common.json index 4b08291783e..2ee39016c2e 100644 --- a/src/Locale/ta/Common.json +++ b/src/Locale/ta/Common.json @@ -1,5 +1,4 @@ { - "coronasafe_network": "கொரோனா சேஃப் நெட்வொர்க்", "goal": "டிஜிட்டல் கருவிகளைப் பயன்படுத்தி பொது சுகாதார சேவைகளின் தரம் மற்றும் அணுகல்தன்மையை தொடர்ந்து மேம்படுத்துவதே எங்கள் குறிக்கோள்.", "something_wrong": "ஏதோ தவறு நடந்துவிட்டது! பின்னர் மீண்டும் முயற்சிக்கவும்!", "contribute_github": "Github-ல் பங்களிப்பு செய்யுங்கள்", @@ -15,4 +14,4 @@ "Notice Board": "அறிவிப்பு பலகை", "Assets": "சொத்துக்கள்", "Notifications": "அறிவிப்புகள்" -} +} \ No newline at end of file diff --git a/src/style/index.css b/src/style/index.css index f26d9bcfbc1..327cc03d047 100644 --- a/src/style/index.css +++ b/src/style/index.css @@ -712,6 +712,10 @@ button:disabled, @apply bg-patient-unknown text-patient-unknown-fore } +.patient-activelydying { + @apply bg-patient-activelydying text-patient-activelydying-fore +} + .patient-comfort-ring { @apply ring-patient-comfort } @@ -727,6 +731,9 @@ button:disabled, .patient-unknown-ring { @apply ring-patient-unknown } +.patient-activelydying-ring { + @apply ring-patient-activelydying +} .patient-comfort-profile { @apply border-2 border-patient-comfort rounded-t @@ -743,6 +750,9 @@ button:disabled, .patient-unknown-profile { @apply border border-patient-unknown rounded } +.patient-activelydying-profile { + @apply border-2 border-patient-activelydying rounded-t +} /* for gmaps search dropdown */ .pac-container { diff --git a/tailwind.config.js b/tailwind.config.js index a40c805621f..31aa43878dc 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -70,6 +70,10 @@ module.exports = { DEFAULT: gray[400], fore: gray[800], }, + activelydying: { + DEFAULT: colors.red[800], + fore: colors.red[100], + }, }, }, padding: { diff --git a/vite.config.mts b/vite.config.mts index f7e65849493..a8f946c3e75 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -113,7 +113,7 @@ export default { script-src 'self' blob: 'nonce-f51b9742' https://plausible.10bedicu.in;\ style-src 'self' 'unsafe-inline';\ connect-src 'self' https://plausible.10bedicu.in;\ - img-src 'self' https://cdn.coronasafe.network ${cdnUrls};\ + img-src 'self' https://cdn.ohc.network ${cdnUrls};\ object-src 'self' ${cdnUrls};`, }, port: 4000,