New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync patient data from user to server #18
Comments
Got it. |
Is the patient <=> phone_number relationship many-to-many? In that case, are we sure we want to update other patients' phone numbers when one patient's shared phone number is updated? If not, it's a one-to-many relationship. |
We need to store |
As a nurse, I want the patient records on device to be sent in batches to the backend, so that the central database is updated, and the data is safe.
Patient data model
ID - UUID [to discuss]
Full Name - String
Age when created - Integer
Date of Birth - Date
Gender (male / female / transgender) - Enum/String
Status (active, dead, migrated, unresponsive, other [define other]) - Enum/String
Address data model
id – uuid
street address - string
colony - string
village - string
district - string
state - string
country - string
pin - string
Phone number data model
number - string
type -string
active - boolean
Relationships
Patient belongs to an address
Patient has and belongs to many phone numbers
Questions:
Not relevant for MVP. We'll still keep the status field in the code. We'll default to "active" status. @saket please default to "active" status on the device as well.
No, as discussed with Daniel. To allow landlines, extensions, etc.
Yes, single field. Not mandatory. As discussed with Tim/Daniel at standup on 17/05.
Re: address model
The text was updated successfully, but these errors were encountered: