Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the first intervention into a casual observation and the intervention itself #77

Closed
PietrH opened this issue Sep 26, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request mapping wip

Comments

@PietrH
Copy link
Member

PietrH commented Sep 26, 2023

Request by @LienReyserhove and Karel:


The first intervention for an event can be identified:

For a Dossier_ID, sort on Laatst_Bewerkt_Datum, the first date where Dossier_status == Opvoling -> This is the first intervention. This is when the species was observed for the very first time for that event.

We want to split this record into 2 records:

  1. If there is an action: this is an intervention and should be mapped to samplingProtocol as it is currently
  2. Also, always, the records should be mapped to samplingProtocol == casual observation

So you can have only the casual observation, but you can't have the intervention without the casual observation.

Any further interventions, don't get a casual observation.


This is rather urgent.

@PietrH PietrH added enhancement New feature or request mapping labels Sep 26, 2023
@PietrH PietrH self-assigned this Sep 26, 2023
@PietrH PietrH added the urgent label Sep 26, 2023
@PietrH
Copy link
Member Author

PietrH commented Sep 26, 2023

Discussed with @damianooldoni

It's probably better on the early alert side to only send emails for:

datasetkey + occurrenceID + eventID is new

However, eventID is not always present for other datasets.

So if eventID is present, only send emails for new combinations of datasetkey and eventID.

He will discuss with Nico

@PietrH
Copy link
Member Author

PietrH commented Oct 24, 2023

We will need a new occurrenceID for the newly created occurrence record, this can be the original id + a suffix: -obs -cas or a GUID

It's not an ideal solution, but we can still try

@PietrH
Copy link
Member Author

PietrH commented Oct 26, 2023

This will take a bit more work than I expected, as it's going to require restructuring the current mapping a little bit.

@PietrH
Copy link
Member Author

PietrH commented Oct 26, 2023

When creating new occurrences from interventions, the casual observation occurrence if you will, what fields should these new records "inherit" from their parent record?

In other words, what columns should be retained when I create a new record based on the first intervention in an event?


@LienReyserhove Are there any columns that only make sense for an intervention occurrence record? That should be empty for an observation occurrence record?

@PietrH
Copy link
Member Author

PietrH commented Oct 27, 2023

Discussed with @damianooldoni

It's probably better on the early alert side to only send emails for:

datasetkey + occurrenceID + eventID is new

However, eventID is not always present for other datasets.

So if eventID is present, only send emails for new combinations of datasetkey and eventID.

He will discuss with Nico

Discussed with @LienReyserhove :

  • Observations should go Early Alert (first interventions, and observations)
  • Interventions should go to MICA dashboard.

These can be told apart based on samplingProtocol == "casual observation"

@damianooldoni : to be discussed with Nico

@PietrH
Copy link
Member Author

PietrH commented Nov 29, 2023

Currently no longer in the pipeline, waiting for new input from Lien/RATO to go ahead

@PietrH PietrH added wip and removed urgent labels Nov 29, 2023
@PietrH PietrH closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mapping wip
Projects
None yet
1 participant