This document is a guide for developers who are creating applications for accessing Patient Health Information using Amrita HIS API.
The API is based on read-only HTTPS enabled RESTful URLs. All requests are in the following format, with parameters being passed as POST. The parameters depend on the type of API Name. The format of the URL is as shown below:
https://(baseUrl)/hisapi/(apiName)
 Capable of sending POST requests as a RESTful URL along with the parameters.
 Capable of receiving response in JSON and XML formats.
 Capable of downloading the response as a file.
 Capable of storing a Cookie.
 Capable of handling "https" connections.
Client authentication is performed using a username and password. These credentials can be obtained by contacting the health care facility directly. The login URL is as shown below, where baseURL is provided by the health care facility:
https://(baseURL)/hisapi/loginFollowing POST parameters are required for this call:
| User Name | String | Yes |
| Password | String | Yes |
The credentials are verified by the server and a security token ('Credential' cookie) is sent back on successful validation. All the subsequent requests are required to pass this token. If the access token is missing or expired, the API will return the following code: HTTP Status 401 Unauthorized response.
The patient selection URL is as shown below:
https://(baseUrl)/hisapi/getPatientFollowing POST parameters are supported for this call:
| First Name | String | Yes |
| Middle Name | String | No |
| Last Name | String | Yes |
| Dob | Date | Yes |
| Sex | String | Yes |
| Address 1 | String | Yes |
| Address 2 | String | No |
| City | String | Yes |
| State | String | Yes |
| Country | String | Yes |
| Zip Code | String | Yes |
| CellPhone | String | Yes |
| HomePhone | String | Yes |
| OfficePhone | String | No |
Following are the return variables and status:
 
MRD Number (Unique Patient Identifier) in JSON format.
 
HTTP 200 OK Status
Following are the exception handling details for this call:
| |
|
|
|---|---|---|
| NoPatientWithProvidedCriteria | No Patient with provided criteria present | Exception thrown when there is no patient matching this criterion. |
| UnsupportedSex | Unsupported 'Sex' passed as parameter | Exception thrown when 'sex' other than 'Male (M)', 'Female (F)' or 'Unknown (UNK)' is passed as a parameter. |
| InvalidState | Provided state doesn't exist | Exception thrown when an invalid 'State' is passed as a parameter |
| InvalidCountry | Provided country doesn't exist | Exception thrown when an invalid 'Country' is passed as a parameter |
The URL for getting the data based on categories is as shown below:
https://(baseUrl)/hisapi/viewCCDACategoriesFollowing POST parameters are supported for this call:
| |
|
|
|
|---|---|---|---|
| mrdNumber | Unique patient identifier | String | Yes |
| DateFormat | Date format used at the client site. | String | Yes |
| FromDate | Date | No | |
| ToDate | Date | No | |
| Category | CCDS category is required. Refer Table 5 for a list of supported categories. This can be a comma separated list in case multiple categories need to be queried. | String | Yes |
Following categories are supported:
| |
|
|---|---|
| Patient Name | Patient Name |
| Sex | Gender |
| Date of Birth | DOB |
| Race | Race |
| Ethnicity | Ethnicity |
| Preferred Language | PreferredLanguage |
| Smoking Status | SmokingStatus |
| Problems | Problems |
| Medications | Medications |
| Medication Allergies | MedicationAllergies |
| Laboratory Tests | LaboratoryTests |
| Laboratory Values(s)/Result(s) | LaboratoryResult |
| Vital Signs | VitalSigns |
| Procedures | Procedures |
| Care Team Member(s) | CareTeamMembers |
| Immunizations | Immunizations |
| Unique Device Identifier(s) for a Implantable Device(s) | Implants |
| Assessment and Plan of Treatment | Assessment |
| Goals | Goals |
| Health Concerns | HealthConcerns |
Following are the return variables and status:
 The specific category(s) details in JSON format.
 HTTP 200 OK Status
Following are the exception handling details for this call:
| |
|
|
|---|---|---|
| DataCategoryEmpty | Please provide at least one valid CCDS data category | Exception thrown when no category is passed as parameter. |
| DataCategoryInvalid | Not a valid CCDS data category | Exception thrown when an unsupported category is passed as a parameter. |
The CCDS data categories can be queried based on dates by using the above API and specifying either:
 Specific Date: Same date in 'fromDate' and 'toDate' parameters
 Date Range: Different dates in 'fromDate' and 'toDate' parameters.
Patient's clinical data in CCDA format can be obtained by using the following URL:
https://(baseUrl)/hisapi/viewCCDAFollowing POST parameters are supported for this call:
| |
|
|
|---|---|---|
| docType | String | Yes |
| mrdNumber | String | Yes |
| dateFormat | String | Yes |
| fromDate | Date | No |
| toDate | Date | No |
Following are the return variables and status:
 Patient's clinical data in CCDA XML format.
 HTTP 200 OK Status
Following are the exception handling details for this call:
| |
|
|
|---|---|---|
| EMR-GenCCDAFailed_Exception-E | Failed to generate summary care document. | Exception thrown when CCDA document generation fails. |
Terms of Use is available at