Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "OHF Bridge Documentation"

(API Clarification)
(API Clarification)
Line 12: Line 12:
 
==API Clarification==
 
==API Clarification==
 
===SessionContext===
 
===SessionContext===
The SessionContext is an object you should send in almost every transaction of the bridge. The SessionContext contains session information needed in order to resolve the resources and parameters the transaction will work with.
+
The '''SessionContext''' is an object you should send in almost every transaction of the bridge. The SessionContext contains session information needed in order to resolve the resources and parameters the transaction will work with.
 
The SessionContext contains the following:
 
The SessionContext contains the following:
 
* User: The user name of the user of the application. Needed for ATNA Auditing
 
* User: The user name of the user of the application. Needed for ATNA Auditing
Line 21: Line 21:
  
 
===Sending documents===
 
===Sending documents===
In beta 3 we've changed the name of the methods to clarify the document submission process and make testing for Connectathon 2007 as easy as possible. These are the only submission options for Connectathon 2007 testing.
+
In beta 3 we've changed the name of the methods to clarify the document submission process and make testing for Connectathon 2007 as easy as possible. This is the only submission option for Connectathon 2007 testing.
  
 
* '''SubmitDocument''' (use for Connectathon Tests 11746, 11748, 11742, 11743)
 
* '''SubmitDocument''' (use for Connectathon Tests 11746, 11748, 11742, 11743)
Line 34: Line 34:
  
 
===Searching for Documents===
 
===Searching for Documents===
 +
In beta 3 we've changed the name of the methods to clarify the document search process and make testing for Connectathon 2007 as easy as possible.
 +
 +
* '''QueryDocuments''' (use for Connectathon Tests 11801, 11802, 11923, 11927, 11936, 11940, 11949, 11950, 11741)
 +
** This service accepts one of two query request objects and a set of query preferences. By adjusting each of these, you can complete the list of tests above.
 +
** To complete 11801, populate query arguments for either query request object, but on the '''documentQueryPreferencesType''' be sure that the '''returnReferencesOnly''' preference is set to 'true'. To complete 11802, do the same thing, but set returnReferencesOnly to 'false'.
 +
** To complets 11949, populate query arguments for either query request object, but on the '''documentQueryPreferencesType''' be sure that the '''returnReferencesOnly''' AND the '''storedQuery''' preferences are BOTH set to 'true'. To complete 11950, do the same thing but set returnReferencesOnly to 'false'.
 +
 
* '''DateTimeRangeType''' is used for searching a document with date constraints.  
 
* '''DateTimeRangeType''' is used for searching a document with date constraints.  
 
** There might be more then one DateTimeRangeType in a search. There are five types of DateTimeRangeType distinguished by their '''AttributeName''':
 
** There might be more then one DateTimeRangeType in a search. There are five types of DateTimeRangeType distinguished by their '''AttributeName''':
Line 41: Line 48:
 
*** submissionTime
 
*** submissionTime
 
*** lastUpdateTime
 
*** lastUpdateTime
** Time/date ('''To''' and '''From''') must follow this format: '''YYYY[MM[DD]]'''
+
** Time/date ('''To''' and '''From''') must follow this format: '''YYYY[[[[MM[DD]]HH]MM]SS]'''
  
 
===Patient ID===
 
===Patient ID===
Line 74: Line 81:
  
 
===View Your Logs===
 
===View Your Logs===
We 'strongly' advise that you enable the viewing of OHF Bridge logs via your application. Transaction details as well as transaction payload is recorded there, thus capturing necessary information you will need to verify that you have properly executed a test for Connectathon 2007. You can retrieve OHF Bridge logs, customized for your application using the '''GetMyLog''' Message.
+
We ''strongly'' advise that you enable the viewing of OHF Bridge logs via your application. Transaction details as well as transaction payload is recorded there, thus capturing necessary information you will need to verify that you have properly executed a test for Connectathon 2007. You can retrieve OHF Bridge logs, customized for your application using the '''GetMyLog''' Message.

Revision as of 14:23, 13 November 2006

This page will try to supply missing documentation problems occurring due to the frequent updates and new requirements we receive from the IHE Connectathon 2007 tests.

Changes in Beta 3 Web services API

  • Changing pidType to patientIdType in order to avoid HL7 namespace conflicts.
  • Adding a "is PHAD" boolean to the RHIO config
  • Changed the names of the send document operations and added one that suits the IHE Connectathon 2007 most (see API clarifications)
  • In the XDSDocType, changed the name of EncodedDocument to Base64EncodedDocument
  • In DateTimeRangeType changes attribute to attributeName (make it more clear)
  • In FindDocumentsByPatientId using PatientIdType for the patient type instead of a string
  • In DocumentSearchType changed the PatientID from String to be a PatientIdType

API Clarification

SessionContext

The SessionContext is an object you should send in almost every transaction of the bridge. The SessionContext contains session information needed in order to resolve the resources and parameters the transaction will work with. The SessionContext contains the following:

  • User: The user name of the user of the application. Needed for ATNA Auditing
  • SessionID: Any string you like. Used in order to synchronize logs in the client and server side. This way you can look up in teh server's log the logs for session ### and match them with the client log.
  • RhioName: The name of the RHIO you would like to work with. You may get the list of RHIOs configured in the bridge using RhioConfig[] GetRhios()
  • UserApplicationName: The application name (CapMed, OpenEMR, etc). Needed for ATNA Auditing
  • UserFacilityName: The facility name (MyClinic, etc). Needed for ATNA Auditing

Sending documents

In beta 3 we've changed the name of the methods to clarify the document submission process and make testing for Connectathon 2007 as easy as possible. This is the only submission option for Connectathon 2007 testing.

  • SubmitDocument (use for Connectathon Tests 11746, 11748, 11742, 11743)
    • This service accepts a base 64 encoded, CDA R2 formatted document encoded using the popular Base64, and other necessary XDS Metadata needed for submission. This service will automatically extract XDS Metadata from this document and supplement the metadata with values from a DocumentSubmissionMetadataType object. Successful execution of this request will satisfy Test 11746 and 11742.
    • To replace a document (Test 11748) additionally include th UUID of the parent document you wish to be replaced. This UUID is most easily obtained by issuing a query for the document you want to replace.
    • Instructions for submitting a document over TLS (Test 11743) will be posted soon.
    • An example of this object will be posted soon.

Bridge users must provide the patientID and their sourceID (an OID) along with the codes they feel best describe the submission they are executing. These codes can be fixed, in many cases, based on the kind of application you own. Choices of codes can be found here. A parent document UUID must be provided in the case of document replacement.

AN ASIDE: General comment regarding the "DecodedDocument" field. Please ignore it. We had placed it there to overcome a problem we had with SOAP object translation and we intend to remove it soon.

Searching for Documents

In beta 3 we've changed the name of the methods to clarify the document search process and make testing for Connectathon 2007 as easy as possible.

  • QueryDocuments (use for Connectathon Tests 11801, 11802, 11923, 11927, 11936, 11940, 11949, 11950, 11741)
    • This service accepts one of two query request objects and a set of query preferences. By adjusting each of these, you can complete the list of tests above.
    • To complete 11801, populate query arguments for either query request object, but on the documentQueryPreferencesType be sure that the returnReferencesOnly preference is set to 'true'. To complete 11802, do the same thing, but set returnReferencesOnly to 'false'.
    • To complets 11949, populate query arguments for either query request object, but on the documentQueryPreferencesType be sure that the returnReferencesOnly AND the storedQuery preferences are BOTH set to 'true'. To complete 11950, do the same thing but set returnReferencesOnly to 'false'.
  • DateTimeRangeType is used for searching a document with date constraints.
    • There might be more then one DateTimeRangeType in a search. There are five types of DateTimeRangeType distinguished by their AttributeName:
      • creationTime
      • serviceStartTime
      • serviceStopTime
      • submissionTime
      • lastUpdateTime
    • Time/date (To and From) must follow this format: YYYY[[[[MM[DD]]HH]MM]SS]

Patient ID

Note that we are using a PatientIdTyp object when referring to patient id, we are not using any longer a simple string. The PatientIdType object contains:

  • The idNumber (string) which is the id, for example 16edfc6d4bc341a.
  • An AssigningAuthorityType which is an object containing the attributes of the AssigningAuthority which contains:
    • namespaceId (string): the namespace ID. This attribute is allowed for PIX/PDQ but it's use is prohibited in XDS. The value used for PIX/PDQ for Connectathon is HIMSS2005.
    • universalId (string) : in the connectathon it will be 1.3.6.1.4.1.21367.2005.3.7
    • universalIdType (string) : This is always ISO
    • useDefaultAssigningAuthority (boolean) : Default is false. If it is true, then if case the AssigningAuthority is empty, the PIX server AssigningAuthority details will be used for the client.

Audit

All the Audit calls are receiving a AuditMessageType object which contains:

  • eventOutcomeIndicator(intiger) The eventOutcomeIndicator should be one of
    • 0 : Success
    • 4 : Minor failure
    • 8 : Serious failure
    • 12: Major failure; action made unavailable
  • userIDActiveParticipantConsumer(string): Identity of the consumer
  • userIDActiveParticipantRegistry(string): Identity of the registry
  • auditSourceId(string): Identity of the participant of the source
  • participantObjectId(string): Identity of the participant of the object
  • participantObjectQuery(string): Identity of the participant of the query

The methods exposed (which using the above object) are:

  • AuditPhiExport
  • AuditPhiImport
  • AuditLogin
  • AuditLogout
  • AuditLoginFailure

View Your Logs

We strongly advise that you enable the viewing of OHF Bridge logs via your application. Transaction details as well as transaction payload is recorded there, thus capturing necessary information you will need to verify that you have properly executed a test for Connectathon 2007. You can retrieve OHF Bridge logs, customized for your application using the GetMyLog Message.

Back to the top