This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Quick Reference v0.1
Jonathan Payne edited this page Feb 5, 2015
·
1 revision
Quick Reference v0.1 reflects the current state of the prototype API on staging
API Endpoint: http://www.openconceptlab.org:5000/rest/v1
NOTE: Crossed-out items will not be included in the initial prototype of the OCL API, but are planned for future versions.
URI | Description |
---|---|
sources | |
GET /source |
Retrieve all sources |
GET /source?q=icd |
Search sources |
GET /source/snomed |
Retrieve source by short-code |
GET /source/1234-5678-9012-3456 |
Retrieve source by UUID |
POST /source |
Create new source |
POST |
|
PUT /source/1234-5678-9012-3456 |
Full update of specified source |
DELETE /source/1234-5678-9012-3456 |
Delete specified source |
concepts | |
GET /concept |
Retrieve all concepts across all sources |
GET /concept?q=cough |
Search concepts across all sources |
GET /concept?count=2 |
Specify the number of results to return |
GET /concept?q=anemia&count=2 |
Specify the number of results to return for searching for cough |
GET |
|
GET |
|
GET /source/snomed/concept/12845003 |
Retrieve one concept by SNOMED ID |
GET /source/snomed/concept/1234-5678-9012-3456 |
Retrieve one concept by UUID |
POST /source/my-source/concept |
Create a new concept |
POST |
|
PUT /sources/my-source/concept/1234-5678-9012-3456 |
Full update of specified concept |
DELETE /sources/my-source/concept/1234-5678-9012-3456 |
Delete the specified concept |
collections | |
GET /collection |
Retrieve all collections |
GET /collection?q=antenatal |
Search collections |
GET /collection?owner=johndoe |
Get collections with filter |
GET /collection?concept=1234-5678-9012-3456 |
Search collections by concept |
POST /collection |
Create new collection |
POST |
|
PUT /collection/1234-5678-9012-3456 |
Full update of specified collection |
DELETE /collection/1234-5678-9012-3456 |
Delete specified collection |
mappings | |
GET /mapping |
Retrieve all concept mappings |
GET /mapping?concept=1234-5678-9012-3456 |
Retrieve mappings FROM or TO a concept |
GET /mapping?conceptA=1234-5678-9012-3456 |
Retrieve mappings FROM a concept |
GET /mapping?conceptB=1234-5678-9012-3456 |
Retrieve mappings TO a concept |
GET |
|
GET |
|
POST /mapping |
Create new mapping |
POST |
|
PUT /mapping/1234-5678-9012-3456 |
Full update of the specified mapping |
DELETE /mapping/1234-5678-9012-3456 |
Delete the specified mapping by UUID |
maptypes | |
GET /maptype |
Retrieve all mapping types (e.g. "SAME AS") |
GET /maptype?q=narrow |
Search mapping types |
GET /maptype?source=snomed |
Filter mapping types by source |
GET |
|
GET /maptype/1234-5678-9012-3456 |
Get mapping type by UUID |
POST /maptype |
Create new mapping type |
POST |
|
PUT /maptype/1234-5678-9012-3456 |
Full update of specified mapping type by UUID |
PUT |
|
DELETE /maptype/1234-5678-9012-3456 |
Delete specified mapping type by UUID |
DELETE |
|
classes | |
GET /class |
Retrieve all classes |
GET /class?q=diagnosis |
Search classes |
GET /class?source=snomed |
Filter classes by source |
GET |
|
GET /class/1234-5678-9012-3456 |
Get class by UUID |
POST /class |
Create new class |
POST |
|
PUT |
|
PUT /class/1234-5678-9012-3456 |
Full update of specified class by UUID |
DELETE |
|
DELETE /class/1234-5678-9012-3456 |
Delete specified class by UUID |
datatypes | |
GET /datatype |
Retrieve all datatypes |
GET /datatype?q=number |
Search datatypes |
GET /datatype?source=snomed |
Filter datatypes by source |
GET |
|
GET /datatype/1234-5678-9012-3456 |
Get datatype by UUID |
POST /datatype |
Create new datatype |
POST |
|
PUT |
|
PUT /datatype/1234-5678-9012-3456 |
Full update of specified datatype by UUID |
DELETE |
|
DELETE /datatype/1234-5678-9012-3456 |
Delete specified datatype by UUID |
GET /star |
Get all stars |
GET /star?user=johndoe |
Get all stars for a user |
GET /star?resourceUuid=1234-5678-9012-3456 |
Get all stars for a resource |
POST /star |
Create new star |
DELETE /star/ABCD-EFGH-IJKL-MNOP |
Delete a star |
GET /user |
Retrieve all users |
GET /user?q=john |
Search users |
GET /user/johndoe |
Get specified user by username (preferred) |
GET /user/1234-5678-9012-3456 |
Get specified user by UUID (non-preferred) |
POST /user |
Create new user |
POST |
|
PUT /user/johndoe |
Full update of user |
DELETE /user/johndoe |
Delete user |
##Other Functionality##
Function | URI | Description |
---|---|---|
GET |
||
GET |
||
Pagination |
GET /concepts?q=blood&count=15&startIndex=30 |
Control which and how many results are shown |
GET |
||
Sort Ascending |
GET /concepts?q=blood&sortAsc=class |
Sort by the specified field in ascending order (see the resource documentation for supported fields) |
Sort Descending |
GET /concepts?q=blood&sortDesc=display |
Sort by the specified field in descending order (see the resource documentation for supported fields) |
GET |
Overview
Resources
Import / Export
- CSV Import
- Bulk Import
- Org/Source Import
- Export API
- Subscriptions
- Subscription Client Testing Process
- OpenMRS to OCL Mapping
Troubleshooting & Operations
- Data integrity checks
- Maintaining OCLAPI's Docker containers
- Maintaining MongoDB and Solr
- How to check logs
- NewRelic monitoring setup
- Configuration changes to make tests and import job run faster
- Accessing Solr UI Remotely
- Data Backup and Restore
- SSL Configuration
- Flower
- Switching to Maintenance Mode on Production Server
- Docker networking and Security
Other