Search/Create Record

  2 posts   Feedicon  
Replies: 1 - Last Post: July 15, 2011 23:46
by: Csaba Toth
showing 1 - 2 of 2
 
Posted: July 12, 2011 11:37 by sperezintexas
Is there an api available to search and if not found create a entry? or if found return the master index #? is this available from java interface?
 
Posted: July 15, 2011 23:46 by Csaba Toth
I assume that you mean Person entity by saying "entry".

There are EJB interfaces:
PersonManagerService EJB interface: you can "search" Person by PersonIdentifier, see:
http://kenai.com/projects/openempi/sources/source-repository/content/trunk/openempi/ejb/src/main/java/org/openhie/openempi/ejb/person/PersonQueryService.java?rev=200
public Person getPerson(String sessionKey, List<PersonIdentifier> personIdentifiers);

Other search options available on the PersonQueryService EJB interface:
findPersonsByAttributes and other:
http://kenai.com/projects/openempi/sources/source-repository/content/trunk/openempi/ejb/src/main/java/org/openhie/openempi/ejb/person/PersonQueryService.java?rev=200

"Creating" a Person: see importPerson on the PersonManagerService EJB interface (linked above).

There are also correspondent Spring bean functions for these operations: just follow the way starting from PersonManagerServiceBean.java and PersonQueryServiceBean.java.

"Master index #": there are a set of functions which handle the Identifiers coming from different sources. If a person is linked to more sources you can query the different identifiers for them.
Replies: 1 - Last Post: July 15, 2011 23:46
by: Csaba Toth
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close