コード例 #1
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddAdvancedDirectivesComponent(StructuredBody sb)
        {
            Section section = new Section();
            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.21"));

            section.Code = new CE<string>(
                "42348-3",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "Advance Directives",
                null);

            section.Title = new ST("ADVANCE DIRECTIVES");

            section.Text = new ED();
            section.Text = "No advance directives exist for this patient.";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
        private Ca.Infoway.Messagebuilder.Model.Ccda_r1_1.Consultationnote.Component2 CreateComponent()
        {
            StructuredBody body = new StructuredBody();

            body.Component.Add(CreateReasonForVisit());
            body.Component.Add(CreateGeneralStatus());

            Ca.Infoway.Messagebuilder.Model.Ccda_r1_1.Consultationnote.Component2 component = new Ca.Infoway.Messagebuilder.Model.Ccda_r1_1.Consultationnote.Component2();
            component.Component2Choice = body;
            return(component);
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddVitalSignsComponent(StructuredBody sb)
        {
            Section section = new Section();
            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.4"));

            section.Code = new CE<string>(
                "8716-3",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "VITAL SIGNS",
                null);

            section.Title = new ST("VITAL SIGNS");

            section.Text = new ED("Vitals Normal:<list listType=\"ordered\"> <item><content ID=\"vit1\">Height - 70 in</content></item> <item><content ID=\"vit2\">Weight - 220 lb_en</content></item> </list>");
            section.Text.MediaType = "text/x-hl7-text+xml";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddSocialHistoryComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.17"));

            section.Code = new CE<string>(
                "29762-2",
                "2.16.840.1.113883.6.1",
                null,
                null,
                "SOCIAL HISTORY",
                null);

            section.Title = new ST("SOCIAL HISTORY");

            section.Text = new ED();
            section.Text = "<list listType=\"ordered\"><item><content ID=\"sochist1\">50 pack year smoking history, quit 1997</content></item><item><content ID=\"sochist2\">etoh (alcohol) daily, patient reports varies from 1 to many cocktails per day</content></item></list>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Entry e = new Entry();
            e.SetClinicalStatement(MakeObservation("SOCIAL HISTORY"));
            section.Entry.Add(e);

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddResultsSection(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.3.1"));

            section.Code = new CE<string>(
                "30954-2",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "RESULTS",
                null);

            section.Title = new ST("RESULTS");

            section.Text = new ED();
            section.Text = "<list listType=\"ordered\"><item><content ID=\"result1\">TSH - 6 mIU/L (abnormal, high)</content></item><item><content ID=\"result2\">Hgb a1c - 8% (abnormal, high)</content></item></list>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Entry e = new Entry();
            e.SetClinicalStatement(MakeOrganizer());
            section.Entry.Add(e);

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #6
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddReasonForVisitComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.12"));

            section.Code = new CE<string>(
                "29299-5",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "REASON FOR VISIT",
                null);

            section.Title = new ST("REASON FOR VISIT");

            section.Text = new ED();
            section.Text = "<paragraph>Recent falls</paragraph>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #7
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddReasonForReferralComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("1.3.6.1.4.1.19376.1.5.3.1.3.1"));

            section.Code = new CE<string>(
                "42349-1",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "REASON FOR REFERRAL",
                null);

            section.Title = new ST("REASON FOR REFERRAL");

            section.Text = new ED();
            section.Text = "<paragraph>Geriatric assessment and management for concerns about dementia and falling</paragraph>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #8
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddDischargeInstructionsComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.41"));

            section.Code = new CE<string>(
                "8653-8",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "HOSPITAL DISCHARGE INSTRUCTIONS",
                null);

            section.Title = new ST("Hospital Discharge Instructions");

            section.Text = new ED();
            section.Text = "";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #9
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddProblemListComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.5.1"));

            section.Code = new CE<string>(
                "11450-4",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "PROBLEM LIST",
                null);

            section.Title = new ST("PROBLEM LIST");

            section.Text = new ED();
            section.Text = "<content ID=\"problems\"/><list listType=\"ordered\"><item><content ID=\"problem1\">Hypertension</content></item><item><content ID=\"problem2\">Hyperlipidemia</content></item></list>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Entry e = new Entry();
            e.SetClinicalStatement(MakeAct("PROBLEM LIST"));
            section.Entry.Add(e);

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #10
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddPlanOfCareComonent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.10"));

            section.Code = new CE<string>(
                "18776-5",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "Treatment plan",
                null);

            section.Title = new ST("PLAN OF CARE");

            section.Text = new ED();
            section.Text = "<paragraph>I have discussed this request for geriatric assessment and management with the patient and his wife who agree with this plan.</paragraph>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #11
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddMedicationComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.1.1"));

            section.Code = new CE<string>(
                "10160-0",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "HISTORY OF MEDICATION USE",
                null);

            section.Title = new ST("MEDICATIONS");

            section.Text = new ED();
            section.Text = "<list listType=\"ordered\"><item><content ID=\"medication1\">Lisinopril - 20mg by mouth once daily</content></item></list>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Entry e = new Entry();
            e.SetClinicalStatement(MakeSubstanceAdministration("MEDICATIONS"));
            section.Entry.Add(e);

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #12
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddInstructionComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.45"));
            section.Id = new II(new Guid());

            section.Code = new CE<string>(
                "69730-0",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "Instructions",
                null);

            section.Title = new ST("INSTRUCTIONS");

            section.Text = new ED();
            section.Text = "<paragraph>Patient is to schedule follow-up appointment with PCP after consultation.</paragraph>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #13
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddImmunizationComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.2.1"));

            section.Code = new CE<string>(
                "11369-6",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "History of immunizations",
                null);

            section.Title = new ST("IMMUNIZATIONS");

            section.Text = new ED();
            section.Text = "<list listType=\"ordered\"><item><content ID=\"immunization1\">Influenza, seasonal</content></item></list>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Entry e = new Entry();
            e.SetClinicalStatement(MakeSubstanceAdministration("IMMUNIZATIONS"));

            section.Entry = new List<Entry>();
            section.Entry.Add(e);

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #14
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddFucntionalAndConginitiveStatusComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.14"));

            section.Code = new CE<string>(
                "47420-5",
                "2.16.840.1.113883.6.1");

            section.Title = new ST("FUNCTIONAL STATUS");

            section.Text = new ED();
            section.Text = "Cognitive impairment. Patient uses cane for walking.";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #15
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddFamilyHistoryComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.15"));

            section.Code = new CE<string>(
                "10157-6",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "Family History",
                null);

            section.Title = new ST("FAMILY HISTORY");

            section.Text = new ED();
            section.Text = "<paragraph>Non-contributory</paragraph>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #16
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void MakeCCDABody(ClinicalDocument ccda)
        {
            StructuredBody sb = new StructuredBody();

            AddAdvancedDirectivesComponent(sb);
            AddDischargeInstructionsComponent(sb);
            AddAllergiesComponent(sb);
            AddReasonForVisitComponent(sb);
            AddFamilyHistoryComponent(sb);
            AddFucntionalAndConginitiveStatusComponent(sb);
            AddImmunizationComponent(sb);
            AddInstructionComponent(sb);
            AddMedicationComponent(sb);
            AddPlanOfCareComonent(sb);
            AddProblemListComponent(sb);
            AddProcedureComponent(sb);
            AddReasonForReferralComponent(sb);
            AddResultsSection(sb);
            AddSocialHistoryComponent(sb);
            AddVitalSignsComponent(sb);

            Component2 comp2 = new Component2(ActRelationshipHasComponent.HasComponent, true);
            comp2.SetBodyChoice(sb);

            ccda.Component = comp2;
        }
コード例 #17
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddProcedureComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.7.1"));

            section.Code = new CE<string>(
                "47519-4",
                "2.16.840.1.113883.6.1",
                "LOINC",
                null,
                "HISTORY OF PROCEDURES",
                null);

            section.Title = new ST("PROCEDURES");

            section.Text = new ED();
            section.Text = "<list listType=\"ordered\"><item><content ID=\"procedure1\">EKG (2012/10/15)</content></item><item><content ID=\"procedure2\">Cholecystectomy (2006/06/01)</content></item></list>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Entry e = new Entry();
            e.SetClinicalStatement(MakeProcedure());
            section.Entry.Add(e);

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }
コード例 #18
0
ファイル: Program.cs プロジェクト: brajpanda/EverestPoC
        private static void AddAllergiesComponent(StructuredBody sb)
        {
            Section section = new Section();

            section.TemplateId = new LIST<II>();
            section.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.2.6.1"));

            section.Code = new CE<string>("48765-2", "2.16.840.1.113883.6.1");

            section.Title = new ST("ALLERGIES");

            section.Text = new ED();
            section.Text = "<list listType=\"ordered\"><item><content ID=\"allergy1\">Allergy to Penicillin drugs</content></item><item><content ID=\"allergy2\">Allergy to Bee Pollen</content></item></list>";
            section.Text.Representation = EncapsulatedDataRepresentation.XML;
            section.Text.MediaType = "text/x-hl7-text+xml";

            Entry e = new Entry();
            e.TypeCode = new CS<x_ActRelationshipEntry>(x_ActRelationshipEntry.DRIV);
            e.SetClinicalStatement(MakeAct("ALLERGIES"));
            section.Entry = new List<Entry>();
            section.Entry.Add(e);

            Component3 comp3 = new Component3(ActRelationshipHasComponent.HasComponent, true);
            comp3.Section = section;

            sb.Component.Add(comp3);
        }