Bonjour, je cherche à repérer les séjours de naissances vivantes.
J’utilise la définition de Scan santé à savoir: Séjours de la CMD 15 ET DP ≠ code de la catégorie P95 Mort fœtale de cause non précisée ET âge en jours = 0 ET [mode d’entrée = 8 domicile OU mode d’entrée = N naissance] ET [ AG ≥ 22 SA OU PN ≥ 500 g ] (Cf Notice page 9).
En appliquant cette définition aux séjours de 2013 je trouve 779 810 séjours alors que scan santé retrouve 815 478 séjours en 2013 (Indicateurs de santé périnatale | Stats ATIH)
Comment expliquer ce gap?
Voici mon code:
proc sql;
drop table nai_2013;
create table nai_2013
as select DISTINCT c.eta_num, c.rsa_num, c.nir_ano_17, b.cod_sex, c.nir_ano_mam,
c.exe_soi_dtd as date_nai, c.exe_soi_dtd, c.exe_soi_dtf, b.age_ges
from oravue.t_mco13c c
inner join oravue.t_mco13b b
on c.eta_num=b.eta_num
and c.rsa_num=b.rsa_num
where b.grg_ghm like « 15% »
and b.dgn_pal not like ‹ P95% ›
and b.age_jou=0
and b.ent_mod in (‹ 8 ›,‹ N ›)
and (b.poi_nai>=500 or b.age_ges>=22)
and c.ETA_NUM not in (‹ 130780521 ›, ‹ 130783236 ›, ‹ 130783293 ›, ‹ 130784234 ›,
‹ 130804297 ›,‹ 600100101 ›, ‹ 750041543 ›, ‹ 750100018 ›, ‹ 750100042 ›, ‹ 750100075 ›,
‹ 750100083 ›, ‹ 750100091 ›, ‹ 750100109 ›, ‹ 750100125 ›, ‹ 750100166 ›, ‹ 750100208 ›,
‹ 750100216 ›, ‹ 750100232 ›, ‹ 750100273 ›, ‹ 750100299 › , ‹ 750801441 ›, ‹ 750803447 ›,
‹ 750803454 ›, ‹ 910100015 ›, ‹ 910100023 ›, ‹ 920100013 ›, ‹ 920100021 ›, ‹ 920100039 ›,
‹ 920100047 ›, ‹ 920100054 ›, ‹ 920100062 ›, ‹ 930100011 ›, ‹ 930100037 ›, ‹ 930100045 ›,
‹ 940100027 ›, ‹ 940100035 ›, ‹ 940100043 ›, ‹ 940100050 ›, ‹ 940100068 ›, ‹ 950100016 ›,
‹ 690783154 ›, ‹ 690784137 ›, ‹ 690784152 ›, ‹ 690784178 ›, ‹ 690787478 ›, ‹ 830100558 ›)
And b.GRG_GHM NOT LIKE ‹ 90% ›
And (SEJ_TYP not = ‹ B › or SEJ_TYP is null)
And (NIR_RET =‹ 0 › and NAI_RET = ‹ 0 › and SEX_RET = ‹ 0 › and SEJ_RET = ‹ 0 › and FHO_RET = ‹ 0 › and PMS_RET
= ‹ 0 › and DAT_RET = ‹ 0 ›);
quit;
Merci d’avance pour votre aide.