Exemplo n.º 1
0
 public void CopyFrom(VisitPractitioner vp)
 {
     this.Role         = vp.Role;
     this.Practitioner = vp.Practitioner;
     this.StartTime    = vp.StartTime;
     this.EndTime      = vp.EndTime;
 }
Exemplo n.º 2
0
 public void CopyFrom(VisitPractitioner vp)
 {
     this.Role = vp.Role;
     this.Practitioner = vp.Practitioner;
     this.StartTime = vp.StartTime;
     this.EndTime = vp.EndTime;
 }
Exemplo n.º 3
0
Arquivo: Visit.cs Projeto: nhannd/Xian
		public virtual void CopyFrom(Visit v)
		{
			this.VisitNumber.Id = v.VisitNumber.Id;
			this.VisitNumber.AssigningAuthority = v.VisitNumber.AssigningAuthority;
			this.Status = v.Status;
			this.AdmitTime = v.AdmitTime;
			this.PatientClass = v.PatientClass;
			this.PatientType = v.PatientType;
			this.AdmissionType = v.AdmissionType;
			this.Facility = v.Facility;
			this.DischargeTime = v.DischargeTime;
			this.DischargeDisposition = v.DischargeDisposition;
			this.VipIndicator = v.VipIndicator;
			//this.AmbulatoryStatus = v.AmbulatoryStatus;
			this.PreadmitNumber = v.PreadmitNumber;

			foreach (AmbulatoryStatusEnum a in v.AmbulatoryStatuses)
			{
				this.AmbulatoryStatuses.Add(a);
			}

			foreach (VisitPractitioner vp in v.Practitioners)
			{
				VisitPractitioner practitioner = new VisitPractitioner();
				practitioner.CopyFrom(vp);
				this.Practitioners.Add(practitioner);
			}

			foreach (VisitLocation vl in v.Locations)
			{
				VisitLocation location = new VisitLocation();
				location.CopyFrom(vl);
				this.Locations.Add(location);
			}

			ExtendedPropertyUtils.Update(this.ExtendedProperties, v.ExtendedProperties);
		}
Exemplo n.º 4
0
        public virtual void CopyFrom(Visit v)
        {
            this.VisitNumber.Id = v.VisitNumber.Id;
            this.VisitNumber.AssigningAuthority = v.VisitNumber.AssigningAuthority;
            this.Status               = v.Status;
            this.AdmitTime            = v.AdmitTime;
            this.PatientClass         = v.PatientClass;
            this.PatientType          = v.PatientType;
            this.AdmissionType        = v.AdmissionType;
            this.Facility             = v.Facility;
            this.DischargeTime        = v.DischargeTime;
            this.DischargeDisposition = v.DischargeDisposition;
            this.VipIndicator         = v.VipIndicator;
            //this.AmbulatoryStatus = v.AmbulatoryStatus;
            this.PreadmitNumber = v.PreadmitNumber;

            foreach (AmbulatoryStatusEnum a in v.AmbulatoryStatuses)
            {
                this.AmbulatoryStatuses.Add(a);
            }

            foreach (VisitPractitioner vp in v.Practitioners)
            {
                VisitPractitioner practitioner = new VisitPractitioner();
                practitioner.CopyFrom(vp);
                this.Practitioners.Add(practitioner);
            }

            foreach (VisitLocation vl in v.Locations)
            {
                VisitLocation location = new VisitLocation();
                location.CopyFrom(vl);
                this.Locations.Add(location);
            }

            ExtendedPropertyUtils.Update(this.ExtendedProperties, v.ExtendedProperties);
        }
Exemplo n.º 5
0
		private static VisitPractitionerDetail CreateVisitPractitionerDetail(VisitPractitioner vp, IPersistenceContext context)
		{
			var detail = new VisitPractitionerDetail
				{
					Practitioner = new ExternalPractitionerAssembler().CreateExternalPractitionerSummary(vp.Practitioner, context),
					Role = EnumUtils.GetEnumValueInfo(vp.Role, context),
					StartTime = vp.StartTime,
					EndTime = vp.EndTime
				};

			return detail;
		}