Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

added location type to visit #411

Closed
wants to merge 1 commit into from

Conversation

karifa-kouyate
Copy link

Fixes # .

Changes proposed in this pull request:
added more precision to visit location. with a drop down for the location type with three options :
.Health facility,
.Home visit,
.Other.
If you choose Health Facility a visit location field appears to enter the facility location,
if you choose Home visit that option is for home visit cases,
and if the location is different from Heath facility and home visit you can choose third option Other and fill in the Other location field.

cc @HospitalRun/core-maintainers

@jglovier
Copy link
Member

jglovier commented Apr 9, 2016

@karifa-kouyate thanks for the pull request! If these changes address or resolve an open issue, please reference it in the Fixes # . line. Otherwise you can delete that line.

@jkleinsc
Copy link
Member

@karifa-kouyate Can you explain further why you need this field versus the location field that is already there? The current location field by default is a smart typeahead field (where it remembers previous entries), but it can also be configured as a drop down list.

@karifa-kouyate
Copy link
Author

@jkleinsc The doctor can have visits outside the Health Facility , like Home-visit or other locations, so the visit type is added to be able to categorize them in case that we can know how many Home-visit,Health Facility or other locations visits we have.

@tangollama
Copy link
Member

Thanks for the clarification. That feels to me like the location field could accommodate that. One of the design principles were trying to embrace is simplicity. So unless there's a strong reason for a multi-level taxonomy, I'd resist adding this field.

That said, the best idea wins and even though we're embracing simplicity, we also want to do what makes sense. With that backdrop, can you offer up a strong use case or argument for offering a multi-leveled taxonomy for location vs just storing all location values is a single, flat field.

On Apr 13, 2016, at 1:06 PM, karifa-kouyate [email protected] wrote:

@jkleinsc The doctor can have visits outside the Health Facility , like Home-visit or other locations, so the visit type is added to be able to categorize them in case that we can know how many Home-visit,Health Facility or other locations visits we have.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

@jkleinsc
Copy link
Member

@karifa-kouyate can you offer a strong use case or argument for offering a multi-leveled taxonomy for location vs just storing all location values is a single, flat field? If not, we are going to close this PR.

@iamquechua
Copy link
Contributor

Hello @jkleinsc , I work with @karifa-kouyate . The reason we multi-leveled taxonomy for location is because not all locations are the same type. It's important to be able to differentiate between a health center, or home visit. We felt that putting all of them in one field would make aggregation harder and could confuse the user of the app. It's also important to know that just an autocomplete field will confuse some of the users in smaller communities where those users are not well versed in basic IT, as has been the case for us.

@jkleinsc
Copy link
Member

@Douno in regards to the autocomplete field, the existing location field can be configured to just be a drop down by going to Administration/Lookup Lists/Visit Locations and making sure the checkbox labeled "User Can Add New Values" is not checked. This of course wouldn't give you the ability to pick from the drop down OR type in a value under other, but it does make things simpler.

@tangollama
Copy link
Member

@Douno are you planning to continue work on this PR or should we close it? Let us know.

@jkleinsc
Copy link
Member

@tangollama I am going to close this issue. Location as it stands right now is pretty robust and if folks need an alternate, they can do so now with custom forms.

@jkleinsc jkleinsc closed this Mar 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants