nehav39 / intelehealth-openmrs-module

Mozilla Public License 2.0
1 stars 1 forks source link

Encounter's posted on OpenMRS does not post location_id #45

Closed prithi69 closed 6 years ago

prithi69 commented 7 years ago

+--------------+------------+--------+-------------+ | encounter_id | concept_id | obs_id | location_id | +--------------+------------+--------+-------------+ | 520 | 163202 | 1440 | NULL | | 520 | 163206 | 1441 | NULL | | 520 | 163205 | 1442 | NULL | | 520 | 162169 | 1443 | NULL | | 518 | 5092 | 1454 | 11 | | 518 | 5086 | 1470 | 11 | | 519 | 163212 | 1471 | 11 | | 518 | 5088 | 1479 | 11 | | 519 | 163210 | 1480 | 11 | | 519 | 163211 | 1481 | 11 | | 519 | 163213 | 1482 | 11 | | 518 | 5090 | 1483 | 11 | | 518 | 5089 | 1484 | 11 | | 518 | 5087 | 1485 | 11 | | 518 | 5085 | 1486 | 11 | +--------------+------------+--------+-------------+ 15 rows in set (0.00 sec)

Here the location_id is Null..of encounter type visit note.. Location_id Location_name 2 | Remote | | 11 | Telemedicine clinic 1 | | 10 | Telemedicine clinic 2

nehav39 commented 6 years ago

For the short term we can understand locations through the Geo tags

hardikk08 commented 6 years ago

I have included location along with the encounter but this is what is happening, the location of patient on active visits page is showing the location of encounter type visit note. It is supposed to show nothing if a patient has been seen!

screenshot 34

Most probably because of this particular code, I tried removing latest and if statements too but with no luck.

image

nehav39 commented 6 years ago

Location of adult initial encounter

nehav39 commented 6 years ago

Moved to the new repo