internal ED ToEDUtil(ST o) { if (o == null) { return(null); } // Copy ED retVal = new ED(o.Value, o.Language); retVal.ControlActExt = o.ControlActExt; retVal.ControlActRoot = o.ControlActRoot; retVal.Flavor = o.Flavor; retVal.NullFlavor = o.NullFlavor; retVal.Translation = new SET <ED>(o.Translation); retVal.UpdateMode = o.UpdateMode; retVal.ValidTimeHigh = o.ValidTimeHigh; retVal.ValidTimeLow = o.ValidTimeLow; retVal.MediaType = "text/plain"; retVal.Representation = EncapsulatedDataRepresentation.TXT; return(retVal); }
/// <summary> /// Semantic equals /// </summary> public override BL SemanticEquals(IAny other) { if (other == null) { return(null); } else if (this.IsNull && other.IsNull) { return new BL() { NullFlavor = NullFlavorUtil.CommonAncestorWith(this.NullFlavor, other.NullFlavor) } } ; else if (this.IsNull ^ other.IsNull) { return new BL() { NullFlavor = DataTypes.NullFlavor.NotApplicable } } ; ST otherSt = other as ST; if (otherSt != null) { return(otherSt.Value != null?otherSt.Value.Equals(this.Value) : this.Value == null); } ED otherEd = other as ED; // ST may also be equal to ED when value is text/plain if (otherEd.MediaType == "text/plain") { return(otherEd.Value != null?otherEd.Value.Equals(this.Value) : this.Value == null); } return(false); } }
/// <summary> /// Create a new instance of the CV data type with the parameters specified /// </summary> /// <param name="code">The initial code</param> /// <param name="codeSystem">The code system the code was picked from</param> /// <param name="codeSystemName">The name of the code system</param> /// <param name="codeSystemVersion">The version of the code system</param> /// <param name="displayName">The display name for the code</param> /// <param name="originalText">The original text, the reason the code was selected</param> public CV(T code, string codeSystem, string codeSystemName, string codeSystemVersion, ST displayName, ED originalText) : this(code, codeSystem, codeSystemName, codeSystemVersion) { this.DisplayName = displayName; this.OriginalText = originalText; }
/// <summary> /// Create a new instance of the CD data type with the parameters specified /// </summary> /// <param name="code">The initial code</param> /// <param name="codeSystem">The code system the code was picked from</param> /// <param name="codeSystemName">The name of the code system</param> /// <param name="codeSystemVersion">The version of the code system</param> /// <param name="displayName">The display name for the code</param> /// <param name="originalText">The original text, the reason the code was selected</param> public CD(T code, string codeSystem, string codeSystemName, string codeSystemVersion, ST displayName, ED originalText) : base(code, codeSystem, codeSystemName, codeSystemVersion, displayName, originalText) { }