I’m currently working on the new cohort builder and I’m working on how to feed data from the database into the drug order fields. I have made API requests to get all drugs and drug generics but I don’t know how to get data for Reason(s) for change. Is there an API I can call for that or is there something I need to know? Below is the image of how things look so far.
Meaning that it expected a concept named: REASON ORDER STOPPED
This would be of class: ConvSet
Data type: Coded
Then have the answers as the reasons for change.
This definitely is not the best way, but for now, you could just do the same (that is make a REST call to get answers for that concept), and create a ticket for replacing the concept name hard coding with a better alternative.