Skip to content
intermediatetext

PetEVAL Veterinary Health Record Annotation

Mark identifiers and diseases in veterinary consult notes and choose ICD-11 chapters with span and multiselect schemes. Notes are illustrative.

Try it live — no install

Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.

Run live in your browser

Get This Design

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/domain-specific/peteval-veterinary-ehr
potato start config.yaml

About this dataset

PetEVAL is a benchmark of free-text veterinary electronic health records from the SAVSNET network of UK first-opinion practices, built by Sean Farrell, Alan Radford, Noura Al Moubayed and Peter-John Noble and presented at the BioNLP 2025 workshop. Two expert veterinary clinicians double-annotated 1,000 test records for syndromic classification, with a Cohen's kappa of 0.722.

The benchmark has three tasks over the same note. Anonymization marks names, places, organizations, dates and unique identifiers, disease extraction marks each named condition that is not negated, and syndromic classification assigns ICD-11 chapters. This design runs the three in one pass with two span schemes and one multiselect. The paper describes the identifier tags in two ways, with PER and MISC as unique identifiers in the main text but NAME and a broader MISC in the prompt appendix, and the design follows the identifier definition.

The dataset on Hugging Face is gated and tagged HIPAA, so no record is copied. The ten notes are illustrative, with invented names, places and numbers. The multiselect lists the 19 chapters of the paper's Table 2 plus None.

Records
17,600 from SAVSNET practices
Tasks
3 (anonymization, syndromic classification, disease extraction)
Agreement
Cohen's kappa 0.722 on 1,000 test records
Sample items in this design
10 illustrative notes

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
#
# PetEVAL: veterinary electronic health records
#
# Paper: Farrell, Radford, Al Moubayed and Noble (2025), "PetEVAL: A veterinary free text electronic
#   health records benchmark", Proceedings of the 24th Workshop on Biomedical Language Processing
#   (BioNLP 2025), pp. 341-353. DOI 10.18653/v1/2025.bionlp-1.29
#   https://aclanthology.org/2025.bionlp-1.29/
# Dataset: https://huggingface.co/datasets/SAVSNET/PetEVAL (gated: users agree to share contact details;
#   17,600 records from the SAVSNET network of UK first-opinion practices). Because the data is gated,
#   the ten notes in sample-data.json are illustrative notes written for this design, with invented
#   names, places and numbers. They are not PetEVAL records.
#
# Protocol (paper Sections 3.2 and 4.1), three tasks over the same free-text record:
#  Task 1, anonymization: "The dataset is labelled with NER entities and spans applied to pseudo-anonymised
#   contextual placeholders", with identifiers mapped to "'LOC' (cities, towns, countries), 'PER'
#   (pet/owner/vet names), 'TIME' (specific dates/times), 'ORG' (veterinary practices, rescue shelters,
#   labs, groomers), and 'MISC' (unique identifiers like microchips, insurance codes, contact information)".
#   The prompt appendix names the person tag NAME. Here the five tags are NAME, LOC, ORG, TIME and MISC.
#  Task 2, syndromic classification: multi-label ICD-11 chapter labels. "Assign at least one ICD-11 chapter
#   name that best represents the condition(s) described. If no condition is present then return 'None'."
#  Task 3, disease extraction: "any named condition mentioned in a record was annotated as a diagnosis
#   unless explicitly negated", including confirmed and differential diagnoses, syndromic descriptions
#   and pathogens, linked to its span. Symptoms, treatments and general findings are not extracted.
#   Two expert veterinary clinicians double-annotated 1,000 test records for Task 2 (Cohen's kappa 0.722).
#
# Adaptations:
#  - The three tasks run in one pass on one note. The authors ran them as separate benchmark tasks and
#    pre-labeled Task 2 with PetBERT-ICD. There is no pre-annotation here.
#  - Table 2 of the paper lists 19 ICD-11 chapters although the text says 20 chapter codes were selected.
#    The multiselect carries the 19 listed.
#  - The paper's own tag descriptions disagree. Section 3.2.1 and 4.1.1 describe MISC as unique identifiers and
#    the person tag as PER; the Task 1 prompt in Appendix 10.1 calls the tag NAME and lists animal names,
#    medications and procedures under MISC. The identifier definition is used here.
#  - Annotators: the manual review was done by the dataset team, and two expert veterinary clinicians
#    double-annotated 1,000 test records (Section 5.2). The Hugging Face card gives Apache-2.0 but the data
#    is gated and flagged HIPAA, so no record is copied.
#  - Models and baselines in the paper (BERT, PetBERT, LLaMA 3.1 8B) are not part of the design.
annotation_task_name: "PetEVAL veterinary EHR"
task_dir: .
output_annotation_dir: annotation_output/
export_annotation_format: jsonl
data_files:
  - sample-data.json
item_properties:
  id_key: id
  text_key: text
user_config:
  allow_all_users: true
  users: []
max_annotations_per_item: 2
annotation_instructions: |
  Read the consultation note and do three things.
  First, mark every piece of identifying information with its tag so the note can be anonymized: names of pets, owners and vets (NAME), places (LOC), practices, hospitals, shelters and labs (ORG), specific dates and times (TIME), and unique identifiers such as microchip numbers, insurance codes and phone numbers (MISC).
  Second, mark every named disease or condition that is mentioned and not explicitly negated. Include differential diagnoses and pathogens. Leave symptoms, treatments and general findings unmarked.
  Third, choose every ICD-11 chapter that fits the conditions in the note. Choose None if the note has no condition.
annotation_schemes:
  - annotation_type: span
    name: identifiers
    description: "Task 1, anonymization: mark each identifier with its tag."
    labels:
      - name: NAME
        tooltip: "Pet names, owner names, clinician names"
      - name: LOC
        tooltip: "Cities, towns, countries, addresses"
      - name: ORG
        tooltip: "Veterinary practices, referral hospitals, rescue shelters, laboratories, groomers"
      - name: TIME
        tooltip: "Specific dates and times"
      - name: MISC
        tooltip: "Microchip numbers, insurance policy numbers, MRCVS codes, passport numbers, phone numbers, email addresses"
  - annotation_type: span
    name: diseases
    description: "Task 3, disease extraction: mark each named disease or condition that is not negated."
    labels:
      - name: disease
        tooltip: "A named condition, confirmed or differential, or a pathogen. Not a symptom, treatment or general finding."
  - annotation_type: multiselect
    name: syndromes
    description: "Task 2, syndromic classification: choose every ICD-11 chapter that fits the conditions described."
    labels:
      - None
      - Certain infectious or parasitic diseases
      - Neoplasms
      - Diseases of the blood or blood-forming organs
      - Diseases of the immune system
      - Endocrine, nutritional or metabolic diseases
      - Mental, behavioral or neurodevelopmental disorders
      - Diseases of the nervous system
      - Diseases of the visual system
      - Diseases of the ear or mastoid process
      - Diseases of the circulatory system
      - Diseases of the respiratory system
      - Diseases of the digestive system
      - Diseases of the skin
      - Diseases of the musculoskeletal system or connective tissue
      - Diseases of the genitourinary system
      - Pregnancy, childbirth or the puerperium
      - Certain conditions originating in the perinatal period
      - Developmental anomalies
      - Injury, poisoning or certain other consequences of external causes

Sample Data

json
[
  {
    "id": "peteval_001",
    "text": "Biscuit / 6y MN labrador. Owner Mrs Pratt called, vomiting x3 since yesterday eve, off food, drinking ok. Seen by Dr Hollis at Oakfield Vets 14/03. Abdo palp tender cranially, no FB felt. Gastroenteritis likely. Started metoclopramide + bland diet, rv in 48h if not improving."
  },
  {
    "id": "peteval_002",
    "text": "Mango FN DSH 11y. Chronic renal failure on renal diet. Owner reports PU/PD worse over last 2 weeks and weight loss. Bloods sent to Idexx, urea and creat both up. Discussed prognosis with Mr Daly. Fluids SC given, recheck Thurs."
  }
]

// ... and 8 more items

Dataset & paper

Farrell et al., BioNLP 2025

Paper DOI
10.18653/v1/2025.bionlp-1.29

Citation (BibTeX)

bibtex
@inproceedings{farrell-etal-2025-peteval,
    title = "{P}et{EVAL}: A veterinary free text electronic health records benchmark",
    author = "Farrell, Sean  and
      Radford, Alan  and
      Al Moubayed, Noura  and
      Noble, Peter-John",
    editor = "Demner-Fushman, Dina  and
      Ananiadou, Sophia  and
      Miwa, Makoto  and
      Tsujii, Junichi",
    booktitle = "Proceedings of the 24th Workshop on Biomedical Language Processing",
    month = aug,
    year = "2025",
    address = "Viena, Austria",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.bionlp-1.29/",
    doi = "10.18653/v1/2025.bionlp-1.29",
    pages = "341--353",
    ISBN = "979-8-89176-275-6"
}

Details

Annotation Types

spanmultiselect

Domain

Veterinary MedicineClinical NLP

Use Cases

De-identificationDisease ExtractionSyndromic Surveillance

Tags

petevalveterinaryelectronic health recordsICD-11savsnetbionlp 2025

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)