# Facing error related to drug and diagnosis in OpenMRS-DrugOrders-Pharmacymodule

**URL:** <https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295>\
**Category:** Development\
**Tags:** module, drugs, concept\
**Created:** [April 29, 2021, 12:49pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295 "2021-04-29T12:49:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 12:49pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/1 "2021-04-29T12:49:02Z")

</div>

Hello there since last week trying to build order entry module. unfortunately failed to build it because I wanted to add print functionality in it but its not generating .zip file thats why cant able see my changes. Tried all steps but fail.

After spending time and getting help from community came to OpenMRS-DrugOrders-Pharmacymodule suggested by @sharif . I installed the module and its working fine and matches the expectation specially in Indian style of pharmacy.

Unfortunately while adding drug order I am encountering the error message related to concept (Diagnosis concept class) like in below image.

 ![image](https://talk.openmrs.org/uploads/default/original/2X/5/52467dbc515f1c1b77c48471923b18a6d6c09b19.png) ![image](https://talk.openmrs.org/uploads/default/original/2X/1/1d26f62f9e923f44651de81d175bf8188baf57ce.png) ![image](https://talk.openmrs.org/uploads/default/original/2X/6/67f1522f7c5a1842ece8ea2d394a38346111c289.png)Please help me on this It will really Helpful for me. @sharif@ibacher @dkayiwa

Thank You

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [April 29, 2021, 1:34pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/2 "2021-04-29T13:34:41Z")

</div>

Ohh sorry for late response, you need to create a diagnosis concept in concept dictionary **NOTE** , GoTo AdministrationPage, Manage Drug Concepts, Create a new Concept as Diagnosis Type

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 1:46pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/3 "2021-04-29T13:46:13Z")

</div>

Thanks @sharif I wil try it and let you know.

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 2:10pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/4 "2021-04-29T14:10:23Z")

</div>

hi @sharif after following steps got this fields.

 ![image](https://talk.openmrs.org/uploads/default/original/2X/3/3af2ff2ccfcc0973c82706a3d26dafaeb673a0df.png)are sure or I think we need to add it into Manage concept class.

---

<div class="post-metadata">

**Author:** ![herbert24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/herbert24/32/8178_2.png) [@herbert24](https://talk.openmrs.org/u/herbert24)\
**Post date:** [April 29, 2021, 2:11pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/5 "2021-04-29T14:11:28Z")

</div>

from this point add a concept that you will later on use when making an order

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [April 29, 2021, 2:13pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/6 "2021-04-29T14:13:45Z")

</div>

sorry my bad, From administration Page, click on dictionary, Click On add New Concept , and create a diagnosis concept

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [April 29, 2021, 2:17pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/7 "2021-04-29T14:17:55Z")

</div>

This also might give you broad overview of handling concepts in openmrs [Concept Dictionary Basics - Documentation - OpenMRS Wiki](https://wiki.openmrs.org/display/docs/Concept+Dictionary+Basics)

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 2:35pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/8 "2021-04-29T14:35:44Z")

</div>

After setting up this got this error. [UI Framework ErrorRoot Errorjava.lang.NullPointerException at org.openmrs. - Pastebin.com](https://pastebin.com/VT3JMFFR).

---

<div class="post-metadata">

**Author:** ![pratikbiz24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/pratikbiz24/32/13511_2.png) [@pratikbiz24](https://talk.openmrs.org/u/pratikbiz24)\
**Post date:** [April 29, 2021, 2:50pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/9 "2021-04-29T14:50:39Z")

</div>

Hello @sharif and @herbert24 , I have created a new concept of Diagnosis type named “demoDisease” and created new order using that concept like below:-

 ![Screenshot (56)](https://talk.openmrs.org/uploads/default/original/2X/5/51c17be7c6a69025e631197d61c626e224db3010.png)

 ![Screenshot (57)](https://talk.openmrs.org/uploads/default/original/2X/b/b933d99a5b97f4db383ed7f8af124e99343b82fd.png)

but got this error after creating new order using newly created concept of diagnosis type:-

 ![Screenshot (58)](https://talk.openmrs.org/uploads/default/original/2X/4/4347881a3469eb349aaeca1abf518fb1a84cde5c.png)

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [April 29, 2021, 3:03pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/10 "2021-04-29T15:03:26Z")

</div>

> [@pratikbiz24](#):
>
> I have created a new concept of Diagnosis type named “demoDisease” and created new order using that concept like below:-

Create a concept from administration \> Dictionary\> addNew concept please

---

<div class="post-metadata">

**Author:** ![pratikbiz24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/pratikbiz24/32/13511_2.png) [@pratikbiz24](https://talk.openmrs.org/u/pratikbiz24)\
**Post date:** [April 29, 2021, 3:13pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/11 "2021-04-29T15:13:19Z")

</div>

I have created new concept through reference application i.e. Home \> Configure Metadata \> Manage Concept dictionary \> Manage Concepts \> Add new Concept

I think both the ways will create a new concept.

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 3:17pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/12 "2021-04-29T15:17:12Z")

</div>

Added new concept with concept class diagnosis and also added a concept with concept class drug. And in drug order chooses the same concept for drug and diagnosis but unfortunately got the same error.

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [April 29, 2021, 3:18pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/13 "2021-04-29T15:18:48Z")

</div>

> [@atiq](#):
>
> Added new concept with concept class diagnosis and also added a concept with concept class drug. And in drug order chooses the same concept but unfortunately got the same error.

The concept should reflect unless you are adding it differently

can i take you through concept creating To join the meeting on Google Meet, click this link: [meet.google.com/rhy-hnjn-ugj](http://meet.google.com/rhy-hnjn-ugj)

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 3:19pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/14 "2021-04-29T15:19:51Z")

</div>

Ok @sharif I think It will be better for us 😅

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 3:31pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/15 "2021-04-29T15:31:54Z")

</div>

Hello @sharif got disconnected. Can you please join it again.

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 4:02pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/16 "2021-04-29T16:02:48Z")

</div>

Thanks @sherif I will try it again with fresh mind and let you know.

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 4:19pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/17 "2021-04-29T16:19:35Z")

</div>

@sharif I think we need to compare our provider things of person i.e admin

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [April 29, 2021, 5:32pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/18 "2021-04-29T17:32:00Z")

</div>

![image](https://talk.openmrs.org/uploads/default/original/2X/4/46ce580e295d31b721cb85fb24b4692e1b90d2d2.png)here in manage account page its showing identifier to unknown and in the code we are looking for clinician and doctor as a provider in drug

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [April 29, 2021, 6:59pm UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/19 "2021-04-29T18:59:07Z")

</div>

Hello @atiq , Are you still facing a challenge with saving a concept , can you share the error logs, probably that might be in code or some incompatibilities with core version

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [May 3, 2021, 9:43am UTC](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295/20 "2021-05-03T09:43:40Z")

</div>

Hey @sharif able save the concepts successfully , but fail to place drug order unlike on your system.

[Next page](https://talk.openmrs.org/t/facing-error-related-to-drug-and-diagnosis-in-openmrs-drugorders-pharmacymodule/33295.md?page=2)
