Ejemplo n.º 1
0
        private void CreateComponent(VitalSignsCode ptSignsCode, ClinicalDocument clinicalDoc, III hl7III)
        {
            hl7Body          = clinicalDoc.Component.AsStructuredBody;
            functionalStatus = hl7Body.Component.Append();
            hl7III           = functionalStatus.Section.TemplateId.Append();
            if (ptSignsCode.root != null)
            {
                hl7III.Init(ptSignsCode.root);
            }

            if (ptSignsCode.code != null)
            {
                functionalStatus.Section.Code.Code = ptSignsCode.code;
            }

            if (ptSignsCode.codeSystem != null)
            {
                functionalStatus.Section.Code.CodeSystem = ptSignsCode.codeSystem;
            }

            if (ptSignsCode.codeSystemName != null)
            {
                functionalStatus.Section.Code.CodeSystemName = ptSignsCode.codeSystemName;
            }

            if (ptSignsCode.displayName != null)
            {
                functionalStatus.Section.Code.DisplayName = ptSignsCode.displayName;
            }

            if (ptSignsCode.title != null)
            {
                functionalStatus.Section.Title.Text = ptSignsCode.title;
            }
        }
Ejemplo n.º 2
0
        public string FillVitalSigns(ClinicalDocument clinicalDoc, Factory hl7factory, III hl7III, PatientClinicalInformation patientinfo)
        {
            string clinicdetais = string.Empty;

            ptvitalSigns = new VitalSignsCode();
            CreateComponent(ptvitalSigns, clinicalDoc, hl7III);// Manage Allergy Component
            FillVitalSignsContent(patientinfo, hl7factory);
            int count = 1;

            if (patientinfo.ptAllergies.Count > 0)
            {
                foreach (VitalSigns item in patientinfo.ptVitalSigns)
                {
                    GenerateVitalSignsEntry(item, hl7III, hl7factory, ref count);
                }
            }
            else
            {
                GenerateVitalSignsEntryEmpty(hl7III, hl7factory);
            }
            return(clinicalDoc.Xml);
        }