private void PerformerFailButton2_Click(object sender, RoutedEventArgs e)
        {
            Performer2.SetPerformerResult(false);

            Performer2 = null;

            UpdateNowPlaying();
        }
Beispiel #2
0
        private static Procedure MakeProcedure()
        {
            Procedure p = new Procedure();
            //It automatically adds class code
            p.MoodCode = new CS<x_DocumentProcedureMood>(x_DocumentProcedureMood.Eventoccurrence);
            p.TemplateId = new LIST<II>();
            p.TemplateId.Add(new II("2.16.840.1.113883.10.20.22.4.14"));
            p.Id = new SET<II>(new II(new Guid()));
            p.Code = new CD<string>(
                "49038010",
                "2.16.840.1.113883.6.96",
                "SNOMED CT",
                null,
                "EKG",
                null);
            p.Code.OriginalText = new ED();
            p.Code.OriginalText.Reference = new TEL("#procedure1");
            p.StatusCode = new CS<ActStatus>(ActStatus.Completed);
            p.EffectiveTime = new IVL<TS>(new TS(DateTime.Today), new TS(DateTime.Today));

            Performer2 perf = new Performer2();
            perf.AssignedEntity = MakeAssignedEntity("PROCEDURES");

            p.Performer = new List<Performer2>();
            p.Performer.Add(perf);

            return p;
        }