コード例 #1
0
        public int addPsychosocialCircumstances(int patientId, int patientMasterVisitId, int createdBy, string livingWith, string aware, int supportSystem, string supportSystemNotes,
                                                int relationshipChanges, string relationshipChangesNotes, int bothered, string botheredNotes, int treatedDifferently, string treatedDifferentlyNotes, int interferenceStigma,
                                                string interferenceStigmaNotes, int stoppedMedication, string stoppedMedicationNotes)
        {
            PsychosocialCircumstances PS = new PsychosocialCircumstances()
            {
                PatientId            = patientId,
                PatientMasterVisitId = patientMasterVisitId,
                LivingWith           = livingWith,
                Aware                    = aware,
                SupportSystem            = supportSystem,
                SupportSystemNotes       = supportSystemNotes,
                RelationshipChanges      = relationshipChanges,
                RelationshipChangesNotes = relationshipChangesNotes,
                Bothered                 = bothered,
                BotheredNotes            = botheredNotes,
                TreatedDifferently       = treatedDifferently,
                TreatedDifferentlyNotes  = treatedDifferentlyNotes,
                InterferenceStigma       = interferenceStigma,
                StoppedMedication        = stoppedMedication,
                StoppedMedicationNotes   = stoppedMedicationNotes
            };

            Result = _adherence.AddPsychosocialCircumstances(PS);
            return(Result);
        }
コード例 #2
0
ファイル: BAdherence.cs プロジェクト: palladiumkenya/IQCareKe
 public int AddPsychosocialCircumstances(PsychosocialCircumstances PC)
 {
     using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext()))
     {
         unitOfWork.AdherencePsychosocialRepository.Add(PC);
         unitOfWork.Complete();
         unitOfWork.Dispose();
         return(PC.Id);
     }
 }
コード例 #3
0
ファイル: BAdherence.cs プロジェクト: palladiumkenya/IQCareKe
 public int updatePsychosocialCircumstances(PsychosocialCircumstances PC)
 {
     using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext()))
     {
         unitOfWork.AdherencePsychosocialRepository.Update(PC);
         result = unitOfWork.Complete();
         unitOfWork.Dispose();
         return(result);
     }
 }