示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }
示例#6
0
        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);
        }
示例#7
0
        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);
        }