Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Patient Card Component #8

Open
1 task
AEst2002 opened this issue Oct 10, 2023 · 0 comments
Open
1 task

Patient Card Component #8

AEst2002 opened this issue Oct 10, 2023 · 0 comments
Assignees

Comments

@AEst2002
Copy link
Collaborator

AEst2002 commented Oct 10, 2023

Resources

Description
We can start to create some components to match the Figma's lofis in preparation for adding additional pages like the dashboard. For this deliverable, you'll focus on the patient card component, which will be useful for clinicians.

  • Implement the PatientCard component as it appears on Figma.
    • The component should take a series of props: a user id (this won't be used for the time being, but you should have it as a prop anyway), a first name, last name, diagnosis, last visit, and upcoming visit.
    • You can expect that the first name and last name will typically be provided, but you should handle cases in which any other properties are not. (i.e. Don't display fields you don't have information for)
    • The last visit and upcoming visit props should excpect a Postgres timestampz type (e.g. 2023-10-10 20:05:52.920054+00)
    • The "Progress" and "Messages" buttons should be present on your component, though they don't need to do anything for now.
    • You should be able to test your component even without querying the database, by just providing a set of made-up values for the props.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants