Api Class |
Namespace: ehrApi
public class Api : Loggable
The Api type exposes the following members.
Name | Description | |
---|---|---|
CurDb |
The database currently in use
| |
IniFilePath |
The location of the ThomasEmr.ini file. If left empty, will look in the current folder
|
Name | Description | |
---|---|---|
CreateCCDA |
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.
| |
FindPatient |
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.
| |
LogIn |
Attempts to login to the ehrThomas instance. It returns a LoginResult object,
which contains the list of databases the user can access.
| |
UseDb |
Tells the Api what database to use. Can only be set once per instance.
|