Jump to content


Photo
- - - - -

send xml from pro-iv to a web service


4 replies to this topic

#1 Dan Shreeve

Dan Shreeve

    Member

  • Members
  • PipPip
  • 17 posts
  • Gender:Male
  • Location:Olathe, KS

Posted 20 May 2009 - 08:40 PM

Anyone know how to send xml from pro-iv to a web service running in a third party application on the client machine. I am working on some pro-iv functions that need to interact with an e-proscription software via the web service.


Running pro-iv ver 5.5 with SQL server

#2 Chris Mackenzie

Chris Mackenzie

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 368 posts
  • Gender:Male
  • Location:Bristol, United Kingdom

Posted 21 May 2009 - 07:39 AM

Anyone know how to send xml from pro-iv to a web service running in a third party application on the client machine. I am working on some pro-iv functions that need to interact with an e-proscription software via the web service.


Running pro-iv ver 5.5 with SQL server

One way would be for the external app to issue a bus&task call (p4gateway) to run an xml report - that can output along the bus. But you might want to read the p4 documentation on the subject as you may be able to use p4 web services.
The content and views expressed in this message are those
of the poster and do not represent those of any organisation.

#3 Dan Shreeve

Dan Shreeve

    Member

  • Members
  • PipPip
  • 17 posts
  • Gender:Male
  • Location:Olathe, KS

Posted 21 May 2009 - 01:42 PM

Anyone know how to send xml from pro-iv to a web service running in a third party application on the client machine. I am working on some pro-iv functions that need to interact with an e-proscription software via the web service.


Running pro-iv ver 5.5 with SQL server

One way would be for the external app to issue a bus&task call (p4gateway) to run an xml report - that can output along the bus. But you might want to read the p4 documentation on the subject as you may be able to use p4 web services.


The communication would be initiated from the pro-iv side. For example to start the e-proscription sofware, set the current user, and select a specific patient in the e-prosciption software when I press a button in my pro-iv function to proscribe medication.

To select the current patient the following xml needs to be presented to the webservice:

<Request>

<
RequestId>ABC123</RequestId>

<
PatientId>12</PatientId>

</
Request>



#4 Dan Shreeve

Dan Shreeve

    Member

  • Members
  • PipPip
  • 17 posts
  • Gender:Male
  • Location:Olathe, KS

Posted 21 May 2009 - 02:35 PM

Please ignore my bad spelling.... should read e-prescription

#5 Chris Mackenzie

Chris Mackenzie

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 368 posts
  • Gender:Male
  • Location:Bristol, United Kingdom

Posted 22 May 2009 - 01:52 PM

Anyone know how to send xml from pro-iv to a web service running in a third party application on the client machine. I am working on some pro-iv functions that need to interact with an e-proscription software via the web service.


Running pro-iv ver 5.5 with SQL server

One way would be for the external app to issue a bus&task call (p4gateway) to run an xml report - that can output along the bus. But you might want to read the p4 documentation on the subject as you may be able to use p4 web services.


The communication would be initiated from the pro-iv side. For example to start the e-proscription sofware, set the current user, and select a specific patient in the e-prosciption software when I press a button in my pro-iv function to proscribe medication.

To select the current patient the following xml needs to be presented to the webservice:

<Request>

<
RequestId>ABC123</RequestId>

<
PatientId>12</PatientId>

</
Request>



OK - if the app is running on the same client as the p4 client then you simply run the xml report, then transfer it to the PC, and then start the client app with the name of the file on the command line (probably) something like :-

#X = CLIENT.GETPATH('%TEMP%',$PATH)
#X = CLIENT.SEND("your_server_path_and_file","your_client_path_and_filename")
#X = CLIENT.EXECUTE("your_app_name " + "your_client_path_and_filename")

Depending on registered file types in your client you may or may not need to specify the app to open the file you transferred to the client but given that it's likely .xml you probably need to have the name of the executable.

Read the manuals for full details of these commands.
HTH,
The content and views expressed in this message are those
of the poster and do not represent those of any organisation.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users