Skip to content

Design ai doctor clone for tcm platform#1

Open
xuweikang wants to merge 1 commit into
masterfrom
cursor/design-ai-doctor-clone-for-tcm-platform-5dd5
Open

Design ai doctor clone for tcm platform#1
xuweikang wants to merge 1 commit into
masterfrom
cursor/design-ai-doctor-clone-for-tcm-platform-5dd5

Conversation

@xuweikang
Copy link
Copy Markdown
Owner

<!--
We, the rest of the NativeScript community, thank you for your
contribution! 
To help the rest of the community review your change, please follow the instructions in the template.
-->

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

## PR Checklist

- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
- [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
- [ ] You have signed the [CLA](http://www.nativescript.org/cla).
- [ ] All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/master/DevelopmentWorkflow.md#running-unit-tests.
- [ ] Tests for the changes are included - https://github.com/NativeScript/NativeScript/blob/master/WritingUnitTests.md.

## What is the current behavior?
The platform currently lacks an "AI Doctor Assistant" feature to aid in pre-consultation data collection and post-consultation patient engagement for TCM practitioners.

## What is the new behavior?
This PR introduces a high-fidelity interactive prototype for the "Doctor AI Assistant" feature, designed for a TCM practitioner enablement platform. It implements the following core functionalities and pages:

*   **Doctor Homepage (`home.html`)**: Features a prominent doctor brand, an entry point for AI consultation, and a patient informed consent checkbox.
*   **AI Smart Intake Form (`intake.html`)**: Provides a step-by-step, chat-dialogue-style guided patient intake process to collect symptoms and medical history.
*   **Multimedia Capture (`capture.html`)**: Guides patients through standardized tongue and face photo collection with real-time instructions and basic quality control.
*   **AI Collected Summary (`summary.html`)**: Presents a structured summary of AI-collected patient information (symptoms, photos, lifestyle) for the doctor's review, clearly marked as "for reference only."
*   **Post-Consultation Chat (`postchat.html`)**: Simulates a chat interface with AI auto-reply for common questions, identification of urgent issues, and a toggle for human doctor intervention.

The prototype adheres to a professional medical style with TCM elements, uses HTML, Tailwind CSS, and FontAwesome, and simulates a WeChat mini-program interface. All AI-generated content is explicitly disclaimed as "for reference only," emphasizing the doctor's final diagnosis. The pages are integrated via an `iframe` with `postMessage` for navigation and state management.

Implements new feature: Doctor AI Assistant Prototype.

Open in Cursor Open in Web

Co-authored-by: xuweikang <xuweikang@dajiazhongyi.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Sep 10, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@xuweikang xuweikang marked this pull request as ready for review September 10, 2025 12:28
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, please have a team admin upgrade your team to Bugbot Pro by visiting the Cursor dashboard. Your first 14 days will be free!

Comment thread index.html
}
</script>
</body>
</html>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate HTML Structure Causes Parsing Errors

The index.html file contains two complete HTML document structures. The second document, starting at line 58, duplicates the content from lines 1-56. This results in invalid HTML with multiple <!DOCTYPE>, <html>, <head>, and <body> tags, which can cause parsing errors and unexpected rendering behavior.

Fix in Cursor Fix in Web

Comment thread pages/capture.html

document.getElementById('btnRetake').onclick = () => {
canvas.style.display = 'none'; qcBox.classList.add('hidden');
state.shot = null; document.getElementById('save').disabled = true; this.disabled = true;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Arrow Function Context Issue

In the btnRetake click handler, this.disabled = true doesn't disable the button. This happens because this inside an arrow function doesn't refer to the button element, preventing the intended state change.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants