//ACC000_00_0V
        public static async Task <NksResponse> Access_000_00_0V()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Access().Element()
                                         .CreateSimpleQuery()
                                         .AddTargets().Interventions().Done().Done()
                                         .AddConcept(BasicEntries.InterventionsStructure).Done();

            return(await builder.Execute());
        }
        //ACC000_00_03
        public static async Task <NksResponse> Access_000_00_04()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Access().Element()
                                         .CreateSimpleQuery()
                                         .AddTargets().Shapes().Done().Done()
                                         //.AddConcept(BasicEntries.Phaenomenoms).Done()
                                         .SetOrder().Tree();

            return(await builder.Execute());
        }
Esempio n. 3
0
        public static async Task <NksResponse> ACC_000_04()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Search().Proposal()
                                         .CreateSimpleQuery()
                                         .AddTargets()
                                         .Causes().AddStructure("AkutPflege_").Done()
                                         .Done()
                                         .SetSearchText("Oberfl")
                                         .SetDepth(6);

            return(await builder.Execute());
        }
        //ACC000_00_01
        public static async Task <NksResponse> Access_000_00_01()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Access().Element()
                                         .CreateSimpleQuery()
                                         .AddTargets().Interventions().Done().Done()
                                         .AddConcept(BasicEntries.InterventionsStructure).Done()
                                         .SetOrder().List();

            Console.Out.WriteLine(builder.GetPath());
            new NksJson().Display(builder.GetQuery());
            return(await builder.Execute());
        }
Esempio n. 5
0
        public static async Task <NksResponse> ACC_000_01()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Search().AdHocIntervention()
                                         .CreateSimpleQuery()
                                         .AddTargets()
                                         .Interventions().AddStructure("AkutPflege_").Done()
                                         .InterventionsBundle().AddStructure("AkutPflege_").Done()
                                         .Done()
                                         .AddConcept("TA2.0").Done()
                                         .SetDepth(20);

            return(await builder.Execute());
        }
Esempio n. 6
0
        public static async Task <NksResponse> ACC_000_03()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Search().Proposal()
                                         .CreateSimpleQuery()
                                         .AddTargets()
                                         .Interventions().AddStructure("AkutPflege_").Done()
                                         .InterventionsBundle().AddStructure("AkutPflege_").Done()
                                         .Done()
                                         .SetDepth(7)
                                         .SetSearchText("Verba");

            Console.Out.WriteLine(builder.GetPath());
            new NksJson().Display(builder.GetQuery());
            return(await builder.Execute());
        }
Esempio n. 7
0
        public static async Task <NksResponse> ACC_000_07()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Access().Element()
                                         .CreateSimpleQuery()
                                         .AddTargets()
                                         .BodyLocations().AddStructure("AkutPflege_").Done()
                                         .BodyLocationsStructure().AddStructure("AkutPflege_").Done()
                                         .Done()
                                         .AddConcept("BF75").Done()
                                         .SetOrder().List()
                                         .SetDepth(1);

            new NksJson().Display(builder.GetQuery());
            return(await builder.Execute());
        }
Esempio n. 8
0
        public static async Task <NksResponse> ACC_000_06()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Search().Catalog()
                                         .CreateSimpleQuery()
                                         .AddTargets()
                                         .Interventions().AddStructure("AkutPflege_").Done()
                                         .InterventionsBundle().AddStructure("AkutPflege_").Done()
                                         .Done()
                                         .AddAttributes()
                                         .Aged()
                                         .Female()
                                         .Done()
                                         .AddConcept("TA11.0").Done()
                                         .SetSearchText("Oberfl")
                                         .SetDepth(20);

            new NksJson().Display(builder.GetQuery());
            return(await builder.Execute());
        }
Esempio n. 9
0
        public static async Task <NksResponse> ACC_000_02()
        {
            SimpleQueryBuilder builder = Nks.NewConnection(Server).PrepareRequest().Search().AdHocIntervention()
                                         .CreateSimpleQuery()
                                         .AddTargets()
                                         .Interventions().AddStructure("AkutPflege_").Done()
                                         .InterventionsBundle().AddStructure("AkutPflege_").Done()
                                         .Done()
                                         .AddConcept("PC1115").Done()
                                         .AddConcept("TA2.0").Done()
                                         .AddConcept("UA0").Done()
                                         .AddConcept("BA293").Done()
                                         .AddConcept("PA50").Done()
                                         .SetDepth(10);

            Console.Out.WriteLine(builder.GetPath());
            new NksJson().Display(builder.GetQuery());
            return(await builder.Execute());
        }
        public async static void Workflow_001()
        {
            Nks nks = Nks.NewConnection(Server);

            SimpleQueryBuilder phenomenonsRequest = nks.PrepareRequest().Search().Catalog()
                                                    .CreateSimpleQuery()
                                                    .AddTargets().Phenomenons().Done().Done()
                                                    .SetSearchText("Zustand")
                                                    .DefineTemplate().PhenomenonsTemplate().Done();

            NksResponse shapes = await phenomenonsRequest.Execute();

            new NksJson().Display(phenomenonsRequest.GetQuery());
            NksEntry shape = shapes.Elements[0];

            new NksJson().Display(shape);

            SimpleQueryBuilder linkRequest = nks.PrepareRequest().Search().Link()
                                             .CreateSimpleQuery()
                                             .AddConcept(shape)
                                             .AddConcept("IA123").AddStructure("Blub").SetDomain("welt").Done()
                                             .AddTargets().Causes().Done().Done();

            NksResponse causes = await linkRequest.Execute();

            NksEntry cause = causes.Elements[1];

            SimpleQueryBuilder interventionRequest = nks.PrepareRequest().Search().Link()
                                                     .CreateSimpleQuery()
                                                     .AddConcept(cause).AddConcept(shape)
                                                     .AddTargets().Interventions().Done().Done();

            NksResponse interventions = await interventionRequest.Execute();

            //new NksJson().Display(interventions);

            SimpleQueryBuilder correlationRequest = nks.PrepareRequest().Search().Correlation()
                                                    .CreateSimpleQuery()
                                                    .AddConcept(cause)
                                                    .AddTargets().Causes().Done().Done();
            //causes
        }