ARS-toscana / ConcePTIONAlgorithmPregnancies

Repository of the script of the ConcePTION Algorithm for Pregnancies
GNU Affero General Public License v3.0
5 stars 3 forks source link

duplicated pregnancy from primary care? #54

Closed jingzhuio closed 1 year ago

jingzhuio commented 1 year ago

image Hi @GiorgioLimoncella @clobart, We have rerun the up-to-dated pregnancy algorithm and have 3 small issue/questions:

  1. As you can see the total counts of pregnancy went up from 2017-2020. Around 55,000 per year should be the correct number. After checking the INSTANCE table, we suspect that the extra pregnancies during that period are from primary care and secondary care specialist which are from KUHR;
  2. Could you tell us how to understand the "order_quality"? For example for Live Birth (screenshot below), there are pink and blue pop up during the same period where potential duplicated pregnancies are counted. image We could read ourselves if you have any documents that explain OR we could have quick call, preferably soon because analytical scripts need to use the D3_pregnancy_final and we have deadline on 19th of Jan. from Moderna for finishing the analytical script.
  3. What doest the x-axis mean in the Ongoing and why it's a perfect square? image @LAMaglan
GiorgioLimoncella commented 1 year ago

Hi @jingzhuio,

this is the correct definition of the quality:

(I saw that in the htlm file there is an error in the description, I will correct it)

It does seem that the pregnancies are duplicated, I would suggest to arrange a call and see the issue together.

In the meantime could you confirm that the pregnancies from the survey_id are not all imputed to the same date? (e.g. 1st July)

and could you also check that the person_ids are linkable between survey_id and PC records (and between KUHR and MBRN)?

regarding the ongoing graph: you are right the graph is misleading, in this case it means that all the ongoing pregnancies are in 2021 (more than 60,000)

Many thanks!

jingzhuio commented 1 year ago

Many thanks @GiorgioLimoncella !!! Would Wednesday morning any time between 10-12 work for you? Our colleague for ConcePTION Vera would like to join as well. Feel free to send me an invitation to jing.zhao@farmasi.uio.no for the following slots: Wednesday 10-12 (preferably), 14-15.30; Thursday 9-11 (preferably). Speak to you soon!

clobart commented 1 year ago

bug in 04_algorithm for ICPC fix

jingzhuio commented 1 year ago

Hi @GiorgioLimoncella we (vac4eu) ran the latest version over the weekend and noticed that the results reflect the issue we had before with KUHR. Apart from that, other years seems to have more pregnancies than expected: image

Was there any changes in the merging steps? Practically, would you suggest us to use previous version for the upcoming result and filter KUHR out?