simpledotorg / simple-android Goto Github PK
View Code? Open in Web Editor NEWAn Android app for recording hypertension-related data.
License: MIT License
An Android app for recording hypertension-related data.
License: MIT License
user_id
did action
on model
with record_id
at timestamp
As a nurse, after recording their BP, I can record the patient's prescribed drugs according to the state protocol.
is_protocol_drug
columnis_deleted
columnAs a Nurse, I can register myself on the app to avoid slow and manual back-and-forth with the Resolve team.
This card has been carved out and deprioritized for the MVP in favour of having the Resolve team register nurses/users in the backend by creating users through the web UI.
strings.xml
against Tethras' sample file (this works)Nurse can lookup a patient by name, and enter a new patient record if lookup fails, so that s/he can move on to enter a BP for the patient, whether old or new.
(#7 is a subset of this issue)
As a Nurse, I cannot enter an invalid blood pressure with the BP keyboard.
A rules-based keyboard will restrict user data entry on the BP Entry screen to decrease the likelihood of typos when entering a patient's BP.
As a nurse I should be able to add a new patient by scanning their Aadhaar card so that patient entry is a single click.
We need to think this through
We need to batch records that need to be sent from server to user. Do we use pagination mechanisms? How do we define last_sync_at
? Should we record server_updated_at
in addition to device_updated_at
?
As a nurse I can add a new patient by manually entering the name, dob/approximate age, gender, address and phone numbers.
Q: What happens when up/back is pressed and the form is not empty.
A: Although the app is capable of let the user pickup from where they left by pre-filling the form with previous values, we aren't sure how to decide when to reset and when to pre-fill. So we're going to reset the form for MVP.
Q: What happens when a None
checkbox is checked for say, the phone number field
A: The field is cleared. The checkbox is unchecked when the user starts typing again.
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.
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
id – uuid
street address - string
colony - string
village - string
district - string
state - string
country - string
pin - string
number - string
type -string
active - boolean
Patient belongs to an address
Patient has and belongs to many phone numbers
Questions:
- 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?
Yes, single field. Not mandatory. As discussed with Tim/Daniel at standup on 17/05.
Re: address model
As a nurse, I can see BP indicated as high, very high etc. based on the protocol followed by the facility (state?).
Need information on the thresholds for "high", "very high" etc. based on the protocol followed by the facility (state?) I work in.
The final decision on the package name is org.simple.clinic
.
Optional:
As a nurse after I have added a new patient, I can enter a patient's BP or skip to the next screen quickly
Systolic
/Diastolic
fields so the user cannot see what she is entering.X_USER_ID
with value as the user ID that was returned in the login API callHTTP_AUTHORIZATION
with value as Bearer (insert access token from login API call)
loggedInUser()
in UserSession classSync facilities onto device, so that patient and blood pressures can be recorded against it.
This needs to happen before nurse registration, because the nurse needs to choose a facility during registration.
As a nurse I expect the app to lookup the server as a fallback if patient is not found on the device so that I am prevented from creating duplicates.
As a nurse, I can view the patient's summary, so that I can diagnose the patient based on their historical blood pressures and drug prescriptions.
This includes profile information, blood pressure history, and drugs.
Done
button when summary is opened after saving a new patientHIGH
, VERY HIGH
and EXTREMELY HIGH
in red colorWe need a way to share production passwords, API keys, etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.