[docs] Report template docs: concept, flows and reference - #74
Draft
github-actions[bot] wants to merge 1 commit into
Draft
[docs] Report template docs: concept, flows and reference#74github-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: |
f2eee76
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://88d68065.coredocs.pages.dev |
| Branch Preview URL: | https://docs-report-template-144e4d0.coredocs.pages.dev |
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 request in #70 (
/document admin/Report Template).Interpretation of the request
The request named the domain
admin, which is not one of the docs domains. A report template is a reusable definition that instance records are generated from, so it is filed underdefinitionswith the slugreport-template. Please say so if you wanted a different home.No
<doc-types>was given, so all three layers were written. Because the slug names a resource, the flows were discovered fromcare_feand one flow was written per user task.Files added
Authored in
version-3.0and mirrored byte-identically toversion-3.1:concepts/definitions/report-template.mdxflows/definitions/create-a-report-template.mdxflows/definitions/generate-a-report-from-a-template.mdxflows/definitions/_category_.json(new flows domain folder)references/definitions/report-template.mdxFiles changed
versioned_sidebars/version-3.0-sidebars.json,versioned_sidebars/version-3.1-sidebars.json— added the manual Definitions & Terminology flow category with the two new flow ids.versioned_docs/version-3.{0,1}/references/platform/report.mdx— one added line only, linking the new template reference from Related. No document was rewritten.The existing
references/platform/report.mdx("Report & Templates") still covers bothReportUploadandTemplatein one page, which the one-primitive-per-page rule does not allow. It was left in place rather than trimmed, because splitting it is a change to a page that was not part of this request. It should be reduced toReportUploadin a follow-up.Sources traced
code/care:care/emr/models/report/template.py,care/emr/models/base.py(slug prefixing)care/emr/resources/report/template/spec.py(statuses, formats, validators, the four specs)care/emr/api/viewsets/report/template.py,care/emr/api/viewsets/report/report_upload.pycare/security/permissions/template.py,care/security/authorization/template.py,care/security/authorization/encounter.pycare/emr/reports/report_types.py,care/emr/reports/context_builder/data_points/,care/emr/reports/renderer/code/care_fe:src/pages/Encounters/TemplateBuilder/(TemplatePage,TemplateList,TemplateCard,TemplateBuilder,TemplateReportSheet)src/components/Files/ReportSubTab.tsx,src/components/ui/sidebar/facility/facility-nav.tsxpublic/locale/en.jsonfor every user-visible labelLeft out because it could not be verified
src/config/keyboardShortcuts.jsonbinds shortcuts for the Reports tab and for viewing or printing a report, but none for creating a template or generating a report from one.encounter_reportreport type is registered in the backend but is not offered in the builder, so it is listed in the reference table only and is absent from the concept and the flows.Validation
npm run buildis[SUCCESS]for bothenandml.