Skip to content
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 #2

Closed
dvenkatr opened this issue May 10, 2018 · 3 comments
Closed

Sync patient data from user to server #2

dvenkatr opened this issue May 10, 2018 · 3 comments

Comments

@dvenkatr
Copy link

dvenkatr commented May 10, 2018

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

@dvenkatr dvenkatr created this issue from a note in RedApp (Doing) May 10, 2018
@govindkrjoshi govindkrjoshi changed the title Patient data being sent in batches from mobile device to back-end 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.. May 10, 2018
@govindkrjoshi govindkrjoshi changed the title 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.. Sync patient data from user to server May 10, 2018
@govindkrjoshi
Copy link
Contributor

govindkrjoshi commented May 10, 2018

Questions:

  • What is the "other" patient status?
  • What should the status be when a patient is "Removed from call list"?
  • Should village/colony be the same field? Should they be mandatory?
  • Should we perform any validation on the mobile number?

@ssrihari
Copy link
Contributor

ssrihari commented May 11, 2018

  • What is the "other" patient status?
  • What should the status be when a patient is "Removed from call list"?

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.

  • Should we perform any validation on the mobile number?

No, as discussed with Daniel. To allow landlines, extensions, etc.

  • Should village/colony be the same field? Should they be mandatory?

Needs answers.

@ssrihari
Copy link
Contributor

Re: address model

  1. Locality: as entered by nurses on the app. How would we model this?
  2. Aadhar address: what are the fields? How would this fit into our model?

@ssrihari ssrihari removed this from Doing in RedApp May 16, 2018
prabhanshuguptagit added a commit that referenced this issue Oct 4, 2022
Co-authored-by: Govind krishna Joshi <govind@nilenso.com>
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

No branches or pull requests

3 participants