Beispiel #1
0
        public string FillPlanOfCare(ClinicalDocument clinicalDoc, Factory hl7factory, III hl7III, PatientClinicalInformation patientinfo)
        {
            string clinicdetais = string.Empty;

            ptPlanOfCareModel = new PlanOfCareModel();
            CreateComponent(ptPlanOfCareModel, clinicalDoc, hl7III);// Manage Allergy Component
            FillImmunizationContent(patientinfo, hl7factory, hl7III);
            if (patientinfo.ptAppointment != null)
            {
                FillAppointmentContent(patientinfo, hl7factory, hl7III);
            }
            return(clinicalDoc.Xml);
        }
Beispiel #2
0
        private void CreateComponent(PlanOfCareModel ptPlanOfCareModel, ClinicalDocument clinicalDoc, III hl7III)
        {
            hl7Body          = clinicalDoc.Component.AsStructuredBody;
            functionalStatus = hl7Body.Component.Append();
            hl7III           = functionalStatus.Section.TemplateId.Append();
            if (ptPlanOfCareModel.root != null)
            {
                hl7III.Init(ptPlanOfCareModel.root);
            }

            //if (dictionary.ContainsKey(Root2))
            //{
            //    hl7III = functionalStatus.Section.TemplateId.Append;
            //    hl7III.Init(dictionary.Item(Root2));
            //}

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

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

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

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

            if (ptPlanOfCareModel.title != null)
            {
                functionalStatus.Section.Title.Text = ptPlanOfCareModel.title;
            }
        }