Пример #1
0
 public void UpdateNote(PatientNote note, PatientNoteDetail detail)
 {
     // the only properties of the note that can be updated is the ValidRange
     // and only if it is not already expired
     if (!note.IsExpired)
         note.ValidRange.Until = detail.ValidRangeUntil;
 }
Пример #2
0
        public PatientNote CreateNote(PatientNoteDetail detail, Staff author, IPersistenceContext context)
        {
            PatientNoteCategory category = context.Load<PatientNoteCategory>(detail.Category.NoteCategoryRef, EntityLoadFlags.Proxy);
            PatientNote note = new PatientNote(author, category, detail.Comment);
            note.ValidRange.Until = detail.ValidRangeUntil;

            return note;
        }