コード例 #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();
        }
コード例 #2
0
        public void insertPointRecognitionScans(int patientID, int scanLocID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

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

            dbClose();
        }
コード例 #3
0
        public void insertPatientScans(int patientID, int scanID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

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

            dbClose();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #9
0
        public void insertRecords(int scanID, int scanTypeID, double value)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.records(scanID, scanTypeID, value);

            dbClose();
        }
コード例 #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();
        }
コード例 #11
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        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();
        }
コード例 #12
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        public void insertRecords(int scanID, int scanTypeID, double value)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

            ins.records(scanID, scanTypeID, value);

            dbClose();
        }
コード例 #13
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        public void insertPointRecognitionScans(int patientID, int scanLocID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

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

            dbClose();
        }
コード例 #14
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        public void insertPatientScans(int patientID, int scanID)
        {
            dbOpen();

            Insertion ins = new Insertion(con);

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

            dbClose();
        }
コード例 #15
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        //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();
        }
コード例 #16
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        //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();
        }
コード例 #17
0
ファイル: TheDatabase.cs プロジェクト: robinj/parse-client
 public DatabaseEngine()
 {
     insertQueries = new Insertion(this.con);
     selectQueries = new Selection(this.con);
 }
コード例 #18
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        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();
        }
コード例 #19
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        //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();
        }
コード例 #20
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        //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();
        }
コード例 #21
0
 public DatabaseEngine()
 {
     insertQueries = new Insertion(this.con);
     selectQueries = new Selection(this.con);
 }
コード例 #22
0
ファイル: DatabaseEngine.cs プロジェクト: robinj/parse-client
        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();
        }