# Common Lab Test Quantities profile

**URL:** <https://farmos.discourse.group/t/common-lab-test-quantities-profile/1779>\
**Category:** Using farmOS\
**Created:** [November 1, 2023, 7:52pm UTC](https://farmos.discourse.group/t/common-lab-test-quantities-profile/1779 "2023-11-01T19:52:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanocastro](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nanocastro](https://farmos.discourse.group/u/nanocastro)\
**Post date:** [November 1, 2023, 7:52pm UTC](https://farmos.discourse.group/t/common-lab-test-quantities-profile/1779/1 "2023-11-01T19:52:13Z")

</div>

Hi all  
We are working with @gbathree trying to connect several farms from Mendoza Argentina to FarmOS. I’m kind of new to FarmOS and I was triying to upload the results of a common soil lab test as logs to different farms. If I create all lab test Quantities for one farm is there a way to use those same Quantities for a different farms? I’m triying to avoid repeating it in all farms…  
Great to be here 🙂  
Thanks

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [November 1, 2023, 8:06pm UTC](https://farmos.discourse.group/t/common-lab-test-quantities-profile/1779/2 "2023-11-01T20:06:56Z")

</div>

Hi @nanocastro - welcome to the community! 🙂

Do you have separate farmOS instances (URLs) for each farmOS?

I’m not sure I understand your question exactly… are you looking for a way to create a standard “template” so that you always end up with the same types of data? Or are you asking about sharing data itself (eg: lab test values)?

Maybe if you describe your case in a little more detail I can offer a better suggestion. 🙂

---

<div class="post-metadata">

**Author:** ![nanocastro](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nanocastro](https://farmos.discourse.group/u/nanocastro)\
**Post date:** [November 1, 2023, 8:25pm UTC](https://farmos.discourse.group/t/common-lab-test-quantities-profile/1779/3 "2023-11-01T20:25:00Z")

</div>

Hi Mike  
Thanks for the really fast answer.  
We have each farm in separate farmOS instance

> [@mstenta](#):
>
> are you looking for a way to create a standard “template” so that you always end up with the same types of data?

Yes I’m looking for a way use the same “template” to add only the results of the tests for each farm

I hope that helps to make my case more understandable

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [November 2, 2023, 12:27pm UTC](https://farmos.discourse.group/t/common-lab-test-quantities-profile/1779/4 "2023-11-02T12:27:08Z")

</div>

Gotcha! Yea so there are a few different ways you might go about this.

One, which @gbathree might be able to help you with, is to create a [SurveyStack](https://app.surveystack.io/) survey that asks for a standard set of inputs, with a script that packages that up into a standardized “Lab test” log that it sends to each farmOS instance. That will ensure that all the logs end up with the same set of quantities. That would be possible to build without any changes to farmOS itself, but would require that you have all your farmOS instances connected to the SurveyStack Aggregator. Talk to @gbathree about that… 🙂

Another option is to write a new farmOS module.

> **[farmOS module development](https://farmos.org/development/module/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

This module could provide a new “Quick Form”, which works very similar to a SurveyStack survey, but lives in farmOS itself.

[https://farmos.org/development/module/quick/](https://farmos.org/development/module/quick/)

Or, the module could provide a custom CSV importer, which expects a CSV with specific headers for the quantities that you want to gather.

> **[CSV importers](https://farmos.org/development/module/csv/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

There are certainly other ways! You could write a Python script using farmOS.py:

> **[Introduction](https://farmos.org/development/farmos-py/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

> [@Example farmOS.py CSV import script](https://farmos.discourse.group/t/example-farmos-py-csv-import-script/869):
>
> On the last monthly call there was some interest in importing data from CSV/spreadsheets into farmOS - ping @walt @Kamitor @varunity ? I hope this example can help serve as a starting point for other custom CSV importers using Python + farmOS.py. Code + installation and usage instructions are here: [farmOS.py 2.x Import example · GitHub](https://gist.github.com/paul121/7ec9685b6ca216b3b0173d8a16f1de04) This example reads a name, crop, variety and date from a CSV and creates a Plant asset with a seeding log on the specified date. The Plant asset’s plant\_type is…

Or a Javascript app using farmOS.js:

> **[Introduction](https://farmos.org/development/farmos-js/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

I’ll leave it at that… maybe others will have more suggestions. 🙂

---

<div class="post-metadata">

**Author:** ![nanocastro](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nanocastro](https://farmos.discourse.group/u/nanocastro)\
**Post date:** [November 4, 2023, 1:10pm UTC](https://farmos.discourse.group/t/common-lab-test-quantities-profile/1779/5 "2023-11-04T13:10:14Z")

</div>

Hi Mike  
Thanks for your detailed answer… I will take a look to the options but I think we will do it through SurveyStack this time
