Rothamsted-Ecoinformatics / farm_rothamsted

Custom farmOS features for Rothamsted Research.
GNU General Public License v2.0
6 stars 1 forks source link

Quick Form: Pesticides and Spraying #42

Closed aislinnpearson closed 2 years ago

aislinnpearson commented 2 years ago

A quick form for designed for capturing all information relating to pesticide applications and spraying (including nutrient inputs applied with a sprayer). These tasks are assigned by a Farm Manager but completed by the Farm Operator. For this reason the quick form has two parts: questions relating to job scheduling (done by the Farm Manager) and questions relating to the actual operation and completion of the task (done by the farm operator).

The initial question set for all the 2.x Quick Forms, which came from consultation with the farm team, is here: https://rothamsted.sharepoint.com/:x:/r/sites/FarmOSformsworkinggroup/Shared%20Documents/FarmOS/Requirements/FarmOS_QuickFormRequirments_2.0.xlsx?d=w3cb36857662c4abea329a9a2b8dbb154&csf=1&web=1&e=KasEYv

These requirements might change as the Quick Forms and 2.x development progresses, especially as they are optimised for commercial operations, and further consideration may need to be given to experiments.

See Issue #5 for previous discussions

paul121 commented 2 years ago

My draft of this quick form loads all of the log_category terms as options in the form, but we actually want to only display child terms of a Justification/Target (Spraying Applications) term:

https://github.com/Rothamsted-Ecoinformatics/farm_rothamsted/blob/21b34c71176cfc009c4dcccb1a6b0961ae120199/src/Plugin/QuickForm/QuickSpraying.php#L137

@barnabynorman maybe you could make this change? In Drupal 7 there was a helper to load "child" taxonomy terms and I imagine there is something similar in Drupal 9, but am not sure!

See https://github.com/Rothamsted-Ecoinformatics/farm_rothamsted/issues/13#issuecomment-960879930

aislinnpearson commented 2 years ago

Hi All,

DId this change get made to the 1.x Quick forms? I've just had a look now but I don't think it's been updated yet as it is still displaying a wide variety of terms, not just those under the Justification/Target (Spraying Applications) term

barnabynorman commented 2 years ago

I changed that today but its not merged yet

On Mon, 22 Nov 2021 at 16:54, Aislinn Pearson @.***> wrote:

Hi All,

DId this change get made to the 1.x Quick forms? I've just had a look now but I don't think it's been updated yet as it is still displaying a wide variety of terms, not just those under the Justification/Target (Spraying Applications) term

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Rothamsted-Ecoinformatics/farm_rothamsted/issues/42#issuecomment-975725661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANBWO4O6UROMUL5NVNC2S3UNJYTJANCNFSM5HNTRJ7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aislinnpearson commented 2 years ago

Great. Thanks @barnabynorman. The other thing I will have a look at tomorrow is the Spray Nozzles which is also on my to do list

aislinnpearson commented 2 years ago

Hi All. Attached is the first full draft of the new question set for the spraying quick form. The list of columns is the same as described in #40. There is an error in the excel form: the question "seed label" should be "product label" and this question should be optional not required.

spraying-quick-form-question-set.xlsx

aislinnpearson commented 2 years ago

For reference I've attached a photograph of the paper form which the team at Brooms Barn take out with them when doing the spraying, which I used to come up with the user requirements attached. The underlying form is made in excel, and has been designed by the farm manager to meet all the legal requirements.

The layout of this form is relevant to the online layout of the quick forms as raised in #62

As a bit of background to the user process:

  1. When the recommendations come through from our agronomist, some of the details from their recommendations are copied into the the excel spreadsheet on the computer in the office. Our farm assistant then prints off the spray job form for the spray operator, ready for when the weather is amenable.
  2. The operator fills in the rest of the form in the cab during/ after spraying. You will notice that for several columns for information which needs to be captured across one or more days - this is because sometimes a job will be rained off or completed over multiple days, and this information needs to be recorded for legal purposes at the time of spraying.
  3. The paperwork is placed in the in-tray. The data is entered at convenience (usually when it is raining and the team are catching up on paper work).
  4. Once entered it is filed by field and then by crop if the field is divided in multiple fields. Those paper records are then stored in a fireproof cabinet going back five years
  5. Occasionally a blank spray sheet is required. These are those instances when the agronomist will give a recommendation over the phone and it needs to be implemented immediately. Having paper records available is also helpful for those members of the farm team who are not comfortable using a computer.

In addition to the spraying job sheet, the farm team will often print out a map of the trials with the relevant plots highlighted, and then draw on this map, often indicating the direction driven and marking off plots as they go. This is important as if they get rained off, they know where to start again. I've attached an example of that here

spraying-paper-job-form_brooms-barn image

aislinnpearson commented 2 years ago

Aislinn to specify which information is needed in each of the vertical tabs as per #62

aislinnpearson commented 2 years ago

As agreed on 19/01/ 2022 @barnabynorman Barnaby to build out vertical tabs based on existing specifications and Aislinn to review once completed.

aislinnpearson commented 2 years ago

Hi @barnabynorman and @paul121

Following the user feedback session, here are the required changes to the spraying quick form. I have first put all the questions in a list showing the order in which they should be laid out on the quick forms. All those with an asterisk next to them need to be made into required questions.

Secondly I have given a list of the amendments to the various questions. Those marked 'REQUIRED' are essential changes. Those marked as "IF FEASIBLE" are nice to have's but not essential.

Order of questions:

Setup tab:

  1. Plant Asset(s)* (previously “asset”)
  2. Tractor*
  3. Machinery*
  4. Nozzle Type
  5. Pressure
  6. Equipment Settings

Spray Justification tab:

  1. Justification/ target*
  2. Recommendation Number*
  3. Recommendation File(s)*
  4. Plant Growth Stage
  5. Harvest Interval

Tank Mix Tab

  1. Add a product:

    i. Product Type ii. Product iii. Product rate iv. Units v. Product Batch Number* (previously RES product number)

  2. Water Volume*
  3. Product label(s)
  4. Tank mix ID

Health and safety tab

  1. COSSH Hazard Assessments*
  2. PPE*
  3. Knapsack operator checklist

Weather tab

  1. Weather*
  2. Temperature*
  3. Wind Speed/ Units/ Wind Direction*

Operation tab:

  1. Operation start date and time*
  2. Tractor hours (start)/ Tractor hours (end)
  3. Time Taken (hours)/ Time taken (minutes)
  4. Area Sprayed/ Units
  5. Speed Driven
  6. Fuel use
  7. Tank volume remaining/ units
  8. Equipment triple-rinsed
  9. Equipment clear washed
  10. Notes

Job Status tab

  1. Operator*
  2. Job Status*
  3. Flag

Amendments:

Setup tab:

1. Asset(s): a. REQUIRED Please rename as “Plant asset(s)” b. REQUIRED Please add the following to the description: “If the record applies to more than one plant asset, you can select multiple by separating them with a comma.” 2. Machinery: a. REQUIRED Please rename this field “Spraying Equipment” b. REQUIRED Please make this a required field c. REQUIRED Please add the following to the description: “You can select multiple pieces of equipment if needed.” d. IF FEASIBLE Convert this to a drop-down box where, in addition to being a dropdown box, the user would be able to start typing and the machinery auto-fills. This is so that the full list of equipment is visible in case a user is unfamiliar with the name of the equipment but equally users who are familiar can start typing and select from the auto-fill field.

  1. Nozzle Type: REQUIRED Please move this field to the setup tab
  2. Pressure: REQUIRED Please move this field to the setup tab
  3. Equipment settings: REQUIRED Please move this field to the setup tab

Spray Justification Tab

1. Justification/ target: a. REQUIRED Please make this a required field (required by Red Tractor) b. REQUIRED Please make this a text field as currently too limited to capture full variety of targets/ justifications 2. Recommendation Number: a. REQUIRED Please move this field to the spray justification tab. b. REQUIRED Please make this a required field 3. Recommendation File(s): a. REQUIRED Please move this field to the spray justification tab. b. REQUIRED Please make this a required field 4. Harvest Interval: a. REQUIRED Please create a new numeric field for harvest interval, with an inline field for units (“days”, “weeks”). b. REQUIRED Please include the description “For products with a specified interval between application and harvest, please make a note of the harvest interval here”.

Tank Mix Tab

1. Add product a. REQUIRED Please move the ‘add product’ section to this tab b. REQUIRED Please make this a required question set (required by Red Tractor) c. REQUIRED For each product, please request the following information:

i. Product Type (a list of parent terms on the materials taxonomy) ii. Product (child terms under the parent term selected) iii. Product rate (numeric) iv. Units (ml, l, g, kg) v. Product batch number (text field) (replaces “RES product number” field)

  1. Product batch number: REQUIRED Please change the description so it reads “The unique product batch number, as provided by the product manufacturer”.
  2. Product Labels: a. REQUIRED Please create a new photograph upload field for photographs of Product Labels (possibly the field called “seed labels” on the current spraying quick form was meant to be product label?) b. REQUIRED Please add the description “Photographs of the product label(s) where relevant.”
  3. Tank Mix ID: REQUIRED Please move this field to the Tank Mix tab.
  4. Water rate: REQUIRED Please remove this field. Will be used as part of a calculator at a later date.
  5. Product quantity: REQUIRED Please remove this field and the associated units (will be included later as a part of a calculator)

Health and safety tab

  1. COSSH Assessment: IF FEASIBLE Is it possible to make the COSHH options fit into columns?

Weather tab:

  1. Wind Speed: REQUIRED Please include mph in the units
  2. *Wind Speed/ Units/ Wind Direction: ** IF FEASIBLE Please make these inline fields if possible.

Operation tab:

  1. Time taken: REQUIRED Please make this field two in-line drop down boxes, one for hours (0 – 12) and one for minutes (0, 15, 30, 45), and make both fields required.
  2. Tractor hours start/ end: IF FEASIBLE Please make these inline fields
  3. Area Sprayed/ Units: a. REQUIRED Please move this to the Operation tab b. REQUIRED Please make these required fields
  4. Move fields: REQUIRED Please move the following fields to this tab: a. Tank volume remaining/ units b. Equipment triple-rinsed c. Equipment clear washed

Job Status tab:

  1. New Tab: REQUIRED. Please create a new vertical tab and move the following fields to this new tab: a. Operator b. Job Status c. Flag
aislinnpearson commented 2 years ago

Again, here is the word version of the form if that is helpful: FarmOS SPRAYING QUICK FORM.docx

paul121 commented 2 years ago

Done!