dep:
  - v_ages_1
  - v_codes_postaux_2
  - v_destinations_sortie_1
  - v_durees_sejour_1
  - v_modes_entree_1
  - v_modes_sortie_1
  - v_provenances_entree_1
  - v_sejours_1
  - v_sejours_ghm_1
  - v_sejours_ghs_1
  - v_sejours_lieu_1
  - v_sejours_medecin_1
  - v_sejours_type_sejour_1
src: |
  SELECT v_sejours_1.sejour_id
     FROM activite.v_sejours_1
       JOIN activite.v_durees_sejour_1 ON v_sejours_1.duree = v_durees_sejour_1.duree_sejour_id
       JOIN activite.v_ages_1 ON v_sejours_1.age = v_ages_1.age_id::numeric
       JOIN activite.v_codes_postaux_2 ON v_sejours_1.code_postal_id = v_codes_postaux_2.code_postal_id
       JOIN activite.v_modes_entree_1 ON v_modes_entree_1.mode_entree_code = v_sejours_1.mode_entree
       JOIN activite.v_modes_sortie_1 ON v_modes_sortie_1.mode_sortie_code = v_sejours_1.mode_sortie
       JOIN activite.v_provenances_entree_1 ON v_provenances_entree_1.provenance_code = v_sejours_1.provenance
       JOIN activite.v_destinations_sortie_1 ON v_destinations_sortie_1.destination_code = v_sejours_1.destination
       JOIN activite.v_sejours_ghm_1 ON v_sejours_ghm_1.oid = v_sejours_1.ghm_id
       JOIN activite.v_sejours_ghs_1 ON v_sejours_ghs_1.oid = v_sejours_1.ghs_id
       JOIN activite.v_sejours_medecin_1 ON v_sejours_medecin_1.oid = v_sejours_1.medecin_adm_sejour_id
       JOIN activite.v_sejours_type_sejour_1 ON v_sejours_type_sejour_1.type_sejour_code = v_sejours_1.type_sejour
       JOIN activite.v_sejours_lieu_1 ON v_sejours_lieu_1.oid = v_sejours_1.lieu_sortie_id;