Exemple #1
0
        //Insert methods for all tables

        //Type 1 = tables that need a specialised query
        public void insertPatientInformation(String name, String dateOfBirth, String nationality, int nhsNo, String address, String weight)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.patientInformation(name, dateOfBirth, nationality, nhsNo, address, weight);

            dbClose();
        }
Exemple #2
0
        public void insertPointRecognitionScans(int patientID, int scanLocID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type3("PointRecognitionScans", "patientID", "scanLocID", patientID, scanLocID);

            dbClose();
        }
Exemple #3
0
        public void insertPatientScans(int patientID, int scanID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type3("PatientScans", "patientID", "scanID", patientID, scanID);

            dbClose();
        }
Exemple #4
0
        //Type 3 = tables containing 3 identifiers

        public void insertPatientCondition(int patientID, int conditionID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type3("PatientCondition", "patientID", "conditionID", patientID, conditionID);

            dbClose();
        }
Exemple #5
0
        public void insertScanLocations(String boneName, String jointName1, String jointName2, double distJoint1, double distJoint2, String jointsDist, DateTime timestamp)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.scanLocations(boneName, jointName1, jointName2, distJoint1, distJoint2, jointsDist, timestamp);

            dbClose();
        }
Exemple #6
0
        public void insertLimbCoordinates(int scanID, double[] joint1, double[] joint2, String[] joint3, String[] joint4)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.LimbCoordinates(scanID, joint1, joint2, joint3, joint4);

            dbClose();
        }
Exemple #7
0
        //Type 2 = tables containing 1 identifier and 2 text fields

        //contains the different types of conditions
        public void insertConditions(String condition, String description)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type2("Conditions", "condition", "description", condition, description);

            dbClose();
        }
Exemple #8
0
        //contains the different types of scans
        public void insertScanTypes(String scanType, String description)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type2("ScanTypes", "scanType", "description", scanType, description);

            dbClose();
        }
Exemple #9
0
        public void insertRecords(int scanID, int scanTypeID, double value)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.records(scanID, scanTypeID, value);

            dbClose();
        }
Exemple #10
0
        public void insertScans(int scanTypeID, int patientID, String pointCloudFileReference, String description, DateTime timestamp)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.scans(scanTypeID, pointCloudFileReference, description, timestamp);
            ins.patientscans(patientID);

            dbClose();
        }
Exemple #11
0
        public void insertScanLocations(String boneName, String jointName1, String jointName2, double distJoint1, double distJoint2, String jointsDist, DateTime timestamp)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.scanLocations(boneName, jointName1, jointName2, distJoint1, distJoint2, jointsDist, timestamp);

            dbClose();
        }
Exemple #12
0
        public void insertRecords(int scanID, int scanTypeID, double value)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.records(scanID, scanTypeID, value);

            dbClose();
        }
Exemple #13
0
        public void insertPointRecognitionScans(int patientID, int scanLocID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type3("PointRecognitionScans", "patientID", "scanLocID", patientID, scanLocID);

            dbClose();
        }
Exemple #14
0
        public void insertPatientScans(int patientID, int scanID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type3("PatientScans", "patientID", "scanID", patientID, scanID);

            dbClose();
        }
Exemple #15
0
        //Insert methods for all tables
        //Type 1 = tables that need a specialised query
        public void insertPatientInformation(String name, String dateOfBirth, String nationality, int nhsNo, String address, String weight)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.patientInformation(name, dateOfBirth, nationality, nhsNo, address, weight);

            dbClose();
        }
Exemple #16
0
        //Type 3 = tables containing 3 identifiers
        public void insertPatientCondition(int patientID, int conditionID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type3("PatientCondition", "patientID", "conditionID", patientID, conditionID);

            dbClose();
        }
Exemple #17
0
 public DatabaseEngine()
 {
     insertQueries = new Insertion(this.con);
     selectQueries = new Selection(this.con);
 }
Exemple #18
0
        public void insertScans(int scanTypeID, int patientID, String pointCloudFileReference, String description, DateTime timestamp)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.scans(scanTypeID, pointCloudFileReference, description, timestamp);
            ins.patientscans(patientID);

            dbClose();
        }
Exemple #19
0
        //contains the different types of scans
        public void insertScanTypes(String scanType, String description)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type2("ScanTypes", "scanType", "description", scanType, description);

            dbClose();
        }
Exemple #20
0
        //Type 2 = tables containing 1 identifier and 2 text fields
        //contains the different types of conditions
        public void insertConditions(String condition, String description)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.type2("Conditions", "condition", "description", condition, description);

            dbClose();
        }
Exemple #21
0
 public DatabaseEngine()
 {
     insertQueries = new Insertion(this.con);
     selectQueries = new Selection(this.con);
 }
Exemple #22
0
        public void insertLimbCoordinates(int scanID, double[] joint1, double[] joint2, String[] joint3, String[] joint4)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.LimbCoordinates(scanID, joint1, joint2, joint3, joint4);

            dbClose();
        }