Farms

Jump to data fields

DataVet holds a central list of farms. You must submit a farm from this list when adding medical records. It is recommneded you cache this list within your app and update peridorically.

The list of farms is also dependant on the user you are logged in as - for example, a vet will only ever see farms they have access to.

Requests on this page assume you are sending the "Authorization" header.

Fetch

GET /api/farms

This returns all the farms in the system that the user has access to, paged by the default value of 20.

Get a Specific Farm

GET /api/farms/:farmId

Replacing :farmId with the farm id.

Advanced Search

POST /api/farms/search


{
    "post_code": "CA5"
}

This returns all matching farms, paged by the default value of 20.

Data

Field Name Type Notes Required (Optional if empty)
_id string Unique CPH number Yes
post_code string The postcode of the farm
robust_farm_type string The farm type, i.e. Lowland Dairy
less_favoured_area_status string Term describing the farms area status, i.e. Disadvantaged Area
organic_status boolean True if the farm has organic animal status
e_animal_records boolean True if the farm has electronic animal record keeping
e_ketosis_data boolean True if the farm has automated data on Ketosis
e_milk_conductivity_data boolean True if the farm has automated data on the conductivity of milk
e_milk_yield_data boolean True if the farm has automated data on individual cow milk yields