Event Scheduler

All about the endpoints

Endpoints

METHODAPI ENDPOINTFUNCTION
GET/v1/open/attributesbytypemapgetAllAttributesByTypeMap()
GET/v1/open/attributesbytypegetAllAttributesByType

getAllAttributesByTypeMap

  1. When the api is hit , the flow goes to attributeCache.findAll(Attributes.class) and gets the attributes list.
  2. If the attributes list is null or not null but size is 0 then the flow goes to attDao.getAttributes() and gets the attributes list.
  3. For every attribute in the attribute list , if the attribute is active then the attribute is added to the attribute type list and returns attribute type list.

getAllAttributesByType

  • When the api is hit, the flow goes to attservice.getAttributes() then the flow goes to attdao.getAttributeObjects() and gets the list of attribute objects array.
  • For every attribute object array , the length should be 4 and the array elements are not null then the Recordtype Name , Drug Category Name and Treatment Categoryname are set to an attribute and the attribute is added to the attribute list.
  • The attribute list is returned.
Top