[docs] Condition docs: concept, reference, and symptom/diagnosis flows - #57
Open
github-actions[bot] wants to merge 1 commit into
Open
[docs] Condition docs: concept, reference, and symptom/diagnosis flows#57github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Deploying coredocs with
|
| Latest commit: |
93abec4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://88dd475b.coredocs.pages.dev |
| Branch Preview URL: | https://docs-clinical-condition-5de4.coredocs.pages.dev |
rithviknishad
marked this pull request as ready for review
August 10, 2026 12:29
Contributor
Author
There was a problem hiding this comment.
Generated by Docs Reviewer for #57 · opus50 · 225.3 AIC · ⌖ 10.1 AIC · ⊞ 11K
|
|
||
| ## Expected Outcome | ||
|
|
||
| - The symptoms show in the **Symptoms** list on the **Overview** tab of the encounter. |
Contributor
Author
There was a problem hiding this comment.
The encounter tab is labelled Updates, not Overview. EncounterShow.tsx keys the tab updates and renders t("ENCOUNTER_TAB__updates"), which public/locale/en.json resolves to Updates (the component file is named tabs/overview.tsx, but that is a source path, not a display label). Checklist item 4 — use the display label.
Suggested: - The symptoms show in the **Symptoms** list on the **Updates** tab of the encounter.
The same line needs the same fix in versioned_docs/version-3.1/flows/clinical/record-a-symptom.mdx.
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 the
/document clinical/conditionrequest in #55.What changed
Rewritten (both existed, both predated the current templates):
concepts/clinical/condition.mdx— full rewrite to the concept template (## Definition,## Key Attributeswith### Status,## Related). Removed the FHIR-mapping narration, the permission slugs, and the raw enum values that leaked into user-facing prose. Framed the page around Symptom and Diagnosis.references/clinical/condition.mdx— restructured to the reference skill's page structure. Removed the FHIR-mapping narration and deleted the falsecriticalityfield claim (ConditionReadSpechas no such field). Added the two viewsets, their routes, filters, and the traced authorization table.Added:
flows/clinical/record-a-symptom.mdxflows/clinical/record-a-diagnosis.mdxSidebars: both flow doc ids appended to the
clinical-flowsitems array inversioned_sidebars/version-3.0-sidebars.jsonandversioned_sidebars/version-3.1-sidebars.json(flows are a manual list).Versions: authored in
version-3.0and mirrored byte-identical toversion-3.1.Free-form instruction
The issue said: "Condition involves symptoms and diagnosis. ignore about chronic conditions as of now."
chronic_conditionin theCategoryChoicestable andChronicConditionUpdateSpecin the spec table, because they are real API surface and omitting them would make the reference wrong. No chronic-condition workflow is described.care_fe, not guessed: recording a symptom and recording a diagnosis are the two real user tasks for this resource. Symptom is listed first.Traced to
code/care:care/emr/models/condition.pycare/emr/resources/condition/spec.py,care/emr/resources/condition/valueset.pycare/emr/api/viewsets/condition.py,care/emr/api/viewsets/encounter_authz_base.pycare/security/authorization/encounter.py,care/security/authorization/patient.pycare/security/permissions/encounter.py,care/security/permissions/patient.py,care/security/roles/role.pycode/care_fe:src/components/Questionnaire/QuestionTypes/SymptomQuestion.tsx,DiagnosisQuestion.tsxsrc/components/Encounter/EncounterCommandDialog.tsx,src/pages/Encounters/EncounterShow.tsx,src/pages/Patient/History/index.tsxsrc/config/keyboardShortcuts.json(confirms thesanddshortcuts in the encounter context)public/locale/en.json(every user-facing label)Left out
body_siteandrecorded_dateare storage-only — noted in the reference as unexposed rather than documented as fields.unknownclinical status exists in the backend enum but the UI never offers it, so the user-facing status table omits it. The reference lists it.Validation
npm run build—[SUCCESS]forenandml, exit 0.