Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FilenamePOST Variables

Returns

(status = 0)

Errors

(status != 0)

Comments
login.php
  • username
  • password
  • site

An XML file containing an array of records, consisting of:

  • token
  • id (user's id)
  • provider
  • firstname
  • lastname
  • title
  • -1 : Username/Password incorrect.

Generates the API session token. Token is valid for 1 hour, but you can generate a new token at any time before then.


patientlist.php
  • site
  • token

XML file containing an array of records containing:

  • id
  • pid
  • firstname
  • lastname
  • middlename
  • phone
  • dob
  • gender
  • -1 : ERROR: Sorry, there was an error processing your data. Please correct and submit the information again.
  • -2 : You are not Authorized to perform this action
  • -3 - Invalid Token

Get a list of all patients.

Used to find patient ID's, if you don't know the patient's name.

patientsearch.php
  • token
  • firstname (optional)
  • lastname
  • site

An XML file containing:

  • id
  • pid
  • firstname
  • lastname
  • phone
  • dob
  • gender

  • -1 : Could not find results
  • -2 : You are not Authorized to perform this action
  • -3 : Invalid Token
  • -4 : Must specify firstname or lastname

Search for a patient by first name or last name.

You must specify a last name if you want to specify a first name.

example POST variables:

firstname = "Artemis", lastname="Osborne"

Returns a list of patient entries that match at least one of the search parameters.


getpatdata.php
  • site
  • pid
  • token
  • enable_date_filter (optional)
  • start_date (optional)
  • end_date (optional)
  • section_num (optional)

If enable_date_filter is not set, date filtering will be enabled. Note that the code simply checks for the existence of enable_date_filter. Set this to "1", so that it doesn't confuse people.

The date filter applies to the following sections:

#section
8Problems
9Medications
10Allergies
11Lab Tests
12Lab Test Results
13Vital Signs
15Procedures
17Immunizations
18Implantable Devices

If enable_data_filter is set and start_date is not set, the date 1970-01-01 will be used as the start date.

If enable_data_filter is set, and end_date is not set, the current date will be used as the end date. Note that this date is set by the server and not the client.


A JSON file containing data for the requested section.

Selecting any of the "demographics" sections (1-6) will return all of the demographics sections.

Selecting any of the other sections will also return the Demographics sections in addition to the selected section.

If section_num was set to zero, or no section_num was specified, all sections will be returned.


  • -1 : Error processing patient record
  • -2 : You are not authorized to perform this action
  • -3 : Invalid Token
  • -4 : Invalid section number. Must be between 0 and 21

If section 14 is selected:

  • -5 : Section 14 no longer exists


#These sections return -1 when no data is available .
8Problems
9Medications
10Allergies
11Lab Tests
12Lab Results
13Vital Signs
15Procedures
16Care Team Members
17Immunizations
18Implantable Devices
19Assessments/Treatment Plan
20Goals
21Health Concerns


Returns the CCDS sections for MU Stage 3.



Section numbers

#

section
1Patient name
2Sex
3Date of Birth
4Race
5Ethnicity
6Preferred language
7Smoking status
8Problems
9Medications
10Allergies
11Lab Tests
12Lab Test Results
13Vital Signs
15Procedures
16Care team members
17Immunizations
18Implantable device list
19Assessment and Treatment Plan
20Goals
21Health Concerns


get_ccda.php
  • site
  • pid
  • token
  • enable_date_filters (optional)
  • start_date (optional)
  • end_date (optional)


Returns the CCDS sections as a C-CDA file for the selected patient, with optional start/end date constraints.
  • -2 : You are not authorized to perform this action
  • -3 : Invalid Token

...