Click or drag to resize
ehrThomas

Api Class

An Api for exporting patient data from ehrThomas. With a proper access and authentication, ehrAPI allows the developers to pass calls and returns a complete CCDA for a single patient encounter based on the patient token. Date parameters can be used to filter the data to either a range of days or a single day. CCDASectionFilter parameters allow the developer to filter CCDA object. By default, all CCDA sections will be returned when searching for the patient’s data. When calling for a patient, ehrAPI will return the patient basic demographic as a set by default. The basic patient demographic includes: patientID, tokenID being used, account number, first name, middle name, last name, DOB and gender along with encounter dates and encounterIDs. The complete patient demographic information (Patient’s first name, middle name, last name, patientID, tokenID, DOB, gender, contact info, race, ethnicity, and language) will be returned with encounter CCDA object. The result of CCDA object being passed back will always include the complete patient demographic (Patient’s first name, middle name, last name, patientID, tokenID, DOB, gender, contact info, race, ethnicity, and language). If all CCDA sections are filtered out, the end result of CCDA object will only return the complete patient demographic with EMR location where data being generated, no other info will be passed back.
Inheritance Hierarchy
SystemObject
  Loggable
    ehrApiApi

Namespace:  ehrApi
Assembly:  ehrApi (in ehrApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Api : Loggable

The Api type exposes the following members.

Properties
  NameDescription
Public propertyCurDb
The database currently in use
Public propertyIniFilePath
The location of the ThomasEmr.ini file. If left empty, will look in the current folder
Top
Methods
  NameDescription
Public methodCreateCCDA
Creates a CCDA object from the passed encounter. It will filter out sections using the SectionFilter. The result of CCDA object being passed back will always include the complete patient demographic (Patient’s first name, middle name, last name, patientID, tokenID, DOB, gender, contact info, race, ethnicity, and language). If all sections are filtered out, the end result of CCDA object will only return the complete patient demographic with EMR location where data being generated, no other info will be passed back.
Public methodFindPatient
Searches the patient database for patients that have a token matching the data passed. When calling for a patient, ehrAPI will return the patient basic demographic as a set by default. The basic patient demographic includes: patientID, tokenID being used, account number, first name, middle name, last name, DOB and gender along with encounter dates and encounterIDs. A complete patient demographic information (Patient’s first name, middle name, last name, patientID, tokenID, DOB, gender, contact info, race, ethnicity, and language) will be returned with encounter CCDA object.
Public methodLogIn
Attempts to login to the ehrThomas instance. It returns a LoginResult object, which contains the list of databases the user can access.
Public methodUseDb
Tells the Api what database to use. Can only be set once per instance.
Top
See Also