コード例 #1
0
ファイル: CCodePhrase.cs プロジェクト: nickvane/OpenEHR
 public CCodePhrase(TerminologyId terminologyId, List<string> codeList, string rmTypeName, string nodeId, 
     AssumedTypes.Interval<int> occurrences, CAttribute parent, object assumedValue)
     : base(rmTypeName, nodeId, occurrences, parent, assumedValue)
 {
     this.TerminologyId = terminologyId;
     this.CodeList = codeList;
 }
コード例 #2
0
        public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture,
                                           object value)
        {
            string s = value as string;

            if (s != null)
            {
                if (TerminologyId.IsValid(s))
                {
                    return(new TerminologyId(s));
                }
            }
            return(base.ConvertFrom(context, culture, value));
        }