sperezintexas
|
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? |
Search/Create Record
Replies: 1 - Last Post: July 15, 2011 23:46
by: Csaba Toth
by: Csaba Toth
showing 1 - 2 of 2
Csaba Toth
|
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
by: Csaba Toth







