Samples API for IST MPG. For additional information please contact support AT istmedical.com Latest Version: 1.5
lun 20 feb 2023 09:05:02 CET
- Updated file php_examples/upload_report.php
- Changes in php_examples/config.php to incluide upload report functionality
Fri Sep 9 11:33:40 CEST 2022
- Python and PHP samples added
Wed Sep 8 10:13:15 CEST 2021
- Curl samples added
- Moved repository to Github and made public
Will provide you with an access token. This token is required to call any other API endpoints.
curl -X POST "https://<host>:<port>/api/token/refreshToken" -H "accept: application/json;charset=UTF-8" -H "Content-Type: application/json;charset=UTF-8" -d "{ \"password\": \"your_password\", \"username\": \"your_username\"}" -k
Sample response
{
"status": 200,
"statusMessage": "Token generated correctly",
"success": true,
"timestamp": "01/01/2021 11:11:11 AM +0200",
"results": [
{
"token": "token_string",
"user": "your_username",
"token_expire_time": "nn"
}
]
}
curl -X GET "https://<host>:<port>/api/documents/list?PID=<PID>" -H "accept: application/json;charset=UTF-8" -H "Authorization: Bearer <token>" -k
Sample response
{
"status": 200,
"statusMessage": "Record found with PID : nnn",
"success": true,
"timestamp": "01/01/2021 11:11:11 AM +0200",
"results": [
{
"PatientData": {
"PatientName": "xx",
"PatientID": "nn",
"BirthDate": "1900-01-01",
"PatientGenre": ""
}
},
{
"DocumentList": [
{
"IDDOC": "11fd4084-307c-4c2b-8aad-9a8311e9dcda",
"StudyID": "study_id_number",
"StudyDate": "20200202",
"StudyDescription": "Description",
"DocumentType": "Rich Document",
"DocumentPages": "number of pages",
"DocumentSize": "Size in MB",
"StudyModality": "Modality",
"ReferringPhysicianName": "Name"
},
{
"IDDOC": "41fd4384-307c-4c2b-8a4d-9a3a1ae9dcdb",
"StudyID": "study_id_number",
"StudyDate": "20200202",
"StudyDescription": "Description",
"DocumentType": "Rich Document",
"DocumentPages": "number of pages",
"DocumentSize": "Size in MB",
"StudyModality": "Modality",
"ReferringPhysicianName": "Name"
}
]
}
]
}
curl -X GET "https://<host>:<port>/api/documents/download/<IDDOC>" -H "accept: application/json;charset=UTF-8" -H "Authorization: Bearer <token>" -k
Sample response
{
"status": 200,
"statusMessage": "Document Found with id : f3e0ecd3-74e3-4c81-a6af-1822a453562e",
"success": true,
"timestamp": "01/01/2021 11:11:11 AM +0200",
"results": [
{
"PatientData": {
"PatientName": "Patient Name",
"PatientID": "patient_id",
"BirthDate": "1970-01-01",
"PatientGenre": ""
}
},
{
"publicPath": "public_path_of_pdf_document",
"documentType": "Rich Document"
}
]
}
These sample project files are licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.