Open PietrH opened 7 months ago
If it is not an action, it's an observation. It could be an absence, but it's still an observation.
waarneming is only ever entered once per case, but is repeated per record in a case. So the first record is always an observation, but could also be an intervention.
The first record doesn't need to be the one where waarneming is filled in, but the first one where it is filled in, is the one that should count as casual observation
If there are records without waarneming, before one is entered, they are administrative steps before the first field visit from RATO.
For an observation, we need to look at the status
field, it should be openstaand_veldwerker
or opvolging
If status has any other status, it is an administrative record, that should not be published.
It's more complicated:
Status in {openstaand_veldwerker, opvolger}{
}else{skip the record}
It's okay if Planning_uitvoerders is empty, if it remains empty, that's because if it's empty, it's assigned to everyone
We are not receiving this status field I suspect, so we can't use it in this decision tree
Strings to look for in the "Actie" field:
aantal ?
for Vespa valutina:
Planten
For effort
The record always reflects the current situation, but if you want to know what has changed, you need to look at the previous record(s). So it doesn't show the history, it does show the current situation.
So if you want to know what traps were out when the animal was caught, you need to look at what material was out in the previous record.
If there is a catch in the first record, assume no material was used. (Or material was unknown)