Académique Documents
Professionnel Documents
Culture Documents
SQL Projet
SQL Projet
DG
8 COMMER CIAL MEDECIN 1 9 INFIRMIER 2 3 10
PATIENT
SALLE
11
FOURNISSEUR
SERVICE
4
EQUIPEMENT
12 5
EQUIPEMENT
6
FOURNISSEUR PHARMACIE
REGLEMENT
Lgende
10
11
12
Dictionnaire de Donnes(DD)
Codification Codesal Nomsal Libsal Dsignation Code de la sale Nom de la salle Libelle de la salle type AN AN AN Taille 12 15 25 Nature SIG/E SIT/E SIG/E Observation Identifiant
Codepat Nompat Prenpat Agepat Fctpat Poidpat Sexpat Dtnais Address Telpat Temppat
Code du patient Nom du patient Prnoms du patient Age du patient Fonction du patient Poids du patient Sexe du patient Date de naissance Adresse du patient Tlphone du patient Temprature du patient
AN AN A N A N A DATE AN N
12 20 30 02 25 02 01 10 20 11
SIG/E SIT/E SIT/E SIG/E SIG/E SIG/E SIG/E SIG/CO SIT/E SIT/E
Identifiant
JJ/MM/AAAA
Code de linfirmier Nom de linfirmier Prnoms de linfirmier Sexe de linfirmier Adresse de linfirmier Tlphone de linfirmie Salaire de linfirmier
AN AN A N A N N
12 15 25 01 20 10 10
Identifiant
Code du Medecin Nom du Medecin Prenom du Medecin Sexe du Medecin Adresse du Medecin Telephone du Medecin Salaire du Medecin
AN AN AN A AN AN AN
12 20 25 10 35 10 10
Identifiant
Code du Service Code du Service Code Fourn.dquip Nom Fourn.dquip Prenom Fourn.dquip Rais.soc Fourn.dquip Phone Fourn.dquip Situation gographique
AN AN AN AN AN N AN AN
10 20 12 20 25 10 35 10
Identifiant
Numreglmt Montreglmt
Numero du Rglement Montant du Rglement Codefourphmcie Code Fourn.Pharmacie Nomfourphmcie Nom Fourn.Pharmacie Raissoclfourphmcie Rais.soc Four.Phrmacie Contfourphmcie PhoneFourn.Pharmacie Situgeofourphmcie Situation geographique
DATE AN AN AN AN N AN
10 20 10 10 25 10 35
Codequip libequip
AN AN
10 20
SIG/E SIG/E
identifiant
Matrix
Nom propre Codesal Code pat
CodeInfi rmier
CodeMed
Codefoure quip
Numregl mt
Codefourph mcie
Codequip
1 1 1
Codesal Nomsal Libsal Codepat Nompat Prenpat Agepat Fctpat Poidpat Sexpat Datnaiss Adrespat Telpat Temppat Motif CodeInfirm NomInfirm PrenInfirm SexInfirm AdresInfirm TelInfirm SalInfirm CodeMed NomMed PrenMed SexMed AdresMed ContMed SalMed
1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0
0 Codefourequip Nomfourequip Raissocfourequip Contfourquip Sitgeofourequip 0 Numreglmt Montreglmt Codefourphmcie Nomfourphmcie Raissocfourphmci e Contfourphmcie Sitgeofourphmcie Codequip libequip 0 0 0
0 1 1 1 1 1 1 1 0 0 0
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1
0 0
0 0 1 1 1 1 1 1 0
0 1 1
LA S A T
(1,n ) (1,n ) (0,1) (1,n)
codesal
libsal telpat
(1,1)
codepat
dtnaispat
codeinfirm
nominfirm preninfir
nomsal
(1,n ) (1,n )
(1,n ) (1,n)
codefourequip
raissocfourequip
numreglmt
montreglmt
(1,n)
codefourphmcie
sitgeofourphmcie
nomfourequip
contfourequip sitgeofourequip
(1,n ) (1,n )
(1,1 )
codemed
codeequip
lidequip
codeserv
libserv
(1,1)
PATIENT Codepat Nompat Prenpat Agepat Sexpat Fctpat Contpat Adrespat Poidpat Temppat motif (1,n) Consulter Consulter
(1,1)
(1,n)
Fournir
(1,n)
Recevoir montrecu
(1,n)
Salle ( Codesal, nomsal, libsal, #codeserv ) Patient( codepat, nompat, prenpat, agepat, sexpat,fctpat, contpat, adrespat, poidpat, temppat, #codesal, #codemed, #codeinfirm, #numreglmt ) Medecin ( codemed, nommed, prenmed, sexmed,adresmed, contmed , salmed ) Infirmier ( codeinfirm, nominfirm, preninfrm, sexinfirm, adresinfirm, continfirm, salinfirm ) Service (codeserv, libserv,#codeequip ) Equipment (numequip, libequip, #codefourequip) Fournisseur Equipment (codefourequip, nomfourequip, raissocfourequip , contfourequip , adresfourequip ) Fournisseur Pharmacie (codefourphmcie, nomfourphmcie, raissocfourphmcie, contfourphmcie, adresfourphmcie) Traitement (#codeinfirm,#codepat, typtrait) Rception ( #codefourequip,#codefourphmcie,#reglmt, montrecu)
CREATE DATABASE GESTION_CLINIQUE On primary ( name= clinique, Filename=c:\projet\gestion.mdf, Size= 20Mb, Maxsize= 40Mb, Filegrowth= 5Mb ) Log on ( name= clinique, Filename=D:\projet\gestion.ldf, Size= 1Mb, Maxsize= 20Mb, Filegrowth= 2Mb ); Script de cration de base de donns
CREATE TABLE Patient ( codepat varchar(10) not null unique, Nompat varchar(20) not null , Prenpat varchar(30), Sexpat varchar(10),