How To Make A Patient-Doctor Chat App

Hi , This is my first post , so how can I make a chat app
between doctor and patient , :question: like how to automatically pair a doctor and patient when a patient clicks on a button

I’d appreciate any ideas or suggestion for how I could handle this, thanks.

What have you searched for? There are lots of examples of chat apps and ways to sign in to Thunkable.

2 Likes

I searched and understood how to make chat app
but how to pair 2 people automatically
instead of them entering room name
specifically doctor and patient

This sounds like a WhitehatJr homework assignment. Please don’t ask us to do your homework for you.

1 Like

No this is not a whitehat assignment
i want to do it on my own. though i tried to search for it , everywhere it said that the doctor would have to join the same room name as the patient , thats why i posted here.
Not WHJR Assignment

1 Like

There has to be some way to uniquely identify a connection between the doctor and patient. To me, it makes sense to use a room ID. If that’s not what you want to do, maybe you can come up with a different idea.

The room ID is the same idea as something like Team Viewer or Zoom. They each have unique meeting IDs that participants have to know.

2 Likes

@tatiang
Yes that is exactly what i want to do and am able to do but essentially i want the doctor to see all the started chats. That is my main idea.
because from my side patient is able to join chat but every time i cant send a message to the doctor saying that there is a chat started.
this is how i want it to look from the doctors side


and when the doc clicks on the arrows it should take him to the chat

@tatiang
hope you understood

That sounds doable. So you just need to show your doctor a list of (active?) rooms. What have you tried? Where are you stuck?

1 Like

@catsarisky
yes , that is exactly what i want to do. Actually i had an idea to add list but couldn’t understand how to start

Have you worked through one of the existing chat tutorials? Which one?

yes i have worked through many and i can make a chat app but problem is to show the list can you help?

Not without knowing more specifics. Are you using firebase? What’s the structure of the data? Do you already have a room ID in your data, or will you use the patient ID as the room ID? Do you need help getting the list of rooms out of firebase, or something else?

1 Like

@catsarisky yes , i am using firebase and i am using patient id as room id i . And yes , i wanted to know how to get the list of rooms out of firebase
thanks in advance

1 Like

Can you show a screenshot with the structure of the data?

1 Like

@catsarisky


image

I need to see the data structure, not the blocks. Take a screenshot of what you see in your firebase console? (Cover up any confidential info, of course!)

oh ok @catsarisky
image
i will change room id to patient id later but for now this is how it is stored

Well , now you have both

So looking at the bit of the structure you pasted, at Holley and Hospital and ICU the names of the rooms? How do you handle multiple messages in a room? What structure is above this branch?

If those are the room names, and “rooms” is the top bucket, then something like this would populate your listviewer with the names of the rooms:

image
(you can ignore the timer block - leftovers from speed testing something else!)

That’s a basic example - you’ll want to do error checking and verify that value is not null before going on to set listviewer.

1 Like