-
Notifications
You must be signed in to change notification settings - Fork 299
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
Add location mapping widget #800
Comments
What would the questionnaire response look like? It should be a response item to a single questionnaire item? |
@jingtang10 There is an R5 ballot on the use of geolocation https://build.fhir.org/extension-geolocation.html. Added a zullip chat on this https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Location.20mapping.20widget Will keep reviewing and try and draft a suitable QuestionnaireResponse |
There is an R4 extension for GeoLocation http://hl7.org/fhir/extension-geolocation.html. Which could be used to append the location details directly to the Patient Resource or just used separately as in a Questionnaire to get location details. I think the QR can take the following form
|
Hi @f-odhiambo, I would like to work on this issue |
Kindly tag me to the PR or leave a comment once a PR has been raised for this |
@f-odhiambo @jingtang10 could you please help me with the questionnaire of the Location widget. |
Here you go http://turn-fhir.smartregister.org/fhir/Questionnaire/1922. You can add the widget to this questionnaire |
Hey, @puranjayK Any progress update on this ? Perhaps we can link up on this sometime this week if available for more details. Let me know |
@puranjayK Any progress update on this? |
Sorry I couldnt work on this, as the covid situation got worse in my country. |
@jingtang10 @Tarun-Bhardwaj As discussed need to hold this issue for more requirement details. |
HI @PallaviGanorkar , Are you going to be picking this issue ? |
Hello I am new to contribution and would like to contribute to this issue if no one is on it. |
Hi @MnCSSJ4x,Thanks for this , how can we connect to have a brief on this issue, can we ? |
we can connect via mail : xxxxx |
@FikriMilano I was planning to follow the sample format mentioned until and unless there is some limitation |
Alright, sounds good for me. |
Hi @MnCSSJ4x , how is the progress here ? |
@f-odhiambo |
@MnCSSJ4x you can just simply fork the repo, build the project then try to run the demo apps |
@MnCSSJ4x Any progress made on this ticket? |
@Tarun-Bhardwaj I think we can close this issue as it had been implemented on FHIR Core opensrp/fhircore#1536 |
Thanks @f-odhiambo - would it be worth merging this back into the SDK? @jingtang10 |
We can have a discussion on this , happy to elaborate more on the solution we took |
@ageryck I think you can re-open this ticket for the GPS picker work. |
@jingtang10 this can be re-assigned since the implementation in the attached PR was something different |
@f-odhiambo @f-odhiambo I had a suggestion of maybe using a normal Questionnaire item of type {
"linkId": "Location widget",
"type": "string",
"text": "Record GPS Location",
"required": true,
"extension": [
{
"url": "https://github.com/google/android-fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "https://github.com/google/android-fhir/questionnaire-item-control",
"code": "location-widget"
}
]
}
}
]
} and to render, instead of having it as single "record gps location", maybe have it render similar to the datepicker populating the textview with comma-separated |
After reviewing the above implementation idea, we felt it may have had deficiencies of may be not being able to separate between latitude and longitude in consistent way. And so, with the help of the fhir org team, we had another idea that would be viable, to use a Questionnaire item of type Essentially, it would look like {
"linkId": "location-widget",
"type": "group",
"extension": [
{
"url": "https://github.com/google/android-fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "https://github.com/google/android-fhir/questionnaire-item-control",
"code": "location-widget"
}
]
}
}
],
"item": [
{
"linkId": "latitude",
"type": "string",
"required": true,
"readOnly": true,
"extension": [
{
"url": "gps-coordinate",
"value": "latitude"
}
]
},
{
"linkId": "longitude",
"type": "string",
"required": true,
"readOnly": true,
"extension": [
{
"url": "gps-coordinate",
"value": "longitude"
}
]
}
]
} @jingtang10 would love to hear what you think |
I think defining custom widgets (together with custom extensions) in the SDC library is a great approach. This is fine. The important thing is documentation and making sure people using your questionnaires are aware of the extensions you define otherwise your questionnaire will not be usable. Be good to share this with the fhir chat community as well, especially to get grahame and lloyd's opinion. |
@LZRS how does this look on the QR? Do you mind sharing a sample? |
The QuestionnaireResponse would probably look like this {
"linkId": "location-widget",
"item": [
{
"linkId": "latitude",
"answer": [
{
"valueString": "41.40338"
}
]
},
{
"linkId": "longitude",
"answer": [
{
"valueString": "2.17403"
}
]
}
]
} |
Is your feature request related to a problem? Please describe.
Add a location widget that allows you to submit the location with GPS coordinates and location details as FHIR Location resources
Describe the solution you'd like
In the ANC use case, add a location of a facility or a family residence or village during a family registration/enrollment Encounter that will in turn reference a Patient plus a Practioner. Tagged via Encounter.location This should submit a location payload tagged to a patient while enrolling ANC Clients or registering a family and its householder members
In the Covax demo app, allow a user to submit the location details of where the Vaccination is being done
The Widget should be able to trigger the GPS to collect Latitude and Longitude coordinates for a precise location
Sample location payload for an Immunization facility
Describe alternatives you've considered
N/A
Additional context
Sample location payload for an Immunization facility
Sample location payload for a Household location/home
Sample ANC mock
NB. The accompanying details of the Location (address, display name) can be collected via a questionnaire and appended to the Questionnaire response before extraction and saving/posting/sync as a location resource
The text was updated successfully, but these errors were encountered: