Event Scheduler
All about the endpoints
Endpoints
| METHOD | API ENDPOINT | FUNCTION |
|---|---|---|
| GET | /v1/open/attributesbytypemap | getAllAttributesByTypeMap() |
| GET | /v1/open/attributesbytype | getAllAttributesByType |
getAllAttributesByTypeMap
- When the api is hit , the flow goes to
attributeCache.findAll(Attributes.class)and gets the attributes list. - 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. - 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 toattdao.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.