Pregnancy scan (Fósturtalning)¶
Works for both regions
Pregnancy scan registration is fully functional for both Iceland and Denmark — no Fjárvís-related
restriction was found in the screen itself or in FosturvisirService.
1 · Open pregnancy scan records¶
On the Dashboard, under "Pregnancy scan", a list of registered scans opens. Each entry shows the ewe, the year, the number of fetuses, the number of dead fetuses (only if greater than zero), the scan date, and any comment. If the list is empty you'll see "No pregnancy scan records".
Fjárvís records can't be edited
Records that come from Fjárvís (older, synced entries) have no edit or delete icons — only records created directly in the app can be edited or deleted.
Tap + to start a new registration.
2 · Fill in the form¶
| Field | Required? |
|---|---|
| Scan date (from last year to today) | Yes (defaults to today) |
| Ewe | Yes — search field limited to ewes |
| Number of fetuses | No — no validation is enforced on this field |
| Number of dead fetuses (optional) | No |
| Comment | No |
Tap "Save pregnancy scan".
Almost no data validation on this screen
The only check the code performs is that an ewe is selected (otherwise you'll see "Select an ewe"). The number of fetuses and number of dead fetuses have no minimum or maximum check — you could, for example, enter a negative number or leave the field blank. The code also doesn't check whether the ewe was previously recorded as mated (see Mating registration), nor does it prevent the same ewe from being scanned more than once.
Scanning to select the ewe¶
If an EID reader is connected (see Connect an EID reader to the app), a scan auto-fills the ewe, provided she isn't already selected.
No error message if the tag isn't found
Like mating registration (but unlike animal search or weight registration), pregnancy scan registration shows no feedback at all if a scanned tag doesn't match any animal, or if an ewe is already selected — the scan simply does nothing.
Registering several ewes in a row¶
After a scan is saved, the screen does not navigate away — the form clears and a counter in the top bar increases ("Registered: N"), so you can scan or select the next ewe right away without returning to the list.
What happens to the data afterward¶
If a pregnancy scan exists for a ewe later selected in birth registration, the hint
"Pregnancy scan ({date}): {count} fetuses" appears as a suggested lamb count
(FosturvisirService.getLatestFosturvisirForEwe). This is the only place in the app that reads the data onward —
no expected birth date is calculated from the scan, and no dashboard statistics use it beyond a simple count tile.
Based on lamb41/lib/screens/fosturvisir/add_fosturvisir_screen.dart and
lamb41/lib/screens/fosturvisir/fosturvisir_list_screen.dart. See also
Connect an EID reader to the app, Mating registration, and
Birth registration.