Friday, February 10, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: 孙磊
New Today New Today: 1
New Yesterday New Yesterday: 27
User Count Overall: 20591

People Online People Online:
Visitors Visitors: 15
Members Members: 0
Total Total: 15

Online Now Online Now:

ClearCanvas Community Forums

Query Order at Server
Last Post 2010-06-20 06:30 PM by resnickj. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
phiungdaihiep
Basic Member
Basic Member
Posts:21

--
2010-06-15 07:04 AM  

hi all

i just played around the source code of RIS server. i don't know how to Load Orders from Server. i have a class inherit from OrderEntryService

[ExtensionOf(typeof(ApplicationServiceExtensionPoint))]
    [ServiceImplementsContract(typeof(orderExtend))]
    public class orderExtend : OrderEntryService
    {
        [ReadOperation]
        public IList LoadWorklist(OrderSearchCriteria criteria)
        {
            criteria.Status.In(new[] { OrderStatus.SC, OrderStatus.IP });
            IList results = this.PersistenceContext.GetBroker().Find(criteria);
            return results;
        }
    }

but the this.PersistenceContext always come with NULL value. any reply is appreciated. i cannot fingure it out.

 

thanks so much

resnickj
Senior Member
Senior Member
Posts:968

--
2010-06-15 05:15 PM  
The contract must be an interface, not a class, and the ReadOperation attribute will only be honoured if applied to a method that appears on the contract interface. So in your case, you should probably define an IOrderExtend interface, which extends IOrderEntryService, and then have your service class implement that interface.
Real-time support available to Clinical Edition and Team Edition customers
phiungdaihiep
Basic Member
Basic Member
Posts:21

--
2010-06-15 11:52 PM  

thank for reply but i still cannot do it. when i create a new services then i call it:

PlatForm.GetService(service=>service.loadorder(loadOrderrequest))

than it say: "No service provider was found that can provide the service", do i need to make a registration somewhere?

i have tried other way (modify directly to OrderEntryService) but when i call Getservice:

PlatForm.GetService(service=>service.loadorder(loadOrderrequest))

it say: "No extensions found for extension point ClearCanvas.Enterprise.Core.PersistentStoreExtensionPoint, or the extensions could not be instantiated"

 

could any body please help me. give me a sample of Load Order is so much better

 

Note: I'm running the Application Separately (without the other started). i guest may be the plugin are not loaded.

thanks so much..

 

resnickj
Senior Member
Senior Member
Posts:968

--
2010-06-20 06:30 PM  
There are examples within the existing codebase of services that inherit from other services. For example, look at IWorkflowService and its inheritors.
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.