public static ClinicalDocument CreateDocument(string id, string title, CE code, ConfidentialityCodes confidentiality, Author author, Custodian custodian, RecordTarget recordTarget)
        {
            using (new ClinicalDocumentDesigner())
            {
                ClinicalDocument cda = new ClinicalDocument()
                {
                    Id = new II(id),
                    Code = code,
                    Confidentiality = confidentiality,
                    Title = new ST(title),
                    TypeId = new InfrastructureRootTypeId(TypeIdRoot, TypeIdExtension),
                    EffectiveTime = new TS(GetDateNow()),
                    Custodian = custodian,
                };

                cda.RealmCodes.Add(new CS(DefaultRealmCode));
                cda.Authors.Add(author);
                cda.RecordTargets.Add(recordTarget);

                return cda;
            }
        }
示例#2
0
 public Act(ActClassCodes classCode, ActMoodCodes moodCode, CE code)
 {
     this.classCodeField = classCode;
     this.moodCodeField = moodCode;
     this.codeField = code;
 }
示例#3
0
 public Section(CE code, string title)
     : this(code, new ST(title))
 {
 }
示例#4
0
 public Section(CE code, ST title)
 {
     this.Code = code;
     this.Title = title;
 }