Ejemplo n.º 1
0
        void SimpleNarrative()
        {
            const String prefix = "SimpleNarrativeOnlyReport";

            this.DeleteExamples(prefix);
            Bundle b;
            {
                BreastRadiologyDocument doc = this.MakeDoc();
                {
                    BreastRadComposition index = doc.Index;
                    index.Resource.DateElement = doc.Date;
                    index.Resource.Status      = CompositionStatus.Final;
                    index.Resource.Title       = "Simple Narrative Only Breast Radiology Report";
                    DiagnosticReport diagnosticReport = new DiagnosticReport
                    {
                        Id = "Report"
                    };
                    BreastRadReport report = index.Report.Set(new BreastRadReport(doc, diagnosticReport));

                    DiagnosticReport r = report.Resource;
                    r.Status = DiagnosticReport.DiagnosticReportStatus.Final;
                    r.Category.Add(new CodeableConcept("http://terminology.hl7.org/CodeSystem/observation-category",
                                                       "imaging"));
                    r.Code       = new CodeableConcept("http://loinc.org", "10193-1");
                    r.Conclusion = "Report Narrative conclusion.";
                    report.SetConclusionCode(BiRadsAssessmentCategoriesVS.Code_Category2);
                }
                b = doc.Write();
                String path = this.ExamplePath(prefix, b);
                b.SaveJson(path);

                this.SplitExampleBundle(b, prefix);
            }
        }
Ejemplo n.º 2
0
        void Complex()
        {
            const String prefix = "ComplexReport";

            this.DeleteExamples(prefix);
            Bundle b;
            {
                BreastRadiologyDocument doc   = this.MakeDoc();
                BreastRadComposition    index = doc.Index;
                {
                    index.Resource.DateElement = doc.Date;
                    index.Resource.Status      = CompositionStatus.Final;
                    index.Resource.Title       = "Complex Breast Radiology Report";
                    DiagnosticReport diagnosticReport = new DiagnosticReport
                    {
                        Id = "Report"
                    };
                    BreastRadReport report = index.Report.Set(new BreastRadReport(doc, diagnosticReport));

                    DiagnosticReport r = report.Resource;
                    r.Status = DiagnosticReport.DiagnosticReportStatus.Final;
                    r.Category.Add(new CodeableConcept("http://terminology.hl7.org/CodeSystem/observation-category",
                                                       "imaging"));
                    r.Code       = new CodeableConcept("http://loinc.org", "10193-1");
                    r.Conclusion = "Report Narrative conclusion.";
                    report.SetConclusionCode(BiRadsAssessmentCategoriesVS.Code_Category2);
                }

                MFindingsLeftBreast       findingLeft = index.FindingsLeftBreast;
                SectionFindingsLeftBreast flb         = findingLeft.Set(new SectionFindingsLeftBreast());
                flb.Resource.Value = BiRadsAssessmentCategoriesCS.Code_Category2;

                MGFinding mgFinding = flb.MGFinding.Set(new MGFinding());
                mgFinding.AbnormalityCyst.Append(MakeCyst());
                b = doc.Write();
                String path = this.ExamplePath(prefix, b);
                b.SaveJson(path);

                this.SplitExampleBundle(b, prefix);
            }
        }