public ParamedicinUI_RegistrerPatient()
 {
     patientData = new string[4]; // Patientens data hentet fra CPR-register
     Display     = new SerLCD();
     Encoder     = new TWIST();
     RPcontrol   = new RegistrerPatientControl();
 }
Beispiel #2
0
 static void Main(string[] args)
 {
     Display            = new SerLCD();
     Encoder            = new TWIST();
     registrerPatientUI = new ParamedicinUI_RegistrerPatient();
     measureECGUI       = new ParamedicinUI_MeasureECG();
     visBatteristatusUI = new ParamedicinUI_VisBatteristatus();
     mainMenu();
 }
Beispiel #3
0
 public ParamedicinUI_MeasureECG()
 {
     adc        = new ADC1015();
     ECGControl = new MeasureECGControl();
     Display    = new SerLCD();
     Encoder    = new TWIST();
     paraRP     = new ParamedicinUI_RegistrerPatient();
     maalingID  = new int();
 }
Beispiel #4
0
        private List <short> employeeIdList = new List <short>(); //Liste til medarbejder id //Short fordi drejeknappen er en short

        /// <summary>
        /// Constructor til klassen. Instantierer referencerne til LCD og Encoder, samt referencen til EKG_Record.cs.
        /// </summary>
        public Display()
        {
            lcd   = new SerLCD();
            twist = new TWIST();

            ekgRecordRef = new Ekg_Record();
            lcd.lcdCursor();
            lcd.lcdBlink();
        }
Beispiel #5
0
 /// <summary>
 /// Constructor for objekt af klassen. Instansierer referencerne.
 /// </summary>
 public Communication()
 {
     lcd   = new SerLCD();
     twist = new TWIST();
     twist.setCount(0);
     ekgRecordRef     = new Ekg_Record();
     displayRef       = new Display();
     batteryRef       = new Battery();
     batteryStatusRef = new BatteryStatus();
 }
Beispiel #6
0
        static void Main(string[] args)
        {
            //Hej
            SerLCD  displayController = new SerLCD();
            ADC1015 adConverter       = new ADC1015();
            TWIST   twist             = new TWIST();
            string  temp = Convert.ToString(adConverter.readADC_SingleEnded(0));

            double Celcius = Convert.ToInt32(temp) / 10;

            double Fahrenheit = Celcius * 2 + 31;
            double Kelvin     = Celcius + 273 + "Kelvin";

            List <double> items = new List <double> {
                Celcius, Fahrenheit, Kelvin
            };


            displayController.lcdDisplay();

            displayController.lcdClear();

            displayController.lcdPrint("tempteratur: " + temp);

            byte x = 0;
            byte y = 0;

            for (byte i = 1; i < items.Count + 1; i++)
            {
                displayController.lcdGotoXY(x, i);
                displayController.lcdPrint(Convert.ToString((items[i - 1]) + " grader"));
            }


            //displayController.lcdGotoXY(x,y);

            //displayController.lcdPrint("tempteratur: " + temp + " Celcius: " + Celcius + " Fahrenheit: " + Fahrenheit + " Kelvin: " + Kelvin);



            //Console.WriteLine("Hello World!");

            //Console.WriteLine("Temperatur:\n\n");
            //Console.WriteLine("Celcius:         "+Celcius);
            //Console.WriteLine();
            //Console.WriteLine("Celcius:         "+ Fahrenheit);
            //Console.WriteLine();
            //Console.WriteLine("Celcius:         "+ Kelvin);
        }
Beispiel #7
0
        //Metoden starter displayet op og henter patientinformationer.
        static void Initialisere()
        {
            //Objekter oprettes.
            Interface = new Patient_Interface();
            endcoder  = new TWIST();
            Logic     = new Logic();

            //Start sekvens vises og hovedmenuen vises efter.
            Interface.ScreenColor(255, 255, 0);
            endcoder.setCount(0);

            //metode til at hente patient informationer - retur værdi DTO patient
            Patient = Logic.GetPatientCPR();

            Console.WriteLine("Velkommen " + Patient.PatientName);
            Interface.ShowStartMenu(Patient.PatientName);
            Interface.ShowStartMaaling();
        }
Beispiel #8
0
        }                                                  //Properties, der bruges ved upload til database og maaling

        static void Main(string[] args)
        {
            MeasureECGControl eCGControl = new MeasureECGControl();

            Display            = new SerLCD();
            Encoder            = new TWIST();
            CPRNumber          = ""; // CPR-nummer sættes til 0
            registrerPatientUI = new ParamedicinUI_RegistrerPatient();
            measureECGUI       = new ParamedicinUI_MeasureECG();
            visBatteristatusUI = new ParamedicinUI_VisBatteristatus();
            //Nedenstående bliver sat her, da de alligevel er statiske til systemet.
            eCGControl.GetLokalinfo()._maaleenhed_identifikation = "1007";
            eCGControl.GetLokalinfo()._maaleformat_type          = "double";
            eCGControl.GetLokalinfo()._samplerate_hz             = 50;
            eCGControl.GetLokalinfo()._antalmaalinger            = 500;
            eCGControl.GetLokalinfo()._interval_sec = 10;
            eCGControl.GetLokalinfo()._interval_min = 0;
            mainMenu();
        }
Beispiel #9
0
 public ParamedicinUI_MeasureECG()
 {
     Display = new SerLCD();
     Encoder = new TWIST();
 }
Beispiel #10
0
 public ParamedicinUI_RegistrerPatient()
 {
     Display   = new SerLCD();
     Encoder   = new TWIST();
     RPcontrol = new RegisterPatientControl();
 }
Beispiel #11
0
 public Start_Button()
 {
     twistButton = new TWIST();
 }
Beispiel #12
0
 public ParamedicinUI_VisBatteristatus()
 {
     Display        = new SerLCD();
     Encoder        = new TWIST();
     BstatusControl = new ShowbatterystatusControl();
 }