public string FillPatientLabResult(ClinicalDocument clinicalDoc, Factory hl7factory, III hl7III, PatientClinicalInformation patientinfo) { string clinicdetais = string.Empty; ptLabResultModel = new LabResultModel(); CreateComponent(ptLabResultModel, clinicalDoc, hl7III);// Manage Problem Component FillLabResults(patientinfo, hl7factory, hl7III); return(clinicalDoc.Xml); }
private void CreateComponent(LabResultModel ptLabResultModel, ClinicalDocument clinicalDoc, III hl7III) { hl7Body = clinicalDoc.Component.AsStructuredBody; functionalStatus = hl7Body.Component.Append(); hl7III = functionalStatus.Section.TemplateId.Append(); if (ptLabResultModel.root != null) { hl7III.Init(ptLabResultModel.root); } //if (dictionary.ContainsKey(Root2)) //{ // hl7III = functionalStatus.Section.TemplateId.Append; // hl7III.Init(dictionary.Item(Root2)); //} if (ptLabResultModel.code != null) { functionalStatus.Section.Code.Code = ptLabResultModel.code; } if (ptLabResultModel.codeSystem != null) { functionalStatus.Section.Code.CodeSystem = ptLabResultModel.codeSystem; } if (ptLabResultModel.codeSystemName != null) { functionalStatus.Section.Code.CodeSystemName = ptLabResultModel.codeSystemName; } if (ptLabResultModel.displayName != null) { functionalStatus.Section.Code.DisplayName = ptLabResultModel.displayName; } if (ptLabResultModel.title != null) { functionalStatus.Section.Title.Text = ptLabResultModel.title; } }