Esempio n. 1
0
        public CompositeIdentifierDetail CreateMrnDetail(PatientIdentifier mrn)
        {
            if (mrn == null)
                return new CompositeIdentifierDetail();

            return new CompositeIdentifierDetail(
                mrn.Id,
                EnumUtils.GetEnumValueInfo(mrn.AssigningAuthority));
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="note"></param>
 /// <param name="order"></param>
 /// <param name="patient"></param>
 /// <param name="patientProfile"></param>
 /// <param name="noteAuthor"></param>
 /// <param name="recipients"></param>
 /// <param name="diagnosticServiceName"></param>
 /// <param name="isAcknowledged"></param>
 public OrderNoteboxItem(Note note, Order order, Patient patient, PatientProfile patientProfile,
                         Staff noteAuthor, IList recipients,
                         string diagnosticServiceName, bool isAcknowledged)
 {
     _noteRef           = note.GetRef();
     _orderRef          = order.GetRef();
     _patientRef        = patient.GetRef();
     _patientProfileRef = patientProfile.GetRef();
     _mrn                   = patientProfile.Mrn;
     _patientName           = patientProfile.Name;
     _dateOfBirth           = patientProfile.DateOfBirth;
     _accessionNumber       = order.AccessionNumber;
     _diagnosticServiceName = diagnosticServiceName;
     _category              = note.Category;
     _urgent                = note.Urgent;
     _postTime              = note.PostTime;
     _author                = noteAuthor;
     _onBehalfOfGroup       = note.OnBehalfOfGroup;
     _isAcknowledged        = isAcknowledged;
     _recipients            = recipients;
 }
Esempio n. 3
0
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="note"></param>
		/// <param name="order"></param>
		/// <param name="patient"></param>
		/// <param name="patientProfile"></param>
		/// <param name="noteAuthor"></param>
		/// <param name="recipients"></param>
		/// <param name="diagnosticServiceName"></param>
		/// <param name="isAcknowledged"></param>
		public OrderNoteboxItem(Note note, Order order, Patient patient, PatientProfile patientProfile,
			Staff noteAuthor, IList recipients,
			string diagnosticServiceName, bool isAcknowledged)
		{
			_noteRef = note.GetRef();
			_orderRef = order.GetRef();
			_patientRef = patient.GetRef();
			_patientProfileRef = patientProfile.GetRef();
			_mrn = patientProfile.Mrn;
			_patientName = patientProfile.Name;
			_dateOfBirth = patientProfile.DateOfBirth;
			_accessionNumber = order.AccessionNumber;
			_diagnosticServiceName = diagnosticServiceName;
			_category = note.Category;
			_urgent = note.Urgent;
			_postTime = note.PostTime;
			_author = noteAuthor;
			_onBehalfOfGroup = note.OnBehalfOfGroup;
			_isAcknowledged = isAcknowledged;
			_recipients = recipients;
		}