Skip to content
sgilroy edited this page Jan 20, 2012 · 1 revision

PianoChord is a tool created by Scott Gilroy for executing queries against an Indivo X server without the need to write any code. PianoChord is written in ActionScript/Flex and uses the ActionScript version of the Indivo client libraries. A recent build is available on Github, and the source is currently part of the CollaboRhythm repository (although CollaboRhythm is not required to use PianoChord, and PianoChord can be used on other Indivo X servers). Note that the UI isn’t great. PianoChord is useful for a variety of ad-hoc testing. Writing test code in Python, Java, or ActionScript can be an alternative to using PianoChord, but having a tool to execute queries makes more sense for some situations.

PianoChord is available here: https://github.com/downloads/newmediamedicine/CollaboRhythm/PianoChord.0.3.zip 1.9MB

Note that you will need to install Adobe AIR in order to install PianoChord: http://get.adobe.com/air/

How to Use

  1. Enter valid credentials:

    • Host: http://184.106.136.151:8000
    • Consumer: chrome
    • Consumer Secret: chrome_secret65238
    • Username: rpoole
    • Password: rpoole-dope75
  2. Click Login. If you have specified valid credentials, including a valid Indivo chrome consumer key and secret, you should end up with values for Access Token Key and Access Token Secret. If not, check the values used and you internet connection.

  3. Enter a valid Indivo X command in the Command field. PianoChord will parse filed names such as {record_id} and give you input boxes (Command Parameters) to enter values in. Some good queries to start with:

     GET /accounts/{account_id}/records/
     GET /records/{record_id}
     POST /records/{record_id}/documents/
     GET /records/{record_id}/documents/
     GET /records/{record_id}/documents/?type={type}
     GET /records/{record_id}/documents/{document_id}
     GET /records/{record_id}/reports/minimal/vitals/
     GET /records/{record_id}/reports/minimal/vitals/{category}/
    
  4. Enter the values for Command Parameters as appropriate. Examples:

    • account_id: rpoole@records.media.mit.edu
    • record_id: 1a80497e-b996-49a7-bd0d-cd3f797ede05
    • type: VitalSign
    • document_id: 2afb78e9-ebba-42c1-9f06-8296db4d35f0
    • category: Blood Pressure Diastolic
  5. If you query requires any data (such as an XML document for the Indivo document to create or update) then enter it into the Data field. Otherwise, ensure that Data is blank.

  6. Click Submit via Indivo Client

Clone this wiki locally