Valoriser les RSA comme e-PMSI
Paramètres et lecture des données
p = pm.noyau_pmsi(finess = 290000017,
annee = 2022,
mois = 12,
path = '/Users/guillaumepressiat/Documents/data/mco')
rsa = p.irsa(typi = 4)
vrsa = pm.vvs_rsa(rsa)
vano = pm.vvs_ano_mco(p.iano_mco())
Tarifs ghs et suppléments
On utilise le package refpymsi.
Calculs de valorisations
python_valo_sej = pm.vvs_mco(pm.vvs_ghs_supp(vrsa,
tarifs,
supplements,
bee = False,
diap = p.idiap_mco(),
pie = p.ipie_mco(),
porg = p.ipo()),
pm.vvs_mco_sv(vrsa,
vano,
porg = p.ipo())
)