Introduction
Meditab Patient API(s) for IMS (Intelligent Medical Softwares )allow outside apps to be integrated with the Meditab IMS EHR platform. These APIs are Meditab’s implementation of HL7 CDA® R2 standard.
Developer Terms of Use
- Accepting the Terms. These Terms of Use ("Terms") govern your access to and use of the Meditab Patient APIs and related SDKs, documentation, services, etc. By accessing or using the Meditab Patient APIs, you agree to be bound by these Terms. “Meditab Patient API” means the API provided by Meditab to allow development of consumer-facing (i.e., patient or a patient’s authorized representative) applications only (“Apps”). You represent and warrant that you are at least 18 years of age and that you possess the legal right and ability to agree to these Terms and to use the Meditab Patient API in accordance with these Terms.
- Meditab will issue a unique client identifier for each App you submit to keep track of which Apps uses Meditab Patient APIs. Meditab or a mutual client might need to suspend or revoke an App’s client identifier if there are issues, service interruptions or other concerns with one of your Apps. If this happens, your App will not be able to communicate with Client’s Meditab based EHR systems until the concern is resolved and the suspended client identifier is restored. Contact Meditab or the Client in question to work on resolving the problem that led to the App’s client identifier being suspended. Because it is possible that your app will be suspended, you will clearly inform users of your app that it might not always be available to them and that they should not rely on it in case of an emergency.
- Direct access to Meditab’s EHR software is not required to develop or test your products. Testing can be done via the Demo API sandbox, or by working with a Client to test against a particular system. Your receipt of the materials does not give you permission to access Meditab’s IMS software, and does not give you permission to access a Client’s Meditab IMS system. Your access to Meditab’s IMS software can only be granted by Meditab.
- Other Terms. You may have a dually-executed agreement in place with Meditab relating to your use of the Meditab Patient APIs, and if so, such dually-executed agreement will govern and control in the event of a conflict with these Terms. Meditab’s published Terms of Use relating to use of its websites also apply to your use of Meditab’s websites.
- You may be required to provide contact information, organizational details, billing details, and other information, and you agree to keep the information updated at all times.
- Entity representation. If you are using the Meditab Patient API on behalf of a legal entity (i.e. an App company), you represent that you have proper authority to act on behalf of and bind the entity to these Terms, and by accepting, you accept on behalf of the entity (and all references to “you” in the Terms refer to the entity).
- You warrant that your Apps will not contain any viruses or other malicious computer instructions, devices, or techniques that can or were designed to threaten, infect, damage, disable, or shut down the Meditab Patient APIs, any technology, software, solution, equipment or any computer system.
- Developers are responsible for the Apps developed and how the Apps connect to the Meditab’s EHR platform. Developers are also responsible for complying with all applicable laws, including not infringing on intellectual property rights, copyright or trademark rights of Meditab or any third party. Developers are encouraged to work closely with Meditab and mutual client in order to avoid unfavorable results.
- You are solely responsible for the demonstration, pricing, sales support (including product analyst support), licensing (via a written agreement with the Meditab client), configuration, installation, implementation, maintenance and technical support of your Apps.
- Changes. Meditab may, in its sole and absolute discretion, make changes, modifications or updates to the Meditab Patient API (including without limitation changes to the capabilities and tech specs), Process or any portion of its websites without notice to you. In addition, Meditab may withdraw, suspend or discontinue any functionality or feature of the Meditab Patient APIs at any time; provided, however, that if your dually-executed agreement with Meditab provides for the continued use of any functionality or feature, Meditab will continue to provide that respective functionality or feature to you subject to the provisions of such dually-executed agreement.
Things Every Developer Should Know
- The API aims to be a RESTful resource: The Meditab API attempts to conform to the design principles of Representational State Transfer (REST). Meditab APIs use the JSON/XML data format for responses.
- For response type, you can define "accept" parameter for your desired response format. Allowed format is xml,json. Default response type is XML.
- The API is HTTP-based (over SSL) : Methods to retrieve data from the Meditab API require a GET request.
- API methods will return an error if you do not make your request with the correct parameters and endpoints.
- HTTP Response Codes are meaningful to understand. Meaningful error messages will be presented to the Developers.
- Authentication via OAUTH2.0 Protocols.
Authentication
The Meditab Patient API uses OAuth 2 for the authorization. You can refer OAUTH2.0 documentation for your reference.
For Authentication, you need to pass client ID and Client secret provided by Meditab. Using the client Id and client secret, do the following to obtain the access token
After obtaining the token, you can subsequently call the Patient resource API passing the bearer token as a header parameter.
You can always get a new access token by calling the authorization server
Request
$ curl --request POST \ --url https://meditab.auth0.com/oauth/token \ --header '
content-type: application/json
' \ --data
'{"client_id":"Client_ID","client_secret":"Client_Secret","audience":"ims-ccda-api","grant_type":"client_credentials"}'
Response
{
"access_token"
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMjU0NTE0NCwiaWF0IjoxU4NzQ0LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.tjwi6OVoHiqb1K1EeZwYs1dSJtBKizeeZQLJdCYdrwD5J2CLTW7yGRFDnXqppB0Wa6-h1xGODLPkqq8jzpA8kZBMGvEpiLBd7M8MUGFwoc-96o_QHuexoS1FHRYsuwmkzu5s2V2RnC2VWYd_MA7jgv7LAS1jzVDpntHjyJBu-lOOUlKtl-VNOQ_MzDabNC9MbxQE6-AVClsYJb7bqg-bOdrMzez1wAFf7g0LPdtgJ0OdMUHkBcHpLWru9m5Iny4KYcVutJB_FrffMrXQ6j7-JxOTNsQ4fSeBb7W2_C8jj-w2NkdtwpSAToatOks7deWY7axDFyOKWsuvD0SQ"
,
"token_type"
:
"Bearer"
}
Request
GET
/api/patient/search?lastName=Smith&firstName=Emma&dob=1949-07-09&zip=95825&gender=F
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
20
{"patientNo":
"MTA1"
}
Curl
$ curl
'https://demoapi.meditab.com/api/patient/search?lastName=Smith&firstName=Emma&dob=1949-07-09&zip=95825&gender=F'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Demographics
Table 3. Headers
Request
GET
/api/patient/demographics?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
1262
<recordTarget><patientRole><id extension="
105
" root="
2.16.840.1.113883.4.6
"/><id root="
2.16.840.1.113883.4.1
"/><addr use="
HP
"><streetAddressLine>2233 watt avenue</streetAddressLine><city>Sacramento</city><state>CA</state><postalCode>95825</postalCode><country>US</country></addr><telecom value="
tel:(510)201-0130
" use="
HP
"/><patient><name use="
L
"><given>Emma</given><given>Marie</given><family>Smith</family></name><administrativeGenderCode code="
F
" codeSystem="
2.16.840.1.113883.5.1
" displayName="
Female
"/><birthTime value="
19490709
"/><raceCode code="
2054-5
" displayName="
Black or African American
" codeSystem="
2.16.840.1.113883.6.238
" codeSystemName="Race and Ethnicity - CDC"/><ethnicGroupCode code="2186-5" displayName="
Non - Hispanic/Latino
" codeSystem="
2.16.840.1.113883.6.238
" codeSystemName="Race and Ethnicity - CDC"/><languageCommunication><languageCode code="
eng
"/></languageCommunication></patient><providerOrganization><id root="
2.16.840.1.113883.4.6
"/><name>Edit your office name</name><telecom value="
tel:(000-000-0000)
" use="
WP
"/><addr><streetAddressLine>Office street address</streetAddressLine><city>Sacramento</city><state>CA</state><postalCode>95825</postalCode><country>US</country></addr></providerOrganization></patientRole></recordTarget>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/demographics?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Medications
Table 5. Headers
Request
GET
/api/patient/medications?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
366
<component><section nullFlavor="
NI
"><templateId root="
2.16.840.1.113883.10.20.22.2.1.1
" extension="
2014-06-09
"/><templateId root="
2.16.840.1.113883.10.20.22.2.1.1
"/><code code="
10160-0
" codeSystem="
2.16.840.1.113883.6.1
" codeSystemName="
LOINC
" displayName="
HISTORY OF MEDICATION USE
"/><title>MEDICATIONS</title><text>No known Medications</text></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/medications?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Vital Signs
Table 7. Headers
Request
GET
/api/patient/vitalSigns?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
7085
<component><section><templateId root="2.16.840.1.113883.10.20.22.2.4.1" extension="2015-08-01"/><code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="VITAL SIGNS"/><title>VITAL SIGNS</title><text><table border="1" width="100%"><thead><tr><th align="right">Date: </th><th>Feb 20, 2017</th></tr></thead><tbody><tr><th align="left">Inhaled Oxygen Concentration</th><td><content ID="Vit1">0.000000 %</content></td></tr></tbody><tbody><tr><th align="left">Height</th><td><content ID="Vit2">167.640000 cm</content></td></tr></tbody><tbody><tr><th align="left">Temprature</th><td><content ID="Vit3">38.000000 Cel</content></td></tr></tbody><tbody><tr><th align="left">Diastolic Blood Pressure</th><td><content ID="Vit4">120.000000 mm[Hg]</content></td></tr></tbody><tbody><tr><th align="left">Systolic Blood Pressure</th><td><content ID="Vit5">85.000000 mm[Hg]</content></td></tr></tbody><tbody><tr><th align="left">Heart Rate</th><td><content ID="Vit6">75.000000 /min</content></td></tr></tbody><tbody><tr><th align="left">Respiration</th><td><content ID="Vit7">15.000000 /min</content></td></tr></tbody><tbody><tr><th align="left">Weight</th><td><content ID="Vit8">70.307000 kg</content></td></tr></tbody><tbody><tr><th align="left">BMI</th><td><content ID="Vit9">25.010000 kg/m2</content></td></tr></tbody></table></text><entry typeCode="DRIV"><organizer moodCode="EVN" classCode="CLUSTER"><templateId root="2.16.840.1.113883.10.20.22.4.26" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.26"/><id root="28cff002-67ae-49f3-8803-c8f53de67392"/><code displayName="Vital Sign" codeSystemName="SNOMED-CT" codeSystem="2.16.840.1.113883.6.96" code="46680005"><translation displayName="Vital Sign" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" code="74728-7"/></code><statusCode code="completed"/><effectiveTime value="20170220"/><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="c7167c33-e880-460b-b5fc-8d739c4b1694"/><code code="3150-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Inhaled Oxygen Concentration"/><text><reference value="#Vit1"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="%" value="0.000000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="b8c5fd30-9610-41f9-aad0-8fa497f928c2"/><code code="8302-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Height"/><text><reference value="#Vit2"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="cm" value="167.640000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="97cf2a20-e4bf-46e8-9ec9-4b744b66cdc0"/><code code="8310-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Temprature"/><text><reference value="#Vit3"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="Cel" value="38.000000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="085b19a8-fc76-4278-92c4-d2e145977ca7"/><code code="8462-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Diastolic Blood Pressure"/><text><reference value="#Vit4"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="mm[Hg]" value="120.000000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="885dc3e3-e689-48a8-831f-610f875cd601"/><code code="8480-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Systolic Blood Pressure"/><text><reference value="#Vit5"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="mm[Hg]" value="85.000000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="8b0da8f7-2eb0-431c-9525-f4f2013d2527"/><code code="8867-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Heart Rate"/><text><reference value="#Vit6"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="/min" value="75.000000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="9bb57403-e6bc-4cd3-972d-c4631b6397cc"/><code code="9279-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Respiration"/><text><reference value="#Vit7"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="/min" value="15.000000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="095d49f4-875a-42e2-9f1b-d9214ab560a2"/><code code="29463-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Weight"/><text><reference value="#Vit8"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="kg" value="70.307000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component><component><observation moodCode="EVN" classCode="OBS"><templateId root="2.16.840.1.113883.10.20.22.4.27" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.27"/><id root="8e1fd620-a63f-4873-930a-cbd8f36e3696"/><code code="39156-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="BMI"/><text><reference value="#Vit9"/></text><statusCode code="completed"/><effectiveTime value="20170220"/><value xsi:type="PQ" unit="kg/m2" value="25.010000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></component></organizer></entry></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/vitalSigns?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Immunization
Table 9. Headers
Request
GET
/api/patient/immunization?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
3467
<component><section><templateId root="2.16.840.1.113883.10.20.22.2.2.1" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.2.2.1"/><code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/><title>IMMUNIZATIONS</title><text><content ID="immunSect"/><table border="1" width="100%"><thead><tr><th>Vaccine</th><th>Date</th><th>Status</th></tr></thead><tbody><tr><td><content ID="immi1"/>Hepatitis A</td><td>Dec 31, 2016</td><td>Active</td></tr><tr><td><content ID="immi2"/>Influenza</td><td>Dec 06, 2015</td><td>Active</td></tr></tbody></table></text><entry typeCode="DRIV"><substanceAdministration classCode="SBADM" moodCode="INT" negationInd="false"><templateId root="2.16.840.1.113883.10.20.22.4.52" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.52"/><id root="e6f1ba43-c0ed-4b9b-9f12-f435d8ad8f92"/><text><reference value="#immi1"/></text><statusCode code="active"/><effectiveTime xsi:type="IVL_TS" value="20161231" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><routeCode nullFlavor="NA"/><doseQuantity nullFlavor="NA"/><consumable><manufacturedProduct classCode="MANU"><templateId root="2.16.840.1.113883.10.20.22.4.54" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.54"/><manufacturedMaterial><code code="52" codeSystem="2.16.840.1.113883.12.292" displayName="Hepatitis A" codeSystemName="CVX"><originalText>Hepatitis A</originalText></code><lotNumberText nullFlavor="NA"/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode="SUBJ" inversionInd="true"><act classCode="ACT" moodCode="INT"><templateId root="2.16.840.1.113883.10.20.22.4.20" extension="2014-06-09"/><code xsi:type="CE" code="171044003" codeSystem="2.16.840.1.113883.6.96" displayName="immunization education" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><text><reference value="#immunSect"/> </text><statusCode code="completed"/></act></entryRelationship></substanceAdministration></entry><entry typeCode="DRIV"><substanceAdministration classCode="SBADM" moodCode="INT" negationInd="false"><templateId root="2.16.840.1.113883.10.20.22.4.52" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.52"/><id root="e6f1ba43-c0ed-4b9b-9f12-f435d8ad8f92"/><text><reference value="#immi2"/></text><statusCode code="active"/><effectiveTime xsi:type="IVL_TS" value="20151206" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><routeCode nullFlavor="NA"/><doseQuantity nullFlavor="NA"/><consumable><manufacturedProduct classCode="MANU"><templateId root="2.16.840.1.113883.10.20.22.4.54" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.54"/><manufacturedMaterial><code code="141" codeSystem="2.16.840.1.113883.12.292" displayName="Influenza" codeSystemName="CVX"><originalText>Influenza</originalText></code><lotNumberText nullFlavor="NA"/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode="SUBJ" inversionInd="true"><act classCode="ACT" moodCode="INT"><templateId root="2.16.840.1.113883.10.20.22.4.20" extension="2014-06-09"/><code xsi:type="CE" code="171044003" codeSystem="2.16.840.1.113883.6.96" displayName="immunization education" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><text><reference value="#immunSect"/> </text><statusCode code="completed"/></act></entryRelationship></substanceAdministration></entry></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/immunization?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Request
GET
/api/patient/allergy?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
6369
<component><section><templateId root="2.16.840.1.113883.10.20.22.2.6.1" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.2.6.1"/><code code="48765-2" codeSystem="2.16.840.1.113883.6.1"/><title>ALLERGIES, ADVERSE REACTIONS, ALERTS</title><text><table border="1" width="100%"><thead><tr><th>Substance</th><th>Reaction</th><th>Severity</th><th>Status</th></tr></thead><tbody><tr><td><content ID="product1">cefadroxil</content></td><td><content ID="Reaction1">N/A</content></td><td><content ID="Severity1">Mild</content></td><td>active</td></tr><tr><td><content ID="product2">Codeine</content></td><td><content ID="Reaction2">N/A</content></td><td><content ID="Severity2">Mild</content></td><td>active</td></tr></tbody></table></text><entry typeCode="DRIV"><act classCode="ACT" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.30" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.30"/><id root="36e3e930-7b14-11db-9fe1-0800200c9a66"/><code code="CONC" codeSystem="2.16.840.1.113883.5.6"/><statusCode code="active"/><effectiveTime><low value="20070515"/></effectiveTime><entryRelationship typeCode="SUBJ"><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.7" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.7"/><id root="4adc1020-7b14-11db-9fe1-0800200c9a66"/><code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/><statusCode code="completed"/><effectiveTime><low value="20070515"/></effectiveTime><value xsi:type="CD" code="419199007" displayName="Allergy to substance" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><participant typeCode="CSM"><participantRole classCode="MANU"><playingEntity classCode="MMAT"><code codeSystem="2.16.840.1.113883.6.88" codeSystemName="RxNorm" displayName="cefadroxil" code="243313"><originalText><reference value="#product1"/></originalText></code></playingEntity></participantRole></participant><entryRelationship typeCode="MFST" inversionInd="true"><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.9" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.9"/><id root="4adc1020-7b14-11db-9fe1-0800200c9a64"/><code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/><text><reference value="#Reaction1"/></text><statusCode code="completed"/><effectiveTime><low value="20070515"/><high nullFlavor="NA"/></effectiveTime><value xsi:type="CD" code="NI" codeSystem="2.16.840.1.113883.6.96" displayName="N/A" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><entryRelationship typeCode="SUBJ" inversionInd="true"><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.8" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.8"/><code xsi:type="CE" code="SEV" displayName="Severity Observation" codeSystem="2.16.840.1.113883.5.4" codeSystemName="ActCode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><text><reference value="#Severity1"/></text><statusCode code="completed"/><value xsi:type="CD" code="255604002" displayName="Mild" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><interpretationCode code="S" displayName="Suceptible" codeSystem="2.16.840.1.113883.1.11.78" codeSystemName="Observation Interpretation"/></observation></entryRelationship></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode="DRIV"><act classCode="ACT" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.30" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.30"/><id root="36e3e930-7b14-11db-9fe1-0800200c9a66"/><code code="CONC" codeSystem="2.16.840.1.113883.5.6"/><statusCode code="active"/><effectiveTime><low value="20070515"/></effectiveTime><entryRelationship typeCode="SUBJ"><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.7" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.7"/><id root="4adc1020-7b14-11db-9fe1-0800200c9a66"/><code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/><statusCode code="completed"/><effectiveTime><low value="20070515"/></effectiveTime><value xsi:type="CD" code="419199007" displayName="Allergy to substance" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><participant typeCode="CSM"><participantRole classCode="MANU"><playingEntity classCode="MMAT"><code codeSystem="2.16.840.1.113883.6.88" codeSystemName="RxNorm" displayName="Codeine" code="2670"><originalText><reference value="#product2"/></originalText></code></playingEntity></participantRole></participant><entryRelationship typeCode="MFST" inversionInd="true"><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.9" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.9"/><id root="4adc1020-7b14-11db-9fe1-0800200c9a64"/><code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/><text><reference value="#Reaction2"/></text><statusCode code="completed"/><effectiveTime><low value="20070515"/><high nullFlavor="NA"/></effectiveTime><value xsi:type="CD" code="NI" codeSystem="2.16.840.1.113883.6.96" displayName="N/A" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><entryRelationship typeCode="SUBJ" inversionInd="true"><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.8" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.8"/><code xsi:type="CE" code="SEV" displayName="Severity Observation" codeSystem="2.16.840.1.113883.5.4" codeSystemName="ActCode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><text><reference value="#Severity2"/></text><statusCode code="completed"/><value xsi:type="CD" code="255604002" displayName="Mild" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><interpretationCode code="S" displayName="Suceptible" codeSystem="2.16.840.1.113883.1.11.78" codeSystemName="Observation Interpretation"/></observation></entryRelationship></observation></entryRelationship></observation></entryRelationship></act></entry></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/allergy?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Problems
Table 13. Headers
Request
GET
/api/patient/problems?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
1648
<component><section><templateId root="2.16.840.1.113883.10.20.22.2.5.1" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.2.5.1"/><code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PROBLEM LIST"/><title>PROBLEMS</title><text><content ID="problems"/><list listType="ordered"><item>Problem #1<list><item>Complex ovarian cyst (disorder)</item></list></item></list></text><entry typeCode="DRIV"><act classCode="ACT" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.3" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.3"/><id root="ec8a6ff8-ed4b-4f7e-84c3-e98e58b45de8"/><code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern"/><statusCode code="active"/><effectiveTime><low value="20170220"/></effectiveTime><entryRelationship typeCode="SUBJ"><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.4"/><id root="ab1791b0-5c71-11db-b0de-0812200c9a68"/><code code="409586006" codeSystem="2.16.840.1.113883.6.96" displayName="Complaint"><translation code="75323-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Condition"/></code><text><reference value="Problem #1"/></text><statusCode code="completed"/><effectiveTime><low value="20170220"/></effectiveTime><value xsi:type="CD" code="421000119103" codeSystem="2.16.840.1.113883.6.96" displayName="Complex ovarian cyst (disorder)" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></observation></entryRelationship></act></entry></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/problems?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Request
GET
/api/patient/labs?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
3642
<component><section><templateId root="2.16.840.1.113883.10.20.22.2.3.1" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.2.3.1"/><code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="RESULTS"/><title>RESULTS</title><text><table border="1" width="100%"><thead><tr><th>Test Name</th><th>Observation Name</th><th>Actual Result</th><th>Date</th></tr></thead><tbody><tr><td ID="result1">Fasting glucose in serum or plasma</td><td>Fasting glucose in serum or plasma</td><td>75.000</td><td>Jan 31, 2017</td></tr><tr><td ID="result2">Hemoglobin A1c/hemoglobin.total in blood</td><td>Hemoglobin A1c/hemoglobin.total in blood</td><td>5.500</td><td>Jan 31, 2017</td></tr></tbody></table></text><entry typeCode="DRIV"><organizer classCode="BATTERY" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.1" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.1"/><id root="7d5a02b0-67a4-11db-bd13-0800221c9a23"/><code code="1558-6" displayName="Fasting glucose in serum or plasma" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/><statusCode code="completed"/><effectiveTime><low value="20170131"/><high value="20170712"/></effectiveTime><author><templateId root="2.16.840.1.113883.10.20.22.4.119"/><time value="201708110000000-0500"/><assignedAuthor><id root="676ea6fc-31f8-4292-a2f1-72ba567cb9e9"/><assignedPerson><name><given>Provider</given><family>Steve</family></name></assignedPerson></assignedAuthor></author><component><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.2" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.2"/><id root="f1aa44dd-6f39-4f5c-b267-897c3824b673"/><code xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CE" code="1234" displayName="Fasting glucose in serum or plasma" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/><text><reference value="#Result1"/></text><statusCode code="completed"/><effectiveTime value="20170131"/><value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PQ" value="75.000" unit="mg/dl"/></observation></component></organizer></entry><entry typeCode="DRIV"><organizer classCode="BATTERY" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.1" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.1"/><id root="7d5a02b0-67a4-11db-bd13-0800221c9a23"/><code code="4548-4" displayName="Hemoglobin A1c/hemoglobin.total in blood" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/><statusCode code="completed"/><effectiveTime><low value="20170131"/><high value="20170712"/></effectiveTime><author><templateId root="2.16.840.1.113883.10.20.22.4.119"/><time value="201708110000000-0500"/><assignedAuthor><id root="676ea6fc-31f8-4292-a2f1-72ba567cb9e9"/><assignedPerson><name><given>Provider</given><family>Steve</family></name></assignedPerson></assignedAuthor></author><component><observation classCode="OBS" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.2" extension="2015-08-01"/><templateId root="2.16.840.1.113883.10.20.22.4.2"/><id root="f1aa44dd-6f39-4f5c-b267-897c3824b673"/><code xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CE" code="1234" displayName="Hemoglobin A1c/hemoglobin.total in blood" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/><text><reference value="#Result2"/></text><statusCode code="completed"/><effectiveTime value="20170131"/><value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PQ" value="5.500" unit="%"/></observation></component></organizer></entry></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/labs?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Procedures
Table 17. Headers
Request
GET
/api/patient/procedures?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01 HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
5021
<component><section><templateId root="2.16.840.1.113883.10.20.22.2.7.1" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.2.7.1"/><code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PROCEDURES"/><title>PROCEDURES</title><text><table border="1" width="100%"><thead><tr><th>Procedure</th><th>Date</th></tr></thead><tbody><tr><td ID="Proc1">RADEX CH 2 VIEWS FRNT&LAT</td><td>Feb 20, 2017</td></tr><tr><td ID="Proc2">SCOPE OF COLON FOR DIAGNOSIS</td><td>Jan 31, 2017</td></tr><tr><td ID="Proc3">Standard chest X-ray (procedure)</td><td>Feb 20, 2017</td></tr><tr><td ID="Proc4">Colonoscopy (procedure)</td><td>Jan 31, 2017</td></tr></tbody></table></text><entry typeCode="DRIV"><procedure classCode="PROC" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.14" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.14"/><id root="d68b7e32-7811-4f5b-9cc2-acd54b0fd85d"/><code codeSystem="2.16.840.1.113883.6.12" codeSystemName="CPT-4" code="71020" displayName="RADEX CH 2 VIEWS FRNT&LAT"/><statusCode code="active"/><effectiveTime value="20170220"/><performer typeCode="PRF"><assignedEntity><id root="2.16.840.1.113883.4.6"/><addr use="WP"><streetAddressLine></streetAddressLine><city></city><state></state><postalCode></postalCode><country>US</country></addr><telecom nullFlavor="NI"/><representedOrganization classCode="ORG"><id root="2.16.840.1.113883.19.5"/><name>Edit your office name</name><telecom use="WP" value="tel:(000)-000-0000"/><addr use="WP"><streetAddressLine>Office street address</streetAddressLine><city>Sacramento</city><state>CA</state><postalCode>95825</postalCode><country>US</country></addr></representedOrganization></assignedEntity></performer></procedure></entry><entry typeCode="DRIV"><procedure classCode="PROC" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.14" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.14"/><id root="d68b7e32-7811-4f5b-9cc2-acd54b0fd85d"/><code codeSystem="2.16.840.1.113883.6.12" codeSystemName="CPT-4" code="45378" displayName="SCOPE OF COLON FOR DIAGNOSIS"/><statusCode code="active"/><effectiveTime value="20170131"/><performer typeCode="PRF"><assignedEntity><id root="2.16.840.1.113883.4.6"/><addr use="WP"><streetAddressLine></streetAddressLine><city></city><state></state><postalCode></postalCode><country>US</country></addr><telecom nullFlavor="NI"/><representedOrganization classCode="ORG"><id root="2.16.840.1.113883.19.5"/><name>Edit your office name</name><telecom use="WP" value="tel:(000)-000-0000"/><addr use="WP"><streetAddressLine>Office street address</streetAddressLine><city>Sacramento</city><state>CA</state><postalCode>95825</postalCode><country>US</country></addr></representedOrganization></assignedEntity></performer></procedure></entry><entry typeCode="DRIV"><procedure classCode="PROC" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.14" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.14"/><id root="d68b7e32-7811-4f5b-9cc2-acd54b0fd85d"/><code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" code="168731009" displayName="Standard chest X-ray (procedure)"/><statusCode code="active"/><effectiveTime value="20170220"/><performer typeCode="PRF"><assignedEntity><id root="2.16.840.1.113883.4.6"/><addr use="WP"><streetAddressLine></streetAddressLine><city></city><state></state><postalCode></postalCode><country>US</country></addr><telecom nullFlavor="NI"/><representedOrganization classCode="ORG"><id root="2.16.840.1.113883.19.5"/><name>Edit your office name</name><telecom use="WP" value="tel:(000)-000-0000"/><addr use="WP"><streetAddressLine>Office street address</streetAddressLine><city>Sacramento</city><state>CA</state><postalCode>95825</postalCode><country>US</country></addr></representedOrganization></assignedEntity></performer></procedure></entry><entry typeCode="DRIV"><procedure classCode="PROC" moodCode="EVN"><templateId root="2.16.840.1.113883.10.20.22.4.14" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.4.14"/><id root="d68b7e32-7811-4f5b-9cc2-acd54b0fd85d"/><code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" code="73761001" displayName="Colonoscopy (procedure)"/><statusCode code="active"/><effectiveTime value="20170131"/><performer typeCode="PRF"><assignedEntity><id root="2.16.840.1.113883.4.6"/><addr use="WP"><streetAddressLine></streetAddressLine><city></city><state></state><postalCode></postalCode><country>US</country></addr><telecom nullFlavor="NI"/><representedOrganization classCode="ORG"><id root="2.16.840.1.113883.19.5"/><name>Edit your office name</name><telecom use="WP" value="tel:(000)-000-0000"/><addr use="WP"><streetAddressLine>Office street address</streetAddressLine><city>Sacramento</city><state>CA</state><postalCode>95825</postalCode><country>US</country></addr></representedOrganization></assignedEntity></performer></procedure></entry></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/procedures?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Device Identifiers
Table 19. Headers
Request
GET
/api/patient/deviceIdentifiers?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01
HTTP/1.1
Target-Client: 5968babcb8392e2b4cf5fe89
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
404
<component><section><templateId root="2.16.840.1.113883.10.20.22.2.23" extension="2014-06-09"/><templateId root="2.16.840.1.113883.10.20.22.2.23"/><code code="46264-8" codeSystem="2.16.840.1.113883.6.1"/><title>MEDICAL EQUIPMENT</title><text><content ID="Proc"/><list><item>Radiology picture archiving and communication system application software: Jul 12, 2017</item></list></text></section></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/deviceIdentifiers?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'
Smoking Status
Table 21. Headers
Request
GET
/api/patient/smokingStatus?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01 HTTP/1.1
Target-Client:
5968babcb8392e2b4cf5fe89
Authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA
Content-Type:
application/json;charset=UTF-8
Host:
demoapi.meditab.com
Response
HTTP/1.1 200 OK
X-Application-Context:
ims-service-client:dev:-1
Content-Type:
application/json;charset=UTF-8
Content-Length:
494
<component><observation classCode="OBS" moodcode="EVN"><templateID root="2.16.840.1.113883.10.20.22.4.78" extenstion="2014-06-09"/><id extension="123456789" root="2.16.840.1.113883.19"/><code code="72166-2" codeSystem="2.16.840.1.113883.6.1" displayName="Tobacco smoking status NHIS"/><statusCode code="completed"/><effectiveTime value="20170707"/><value xsi:type="CD" code="449868002" displayName="Smokes tobacco daily (finding)" codeSystem="2.16.840.1.113883.6.96"/></observation></component>
Curl
$ curl
'https://demoapi.meditab.com/api/patient/smokingStatus?patientUID=MTA1&fromDate=1900-01-01&toDate=9999-01-01'
-i -H
'Target-Client: 5968babcb8392e2b4cf5fe89'
-H
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlF6ZzRSRVZDUkRSRE5EYzNSamt4TXpWRU1EQTJSRUkwTmprd1FUY3pSamczT0RVNU4wVkZOUSJ9.eyJpc3MiOiJodHRwczovL2Fua3VyYS5hdXRoMC5jb20vIiwic3ViIjoidTZOVXNIcjNkUXB0Um5Hd1d1SnphNGZHdEdwaVlNbVBAY2xpZW50cyIsImF1ZCI6Imltcy1jY2RhLWFwaSIsImV4cCI6MTUwMTc2Mjk5NSwiaWF0IjoxNTAxNjc2NTk1LCJzY29wZSI6InJlYWQ6cGF0aWVudCIsImh0dHBzOi8vbWVkcGhhcm1zZXJ2aWNlcy9tZXRhZGF0YSI6eyJuaWNrbmFtZSI6ImFua3VyIn19.uWV1DPY5QOUgM2QueHVUmb4MFtmokLu6oEaxxc93beba-JEPmsj50okxL_3xIZONWtps8Mf1BnDjStkgpFYyeq_gg7JWIT6ndOO8rbEwMVMg1AoV0Nmep2qDIA-Ucb1Guum5feG9qK8BADCQpHwvnI_hlIXTKR3wzJzQCi6XGpcFM7NHBQKULEJ5AqyQjZBDDjo0Qo4MzsDAazggdssR8TJWIn8AAhaLA1j3DCZ3e7ZJ7KMbBWk3VTIbJcv3apKEMZT6WhSgRjcQOEKXj5KbfT7q5OHwCqBLHOJoZ4mi8WPBtt0L2ifFf18vAPew6gM1reJrG4kAbZktAAs9N_dlfA'
-H
'Content-Type: application/json;charset=UTF-8'