-
Notifications
You must be signed in to change notification settings - Fork 859
Open
Description
<title>Dossier Médical Patient</title>
<script>
const form = document.getElementById("formPatient");
const resultat = document.getElementById("resultat");
form.addEventListener("submit", function(event){
event.preventDefault();
const nom = document.getElementById("nom").value;
const prenom = document.getElementById("prenom").value;
const naissance = document.getElementById("naissance").value;
const dossier = document.getElementById("dossier").value;
const symptomes = document.getElementById("symptomes").value;
const historique = document.getElementById("historique").value;
resultat.style.display = "block";
resultat.innerHTML = `
<style>
body {
font-family: Arial, sans-serif;
background: #f4f7fb;
margin: 0;
padding: 0;
}
header {
background: #2a7ae4;
color: white;
padding: 20px;
text-align: center;
}
header h2 {
margin: 5px 0 0;
font-weight: 300;
font-size: 18px;
opacity: 0.9;
}
.container {
max-width: 700px;
margin: 30px auto;
background: white;
padding: 25px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
label {
font-weight: bold;
margin-top: 10px;
display: block;
}
input, textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
border-radius: 5px;
border: 1px solid #d0d0d0;
}
textarea {
height: 120px;
resize: vertical;
}
button {
background: #2a7ae4;
color: white;
padding: 12px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
margin-top: 20px;
cursor: pointer;
}
button:hover {
background: #1d5bb8;
}
#resultat {
background: #e9f4ff;
padding: 15px;
margin-top: 20px;
border-radius: 8px;
display: none;
}
</style>
Dossier Médical Numérique
Médecin responsable : Dr Imane Zahi
Informations du patient
<form id="formPatient">
<label>Nom :</label>
<input type="text" id="nom" required>
<label>Prénom :</label>
<input type="text" id="prenom" required>
<label>Date de naissance :</label>
<input type="date" id="naissance" required>
<label>Numéro de dossier :</label>
<input type="text" id="dossier" required>
<label>Symptômes :</label>
<textarea id="symptomes" placeholder="Décrivez vos symptômes..."></textarea>
<label>Historique médical :</label>
<textarea id="historique" placeholder="Antécédents médicaux..."></textarea>
<button type="submit">Envoyer</button>
</form>
<div id="resultat"></div>
Données reçues :
Nom : ${nom}
Prénom : ${prenom}
Date de naissance : ${naissance}
Numéro de dossier : ${dossier}
Symptômes : ${symptomes}
Historique médical : ${historique}
Metadata
Metadata
Assignees
Labels
No labels