My team has been working on giving cohort builder a new look and an improved user experience, on the encounter tab search, we have a form that users can use to select patients who have had encounter based on the values specified in the field. Below is an image of the form
Screen Shot 2017-05-08 at 2.52.03 PM
There is a field “from form” that is used to select the form (e.g. Basic Form, Admission form (simple), AMPATH Adult Initial Visit Form etc.). We’re making use of the EncounterCohortDefinition via the encounterSearchAdvanced in BuiltInCohortDefinitionLibrary. But when a request body like the one below is sent
Yaaay! It worked. It should have been the UUID. I just tried it with that and it worked. Thanks. But just a quick question, there are some cases where we have used names as the value and it worked does that mean some fields accept names while some accept UUIDs strictly.
Just as @darius pointed out. Also on personWithAttribute library key. I can send the attributeType field as the name of the attribute. So should we change those implementations to make use of UUID?
I would generally use the uuid in all these cases, for consistency, for the
next person who looks at the code without the context of this conversation.