LAMPIRAN
1.
Index.php
<?php include 'koneksi.php'; ?> <html>
<head>
<title>Login Pegawai Rekam Medis</title>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <link rel="stylesheet" href="css/main.css">
<script src="jquery.js"></script>
<!-- Insert to your webpage before the </head> --> <script src="sliderjs/jquery.js"></script>
<script src="sliderjs/amazingslider.js"></script> <link rel="stylesheet" type="text/css"
href="sliderjs/amazingslider-1.css">
<script src="sliderjs/initslider-1.js"></script> <!-- End of head section HTML codes -->
<style type="text/css"> .style1 {font-size: 9px} .style2 {
font-size: 16px; font-weight: bold; }
#wrapper {
width: 1000px; }
.slider {
width: 500px; float: left; }
width: 400px; }
.clear {
clear: both; }
#gambar {
position: relative; }
#log {
position: absolute; top: 50px;
right: 50px; }
#log a {
text-decoration: none; font: 1.3em 'Agency Fb'; color: #ccc;
}
#log a:hover { color: black; }
#form {
display: none; }
--> </style>
</head>
<body style="background: #009cde;" width="1500" height="800">
<h3 id="gambar" align=center><img src="images/logoo.jpg" width="1300" height="129"></h3>
<p> </p>
<div id="log"><a href="login.php" id="login">Login</a></div> </tr>
<div class="wrapper"> <div class="gambar">
<!-- Insert to your webpage where you want to display the slider -->
<div id="amazingslider-wrapper-1" style="display:block;position:relative;max-width:600px;margin:0px auto 56px;">
<div id="amazingslider-1" style="border: 5px solid white; border-radius:
5px;display:block;position:relative;margin:0 auto;"> <ul class="amazingslider-slides" style="display:none;">
<li><img src="sliderimages/slider1.jpg" alt="slider1" title="slider1" />
</li>
<li><img src="sliderimages/slider2.jpeg" alt="slider2" title="slider2" />
</li>
<li><img src="sliderimages/slider3.jpg" alt="slider3" title="slider3" />
</li>
<li><img src="sliderimages/slider4.jpeg" alt="slider4" title="slider4" />
</li>
<li><img src="sliderimages/slider5.jpg" alt="slider5" title="slider5" />
</li>
</li> </ul>
<ul class="amazingslider-thumbnails" style="display:none;"> <li><img src="sliderimages/slider1-tn.jpg" alt="slider1" title="slider1" /></li>
<li><img src="sliderimages/slider2-tn.jpeg" alt="slider2" title="slider2" /></li>
<li><img src="sliderimages/slider3-tn.jpg" alt="slider3" title="slider3" /></li>
<li><img src="sliderimages/slider4-tn.jpeg" alt="slider4" title="slider4" /></li>
<li><img src="sliderimages/slider5-tn.jpg" alt="slider5" title="slider5" /></li>
<li><img src="sliderimages/slider6-tn.jpeg" alt="slider6" title="slider6" /></li>
</ul> </div> </div>
<!-- End of body section HTML codes --> </div>
<div class="informasi"> <div class="info_judul">
Sistem Informasi Rekam Medis </div>
<p>
Sistem Informasi Rekam Medis <br>
Memberikan Fasilitas Teknologi Canggih supaya dapat menunjang kinerja dokter supaya lebih optimal dan mampu memberikan pelayanan yang terbaik, solusi kesehatan bagi setiap pasien, agar pasien mampu hidup lebih sehat. Dan memberikan Tips Kesehatan pada pasien yang menginginkan hidup lebih sehat, Informasi Kesehatan baik berupa
penyuluhan tentang hidup sehat maupun menerangkan bagaimana menjadikan hidup lebih sehat, serta mengoptimalkan
Dokter yang profesional dalam bekerja dan mampu memberikan pelayanan yang bagi para pasien mampu lebih sehat. Fasilitas Teknologi Canggih supaya dapat menunjang kinerja dokter supaya lebih optimal dan mampu memberikan pelayanan yang terbaik.
</p> </div>
<div class="clear"></div> </div>
</body> </html>
2.
Home.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd"> <!--
-->
<?php include 'koneksi.php'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <body style="background: #009cde;" text="#000000"> <title>Rekam Medis Puskesmas Medan
Labuhan</title>
<style type="text/css"> #header {
background: white; padding: 15px; }
a {color: black;
font: 14px Arial, Helvetica, sans-serif; text-decoration: none;
border: 2px solid black; display: block;
padding: 3px 10px; background: #f9ffe6 ;}
a:hover, a:active a:focus { background: #ff6666; font-weight: bold; }
.style2 {font-family: Verdana, Arial, Helvetica sans-serif}
</style> </head>
<body>
<div id="wel"> <?php
if (isset($_SESSION['username'])) { $username = $_SESSION['username']; echo "<h3>Welcome, $username</h3>"; } else {
echo '<script>alert("Anda harus terlebih dahulu!"); window.location.href = "login.php";</script>'; }
?> </div>
<div id="wrapper"> <div id="header"> <div id="logo">
<h1 align="center"><img
src="images/logo.png" alt="" width="800" height="100" /></h1>
</div> </div>
<p> </p> </body>
</html>
<center><a href="visimisi.php"><strong>Visi, Misi & Motto Puskesmas Medan Labuhan</strong></a><br />
<center><a href="strukturorganisasi.php"><strong>Struktur Organisasi Puskesmas Medan Labuhan</strong></a><br /> <center><a href="search.php"><strong>Pencarian Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Kartu.php"><strong>Input Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br /> <center><a href="Input_Data_Dokter.php"><strong>Input Data Dokter Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Obat.php"><strong>Input Data Obat Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Tampil_Data_Pasien.php"><strong>Tampil Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br /> <center><a href="kontak.php"><strong>Kontak Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Logout.php"><strong>Logout</strong></a> </body>
</html> </p>
<div align="center"></div> <div id="three-columns"> <div id="columns1">
<h2 align="center" class="style11"> </h2> <p align="justify" class="style10"> </p> <br>
<b>Copyright © 2016 - aplikasirekammedis - PUSKESMAS MEDAN LABUHAN </b>
</div> </div> </div>
</html>
3.
Koneksi.php
<?php@session_start();
$koneksi = mysql_connect('localhost', 'root', ''); $a = mysql_select_db("rekammedis", $koneksi); if ($a) {
} else {
echo'gagal' . mysql_error(); }
?>
4.
Login.php
<?phpinclude 'koneksi.php';
if (isset($_SESSION['username'])) { header("Location: home.php"); exit();
}
if (isset($_POST['submit'])) { $username = $_POST['username']; $password = $_POST['password'];
$query = mysql_query("SELECT * FROM login WHERE username='$username' AND password='$password'");
if (mysql_num_rows($query)) {
$_SESSION['username'] = $username; header("Location: home.php"); exit();
echo "Error..." . mysql_error(); }
} ?> <html> <head>
<title>Login Pegawai Rekam Medis</title>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <script src="jquery.js"></script>
<style type="text/css"> <!--
.style1 {font-size: 9px} .style2 {
font-size: 16px; font-weight: bold; }
#wrapper {
width: 1000px; }
.slider {
width: 500px; float: left; }
.informasi { width: 400px; }
.clear {
clear: both; }
#gambar {
position: relative; }
#log {
right: 50px; }
#log a {
text-decoration: none; font: 1.3em 'Agency Fb'; color: #ccc;
}
#log a:hover { color: white; }
#form {
margin-top: 150px; margin-bottom: -50px; }
.footer { }
.footer p {
text-align: center; }
--> </style> <script>
$(function () {
$("#login").on("click", function () {
$("#form").slideDown(500).css("display", "block");
}); }); </script> </head>
<body style="background: #009cde;" width="1500" height="800">
<h3 id="gambar" align=center><img src="images/logoo.jpg" width="1300" height="129"></h3>
<p> </p>
<h4 align=center class="style2"><font
face="Verdana">Login Pegawai Rekam Medis Puskesmas Medan Labuhan</font></h4>
</tr>
<form id="form" method="post" action="">
<table width="150" border="0" align=center> <tr bgcolor="#DFEDC5">
<td width="116" bordercolor="#0000FF" bgcolor="skyblue"><font face=Verdana size="2" color="#000000"><strong>Username</strong></font> </td>
<td width="217" bgcolor="#FF9900">
<input type=text name=username size="30" maxlength="30">
</td> </tr>
<tr bgcolor="#DFEDC5">
<td width="116" bordercolor="#0000FF"
bgcolor="skyblue"><strong><font face="Verdana" size="2" color="#000000">Password</font></strong>
</td>
<td width="217" bgcolor="#FF9900">
<input type=password name=password size="30" maxlength="20">
</td> </tr>
<tr bgcolor="#DFEDC5">
<td height="55" colspan="2" bordercoor="#0000FF" bgcolor="skyblue">
<input type="submit" name="submit" value=Login> | <a href="daftar.php"><font size="2" face="Verdana">Daftar</font></a>
</div> </td> </tr> </table>
<table width="709" border="0" align="center"> <tr>
<H4><MARQUEE width="1000" scrollamount="100" behavior="alternate">
</MARQUEE> </H4>
<td width="9000" height="150"> <div align="center"></td>
<H4>
</MARQUEE width="1000" scrollamount="100" behavior="alternate">
</MARQUEE> </H4>
</tr> </table> </form>
<div class="footer">
<p>Copyright © 2016 - aplikasirekammedis - PUSKESMAS MEDAN LABUHAN</p>
5.
Daftar.php
<html><head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <title>Registrasi Login Pegawai Rekam Medis</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body style="background: #009cde;" text="#000000"> <h3 align=center> </h3>
<h3 align=center><img src="images/logo.png" width="800" height="100"></h3>
<p align=center> </p>
<p align=center> </p>
<h3 align=center><strong><font color="#000000" face="Verdana">Silahkan Melakukan Registrasi
Pegawai</font></strong></h3>
<form method="post" action="prosesinput.php"> <table width="459" height="237" border="0" align="center">
<tr bgcolor="#DFEDC5">
<td width="90" bgcolor="#99CC00">Id</td> <td width="359" bgcolor="#0000CC">
<input type=text name="id" size="50" maxlength="50">
</td> </tr>
<tr bgcolor="#DFEDC5">
<input type=text name="username" size="50" maxlength="50"></td>
</tr>
<tr bgcolor="#DFEDC5">
<td width="90" bgcolor="#99CC00"><font face=Verdana size="2" color="#000000">Password</font></td> <td width="359" bgcolor="#0000CC">
<input type=password name="password" size="50" maxlength="50"></td>
</tr>
<tr bgcolor="#DFEDC5">
<td width="90" bgcolor="#99CC00"><font face=Verdana size="2" color="#000000">Nama</font></td> <td width="359" bgcolor="#0000CC"> <input type=text name="nama" size="50" maxlength="50"></td>
</tr>
<tr bgcolor="#DFEDC5">
<td width="90" bgcolor="#99CC00"><font face=Verdana size="2" color="#000000">Email</font></td> <td width="359" bgcolor="#0000CC"> <input type=text name="email" size="50" maxlength="50"></td>
</tr>
<tr bgcolor="#DFEDC5">
<td width="90" height="35" bgcolor="#99CC33"><font face=Verdana size="2" color="#000000">Alamat</font></td>
<td width="359" bgcolor="#0000CC"> <input type=text name="alamat" size="50" maxlength="50"></td>
<tr bgcolor="#DFEDC5">
<td height="52" colspan="2" bgcolor="#99CC00">
<div align=center>
<input type=submit name="submit" value=Proses>
<input type=reset name=reset value="Hapus Form">
</div> </td> </tr> </table> </form>
<td width="300" height="20"><div align="center">
<H4 style="margin-top: 80px"> <MARQUEE width=”1000?
scrollamount=”100? behavior=” alternate”> <br>
Copyright © 2016 - aplikasirekammedis - PUSKESMAS MEDAN LABUHAN
</MARQUEE> </H4>
<H4>
<MARQUEE width="400? scrollamount="100? behavior="alternate">
</MARQUEE> </H4>
</div></td> </body>
</html>
<?php include 'koneksi.php'; ?>
<!DOCTYPE html PUBLIC "-//W3//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd">
<html xmnls="http://www.w3.org/1999/xhtml">
<head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <body style="background: #009cde;" text="#000000"> <meta http-equiv="Content-Type" content="text/html; cahrset=utf-8" />
<title>Input Data Pasien Mr</title>
</head>
<body>
<div style="padding: 15px; background: white;" id="header">
<center><img src="images/logo.png" width="900" height="100"></center>
</div>
<blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote>
<form id="form1"
name="form1" method="post" action="prosesinputdokter.php">
<table width="473" border="1"> <tr>
<td colspan="3" align="center"><p><strong>INPUT DATA DOKTER PENANGANAN PASIEN</strong><br><strong>PUSKESMAS MEDAN
LABUHAN</strong></p></td> </tr>
<tr>
<td><div align="left"><strong>Nama
Dokter</strong></div></td>
<td>:</td>
<td><label>
<select name="Nama_Dokter" id="Nama_Dokter">
<option value=""></option>
<?php
$query =mysql_query("SELECT * FROM data_dokter");
while($row = mysql_fetch_array($query)) {
echo "<option value=" . $row['nama'] .">" . $row['nama'] .
"</option>";
}
?>
</tr>
<tr>
<td><div align="left"><strong>Nomor Medical Record</strong></div></td>
<td>:</td>
<td><label>
<select name="No_mr" id="No_mr">
<?php
$query = mysql_query("SELECT No_mr FROM data_pasien");
while ($row = mysql_fetch_array($query)) {
$No_mr = $row['No_mr'];
echo "<option value='$No_mr'>$No_mr</option>";
}
?>
</select></label></td>
</tr> <tr>
<td><label><input type="text" name="ID_Obat" id="ID_Obat" /></label></td>
</tr> <tr>
<td><div align="left"><strong>Profesi</strong></div></td>
<td>:</td>
<td><label><input type="text" name="Profesi" id="Profesi" /></label></td>
</tr> <tr>
<td><div align="left"><strong>Diagnosa Penyakit</strong></div></td>
<td>:</td>
<td><label><input type="text" name="diagnosa" id="diagnosa" /></label></td>
</tr>
<td><a href="home.php">Kembali</a></td> <td> </td>
<td><label> <center>
<input type="submit" name="button" id="button"
value="Simpan" /></label></td>
</tr> </table> </div>
</blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote>
<script src="sliderjs/jquery.js"></script> <script>
$(function() {
$("#No_mr").change(function() { datadokter = $(this).val(); datamr = $("#No_mr").val();
$.ajax({
method: "POST",
url: "datalengkap.php",
data: {datadokter: datadokter, datamr: datamr},
success: function(data) { aa = JSON.parse(data); id = aa[0];
diagnosa = aa[3];
$("#ID_Obat").val(id);
$("#diagnosa").val(diagnosa); }
}); }); });
</script> </body>
7.
Input_Data_Kartu.php
<!DOCTYPE html PUBLIC "-//W3//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd"> <html xmnls="http://www.w3.org/1999/xhtml">
<head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <body style="background: #009cde;" text="#000000"> <meta http-equiv="Content-Type" content="text/html; cahrset=utf-8" />
<title>Input Data Pasien Mr</title> <style>
#header {
padding: 15px; background: white; }
</style> </head>
<body>
<div style="padding: 15px; background: white;" id="header"> <center><img src="images/logo.png" width="900"
height="100"></center> </div>
<form id="form1" name="form1" method="post" action="prosesinputpasien.php">
<p align="center"></p> <p> </p>
<div align="center">
<table width="473" border="1"> <tr>
<td colspan="3"
align="center"><p><strong>INPUT DATA PASIEN REKAM MEDIS</strong><br><strong>PUSKESMAS MEDAN
LABUHAN</strong></p></td> </tr>
<tr> <td width="159"><div
align="left"><strong>Tanggal</strong></div></td> <td width="20">:</td>
<td width="272"><label><input type="date" name="tanggal" id="Tanggal" /></label></td>
</tr>
<tr>
<td><div align="left"><strong>No.Urut</strong></div></td>
<td>:</td>
<td><label><input type="text" name="no_urut" id="No_Urut" /></label></td>
</tr>
<tr>
<td>:</td>
<td><label><input type="text" name="no_mr"
id="No_mr"/></label></td> </tr>
<tr>
<td><div align="left"><strong>Ruang</strong></div></td>
<td>:</td>
<td><label><input type="text" name="ruang" id="Ruang" /></label></td>
</tr>
<tr>
<td><div align="left"><strong>Nama</strong></div></td>
<td>:</td>
<td><label><input type="text" name="nama" id="Nama" /></label></td>
</tr>
<tr>
<td><div align="left"><strong>Alamat</strong></div></td>
<td>:</td>
<td><label><input type="text" name="alamat" id="Alamat" /></label></td>
<tr>
<td><div align="left"><strong>Umur</strong></div></td>
<td>:</td>
<td><label><input type="text" name="umur" id="Umur" /></label></td>
</tr>
<tr>
<td><div align="left"><strong>Diagnosa Penyakit</strong></div></td>
<td>:</td>
<td><label><input type="text" name="diagnosa" id="diagnosa" /></label></td>
</tr>
<tr>
<td><a href="home.php">Kembali</a></td>
<td></td>
<td><label>
<center>
<input type="submit" name="button" id="button"
value="Simpan" /></label></td>
</form> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </body>
</html>
8.
Input_Data_Obat.php
<?php include 'koneksi.php'; ?>
<!DOCTYPE html PUBLIC "-//W3//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd"> <html xmnls="http://www.w3.org/1999/xhtml">
<head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/>
<body style="background: #009cde;" width="1500" height="800">\
<meta http-equiv="Content-Type" content="text/html; cahrset=utf-8" />
<title>Input Data Pasien Mr</title> </head>
<body>
<div style="padding: 15px; background: white;" id="header"> <center><img src="images/logo.png" width="900"
height="100"></center> </div>
<blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote>
<form id="form1" name="form1" method="post" action="prosesinputobat.php">
<div align="center">
<strong><table width="504" border="1"></strong
<tr>
<td colspan="3" align="center"><p><strong>INPUT DATA DOKTER PENANGANAN PASIEN</strong><br><strong>PUSKESMAS MEDAN
LABUHAN</strong></p></td> </tr>
<tr>
<td width="207"><div align="left"><strong>ID Obat</strong></div></td>
<td width="19">:</td> <td width="278"><label>
<select name="ID_Obat" id="ID_Obat">
<option value="">Pilih ID Obat</option>
<?php
$query = mysql_query("SELECT * FROM data_obat");
echo "<option value='" . $row['id'].
"'>".$row['id']."</option>";
}
?> </select>
</label></td>
</tr>
<tr>
<td width="207"><div align="left"><strong>Nama Obat</strong></div></td>
<td width="19">:</td>
<td width="278"><label><input type="text" name="nama_obat" id="Nama_Obat" /></label></td>
</tr>
<tr>
<td><div align="left"><strong>Nomor Medical Record</strong></div></td>
<td width="19">:</td> <td width="278">
<label> <select name="No_mr" id="No_mr">
<?php
$query = mysql_query("SELECT No_mr FROM data_pasien");
$No_mr = $row['No_mr'];
echo "<option value='$No_mr'>$No_mr</option>";
}
?>
</select>
</label> </td>
</tr>
<tr>
<td><div align="left"><strong>Diagnosa Penyakit</strong></div></td>
<td width="19">:</td>
<td width="278"><input type="text" name="diagnosa" id="diagnosa" /></label></td> </tr>
<td><a href="home.php">Home</a></td>
<td> </td> <td><label> <center> <input type="submit" name="button" id="button" value="Simpan" /></label></td>
</tr> </table> </div>
</blockquote> </blockquote> </blockquote> </blockquote>
<script src="sliderjs/jquery.js"></script> <script>
$(function() {
$("#ID_Obat").change(function() { data = $(this).val();
$.ajax({
method: "POST", url: "obat.php", data: {data: data},
success: function(data) { $("#Nama_Obat").val(data); console.log(data);
} }) });
$("#No_mr").change(function() { data = $(this).val();
$.ajax({
method: "POST", url: "diagnosa.php", data: {data: data},
success: function(data) { $("#diagnosa").val(data); }
}); }); });
</script> </body>
9.
Proses_Input_Dokter.php
<link rel="SHORTCUT ICON" href="images/logo.jpg"/>
<?php /**
* @author
* @copyright 2016 */
mysql_connect("localhost", "root", ""); mysql_select_db("rekammedis");
$Nama_Dokter = $_POST['Nama_Dokter']; $No_mr = $_POST['No_mr'];
$ID_Obat = $_POST['ID_Obat']; $Profesi = $_POST['Profesi']; $diagnosa = $_POST['diagnosa'];
$query = mysql_query("INSERT INTO dokter(Nama_Dokter, No_mr, ID_Obat, Profesi, diagnosa) VALUES('$Nama_Dokter', '$No_mr', '$ID_Obat', '$Profesi','$diagnosa')");
$query_data_pasien = mysql_query("UPDATE data_pasien SET Nama_Dokter='$Nama_Dokter' WHERE No_mr='$No_mr'");
if ($query) {
if ($query_data_pasien) {
echo '<script>alert("Data dokter berhasil di input"); window.location.href="home.php;</script>'; } else {
echo "Error..." . mysql_error(); }
echo '<script>alert("Data dokter berhasil di input"); window.location.href="home.php;</script>';
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd"> <!--
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <body style="background: #009cde;" text="#000000"> <title>Rekam Medis Puskesmas Medan Labuhan</title> <style type="text/css">
#header {
background: white; padding: 15px; }
a {color: black;
font: 12px Arial, Helvetica, sans-serif; text-decoration: none;
border: 2px solid black; display: block;
width: 200px;
padding: 3px 10px; background: #dcdcdc ;}
a:hover, a:active a:focus { background: #4169E1; font-weight: bold; }
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif}
</style> </head>
<body>
<div id="logo">
<h1 align="center"><img
src="images/logo.png" alt="" width="495" height="80" /></h1> </div>
</div>
<p> </p> </body>
</html>
<body> <p>
<center><a href="visimisi.php"><strong>Visi, Misi & Motto Puskesmas Medan Labuhan</strong></a><br />
<center><a href="strukturorganisasi.php"><strong>Struktur Organisasi Puskesmas Medan Labuhan</strong></a><br /> <center><a href="search.php"><strong>Pencarian Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Kartu.php"><strong>Input Data Pasien</strong></a><br />
<center><a href="Input_Data_Dokter.php"><strong>Input Data Dokter Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Obat.php"><strong>Input Data Obat Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Tampil_Data_Pasien.php"><strong>Tampil Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br /> <center><a href="kontak.php"><strong>Kontak Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Logout.php"><strong>Logout</strong></a> </body>
</html> </p>
<div align="center"></div> <div id="three-columns"> <div id="columns1">
<p align="justify" class="style10"> </p>
<br>
<b>Copyright © 2016 - aplikasirekammedis - PUSKESMAS MEDAN LABUHAN </b>
</div> </div> </div> </body> </html>
10.
Proses_Input_Obat.php
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <?php
/**
* @author
* @copyright 2016 */
include 'koneksi.php';
$ID_Obat = $_POST['ID_Obat']; $No_mr = $_POST['No_mr'];
$Nama_Obat = $_POST['nama_obat']; $diagnosa = $_POST['diagnosa'];
$query = mysql_query("INSERT INTO
obat(ID_Obat,No_mr,Nama_Obat,diagnosa)VALUES('$ID_Obat','$No _mr','$Nama_Obat','$diagnosa')");
$query_data_pasien = mysql_query("UPDATE data_pasien SET Nama_Obat='$Nama_Obat', diagnosa='$diagnosa' WHERE
No_mr='$No_mr'"); if ($query) {
echo "<script>alert('Berhasil');
</script>"; } else {
echo "Gagal" . mysql_error(); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd"> <!--
-->
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<body style="background: #009cde;" text="#000000"> <title>Rekam Medis Puskesmas Medan Labuhan</title> <style type="text/css">
#header {
background: white; padding: 15px; }
a {color: black;
font: 12px Arial, Helvetica, sans-serif; text-decoration: none;
border: 2px solid black; display: block;
width: 200px; padding: 3px 10px; background: #dcdcdc;}
a:hover, a:active, a:focus { background: #4169E1; font-weight: bold;}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif}
<body>
<div id="wrapper"> <div id="header"> <div id="logo">
<h1 align="center"><img src="images/logo.png" alt="" width="495" height="80" /></h1>
</div> </div>
<p> </p> </body>
</html>
<body> <p>
<center><a href="visimisi.php"><strong>Visi, Misi & Motto Puskesmas Medan Labuhan</strong></a><br />
<center><a href="strukturorganisasi.php"><strong>Struktur Organisasi Puskesmas Medan Labuhan</strong></a><br /> <center><a href="search.php"><strong>Pencarian Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Kartu.php"><strong>Input Data Pasien</strong></a><br />
<center><a href="Input_Data_Dokter.php"><strong>Input Data Dokter Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Obat.php"><strong>Input Data Obat Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Tampil_Data_Pasien.php"><strong>Tampil Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br /> <center><a href="kontak.php"><strong>Kontak Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Logout.php"><strong>Logout</strong></a> </body>
</p>
<div align="center"></div> <div id="three-columns"> <div id="columns1">
<p align="justify" class="style10"> </p>
<b>Copyright © 2016 - aplikasirekammedis - PUSKESMAS MEDAN LABUHAN</div> </div>
</div> </body>
</html>
11.
Proses_Input_Pasien.php
<?php
include 'koneksi.php';
$tanggal = $_POST['tanggal'];
$no_urut = $_POST['no_urut'];
$no_mr = $_POST['no_mr'];
$ruang = $_POST['ruang'];
$nama = $_POST['nama'];
$alamat = $_POST['alamat'];
$umur = $_POST['umur'];
$diagnosa = $_POST['diagnosa'];
$query_data_pasien = mysql_query("INSERT INTO
`data_pasien` (tanggal, no_urut, no_mr, ruang, nama,
VALUES ('$tanggal', '$no_urut', '$no_mr', '$ruang',
'$nama','$alamat', '$umur', '$diagnosa')");
if ($query_data_pasien) {
echo "<script>
alert('Berhasil!');
window.location.href = 'home.php';
</script>";
} else {
echo "Error " . mysql_error();
}
12.
Proseslogin.php
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <?php
/**
* @author
* @copyright 2016 */
mysql_connect("localhost", "root", ""); mysql_select_db("rekammedis");
$id = $_POST['id'];
$username = $_POST['username']; $password = $_POST['password']; $nama = $_POST['nama'];
$email = $_POST['email']; $alamat = $_POST['alamat'];
$query = mysql_query("INSERT INTO login(id, username, password, nama, email, alamat) VALUES($id, '$username', '$password', '$nama', '$email', '$alamat')");
if ($query) {
echo "Gagal" . mysql_error(); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd"> <!--
-->
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<body bgcolor="#EDF5DE" background="images/log_in.jpg" text="#000000">
<title>Rekam Medis Puskesmas Medan Labuhan</title> <style type="text/css">
#header {
background: white; padding: 15px; }
a {color: black;
font: 12px Arial, Helvetica, sans-serif; text-decoration: none;
border: 2px solid black; display: block;
width: 200px; padding: 3px 10px; background: #dcdcdc;}
a:hover, a:active, a:focus { background: #4169E1; font-weight: bold;}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif}
</style> </head>
<div id="wrapper"> <div id="header"> <div id="logo">
<h1 align="center"><img src="images/logo.png" alt="" width="495" height="80" /></h1>
</div> </div>
<p> </p> </body>
</html>
<body> <p>
<center><a href="visimisi.php"><strong>Visi, Misi & Motto Puskesmas Medan Labuhan</strong></a><br />
<center><a href="strukturorganisasi.php"><strong>Struktur Organisasi Puskesmas Medan Labuhan</strong></a><br /> <center><a href="search.php"><strong>Pencarian Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Kartu.php"><strong>Input Data Dokter Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Input_Data_Obat.php"><strong>Input Data Obat Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Tampil_Data_Pasien.php"><strong>Tampil Data Kartu Pasien Puskesmas Medan Labuhan</strong></a><br /> <center><a href="kontak.php"><strong>Kontak Puskesmas Medan Labuhan</strong></a><br />
<center><a href="Logout.php"><strong>Logout</strong></a> </body>
<div align="center"></div> <div id="three-columns"> <div id="columns1">
<p align="justify" class="style10"> </p>
<b>Copyright © 2016 - aplikasirekammedis - PUSKESMAS MEDAN LABUHAN</div> </div>
</div> </body> </html>
13.
Datalengkap.php
<?phpinclude 'koneksi.php';
if (isset($_POST['datamr'])) { $datamr = $_POST['datamr'];
$query = mysql_query("SELECT * FROM obat WHERE No_mr='$datamr'");
$row = mysql_fetch_array($query);
if ($query) {
echo json_encode($row); } else {
echo "Error"; }
} ?>
14.
Diagnosa.php
<?php
if (isset($_POST['data'])) {
$data = $_POST['data'];
$query = mysql_query("SELECT diagnosa FROM
data_pasien WHERE No_mr='$data'");
$row = mysql_fetch_array($query);
if ($query) {
echo $row['diagnosa'];
}
}
?>
15.
Obat.php
<?php
include 'koneksi.php';
if (isset($_POST['data'])) {
$data = $_POST['data'];
$query = mysql_query("SELECT nama FROM data_obat
WHERE id='$data'");
$row = mysql_fetch_array($query);
if ($query) {
echo $row['nama'];
}
}
?>
<head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <body style="background: #009cde;" text="#000000">
<style type="text/css"> #judul {
position: absolute; left: 514px;
top: 71px; width: 478px; height: 92px; }
.link {
margin-left: 150px; margin-top: 15px; }
.link a {
color: white;
font: 1.2em 'Agency Fb'; }
table {
border-collapse: collapse; border: 1px solid white; }
th {
padding: 15px 5px; background: #171717; color: white;
font: 1.2em 'Agency Fb'; }
td {
padding: 10px 5px; color: white;
font: 1em 'Agency Fb'; }
background: #009999; }
tr:nth-child(even) td { background: #445566; }
</style> </head>
<body>
<div class="bungkus"> <div class="kepala">
<blockquote style="background: white"> <h3 align="center" class="style2"> </h3> <h3 align="center" class="style2"> </h3> <div id="judul">
<h3 align="center" class="style2">TAMPIL DATA KARTU PASIEN REKAM MEDIS PUSKESMAS MEDAN LABUHAN</h3>
</div>
<p align-="center" class="style1"> </p> <p align-="center" class="style1"> </p> <p align-="center" class="style1"> </p> </blockquote>
</div>
<div class="menu"></div> <div class="isi">
<table style="margin: auto;" width="1100" height="54" border="1">
<tr>
<th width="105"><div align="center"> <p>Tanggal</p>
<th width="39">No. Urut</th>
<th width="100">No. Medical Record</th> <th width="62">Ruang</th>
<th width="135">Nama Pasien</th> <th width="169">Alamat Pasien</th> <th width="47">Umur</th>
<th width="131">Diagnosa Penyakit</th> <th width="169">Nama Dokter</th>
<th width="125">Nama Obat</th>
</tr>
<?php
$a = mysql_connect("localhost", "root", ""); // Login MySQL mysql_select_db("rekammedis"); // memilih database
$query = "SELECT tdp.Tanggal, tdp.No_Urut, tdp.No_mr, tdp.Ruang, tdp.Nama, tdp.Alamat, tdp.Umur, tdp.diagnosa, tdp.Nama_Dokter, tdp.Nama_Obat FROM (data_pasien tdp LEFT JOIN dokter tdd ON tdp.No_mr = tdd.No_mr) LEFT JOIN obat tdo ON tdp.No_mr = tdo.No_mr";
//$query = "SELECT data_pasien.*, dokter.*, obat.* FROM data_pasien INNER JOIN dokter ON data_pasien.No_mr = dokter.No.mr INNER JOIN obat ON data_pasien.No_mr = obat.No_mr";
//$query = "SELECT * FROM data_pasien";
$x = mysql_query($query); //untuk mengeksekusi query MySQL while ($data = mysql_fetch_array($x)) {
?> <tr>
<td><?php echo $data['Alamat']; ?></td> <td><?php echo $data['Umur']; ?></td> <td><?php echo $data['diagnosa']; ?></td> <td><?php echo $data['Nama_Dokter']; ?></td> <td><?php echo $data['Nama_Obat']; ?></td> </tr>
<?php } ?>
</table> </div>
<div class="link">
<a href="home.php">Kembali</a> </div>
</div>
<!DOCTYPE html PUBLIC "-//W3//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd"> <html xmnls="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<p> </p> <p> </p>
</html> </body> </html>
<?php
mysql_connect("localhost", "root", ""); mysql_select_db("rekammedis");
?> <html> <head>
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <title>Pencarian Data Pasien</title>
<style>
#header {
background: white; padding: 15px; }
#pasien {
border: 1px solid #ccc; border-collapse: collapse; width: 100%;
}
#pasien th {
padding: 15px;
border: 1px solid #ccc; background: black; color: white; }
#pasien td {
padding: 10px; text-align: center; border: 1px solid #ccc; }
</style> </head>
<div id="header">
<img src="images/logo.png" width="1000" height="129"> </div>
</table>
<form action="prosescari.php" method="GET">
<table> <tr>
<td>Masukkan Nama Pasien</td> <td><input type="text" name="q" size="30" face="Verdana"></td>
</tr>
<td><center><td><p> </p>
<p>
<input type="submit" name="search" value="Cari"> <a href="home.php">Kembali</a>
</p></td> </tr>
</table>
</form> </body> </html>
18.
Prosescari.php
<?phpmysql_connect("localhost", "root", ""); mysql_select_db("rekammedis");
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <title>Pencarian Data Pasien</title>
<style>
#header {
background: white; padding: 15px; }
#pasien {
border: 1px solid #ccc; border-collapse: collapse; width: 100%;
}
#pasien th {
padding: 15px;
border: 1px solid #ccc; background: black; color: white; }
#pasien td {
padding: 10px; text-align: center; border: 1px solid #ccc; }
</style> </head>
<body style="background: #009cde;" width="1500" height="800">
<div id="header">
<img src="images/logo.png" width="1000" height="129"> </div>
<?php
$query = mysql_query("SELECT * FROM data_pasien WHERE Nama LIKE '%$q%' OR No_mr LIKE '%$q%'");
} ?>
<table id="pasien" > <tr>
<th>Tanggal</th> <th>No. Urut</th> <th>No. Mr</th> <th>Ruang</th> <th>Nama</th> <th>Alamat</th> <th>Umur</th> <th>Diagnosa</th> </tr>
<?php
$temu = false;
while($row = mysql_fetch_array($query)) { $temu = true;
?> <tr>
<td><?php echo $row[0]; ?></td> <td><?php echo $row[1]; ?></td> <td><?php echo $row[2]; ?></td> <td><?php echo $row[3]; ?></td> <td><?php echo $row[4]; ?></td> <td><?php echo $row[5]; ?></td> <td><?php echo $row[6]; ?></td> <td><?php echo $row[7]; ?></td> </tr>
<?php }
<h3>Pencarian untuk <b><?php echo $q; ?></b> tidak ditemukan!</h3>
<?php }
?> </table> </body>
19.
Prosescari2.php
<link rel="SHORTCUT ICON" href="images/logo.jpg"/> <body bgcolor="#EDF5DE" background="images/log_in.jpg" text="#000000">
<center><p><img src="images/logo.png" width="585" height="111"></p>
<p> </p> <p> </p> <p> </p>
<?php
include"koneksi.php"; $q=$_POST['q'];
echo "<center><h2>Hasil Pencarian </h2>"; if(!empty($q)){
if(strlen($q)>2){
$query="SELECT *FROM tb_pasien where Nama like'%$q%'"; if($ex1=mysql_query($query)){
if(mysql_num_rows($ex1)>=1){ echo "<br><table border=\"1\">
<tr>
<th>No. Medical Record</th> <th>Nama Pasien</th>
<th>Alamat Pasien</th> <th>Umur</th>
while($data=mysql_fetch_array($ex1)){ echo "<tr><td>";
echo $data["No_mr"]; echo "</td>";
echo "<td>";
echo $data["Nama"]; echo "</td>";
echo "<td>";
echo $data["Alamat"]; echo "</td>";
echo "<td>";
echo $data['Umur']; echo "</td>";
} echo "</div>"; $a1=1;
} else{
$a1=0; }
} }
}
echo"</table>"; $count=$a1; if($count==0){
echo "Maaf, tidak ditemukan data mengenai '$q'"; }
echo "<a href=\search.php\">Kembali</a>"; ?>
20.
Main.css
padding: 0; margin: 0; }
body {
margin:0px;
font-family:"Arial Black", Gadget, sans-serif; background: #009cde;
}
.main {
width:95%;
background:#f1f2f7; margin:0 auto; }
.header {
width:100%; height:200px; float: left;
background-image:url(../image/header.jpg); background-size: 100% 200px;
background-repeat:no-repeat;
}
#header {
background: white; }
.clear {
clear: both; }
.header img { width: 100%; height: 200px; }
#nav {
height: 52px;
box-shadow: 0px 5px 10px #999; float: left;
}
#nav ul {
list-style: none; }
#nav > ul > li { list-style: none;
font: 400 12px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Arial, sans-serif;
float: left;
position: relative;
}
#nav ul > li > ul { position: absolute; list-style: none; display: none; z-index: 3; }
#nav ul > li:hover ul { display: block; }
#nav ul > li > ul > li { float: none;
}
#nav li > ul > li { color: white }
#nav a{
text-decoration: none; display: block;
padding: 15px; color: #FFF;
width: 150px;;
border: 1px solid white; font: 1.2em 'Segoe UI'; transition: all ease .3s; text-align: center;
}
#nav a:hover { color: #FF1744; font-weight: bold;
background: rgba(0, 0, 0, .75); }
.menu {
background: #263238; width: 100%;
height: 45px;
box-shadow: 0px 5px 10px #999; float: left;
}
.wrapper { width:100%;
min-height: 500px; float:left;
background: #009cde; }
.row-fluid {
background: #009cde!important; }
/* Visi Misi */ .wrapper .content {
border: 1px solid #ccc; width: 90%;
margin: 15px auto; }
.wrapper .content .content-header h1 { background: #171717;
padding: 15px; text-align: center; font: 1.5em 'Consolas'; }
.wrapper .content-text p { font: 1em 'Segoe UI'; font-weight: normal; padding: 15px;
text-align: justify; }
/* end visi dan misi */
/* Kontak */ .wrapper table {
border: 1px solid black; border-collapse: collapse; width: 300px;
margin: 15px auto; }
.wrapper table tr:nth-child(odd) { background: #cccccc;
}
.wrapper table tr:nth-child(even) { background: #999999;
}
.wrapper table td { padding: 15px;
border: 1px solid black; text-align: center; font: 1em cursive; }
/* End Kontak */ .info_judul {
background: #263238; width: 100%;
text-align: center; padding: 15px;
box-sizing: border-box; }
.gambar {
width: 60%;
box-sizing: border-box; float: left;
padding: 15px;
margin-bottom: 30px; }
.informasi { width: 40%;
box-sizing: border-box; margin-top: 15px;
margin-left: 60%;
border: 1px solid #ccc; margin-bottom: 30px; }
.informasi p {
font-weight: normal; font-size: 1.1em; text-align: justify; font-family: 'Segoe UI'; padding: 10px;
}
footer {
width: 100%; clear: both; height: 30px;
padding-top: 15px;
font: 400 12px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Arial, sans-serif;
}
footer a {
text-decoration: none; color: #fff;
}
21.
Logout.php
<?php// Inialize session session_start();
// Delete all session variables // session_destroy();
// Jump to login page session_destroy();
header('Location: index.php'); ?>
22.
Config.php
<?php$host = "localhost";
$user = "root"; $pass = ""; $db = "login";
$con = mysql_connect($host, $user, $pass); if (!$con) {
echo "Gagal Konek Ke Database" . mysql_error(); }
SURAT KETERANGAN
Hasil Uji Program Tugas Akhir
Yang bertanda tangan dibawah ini, menerangkan bahwa Tugas Akhir Mahasiswa
Program Diploma 3 Teknik Informatika :
Nama
:
LUCIA SHENA SIMANGUNSONG
NIM
:
132406036
Program Studi
:
TEKNIK INFORMATIKA
Judul Tugas Akhir :
SISTEM INFORMASI REKAM MEDIS PADA
PUSKESMAS MEDAN LABUHAN.
Telah melaksanakan uji program Tugas Akhir Mahasiswa tersebut diatas pada
tanggal ...Juni 2014
Dengan Hasil : Sukses / Gagal
Demikian Surat Keterangan ini dibuat untuk melengkapi syarat pendaftaran Ujian
Meja Hijau Tugas Akhir Mahasiswa bersangkutan di Departemen Matematika
FMIPA USU Medan.
Medan, Juni 2014
Dosen Pembimbing,
KARTU BIMBINGAN TUGAS AKHIR MAHASISWA
Nama Mahasiswa
: LUCIA SHENA SIMANGUNSONG
Nomor Stambuk
: 132406026
Judul Tugas Akhir
: SISTEM INFORMASI REKAM MEDIS PADA
: PUSKESMAS MEDAN LABUHAN
Dosen Pembimbing
: Dr. Sawaluddin M.IT
Tanggal Mulai Bimbingan
:
Tanggal Selesai Bimbingan :
No.
Tanggal Asisten
Bimbingan
Pembahasan pada
Asistensi Mengenai,
pada Bab :
Paraf Dosen
Pembimbing
Keterangan
1
2
3
4
5
6
7
*Kartu ini harap dikembalikan ke Departemen Matematika bila bimbingan telah selesai
Diketahui,
Disetujui,
Ketua
Pembimbing Utama
Program Studi D3 Teknik Informatika
Dr. Elly Rosmaini, M.Si. Dr. Sawaluddin, M.IT