Exemplo n.º 1
0
        private bool editPatientInMedicalRecord(Patient patient)
        {
            MedicalRecordService medicalRecordService  = new MedicalRecordService();
            MedicalRecord        searchedMedicalRecord = medicalRecordService.GetMedicalRecordById(patient.MedRecordId);

            searchedMedicalRecord.patient = patient;
            return(medicalRecordService.EditMedicalRecord(searchedMedicalRecord) != null);
        }
Exemplo n.º 2
0
        private Patient AddNewMedicalRecord(Patient patient)
        {
            //TODO: Treba srediti insurance policy tako da podatak bude upotrebljiv a ne uvek isti
            MedicalRecord        medicalRecord        = new MedicalRecord(new InsurancePolicy(30), patient);
            MedicalRecordService medicalRecordService = new MedicalRecordService();

            medicalRecord       = medicalRecordService.AddMedicalRecord(medicalRecord);
            patient.MedRecordId = medicalRecord.GetId();

            return(patient);
        }