private void CreateComponent(ProcedureModel ptProcedureModel, ClinicalDocument clinicalDoc, III hl7III) { hl7Body = clinicalDoc.Component.AsStructuredBody; functionalStatus = hl7Body.Component.Append(); hl7III = functionalStatus.Section.TemplateId.Append(); if (ptProcedureModel.root != null) { hl7III.Init(ptProcedureModel.root); } if (ptProcedureModel.code != null) { functionalStatus.Section.Code.Code = ptProcedureModel.code; } if (ptProcedureModel.codeSystem != null) { functionalStatus.Section.Code.CodeSystem = ptProcedureModel.codeSystem; } if (ptProcedureModel.codeSystemName != null) { functionalStatus.Section.Code.CodeSystemName = ptProcedureModel.codeSystemName; } if (ptProcedureModel.displayName != null) { functionalStatus.Section.Code.DisplayName = ptProcedureModel.displayName; } if (ptProcedureModel.title != null) { functionalStatus.Section.Title.Text = ptProcedureModel.title; } }
public string FillReasonForVisit(ClinicalDocument clinicalDoc, Factory hl7factory, III hl7III, PatientClinicalInformation patientinfo) { string clinicdetais = string.Empty; ptreason = new ReasonForVisitModel(); hl7Body = clinicalDoc.Component.AsStructuredBody; functionalStatus = hl7Body.Component.Append(); hl7III = functionalStatus.Section.TemplateId.Append(); hl7III.Root = ptreason.root; functionalStatus.Section.Code.CodeSystem = ptreason.codeSystem; functionalStatus.Section.Code.Code = ptreason.code; functionalStatus.Section.Code.CodeSystemName = ptreason.codeSystemName; functionalStatus.Section.Code.DisplayName = ptreason.displayName; functionalStatus.Section.Title.Text = ptreason.title; var paragraph = hl7factory.CreateStrucDocParagraph(); if (patientinfo.ptReason != null) { paragraph.Items.Add(Convert.ToString(patientinfo.ptReason.Description)); } else { paragraph.Items.Add("N/A"); } functionalStatus.Section.Text.Items.Add(paragraph); return(clinicalDoc.Xml); }
private void CreateComponent(SocialHistory ptSocialHistory, ClinicalDocument clinicalDoc, III hl7III) { hl7Body = clinicalDoc.Component.AsStructuredBody; functionalStatus = hl7Body.Component.Append(); hl7III = functionalStatus.Section.TemplateId.Append(); if (ptSocialHistory.root != null) { hl7III.Init(ptSocialHistory.root); } //if (dictionary.ContainsKey(Root2)) //{ // hl7III = functionalStatus.Section.TemplateId.Append; // hl7III.Init(dictionary.Item(Root2)); //} if (ptSocialHistory.code != null) { functionalStatus.Section.Code.Code = ptSocialHistory.code; } if (ptSocialHistory.codeSystem != null) { functionalStatus.Section.Code.CodeSystem = ptSocialHistory.codeSystem; } if (ptSocialHistory.codeSystemName != null) { functionalStatus.Section.Code.CodeSystemName = ptSocialHistory.codeSystemName; } if (ptSocialHistory.displayName != null) { functionalStatus.Section.Code.DisplayName = ptSocialHistory.displayName; } if (ptSocialHistory.title != null) { functionalStatus.Section.Title.Text = ptSocialHistory.title; } }