[docs] document the clinical encounter - #53
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Deploying coredocs with
|
| Latest commit: |
f3609f4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c6fe626e.coredocs.pages.dev |
| Branch Preview URL: | https://docs-clinical-encounter-04d0.coredocs.pages.dev |
rithviknishad
marked this pull request as ready for review
August 10, 2026 11:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ezhuthachan
Closes #52 —
/document clinical/encounter. No doc types were given, so all three layers were produced.Added
Flows (new), in
version-3.0andversion-3.1:flows/clinical/create-an-encounter.mdxflows/clinical/close-an-encounter.mdxflows/clinical/assign-a-location-to-an-encounter.mdxflows/clinical/manage-the-care-team-of-an-encounter.mdxThe slug named a resource, so one flow per user task was written, ordered the way a user meets them.
Rewritten
concepts/clinical/encounter.mdx— replaced whole file. The old page predated the template: it narrated the FHIR mapping, printed a raw status diagram with code values (planned,in_progress), and used headings the template does not have. It now follows the concept template exactly: Definition, Key Attributes, Type of Encounter, Care Team, Status, Related. All values are the labels the user sees.references/clinical/encounter.mdx— small edit only. Removed the FHIR mapping narration from the opener and added a link to the concept.Sidebars
Appended the four flow doc ids to the
clinical-flowsitems in bothversioned_sidebars/version-3.0-sidebars.jsonandversioned_sidebars/version-3.1-sidebars.json.Traced to
code/care:care/emr/models/encounter.pycare/emr/resources/encounter/{constants,spec,valueset}.pycare/emr/api/viewsets/encounter.pycare/security/authorization/encounter.py,care/security/permissions/encounter.py,care/security/roles/role.pyconfig/settings/config.pycode/care_fe:src/components/Encounter/CreateEncounterForm.tsx,EncounterActions.tsxsrc/pages/Encounters/—EncounterShow,MarkEncounterAsCompletedDialog,utils/EncounterProvider.tsx,utils/useEncounterProgressController.ts,tabs/overview/summary-panel-actions.tab.tsxsrc/components/Questionnaire/QuestionTypes/EncounterQuestion.tsxsrc/components/CareTeam/CareTeamSheet.tsx,src/components/Location/LocationSheet.tsxpublic/locale/en.json,src/config/keyboardShortcuts.json,care.config.tsPermissions in the flows come from tracing the viewset
authorize_*hooks, not from the permission enum.Left out
Version note
The two versions are no longer byte-identical for these pages:
3.1moved the patient flows intoflows/clinical/patient/, so the3.1copies link topatient/register-patientwhere the3.0copies link tocreate-patient. Everything else is identical.Validation
Corruption scan returns nothing.
npm run buildis[SUCCESS]forbuildandbuild/ml, exit code 0.