A person can add any set of causes behind death and if he names the question concept something other than “cause of death”, then how we know from the concept list that this particular question has answers which correspond to cause of death??? Is there any rest API through which we can access global properties so we know that this particular conceptID is linked to the concept.causeOfDeath ???
In the reference app, we set the id in Global properties, so web knows which concept to choose, how to do that in mobile application
Why I need this
I want to add the option to mark the patient dead in android client but this is a sort of blocker, I have some perfectly working workarounds below.
My Proposed Solution(for coded response)
We create a dialogue box asking the conceptID before proceeding to mark patient dead
Since while playing around at https://qa-refapp.openmrs.org/openmrs/module/webservices/rest/test.htm, I observed that we can mark the patient dead from any concept available, so I fetch all of them and give an autocomplete field to select any one (irrespective if it belongs to cause of death)
We create a rest API to fetch global ID’s and put this feature for the android client on hold until it is implemented.
yes it returns the conceptID successfully, now I am searching for how to retrieve complete concept from ID as query, havent found anything as such yet in the https://rest.openmrs.org/#available-operations-for-concepts to successfully fetch concept using only ID
The error seems to occur at
Looking at this, I think modifications might be needed in conceptService as well. I am not familiar with the code of core-apps, but can give a try. Will need to setup IDE first for this.
Yes. It looks like 5002 used to be in the CIEL dictionary, and hence probably in the default RefApp metadata, but has been removed. @akanter Was there a replacement for this or should we have be rethinking how we’re representing cause of death? I see that there’s 1599, but that doesn’t seem to have any default answers.
1599 is the correct concept for probable cause of death, but is not the same as the official cause of death from a death certificate (1814). The concept is coded, without predefined pick lists as the number of diagnoses/causes is huge.
Would either 1599 or 1814 be a good fit for this or should we capture an additional field to make the decision as to which of those we use (something like a checkbox saying “Cause of death from death certificate” or w/e)?
I think 1599 would be appropriate. As for the pick list, either we do a database query or we need a shortlist of likely options, but in reality the actual list is pretty long.