Ejemplo n.º 1
0
        private void addAdmissionObject(PatientStayModel patientStay, EpisodeOfCareModel episodeOfCare, List <PatientMovementModel> patientMovementList)
        {
            if (!(episodeOfCare is null) && patientStay.Beginn == episodeOfCare.Beginn)
            {
                PatientMovementModel patientMovement = new PatientMovementModel(patientStay);;
                patientMovement.Ende = episodeOfCare.Beginn;
                patientMovement.AddMovementType(1, "Aufnahme");

                patientMovementList.Add(patientMovement);
            }
        }
Ejemplo n.º 2
0
        private void addDischargeObject(PatientStayModel patientStay, EpisodeOfCareModel episodeOfCare, List <PatientMovementModel> patientMovementList)
        {
            if (episodeOfCare.Ende != DateTime.MinValue)
            {
                if (!(episodeOfCare is null) && patientStay.Ende == episodeOfCare.Ende)
                {
                    PatientMovementModel patientMovement = new PatientMovementModel(patientStay);
                    patientMovement.Beginn = episodeOfCare.Ende;
                    patientMovement.AddMovementType(2, "Entlassung");

                    patientMovementList.Add(patientMovement);
                }
            }
        }
Ejemplo n.º 3
0
        //Die Vergleiche der Methode können eventuell noch PatientMovementModel hinzugefügt werden
        private void addMovementTypeByDateComparison(PatientStayModel patientStay, List <PatientMovementModel> patientMovementList)
        {
            PatientMovementModel patientMovement = new PatientMovementModel(patientStay);

            if (patientMovement.Beginn == patientMovement.Ende)
            {
                patientMovement.AddMovementType(4, "Behandlung");
            }
            else
            {
                if (patientMovement.Ende == DateTime.MinValue)
                {
                    patientMovement.Ende = DateTime.Now;
                }
                patientMovement.AddMovementType(3, "Wechsel");
            }
            patientMovementList.Add(patientMovement);
        }