[mod:php] Add get record by ID using the API

Add the getByID() to following controller to give the API to get a
record using its ID, BMI, WHR, Health Issue, Household, Preg. Mothers
, Family Members.