public override bool IsExactly(IDeepComparable other)
        {
            var otherT = other as DeviceUseRequest;

            if (otherT == null)
            {
                return(false);
            }

            if (!base.IsExactly(otherT))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(BodySite, otherT.BodySite))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(StatusElement, otherT.StatusElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Device, otherT.Device))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Encounter, otherT.Encounter))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Identifier, otherT.Identifier))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Indication, otherT.Indication))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(NotesElement, otherT.NotesElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(PrnReason, otherT.PrnReason))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(OrderedOnElement, otherT.OrderedOnElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(RecordedOnElement, otherT.RecordedOnElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Subject, otherT.Subject))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Timing, otherT.Timing))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(PriorityElement, otherT.PriorityElement))
            {
                return(false);
            }

            return(true);
        }
示例#2
0
        public override bool IsExactly(IDeepComparable other)
        {
            var otherT = other as Location;

            if (otherT == null)
            {
                return(false);
            }

            if (!base.IsExactly(otherT))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Identifier, otherT.Identifier))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(StatusElement, otherT.StatusElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(NameElement, otherT.NameElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(DescriptionElement, otherT.DescriptionElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(ModeElement, otherT.ModeElement))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Type, otherT.Type))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Telecom, otherT.Telecom))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Address, otherT.Address))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(PhysicalType, otherT.PhysicalType))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(Position, otherT.Position))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(ManagingOrganization, otherT.ManagingOrganization))
            {
                return(false);
            }
            if (!DeepComparable.IsExactly(PartOf, otherT.PartOf))
            {
                return(false);
            }

            return(true);
        }