public aECGAuthor(string name) : base("author") { _InnerName = name; if (string.Compare(name, "seriesAuthor") == 0) { Device = new aECGDevice(); Organization = new aECGOrganization(); } else if (string.Compare(name, "assignedEntity") == 0) { AssignedAuthorType = new aECGAssignedAuthorType(); Organization = new aECGOrganization("representedAuthoringOrganization"); } }
public void Set(aECGAssignedAuthorType aat) { if ((aat.AssignedDevice != null) && (aat.AssignedPerson == null)) { this.AssignedDevice = new aECGDevice("assignedDevice"); this.AssignedDevice.Set(aat.AssignedDevice); } else if ((aat.AssignedDevice == null) && (aat.AssignedPerson != null)) { this.AssignedPerson = new aECGPerson("assignedPerson"); this.AssignedPerson.Set(aat.AssignedPerson); } }
public override int Read(System.Xml.XmlReader reader) { while (reader.Read()) { if ((reader.NodeType == XmlNodeType.Comment) || (reader.NodeType == XmlNodeType.Whitespace)) { continue; } if ((string.Compare(reader.Name, Name) == 0) && (reader.NodeType == XmlNodeType.EndElement)) { return(0); } int ret = 0; if (string.Compare(reader.Name, "assignedDevice") == 0) { AssignedDevice = new aECGDevice("assignedDevice"); ret = AssignedDevice.Read(reader); } else if (string.Compare(reader.Name, "assignedPerson") == 0) { AssignedPerson = new aECGPerson("assignedPerson"); ret = AssignedPerson.Read(reader); } if (ret != 0) { return(ret); } } return(-1); }
public void Set(aECGDevice msd) { if ((this.Id != null) && (msd.Id != null)) { this.Id.Root = msd.Id.Root; this.Id.Extension = msd.Id.Extension; } this.Code.Code = msd.Code.Code; this.Code.CodeSystem = msd.Code.CodeSystem; this.Code.CodeSystemName = msd.Code.CodeSystemName; this.Code.DisplayName = msd.Code.DisplayName; this.manufacturerModelName = msd.manufacturerModelName; this.softwareName = msd.softwareName; if ((this.PlayedManufacturedDevice != null) && (msd.PlayedManufacturedDevice != null)) { this.PlayedManufacturedDevice.ManufacturerOrganization.Set(msd.PlayedManufacturedDevice.ManufacturerOrganization); } }