Пример #1
0
        public PatientNoteDetail CreateNoteDetail(PatientNote note, IPersistenceContext context)
        {
            if (note == null)
                return null;

			PatientNoteCategoryAssembler categoryAssembler = new PatientNoteCategoryAssembler();
			StaffAssembler staffAssembler = new StaffAssembler();

			return new PatientNoteDetail(
        		note.GetRef(),
        		note.Comment,
        		categoryAssembler.CreateNoteCategorySummary(note.Category, context),
        		staffAssembler.CreateStaffSummary(note.Author, context),
        		note.CreationTime,
        		note.ValidRange.From,
        		note.ValidRange.Until,
        		note.IsExpired);
        }
Пример #2
0
        public PatientNoteDetail CreateNoteDetail(PatientNote note, IPersistenceContext context)
        {
            if (note == null)
            {
                return(null);
            }

            PatientNoteCategoryAssembler categoryAssembler = new PatientNoteCategoryAssembler();
            StaffAssembler staffAssembler = new StaffAssembler();

            return(new PatientNoteDetail(
                       note.GetRef(),
                       note.Comment,
                       categoryAssembler.CreateNoteCategorySummary(note.Category, context),
                       staffAssembler.CreateStaffSummary(note.Author, context),
                       note.CreationTime,
                       note.ValidRange.From,
                       note.ValidRange.Until,
                       note.IsExpired));
        }